diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c9d7ef4..ff200e2b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,11 @@ This release changes the pinned API version to `2026-03-25.preview`. It is built * [#1745](https://github.com/stripe/stripe-python/pull/1745) Merge to beta * [#1713](https://github.com/stripe/stripe-python/pull/1713) Delete API_VERSION file as it is no longer needed +## 15.0.1 - 2026-04-01 +* [#1786](https://github.com/stripe/stripe-python/pull/1786) Fix encoding two-dimensional array request params +* [#1785](https://github.com/stripe/stripe-python/pull/1785) Improve types for `metadata` and other dict-like types +* [#1780](https://github.com/stripe/stripe-python/pull/1780) Fix `str` / `repr` for `StripeObjects` with decimals & add support for plain dicts + ## 15.0.0 - 2026-03-25 This release changes the pinned API version to `2026-03-25.dahlia` and contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v15) to simplify your upgrade process. diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index c70da031a..65009e232 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -25e6bd225852aa44d783e9fb3b9895af39479331 +77db2d3a0cf933a87e318463e31419e60d76483b \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 19b4cc885..048a4fc1a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2206 \ No newline at end of file +v2252 \ No newline at end of file diff --git a/stripe/__init__.py b/stripe/__init__.py index 6b3dccdc8..aab7c6eb2 100644 --- a/stripe/__init__.py +++ b/stripe/__init__.py @@ -162,6 +162,7 @@ def add_beta_version( radar as radar, reporting as reporting, reserve as reserve, + shared_payment as shared_payment, sigma as sigma, tax as tax, terminal as terminal, @@ -538,6 +539,9 @@ def add_beta_version( from stripe._setup_intent_service import ( SetupIntentService as SetupIntentService, ) + from stripe._shared_payment_service import ( + SharedPaymentService as SharedPaymentService, + ) from stripe._shipping_rate import ShippingRate as ShippingRate from stripe._shipping_rate_service import ( ShippingRateService as ShippingRateService, @@ -646,6 +650,7 @@ def add_beta_version( "radar": ("stripe.radar", True), "reporting": ("stripe.reporting", True), "reserve": ("stripe.reserve", True), + "shared_payment": ("stripe.shared_payment", True), "sigma": ("stripe.sigma", True), "tax": ("stripe.tax", True), "terminal": ("stripe.terminal", True), @@ -951,6 +956,7 @@ def add_beta_version( "SetupAttemptService": ("stripe._setup_attempt_service", False), "SetupIntent": ("stripe._setup_intent", False), "SetupIntentService": ("stripe._setup_intent_service", False), + "SharedPaymentService": ("stripe._shared_payment_service", False), "ShippingRate": ("stripe._shipping_rate", False), "ShippingRateService": ("stripe._shipping_rate_service", False), "SigmaService": ("stripe._sigma_service", False), diff --git a/stripe/_account.py b/stripe/_account.py index 8c3da8952..28aa98b16 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -238,6 +238,10 @@ class Capabilities(StripeObject): """ 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"]] + """ + 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"] ] @@ -498,6 +502,10 @@ class Capabilities(StripeObject): """ 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"]] + """ + 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"]] """ The status of the Swish capability of the account, or whether the account can directly process Swish payments. diff --git a/stripe/_account_session.py b/stripe/_account_session.py index bfb986646..902ed132a 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -61,6 +61,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class BalanceReport(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class Balances(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool @@ -382,6 +393,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class PayoutReconciliationReport(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class Payouts(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool @@ -447,6 +469,7 @@ class Features(StripeObject): account_management: AccountManagement account_onboarding: AccountOnboarding + balance_report: BalanceReport balances: Balances capital_financing: Optional[CapitalFinancing] capital_financing_application: Optional[CapitalFinancingApplication] @@ -463,6 +486,7 @@ class Features(StripeObject): payment_disputes: PaymentDisputes payments: Payments payout_details: PayoutDetails + payout_reconciliation_report: PayoutReconciliationReport payouts: Payouts payouts_list: PayoutsList tax_registrations: TaxRegistrations @@ -470,6 +494,7 @@ class Features(StripeObject): _inner_class_types = { "account_management": AccountManagement, "account_onboarding": AccountOnboarding, + "balance_report": BalanceReport, "balances": Balances, "capital_financing": CapitalFinancing, "capital_financing_application": CapitalFinancingApplication, @@ -486,6 +511,7 @@ class Features(StripeObject): "payment_disputes": PaymentDisputes, "payments": Payments, "payout_details": PayoutDetails, + "payout_reconciliation_report": PayoutReconciliationReport, "payouts": Payouts, "payouts_list": PayoutsList, "tax_registrations": TaxRegistrations, diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 9aa7b9ee7..1afe7b7af 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-03-25.preview" + CURRENT = "2026-04-22.preview" diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index 9d2327890..2dc1b438d 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -65,7 +65,7 @@ class FeeDetail(StripeObject): """ type: str """ - Type of the fee, one of: `application_fee`, `payment_method_passthrough_fee`, `stripe_fee` or `tax`. + Type of the fee, one of: `application_fee`, `payment_method_passthrough_fee`, `stripe_fee`, `tax`, or `withheld_tax`. """ amount: int @@ -163,6 +163,9 @@ class FeeDetail(StripeObject): "climate_order_refund", "connect_collection_transfer", "contribution", + "fee_credit_funding", + "inbound_transfer", + "inbound_transfer_reversal", "issuing_authorization_hold", "issuing_authorization_release", "issuing_dispute", @@ -200,7 +203,7 @@ class FeeDetail(StripeObject): "transfer_refund", ] """ - Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + Transaction type: `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. """ @classmethod diff --git a/stripe/_charge.py b/stripe/_charge.py index d23a6044c..aca5ae488 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -279,11 +279,11 @@ class AcssDebit(StripeObject): class Affirm(StripeObject): location: Optional[str] """ - ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + ID of the location that this reader is assigned to. """ reader: Optional[str] """ - ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + ID of the reader this transaction was made on. """ transaction_id: Optional[str] """ @@ -1146,7 +1146,9 @@ class Crypto(StripeObject): """ The blockchain network that the transaction was sent on. """ - token_currency: Optional[Literal["usdc", "usdg", "usdp"]] + token_currency: Optional[ + Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + ] """ The token currency that the transaction was sent with. """ @@ -1524,6 +1526,10 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ payer_details: Optional[PayerDetails] """ The payer details for this transaction. @@ -1538,6 +1544,10 @@ class Address(StripeObject): Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ _inner_class_types = {"payer_details": PayerDetails} class Konbini(StripeObject): @@ -2092,6 +2102,12 @@ class StripeBalance(StripeObject): The connected account ID whose Stripe balance to use as the source of payment """ + class Sunbit(StripeObject): + transaction_id: Optional[str] + """ + The Sunbit transaction ID associated with this payment. + """ + class Swish(StripeObject): fingerprint: Optional[str] """ @@ -2235,6 +2251,7 @@ class Zip(StripeObject): sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] type: str @@ -2307,6 +2324,7 @@ class Zip(StripeObject): "sofort": Sofort, "stripe_account": StripeAccount, "stripe_balance": StripeBalance, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index a8a13dd30..02766d304 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -1387,6 +1387,9 @@ class StripeBalance(StripeObject): The connected account ID whose Stripe balance to use as the source of payment """ + class Sunbit(StripeObject): + pass + class Swish(StripeObject): pass @@ -1564,6 +1567,7 @@ class Zip(StripeObject): shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] type: Literal[ @@ -1622,6 +1626,7 @@ class Zip(StripeObject): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -1692,6 +1697,7 @@ class Zip(StripeObject): "shopeepay": Shopeepay, "sofort": Sofort, "stripe_balance": StripeBalance, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py index a07c5b94f..41bd06f9b 100644 --- a/stripe/_credit_note.py +++ b/stripe/_credit_note.py @@ -179,7 +179,7 @@ class Tax(StripeObject): class TotalTax(StripeObject): class TaxRateDetails(StripeObject): - tax_rate: str + tax_rate: ExpandableField["TaxRate"] """ ID of the tax rate """ diff --git a/stripe/_credit_note_line_item.py b/stripe/_credit_note_line_item.py index baa4d9f73..99bd2a532 100644 --- a/stripe/_credit_note_line_item.py +++ b/stripe/_credit_note_line_item.py @@ -65,7 +65,7 @@ class TaxCalculationReference(StripeObject): class Tax(StripeObject): class TaxRateDetails(StripeObject): - tax_rate: str + tax_rate: ExpandableField["TaxRate"] """ ID of the tax rate """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index e4983a724..ed80fb9eb 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -341,8 +341,10 @@ class CustomerTaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -351,6 +353,7 @@ class CustomerTaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -381,6 +384,7 @@ class CustomerTaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -411,7 +415,7 @@ class CustomerTaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: Optional[str] """ @@ -457,11 +461,13 @@ class LastFinalizationError(StripeObject): "account_number_invalid", "account_token_required_for_v2_account", "acss_debit_session_incomplete", + "action_blocked", "alipay_upgrade_required", "amount_too_large", "amount_too_small", "api_key_expired", "application_fees_not_allowed", + "approval_required", "authentication_required", "balance_insufficient", "balance_invalid_parameter", @@ -816,6 +822,9 @@ class Bancontact(StripeObject): Preferred language of the Bancontact authorization page that the customer is redirected to. """ + class Blik(StripeObject): + pass + class Card(StripeObject): class Installments(StripeObject): enabled: Optional[bool] @@ -989,6 +998,10 @@ class Filters(StripeObject): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: Optional[Blik] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: Optional[Card] """ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. @@ -1028,6 +1041,7 @@ class Filters(StripeObject): _inner_class_types = { "acss_debit": AcssDebit, "bancontact": Bancontact, + "blik": Blik, "card": Card, "customer_balance": CustomerBalance, "id_bank_transfer": IdBankTransfer, @@ -1058,6 +1072,7 @@ class Filters(StripeObject): "au_becs_debit", "bacs_debit", "bancontact", + "blik", "boleto", "card", "cashapp", @@ -1321,7 +1336,7 @@ class TotalPretaxCreditAmount(StripeObject): class TotalTax(StripeObject): class TaxRateDetails(StripeObject): - tax_rate: str + tax_rate: ExpandableField["TaxRate"] """ ID of the tax rate """ @@ -1618,11 +1633,11 @@ class TaxRateDetails(StripeObject): """ period_end: int """ - End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. + The latest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. """ period_start: int """ - Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. + The earliest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. """ post_payment_credit_notes_amount: int """ diff --git a/stripe/_invoice_line_item.py b/stripe/_invoice_line_item.py index 795a9c824..4bddda0a3 100644 --- a/stripe/_invoice_line_item.py +++ b/stripe/_invoice_line_item.py @@ -13,6 +13,7 @@ from stripe._margin import Margin from stripe._price import Price from stripe._subscription import Subscription + from stripe._tax_rate import TaxRate from stripe.billing._credit_balance_transaction import ( CreditBalanceTransaction, ) @@ -210,7 +211,7 @@ class TaxCalculationReference(StripeObject): class Tax(StripeObject): class TaxRateDetails(StripeObject): - tax_rate: str + tax_rate: ExpandableField["TaxRate"] """ ID of the tax rate """ diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index 5c98ea973..cae37f31e 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -289,6 +289,14 @@ "review": ("stripe._review", "Review"), "setup_attempt": ("stripe._setup_attempt", "SetupAttempt"), "setup_intent": ("stripe._setup_intent", "SetupIntent"), + "shared_payment.granted_token": ( + "stripe.shared_payment._granted_token", + "GrantedToken", + ), + "shared_payment.issued_token": ( + "stripe.shared_payment._issued_token", + "IssuedToken", + ), "shipping_rate": ("stripe._shipping_rate", "ShippingRate"), "scheduled_query_run": ( "stripe.sigma._scheduled_query_run", diff --git a/stripe/_order.py b/stripe/_order.py index fbbb49df8..0d720c607 100644 --- a/stripe/_order.py +++ b/stripe/_order.py @@ -810,8 +810,10 @@ class TaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -820,6 +822,7 @@ class TaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -850,6 +853,7 @@ class TaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -880,7 +884,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: Optional[str] """ diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index dc8d27b7d..e538a0055 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -901,7 +901,9 @@ class Crypto(StripeObject): """ The blockchain network that the transaction was sent on. """ - token_currency: Optional[Literal["usdc", "usdg", "usdp"]] + token_currency: Optional[ + Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + ] """ The token currency that the transaction was sent with. """ @@ -957,13 +959,11 @@ class Eps(StripeObject): ] ] """ - The customer's bank. Should be one of `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_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + The customer's bank. Should be one of `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_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau` """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by EPS directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - EPS rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by EPS directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. EPS rarely provides this information so the attribute is usually empty. """ class Fpx(StripeObject): @@ -1286,6 +1286,10 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ payer_details: Optional[PayerDetails] """ The payer details for this transaction. @@ -1300,6 +1304,10 @@ class Address(StripeObject): Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ _inner_class_types = {"payer_details": PayerDetails} class Konbini(StripeObject): @@ -1852,6 +1860,12 @@ class StripeBalance(StripeObject): The connected account ID whose Stripe balance to use as the source of payment """ + class Sunbit(StripeObject): + transaction_id: Optional[str] + """ + The Sunbit transaction ID associated with this payment. + """ + class Swish(StripeObject): fingerprint: Optional[str] """ @@ -2012,6 +2026,7 @@ class Zip(StripeObject): sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] type: str @@ -2086,6 +2101,7 @@ class Zip(StripeObject): "sofort": Sofort, "stripe_account": StripeAccount, "stripe_balance": StripeBalance, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index efa17916f..beaf2ec9e 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -250,11 +250,13 @@ class LastPaymentError(StripeObject): "account_number_invalid", "account_token_required_for_v2_account", "acss_debit_session_incomplete", + "action_blocked", "alipay_upgrade_required", "amount_too_large", "amount_too_small", "api_key_expired", "application_fees_not_allowed", + "approval_required", "authentication_required", "balance_insufficient", "balance_invalid_parameter", @@ -1170,6 +1172,24 @@ class BankAddress(StripeObject): """ _inner_class_types = {"financial_addresses": FinancialAddress} + class KlarnaDisplayQrCode(StripeObject): + data: str + """ + The data being used to generate QR code + """ + expires_at: Optional[int] + """ + The timestamp at which the QR code expires. + """ + image_url_png: str + """ + The image_url_png string used to render QR code + """ + image_url_svg: str + """ + The image_url_svg string used to render QR code + """ + class KonbiniDisplayDetails(StripeObject): class Stores(StripeObject): class Familymart(StripeObject): @@ -1475,6 +1495,7 @@ class WechatPayRedirectToIosApp(StripeObject): display_bank_transfer_instructions: Optional[ DisplayBankTransferInstructions ] + klarna_display_qr_code: Optional[KlarnaDisplayQrCode] konbini_display_details: Optional[KonbiniDisplayDetails] multibanco_display_details: Optional[MultibancoDisplayDetails] oxxo_display_details: Optional[OxxoDisplayDetails] @@ -1508,6 +1529,7 @@ class WechatPayRedirectToIosApp(StripeObject): "card_await_notification": CardAwaitNotification, "cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode, "display_bank_transfer_instructions": DisplayBankTransferInstructions, + "klarna_display_qr_code": KlarnaDisplayQrCode, "konbini_display_details": KonbiniDisplayDetails, "multibanco_display_details": MultibancoDisplayDetails, "oxxo_display_details": OxxoDisplayDetails, @@ -4545,6 +4567,7 @@ class TransferData(StripeObject): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index f18fa01e0..4e0f91950 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -886,6 +886,7 @@ class TransferData(StripeObject): "sepa_debit", "shopeepay", "sofort", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index bed50aaef..59e93305f 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -1363,6 +1363,9 @@ class StripeBalance(StripeObject): The connected account ID whose Stripe balance to use as the source of payment """ + class Sunbit(StripeObject): + pass + class Swish(StripeObject): pass @@ -1566,9 +1569,14 @@ class Zip(StripeObject): samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] sepa_debit: Optional[SepaDebit] + shared_payment_granted_token: Optional[str] + """ + ID of the shared payment granted token used in the creation of this PaymentMethod. + """ shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] type: Literal[ @@ -1627,6 +1635,7 @@ class Zip(StripeObject): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -2148,6 +2157,7 @@ async def retrieve_async( "shopeepay": Shopeepay, "sofort": Sofort, "stripe_balance": StripeBalance, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 1383d1f66..153155379 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -1238,6 +1238,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Sunbit(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class Swish(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1456,6 +1478,7 @@ class DisplayPreference(StripeObject): sepa_debit: Optional[SepaDebit] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] upi: Optional[Upi] @@ -1654,6 +1677,7 @@ async def retrieve_async( "sepa_debit": SepaDebit, "shopeepay": Shopeepay, "sofort": Sofort, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index d42eeaf28..101388b19 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -917,7 +917,9 @@ class Crypto(StripeObject): """ The blockchain network that the transaction was sent on. """ - token_currency: Optional[Literal["usdc", "usdg", "usdp"]] + token_currency: Optional[ + Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + ] """ The token currency that the transaction was sent with. """ @@ -973,13 +975,11 @@ class Eps(StripeObject): ] ] """ - The customer's bank. Should be one of `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_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + The customer's bank. Should be one of `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_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau` """ verified_name: Optional[str] """ - Owner's verified full name. Values are verified or provided by EPS directly - (if supported) at the time of authorization or settlement. They cannot be set or mutated. - EPS rarely provides this information so the attribute is usually empty. + Owner's verified full name. Values are verified or provided by EPS directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. EPS rarely provides this information so the attribute is usually empty. """ class Fpx(StripeObject): @@ -1302,6 +1302,10 @@ class Address(StripeObject): """ _inner_class_types = {"address": Address} + location: Optional[str] + """ + ID of the [location](https://docs.stripe.com/api/terminal/locations) that this transaction's reader is assigned to. + """ payer_details: Optional[PayerDetails] """ The payer details for this transaction. @@ -1316,6 +1320,10 @@ class Address(StripeObject): Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ + reader: Optional[str] + """ + ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. + """ _inner_class_types = {"payer_details": PayerDetails} class Konbini(StripeObject): @@ -1868,6 +1876,12 @@ class StripeBalance(StripeObject): The connected account ID whose Stripe balance to use as the source of payment """ + class Sunbit(StripeObject): + transaction_id: Optional[str] + """ + The Sunbit transaction ID associated with this payment. + """ + class Swish(StripeObject): fingerprint: Optional[str] """ @@ -2028,6 +2042,7 @@ class Zip(StripeObject): sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] type: str @@ -2102,6 +2117,7 @@ class Zip(StripeObject): "sofort": Sofort, "stripe_account": StripeAccount, "stripe_balance": StripeBalance, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_product.py b/stripe/_product.py index 2a2cdef31..6fa195cb1 100644 --- a/stripe/_product.py +++ b/stripe/_product.py @@ -91,6 +91,16 @@ class PackageDimensions(StripeObject): Width, in inches. """ + class TaxDetails(StripeObject): + performance_location: Optional[str] + """ + The performance location. + """ + tax_code: Optional[str] + """ + A [tax code](https://docs.stripe.com/tax/tax-categories) ID. + """ + active: bool """ Whether the product is currently available for purchase. @@ -155,6 +165,10 @@ class PackageDimensions(StripeObject): """ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. """ + tax_details: Optional[TaxDetails] + """ + 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"] """ 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. @@ -589,4 +603,5 @@ async def create_feature_async( _inner_class_types = { "marketing_features": MarketingFeature, "package_dimensions": PackageDimensions, + "tax_details": TaxDetails, } diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index c94db3536..ad16cbc66 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -297,8 +297,10 @@ class CustomerTaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -307,6 +309,7 @@ class CustomerTaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -337,6 +340,7 @@ class CustomerTaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -367,7 +371,7 @@ class CustomerTaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: Optional[str] """ @@ -413,11 +417,13 @@ class LastFinalizationError(StripeObject): "account_number_invalid", "account_token_required_for_v2_account", "acss_debit_session_incomplete", + "action_blocked", "alipay_upgrade_required", "amount_too_large", "amount_too_small", "api_key_expired", "application_fees_not_allowed", + "approval_required", "authentication_required", "balance_insufficient", "balance_invalid_parameter", @@ -772,6 +778,9 @@ class Bancontact(StripeObject): Preferred language of the Bancontact authorization page that the customer is redirected to. """ + class Blik(StripeObject): + pass + class Card(StripeObject): class Installments(StripeObject): enabled: Optional[bool] @@ -945,6 +954,10 @@ class Filters(StripeObject): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: Optional[Blik] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: Optional[Card] """ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. @@ -984,6 +997,7 @@ class Filters(StripeObject): _inner_class_types = { "acss_debit": AcssDebit, "bancontact": Bancontact, + "blik": Blik, "card": Card, "customer_balance": CustomerBalance, "id_bank_transfer": IdBankTransfer, @@ -1014,6 +1028,7 @@ class Filters(StripeObject): "au_becs_debit", "bacs_debit", "bancontact", + "blik", "boleto", "card", "cashapp", @@ -1277,7 +1292,7 @@ class TotalPretaxCreditAmount(StripeObject): class TotalTax(StripeObject): class TaxRateDetails(StripeObject): - tax_rate: str + tax_rate: ExpandableField["TaxRate"] """ ID of the tax rate """ @@ -1555,11 +1570,11 @@ class TaxRateDetails(StripeObject): """ period_end: int """ - End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. + The latest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. """ period_start: int """ - Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. + The earliest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. """ post_payment_credit_notes_amount: int """ diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index af92db374..0f3ea816c 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -217,6 +217,10 @@ class GooglePay(StripeObject): """ The last four digits of the card. """ + moto: Optional[bool] + """ + True if this payment was marked as MOTO and out of scope for SCA. + """ network: Optional[str] """ Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -510,11 +514,13 @@ class SetupError(StripeObject): "account_number_invalid", "account_token_required_for_v2_account", "acss_debit_session_incomplete", + "action_blocked", "alipay_upgrade_required", "amount_too_large", "amount_too_small", "api_key_expired", "application_fees_not_allowed", + "approval_required", "authentication_required", "balance_insufficient", "balance_invalid_parameter", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 3aefc94ea..67a9fae8f 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -104,11 +104,13 @@ class LastSetupError(StripeObject): "account_number_invalid", "account_token_required_for_v2_account", "acss_debit_session_incomplete", + "action_blocked", "alipay_upgrade_required", "amount_too_large", "amount_too_small", "api_key_expired", "application_fees_not_allowed", + "approval_required", "authentication_required", "balance_insufficient", "balance_invalid_parameter", @@ -417,23 +419,23 @@ class QrCode(StripeObject): _inner_class_types = {"qr_code": QrCode} class PixDisplayQrCode(StripeObject): - data: Optional[str] + data: str """ The raw data string used to generate QR code, it should be used together with QR code library. """ - expires_at: Optional[int] + expires_at: int """ The date (unix timestamp) when the PIX expires. """ - hosted_instructions_url: Optional[str] + hosted_instructions_url: str """ The URL to the hosted pix instructions page, which allows customers to view the pix QR code. """ - image_url_png: Optional[str] + image_url_png: str """ The image_url_png string used to render png QR code """ - image_url_svg: Optional[str] + image_url_svg: str """ The image_url_svg string used to render svg QR code """ @@ -1021,6 +1023,7 @@ class MandateOptions(StripeObject): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/_shared_payment_service.py b/stripe/_shared_payment_service.py new file mode 100644 index 000000000..d8483825a --- /dev/null +++ b/stripe/_shared_payment_service.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.shared_payment._granted_token_service import ( + GrantedTokenService, + ) + from stripe.shared_payment._issued_token_service import IssuedTokenService + +_subservices = { + "granted_tokens": [ + "stripe.shared_payment._granted_token_service", + "GrantedTokenService", + ], + "issued_tokens": [ + "stripe.shared_payment._issued_token_service", + "IssuedTokenService", + ], +} + + +class SharedPaymentService(StripeService): + granted_tokens: "GrantedTokenService" + issued_tokens: "IssuedTokenService" + + def __init__(self, requestor): + super().__init__(requestor) + + def __getattr__(self, name): + try: + import_from, service = _subservices[name] + service_class = getattr( + import_module(import_from), + service, + ) + setattr( + self, + name, + service_class(self._requestor), + ) + return getattr(self, name) + except KeyError: + raise AttributeError() diff --git a/stripe/_stripe_client.py b/stripe/_stripe_client.py index 60e691dfc..c96043a88 100644 --- a/stripe/_stripe_client.py +++ b/stripe/_stripe_client.py @@ -120,6 +120,7 @@ from stripe._review_service import ReviewService from stripe._setup_attempt_service import SetupAttemptService from stripe._setup_intent_service import SetupIntentService + from stripe._shared_payment_service import SharedPaymentService from stripe._shipping_rate_service import ShippingRateService from stripe._sigma_service import SigmaService from stripe._source_service import SourceService @@ -1075,6 +1076,17 @@ def setup_attempts(self) -> "SetupAttemptService": def setup_intents(self) -> "SetupIntentService": return self.v1.setup_intents + @property + @deprecated( + """ + StripeClient.shared_payment is deprecated, use StripeClient.v1.shared_payment instead. + All functionality under it has been copied over to StripeClient.v1.shared_payment. + See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace. + """, + ) + def shared_payment(self) -> "SharedPaymentService": + return self.v1.shared_payment + @property @deprecated( """ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index bb1301503..b721ad537 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -328,6 +328,16 @@ class Bancontact(StripeObject): Preferred language of the Bancontact authorization page that the customer is redirected to. """ + class Blik(StripeObject): + class MandateOptions(StripeObject): + expires_after: Optional[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + mandate_options: Optional[MandateOptions] + _inner_class_types = {"mandate_options": MandateOptions} + class Card(StripeObject): class MandateOptions(StripeObject): amount: Optional[int] @@ -553,6 +563,10 @@ class Filters(StripeObject): """ This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription. """ + blik: Optional[Blik] + """ + This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription. + """ card: Optional[Card] """ This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription. @@ -592,6 +606,7 @@ class Filters(StripeObject): _inner_class_types = { "acss_debit": AcssDebit, "bancontact": Bancontact, + "blik": Blik, "card": Card, "customer_balance": CustomerBalance, "id_bank_transfer": IdBankTransfer, @@ -618,6 +633,7 @@ class Filters(StripeObject): "au_becs_debit", "bacs_debit", "bancontact", + "blik", "boleto", "card", "cashapp", @@ -1519,7 +1535,7 @@ def _cls_resume( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ return cast( "Subscription", @@ -1538,7 +1554,7 @@ def resume( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ ... @@ -1547,7 +1563,7 @@ def resume( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ ... @@ -1556,7 +1572,7 @@ def resume( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ return cast( "Subscription", @@ -1574,7 +1590,7 @@ async def _cls_resume_async( cls, subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ return cast( "Subscription", @@ -1593,7 +1609,7 @@ async def resume_async( subscription: str, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ ... @@ -1602,7 +1618,7 @@ async def resume_async( self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ ... @@ -1611,7 +1627,7 @@ async def resume_async( # pyright: ignore[reportGeneralTypeIssues] self, **params: Unpack["SubscriptionResumeParams"] ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ return cast( "Subscription", diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index c28baa2a7..30818bdca 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -465,7 +465,7 @@ def resume( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ return cast( "Subscription", @@ -487,7 +487,7 @@ async def resume_async( options: Optional["RequestOptions"] = None, ) -> "Subscription": """ - Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice is not paid by the expiration date, it is voided and the subscription remains paused. + Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. """ return cast( "Subscription", diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py index c50ced8cc..a0e75354a 100644 --- a/stripe/_tax_id.py +++ b/stripe/_tax_id.py @@ -152,8 +152,10 @@ class Verification(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -162,6 +164,7 @@ class Verification(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -192,6 +195,7 @@ class Verification(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -222,7 +226,7 @@ class Verification(StripeObject): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/_test_helpers_service.py b/stripe/_test_helpers_service.py index 8138b15f3..67f523821 100644 --- a/stripe/_test_helpers_service.py +++ b/stripe/_test_helpers_service.py @@ -11,6 +11,9 @@ from stripe.test_helpers._customer_service import CustomerService from stripe.test_helpers._issuing_service import IssuingService from stripe.test_helpers._refund_service import RefundService + from stripe.test_helpers._shared_payment_service import ( + SharedPaymentService, + ) from stripe.test_helpers._terminal_service import TerminalService from stripe.test_helpers._test_clock_service import TestClockService from stripe.test_helpers._treasury_service import TreasuryService @@ -23,6 +26,10 @@ "customers": ["stripe.test_helpers._customer_service", "CustomerService"], "issuing": ["stripe.test_helpers._issuing_service", "IssuingService"], "refunds": ["stripe.test_helpers._refund_service", "RefundService"], + "shared_payment": [ + "stripe.test_helpers._shared_payment_service", + "SharedPaymentService", + ], "terminal": ["stripe.test_helpers._terminal_service", "TerminalService"], "test_clocks": [ "stripe.test_helpers._test_clock_service", @@ -37,6 +44,7 @@ class TestHelpersService(StripeService): customers: "CustomerService" issuing: "IssuingService" refunds: "RefundService" + shared_payment: "SharedPaymentService" terminal: "TerminalService" test_clocks: "TestClockService" treasury: "TreasuryService" diff --git a/stripe/_v1_services.py b/stripe/_v1_services.py index 49ed4e245..debe42ef6 100644 --- a/stripe/_v1_services.py +++ b/stripe/_v1_services.py @@ -79,6 +79,7 @@ from stripe._review_service import ReviewService from stripe._setup_attempt_service import SetupAttemptService from stripe._setup_intent_service import SetupIntentService + from stripe._shared_payment_service import SharedPaymentService from stripe._shipping_rate_service import ShippingRateService from stripe._sigma_service import SigmaService from stripe._source_service import SourceService @@ -227,6 +228,10 @@ "reviews": ["stripe._review_service", "ReviewService"], "setup_attempts": ["stripe._setup_attempt_service", "SetupAttemptService"], "setup_intents": ["stripe._setup_intent_service", "SetupIntentService"], + "shared_payment": [ + "stripe._shared_payment_service", + "SharedPaymentService", + ], "shipping_rates": ["stripe._shipping_rate_service", "ShippingRateService"], "sigma": ["stripe._sigma_service", "SigmaService"], "sources": ["stripe._source_service", "SourceService"], @@ -321,6 +326,7 @@ class V1Services(StripeService): reviews: "ReviewService" setup_attempts: "SetupAttemptService" setup_intents: "SetupIntentService" + shared_payment: "SharedPaymentService" shipping_rates: "ShippingRateService" sigma: "SigmaService" sources: "SourceService" diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 7d81342ba..f5db25650 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -273,8 +273,10 @@ class TaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -283,6 +285,7 @@ class TaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -313,6 +316,7 @@ class TaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -343,7 +347,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: Optional[str] """ @@ -653,8 +657,10 @@ class TaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -663,6 +669,7 @@ class TaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -693,6 +700,7 @@ class TaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -723,7 +731,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: Optional[str] """ diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 1194e6afd..f6f4e1159 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -524,6 +524,10 @@ class ThreeDSecure(StripeObject): """ You can [create physical or virtual cards](https://docs.stripe.com/issuing) that are issued to cardholders. """ + card_presence: Optional[Literal["not_present", "present"]] + """ + Whether the card was present at the point of sale for the authorization. + """ cardholder: Optional[ExpandableField["Cardholder"]] """ The cardholder to whom this authorization belongs. diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py index 4c083786b..9746878b4 100644 --- a/stripe/issuing/_card.py +++ b/stripe/issuing/_card.py @@ -540,6 +540,12 @@ class SpendingLimit(StripeObject): 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[ @@ -848,6 +854,12 @@ 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"]] + ] + """ + 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[ @@ -1211,7 +1223,9 @@ class GooglePay(StripeObject): """ The brand of the card. """ - cancellation_reason: Optional[Literal["design_rejected", "lost", "stolen"]] + cancellation_reason: Optional[ + Literal["design_rejected", "fulfillment_error", "lost", "stolen"] + ] """ The reason why the card was canceled. """ @@ -1290,7 +1304,7 @@ class GooglePay(StripeObject): The card this card replaces, if any. """ replacement_reason: Optional[ - Literal["damaged", "expired", "lost", "stolen"] + Literal["damaged", "expired", "fulfillment_error", "lost", "stolen"] ] """ The reason why the previous card needed to be replaced. diff --git a/stripe/issuing/_cardholder.py b/stripe/issuing/_cardholder.py index e15f7cbd7..c0ccce0e5 100644 --- a/stripe/issuing/_cardholder.py +++ b/stripe/issuing/_cardholder.py @@ -507,6 +507,12 @@ class SpendingLimit(StripeObject): 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[ @@ -815,6 +821,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index 03b29158e..986cb9a60 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -21,6 +21,7 @@ radar as radar, reporting as reporting, reserve as reserve, + shared_payment as shared_payment, sigma as sigma, tax as tax, terminal as terminal, @@ -58,6 +59,7 @@ AccountCreateParamsCapabilitiesAfterpayClearpayPayments as AccountCreateParamsCapabilitiesAfterpayClearpayPayments, AccountCreateParamsCapabilitiesAlmaPayments as AccountCreateParamsCapabilitiesAlmaPayments, AccountCreateParamsCapabilitiesAmazonPayPayments as AccountCreateParamsCapabilitiesAmazonPayPayments, + AccountCreateParamsCapabilitiesAppDistribution as AccountCreateParamsCapabilitiesAppDistribution, AccountCreateParamsCapabilitiesAuBecsDebitPayments as AccountCreateParamsCapabilitiesAuBecsDebitPayments, AccountCreateParamsCapabilitiesAutomaticIndirectTax as AccountCreateParamsCapabilitiesAutomaticIndirectTax, AccountCreateParamsCapabilitiesBacsDebitPayments as AccountCreateParamsCapabilitiesBacsDebitPayments, @@ -115,6 +117,7 @@ AccountCreateParamsCapabilitiesShopeepayPayments as AccountCreateParamsCapabilitiesShopeepayPayments, AccountCreateParamsCapabilitiesSofortPayments as AccountCreateParamsCapabilitiesSofortPayments, AccountCreateParamsCapabilitiesStripeBalancePayments as AccountCreateParamsCapabilitiesStripeBalancePayments, + AccountCreateParamsCapabilitiesSunbitPayments as AccountCreateParamsCapabilitiesSunbitPayments, AccountCreateParamsCapabilitiesSwishPayments as AccountCreateParamsCapabilitiesSwishPayments, AccountCreateParamsCapabilitiesTaxReportingUs1099K as AccountCreateParamsCapabilitiesTaxReportingUs1099K, AccountCreateParamsCapabilitiesTaxReportingUs1099Misc as AccountCreateParamsCapabilitiesTaxReportingUs1099Misc, @@ -396,6 +399,8 @@ AccountSessionCreateParamsComponentsAppInstallFeatures as AccountSessionCreateParamsComponentsAppInstallFeatures, AccountSessionCreateParamsComponentsAppViewport as AccountSessionCreateParamsComponentsAppViewport, AccountSessionCreateParamsComponentsAppViewportFeatures as AccountSessionCreateParamsComponentsAppViewportFeatures, + AccountSessionCreateParamsComponentsBalanceReport as AccountSessionCreateParamsComponentsBalanceReport, + AccountSessionCreateParamsComponentsBalanceReportFeatures as AccountSessionCreateParamsComponentsBalanceReportFeatures, AccountSessionCreateParamsComponentsBalances as AccountSessionCreateParamsComponentsBalances, AccountSessionCreateParamsComponentsBalancesFeatures as AccountSessionCreateParamsComponentsBalancesFeatures, AccountSessionCreateParamsComponentsCapitalFinancing as AccountSessionCreateParamsComponentsCapitalFinancing, @@ -434,6 +439,8 @@ AccountSessionCreateParamsComponentsPaymentsFeatures as AccountSessionCreateParamsComponentsPaymentsFeatures, AccountSessionCreateParamsComponentsPayoutDetails as AccountSessionCreateParamsComponentsPayoutDetails, AccountSessionCreateParamsComponentsPayoutDetailsFeatures as AccountSessionCreateParamsComponentsPayoutDetailsFeatures, + AccountSessionCreateParamsComponentsPayoutReconciliationReport as AccountSessionCreateParamsComponentsPayoutReconciliationReport, + AccountSessionCreateParamsComponentsPayoutReconciliationReportFeatures as AccountSessionCreateParamsComponentsPayoutReconciliationReportFeatures, AccountSessionCreateParamsComponentsPayouts as AccountSessionCreateParamsComponentsPayouts, AccountSessionCreateParamsComponentsPayoutsFeatures as AccountSessionCreateParamsComponentsPayoutsFeatures, AccountSessionCreateParamsComponentsPayoutsList as AccountSessionCreateParamsComponentsPayoutsList, @@ -464,6 +471,7 @@ AccountUpdateParamsCapabilitiesAfterpayClearpayPayments as AccountUpdateParamsCapabilitiesAfterpayClearpayPayments, AccountUpdateParamsCapabilitiesAlmaPayments as AccountUpdateParamsCapabilitiesAlmaPayments, AccountUpdateParamsCapabilitiesAmazonPayPayments as AccountUpdateParamsCapabilitiesAmazonPayPayments, + AccountUpdateParamsCapabilitiesAppDistribution as AccountUpdateParamsCapabilitiesAppDistribution, AccountUpdateParamsCapabilitiesAuBecsDebitPayments as AccountUpdateParamsCapabilitiesAuBecsDebitPayments, AccountUpdateParamsCapabilitiesAutomaticIndirectTax as AccountUpdateParamsCapabilitiesAutomaticIndirectTax, AccountUpdateParamsCapabilitiesBacsDebitPayments as AccountUpdateParamsCapabilitiesBacsDebitPayments, @@ -521,6 +529,7 @@ AccountUpdateParamsCapabilitiesShopeepayPayments as AccountUpdateParamsCapabilitiesShopeepayPayments, AccountUpdateParamsCapabilitiesSofortPayments as AccountUpdateParamsCapabilitiesSofortPayments, AccountUpdateParamsCapabilitiesStripeBalancePayments as AccountUpdateParamsCapabilitiesStripeBalancePayments, + AccountUpdateParamsCapabilitiesSunbitPayments as AccountUpdateParamsCapabilitiesSunbitPayments, AccountUpdateParamsCapabilitiesSwishPayments as AccountUpdateParamsCapabilitiesSwishPayments, AccountUpdateParamsCapabilitiesTaxReportingUs1099K as AccountUpdateParamsCapabilitiesTaxReportingUs1099K, AccountUpdateParamsCapabilitiesTaxReportingUs1099Misc as AccountUpdateParamsCapabilitiesTaxReportingUs1099Misc, @@ -983,6 +992,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance as ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance, + ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish, ConfirmationTokenCreateParamsPaymentMethodDataTwint as ConfirmationTokenCreateParamsPaymentMethodDataTwint, ConfirmationTokenCreateParamsPaymentMethodDataUpi as ConfirmationTokenCreateParamsPaymentMethodDataUpi, @@ -1433,6 +1443,7 @@ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact, + InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan, @@ -1654,6 +1665,7 @@ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact, + InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments, InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan, @@ -1749,6 +1761,7 @@ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact, + InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments, InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan, @@ -2322,6 +2335,7 @@ PaymentIntentConfirmParamsPaymentMethodDataShopeepay as PaymentIntentConfirmParamsPaymentMethodDataShopeepay, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, PaymentIntentConfirmParamsPaymentMethodDataStripeBalance as PaymentIntentConfirmParamsPaymentMethodDataStripeBalance, + PaymentIntentConfirmParamsPaymentMethodDataSunbit as PaymentIntentConfirmParamsPaymentMethodDataSunbit, PaymentIntentConfirmParamsPaymentMethodDataSwish as PaymentIntentConfirmParamsPaymentMethodDataSwish, PaymentIntentConfirmParamsPaymentMethodDataTwint as PaymentIntentConfirmParamsPaymentMethodDataTwint, PaymentIntentConfirmParamsPaymentMethodDataUpi as PaymentIntentConfirmParamsPaymentMethodDataUpi, @@ -2605,6 +2619,7 @@ PaymentIntentCreateParamsPaymentMethodDataShopeepay as PaymentIntentCreateParamsPaymentMethodDataShopeepay, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, PaymentIntentCreateParamsPaymentMethodDataStripeBalance as PaymentIntentCreateParamsPaymentMethodDataStripeBalance, + PaymentIntentCreateParamsPaymentMethodDataSunbit as PaymentIntentCreateParamsPaymentMethodDataSunbit, PaymentIntentCreateParamsPaymentMethodDataSwish as PaymentIntentCreateParamsPaymentMethodDataSwish, PaymentIntentCreateParamsPaymentMethodDataTwint as PaymentIntentCreateParamsPaymentMethodDataTwint, PaymentIntentCreateParamsPaymentMethodDataUpi as PaymentIntentCreateParamsPaymentMethodDataUpi, @@ -2934,6 +2949,7 @@ PaymentIntentModifyParamsPaymentMethodDataShopeepay as PaymentIntentModifyParamsPaymentMethodDataShopeepay, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, PaymentIntentModifyParamsPaymentMethodDataStripeBalance as PaymentIntentModifyParamsPaymentMethodDataStripeBalance, + PaymentIntentModifyParamsPaymentMethodDataSunbit as PaymentIntentModifyParamsPaymentMethodDataSunbit, PaymentIntentModifyParamsPaymentMethodDataSwish as PaymentIntentModifyParamsPaymentMethodDataSwish, PaymentIntentModifyParamsPaymentMethodDataTwint as PaymentIntentModifyParamsPaymentMethodDataTwint, PaymentIntentModifyParamsPaymentMethodDataUpi as PaymentIntentModifyParamsPaymentMethodDataUpi, @@ -3225,6 +3241,7 @@ PaymentIntentUpdateParamsPaymentMethodDataShopeepay as PaymentIntentUpdateParamsPaymentMethodDataShopeepay, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, PaymentIntentUpdateParamsPaymentMethodDataStripeBalance as PaymentIntentUpdateParamsPaymentMethodDataStripeBalance, + PaymentIntentUpdateParamsPaymentMethodDataSunbit as PaymentIntentUpdateParamsPaymentMethodDataSunbit, PaymentIntentUpdateParamsPaymentMethodDataSwish as PaymentIntentUpdateParamsPaymentMethodDataSwish, PaymentIntentUpdateParamsPaymentMethodDataTwint as PaymentIntentUpdateParamsPaymentMethodDataTwint, PaymentIntentUpdateParamsPaymentMethodDataUpi as PaymentIntentUpdateParamsPaymentMethodDataUpi, @@ -3627,6 +3644,8 @@ PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference as PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference, PaymentMethodConfigurationCreateParamsSofort as PaymentMethodConfigurationCreateParamsSofort, PaymentMethodConfigurationCreateParamsSofortDisplayPreference as PaymentMethodConfigurationCreateParamsSofortDisplayPreference, + PaymentMethodConfigurationCreateParamsSunbit as PaymentMethodConfigurationCreateParamsSunbit, + PaymentMethodConfigurationCreateParamsSunbitDisplayPreference as PaymentMethodConfigurationCreateParamsSunbitDisplayPreference, PaymentMethodConfigurationCreateParamsSwish as PaymentMethodConfigurationCreateParamsSwish, PaymentMethodConfigurationCreateParamsSwishDisplayPreference as PaymentMethodConfigurationCreateParamsSwishDisplayPreference, PaymentMethodConfigurationCreateParamsTwint as PaymentMethodConfigurationCreateParamsTwint, @@ -3757,6 +3776,8 @@ PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference as PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference, PaymentMethodConfigurationModifyParamsSofort as PaymentMethodConfigurationModifyParamsSofort, PaymentMethodConfigurationModifyParamsSofortDisplayPreference as PaymentMethodConfigurationModifyParamsSofortDisplayPreference, + PaymentMethodConfigurationModifyParamsSunbit as PaymentMethodConfigurationModifyParamsSunbit, + PaymentMethodConfigurationModifyParamsSunbitDisplayPreference as PaymentMethodConfigurationModifyParamsSunbitDisplayPreference, PaymentMethodConfigurationModifyParamsSwish as PaymentMethodConfigurationModifyParamsSwish, PaymentMethodConfigurationModifyParamsSwishDisplayPreference as PaymentMethodConfigurationModifyParamsSwishDisplayPreference, PaymentMethodConfigurationModifyParamsTwint as PaymentMethodConfigurationModifyParamsTwint, @@ -3887,6 +3908,8 @@ PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference as PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference, PaymentMethodConfigurationUpdateParamsSofort as PaymentMethodConfigurationUpdateParamsSofort, PaymentMethodConfigurationUpdateParamsSofortDisplayPreference as PaymentMethodConfigurationUpdateParamsSofortDisplayPreference, + PaymentMethodConfigurationUpdateParamsSunbit as PaymentMethodConfigurationUpdateParamsSunbit, + PaymentMethodConfigurationUpdateParamsSunbitDisplayPreference as PaymentMethodConfigurationUpdateParamsSunbitDisplayPreference, PaymentMethodConfigurationUpdateParamsSwish as PaymentMethodConfigurationUpdateParamsSwish, PaymentMethodConfigurationUpdateParamsSwishDisplayPreference as PaymentMethodConfigurationUpdateParamsSwishDisplayPreference, PaymentMethodConfigurationUpdateParamsTwint as PaymentMethodConfigurationUpdateParamsTwint, @@ -3962,6 +3985,7 @@ PaymentMethodCreateParamsShopeepay as PaymentMethodCreateParamsShopeepay, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, PaymentMethodCreateParamsStripeBalance as PaymentMethodCreateParamsStripeBalance, + PaymentMethodCreateParamsSunbit as PaymentMethodCreateParamsSunbit, PaymentMethodCreateParamsSwish as PaymentMethodCreateParamsSwish, PaymentMethodCreateParamsTwint as PaymentMethodCreateParamsTwint, PaymentMethodCreateParamsUpi as PaymentMethodCreateParamsUpi, @@ -4585,6 +4609,7 @@ SetupIntentConfirmParamsPaymentMethodDataShopeepay as SetupIntentConfirmParamsPaymentMethodDataShopeepay, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, SetupIntentConfirmParamsPaymentMethodDataStripeBalance as SetupIntentConfirmParamsPaymentMethodDataStripeBalance, + SetupIntentConfirmParamsPaymentMethodDataSunbit as SetupIntentConfirmParamsPaymentMethodDataSunbit, SetupIntentConfirmParamsPaymentMethodDataSwish as SetupIntentConfirmParamsPaymentMethodDataSwish, SetupIntentConfirmParamsPaymentMethodDataTwint as SetupIntentConfirmParamsPaymentMethodDataTwint, SetupIntentConfirmParamsPaymentMethodDataUpi as SetupIntentConfirmParamsPaymentMethodDataUpi, @@ -4690,6 +4715,7 @@ SetupIntentCreateParamsPaymentMethodDataShopeepay as SetupIntentCreateParamsPaymentMethodDataShopeepay, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, SetupIntentCreateParamsPaymentMethodDataStripeBalance as SetupIntentCreateParamsPaymentMethodDataStripeBalance, + SetupIntentCreateParamsPaymentMethodDataSunbit as SetupIntentCreateParamsPaymentMethodDataSunbit, SetupIntentCreateParamsPaymentMethodDataSwish as SetupIntentCreateParamsPaymentMethodDataSwish, SetupIntentCreateParamsPaymentMethodDataTwint as SetupIntentCreateParamsPaymentMethodDataTwint, SetupIntentCreateParamsPaymentMethodDataUpi as SetupIntentCreateParamsPaymentMethodDataUpi, @@ -4795,6 +4821,7 @@ SetupIntentModifyParamsPaymentMethodDataShopeepay as SetupIntentModifyParamsPaymentMethodDataShopeepay, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, SetupIntentModifyParamsPaymentMethodDataStripeBalance as SetupIntentModifyParamsPaymentMethodDataStripeBalance, + SetupIntentModifyParamsPaymentMethodDataSunbit as SetupIntentModifyParamsPaymentMethodDataSunbit, SetupIntentModifyParamsPaymentMethodDataSwish as SetupIntentModifyParamsPaymentMethodDataSwish, SetupIntentModifyParamsPaymentMethodDataTwint as SetupIntentModifyParamsPaymentMethodDataTwint, SetupIntentModifyParamsPaymentMethodDataUpi as SetupIntentModifyParamsPaymentMethodDataUpi, @@ -4898,6 +4925,7 @@ SetupIntentUpdateParamsPaymentMethodDataShopeepay as SetupIntentUpdateParamsPaymentMethodDataShopeepay, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, SetupIntentUpdateParamsPaymentMethodDataStripeBalance as SetupIntentUpdateParamsPaymentMethodDataStripeBalance, + SetupIntentUpdateParamsPaymentMethodDataSunbit as SetupIntentUpdateParamsPaymentMethodDataSunbit, SetupIntentUpdateParamsPaymentMethodDataSwish as SetupIntentUpdateParamsPaymentMethodDataSwish, SetupIntentUpdateParamsPaymentMethodDataTwint as SetupIntentUpdateParamsPaymentMethodDataTwint, SetupIntentUpdateParamsPaymentMethodDataUpi as SetupIntentUpdateParamsPaymentMethodDataUpi, @@ -5065,6 +5093,8 @@ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik, + SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions, SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance, @@ -5180,6 +5210,8 @@ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik, + SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions, SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance, @@ -5429,6 +5461,8 @@ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik, + SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions, SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance, @@ -5636,6 +5670,7 @@ "radar": ("stripe.params.radar", True), "reporting": ("stripe.params.reporting", True), "reserve": ("stripe.params.reserve", True), + "shared_payment": ("stripe.params.shared_payment", True), "sigma": ("stripe.params.sigma", True), "tax": ("stripe.params.tax", True), "terminal": ("stripe.params.terminal", True), @@ -5718,6 +5753,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesAppDistribution": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesAuBecsDebitPayments": ( "stripe.params._account_create_params", False, @@ -5946,6 +5985,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsCapabilitiesSunbitPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsCapabilitiesSwishPayments": ( "stripe.params._account_create_params", False, @@ -6769,6 +6812,14 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsBalanceReport": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsBalanceReportFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsBalances": ( "stripe.params._account_session_create_params", False, @@ -6921,6 +6972,14 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsPayoutReconciliationReport": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsPayoutReconciliationReportFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsPayouts": ( "stripe.params._account_session_create_params", False, @@ -7030,6 +7089,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesAppDistribution": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesAuBecsDebitPayments": ( "stripe.params._account_update_params", False, @@ -7258,6 +7321,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsCapabilitiesSunbitPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsCapabilitiesSwishPayments": ( "stripe.params._account_update_params", False, @@ -8809,6 +8876,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataSunbit": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSwish": ( "stripe.params._confirmation_token_create_params", False, @@ -9696,6 +9767,10 @@ "stripe.params._invoice_create_params", False, ), + "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._invoice_create_params", + False, + ), "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._invoice_create_params", False, @@ -10437,6 +10512,10 @@ "stripe.params._invoice_modify_params", False, ), + "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._invoice_modify_params", + False, + ), "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._invoice_modify_params", False, @@ -10701,6 +10780,10 @@ "stripe.params._invoice_update_params", False, ), + "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._invoice_update_params", + False, + ), "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._invoice_update_params", False, @@ -12759,6 +12842,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataSunbit": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataSwish": ( "stripe.params._payment_intent_confirm_params", False, @@ -13883,6 +13970,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataSunbit": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataSwish": ( "stripe.params._payment_intent_create_params", False, @@ -15159,6 +15250,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataSunbit": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataSwish": ( "stripe.params._payment_intent_modify_params", False, @@ -16291,6 +16386,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataSunbit": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataSwish": ( "stripe.params._payment_intent_update_params", False, @@ -17819,6 +17918,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsSunbit": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsSunbitDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsSwish": ( "stripe.params._payment_method_configuration_create_params", False, @@ -18323,6 +18430,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsSunbit": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsSunbitDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsSwish": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -18827,6 +18942,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsSunbit": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsSunbitDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsSwish": ( "stripe.params._payment_method_configuration_update_params", False, @@ -19119,6 +19242,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsSunbit": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsSwish": ( "stripe.params._payment_method_create_params", False, @@ -20655,6 +20782,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataSunbit": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataSwish": ( "stripe.params._setup_intent_confirm_params", False, @@ -21067,6 +21198,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataSunbit": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataSwish": ( "stripe.params._setup_intent_create_params", False, @@ -21471,6 +21606,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataSunbit": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataSwish": ( "stripe.params._setup_intent_modify_params", False, @@ -21867,6 +22006,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataSunbit": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataSwish": ( "stripe.params._setup_intent_update_params", False, @@ -22380,6 +22523,14 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._subscription_create_params", + False, + ), + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._subscription_create_params", False, @@ -22760,6 +22911,14 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._subscription_modify_params", + False, + ), + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._subscription_modify_params", False, @@ -23660,6 +23819,14 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik": ( + "stripe.params._subscription_update_params", + False, + ), + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard": ( "stripe.params._subscription_update_params", False, diff --git a/stripe/params/_account_create_external_account_params.py b/stripe/params/_account_create_external_account_params.py index 6cf38179c..f6567a2b2 100644 --- a/stripe/params/_account_create_external_account_params.py +++ b/stripe/params/_account_create_external_account_params.py @@ -42,12 +42,12 @@ class AccountCreateExternalAccountParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class AccountCreateExternalAccountParamsBankAccount(TypedDict): diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index 41fd2f3e4..11138e953 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -96,7 +96,7 @@ class AccountCreateParams(RequestOptions): """ type: NotRequired[Literal["custom", "express", "standard"]] """ - The type of Stripe account to create. May be one of `custom`, `express` or `standard`. + 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. """ @@ -253,6 +253,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The amazon_pay_payments capability. """ + app_distribution: NotRequired[ + "AccountCreateParamsCapabilitiesAppDistribution" + ] + """ + The app_distribution capability. + """ au_becs_debit_payments: NotRequired[ "AccountCreateParamsCapabilitiesAuBecsDebitPayments" ] @@ -565,6 +571,12 @@ class AccountCreateParamsCapabilities(TypedDict): """ The stripe_balance_payments capability. """ + sunbit_payments: NotRequired[ + "AccountCreateParamsCapabilitiesSunbitPayments" + ] + """ + The sunbit_payments capability. + """ swish_payments: NotRequired["AccountCreateParamsCapabilitiesSwishPayments"] """ The swish_payments capability. @@ -668,6 +680,13 @@ class AccountCreateParamsCapabilitiesAmazonPayPayments(TypedDict): """ +class AccountCreateParamsCapabilitiesAppDistribution(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountCreateParamsCapabilitiesAuBecsDebitPayments(TypedDict): requested: NotRequired[bool] """ @@ -1067,6 +1086,13 @@ class AccountCreateParamsCapabilitiesStripeBalancePayments(TypedDict): """ +class AccountCreateParamsCapabilitiesSunbitPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountCreateParamsCapabilitiesSwishPayments(TypedDict): requested: NotRequired[bool] """ @@ -1688,15 +1714,15 @@ class AccountCreateParamsCard(TypedDict): address_zip: NotRequired[str] currency: NotRequired[str] cvc: NotRequired[str] + default_for_currency: NotRequired[bool] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - default_for_currency: NotRequired[bool] + name: NotRequired[str] + number: str class AccountCreateParamsCardToken(TypedDict): diff --git a/stripe/params/_account_external_account_create_params.py b/stripe/params/_account_external_account_create_params.py index b4ccf6654..480e8a222 100644 --- a/stripe/params/_account_external_account_create_params.py +++ b/stripe/params/_account_external_account_create_params.py @@ -41,12 +41,12 @@ class AccountExternalAccountCreateParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class AccountExternalAccountCreateParamsBankAccount(TypedDict): diff --git a/stripe/params/_account_session_create_params.py b/stripe/params/_account_session_create_params.py index dd24bce43..b36bc3932 100644 --- a/stripe/params/_account_session_create_params.py +++ b/stripe/params/_account_session_create_params.py @@ -43,6 +43,12 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [app viewport](https://docs.stripe.com/connect/supported-embedded-components/app-viewport/) embedded component. """ + balance_report: NotRequired[ + "AccountSessionCreateParamsComponentsBalanceReport" + ] + """ + Configuration for the [balance report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#balance-report) embedded component. + """ balances: NotRequired["AccountSessionCreateParamsComponentsBalances"] """ Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component. @@ -151,6 +157,12 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component. """ + payout_reconciliation_report: NotRequired[ + "AccountSessionCreateParamsComponentsPayoutReconciliationReport" + ] + """ + Configuration for the [payout reconciliation report](https://docs.stripe.com/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component. + """ payouts: NotRequired["AccountSessionCreateParamsComponentsPayouts"] """ Configuration for the [payouts](https://docs.stripe.com/connect/supported-embedded-components/payouts/) embedded component. @@ -285,6 +297,23 @@ class AccountSessionCreateParamsComponentsAppViewportFeatures(TypedDict): """ +class AccountSessionCreateParamsComponentsBalanceReport(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsBalanceReportFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsBalanceReportFeatures(TypedDict): + pass + + class AccountSessionCreateParamsComponentsBalances(TypedDict): enabled: bool """ @@ -771,6 +800,27 @@ class AccountSessionCreateParamsComponentsPayoutDetailsFeatures(TypedDict): pass +class AccountSessionCreateParamsComponentsPayoutReconciliationReport( + TypedDict +): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsPayoutReconciliationReportFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsPayoutReconciliationReportFeatures( + TypedDict, +): + pass + + class AccountSessionCreateParamsComponentsPayouts(TypedDict): enabled: bool """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index b3dd6e48b..536ddb643 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -240,6 +240,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The amazon_pay_payments capability. """ + app_distribution: NotRequired[ + "AccountUpdateParamsCapabilitiesAppDistribution" + ] + """ + The app_distribution capability. + """ au_becs_debit_payments: NotRequired[ "AccountUpdateParamsCapabilitiesAuBecsDebitPayments" ] @@ -552,6 +558,12 @@ class AccountUpdateParamsCapabilities(TypedDict): """ The stripe_balance_payments capability. """ + sunbit_payments: NotRequired[ + "AccountUpdateParamsCapabilitiesSunbitPayments" + ] + """ + The sunbit_payments capability. + """ swish_payments: NotRequired["AccountUpdateParamsCapabilitiesSwishPayments"] """ The swish_payments capability. @@ -655,6 +667,13 @@ class AccountUpdateParamsCapabilitiesAmazonPayPayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesAppDistribution(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountUpdateParamsCapabilitiesAuBecsDebitPayments(TypedDict): requested: NotRequired[bool] """ @@ -1054,6 +1073,13 @@ class AccountUpdateParamsCapabilitiesStripeBalancePayments(TypedDict): """ +class AccountUpdateParamsCapabilitiesSunbitPayments(TypedDict): + requested: NotRequired[bool] + """ + Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + """ + + class AccountUpdateParamsCapabilitiesSwishPayments(TypedDict): requested: NotRequired[bool] """ @@ -1600,15 +1626,15 @@ class AccountUpdateParamsCard(TypedDict): address_zip: NotRequired[str] currency: NotRequired[str] cvc: NotRequired[str] + default_for_currency: NotRequired[bool] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ - default_for_currency: NotRequired[bool] + name: NotRequired[str] + number: str class AccountUpdateParamsCardToken(TypedDict): diff --git a/stripe/params/_balance_transaction_list_params.py b/stripe/params/_balance_transaction_list_params.py index aa8b17e31..9f636474c 100644 --- a/stripe/params/_balance_transaction_list_params.py +++ b/stripe/params/_balance_transaction_list_params.py @@ -40,7 +40,7 @@ class BalanceTransactionListParams(RequestOptions): """ type: NotRequired[str] """ - Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + Only returns transactions of the given type. One of: `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`. """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 16fbf40c1..86b8b0396 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -312,6 +312,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay" ] @@ -328,6 +332,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -388,6 +396,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -923,6 +932,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataSunbit(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSwish(TypedDict): pass diff --git a/stripe/params/_customer_create_params.py b/stripe/params/_customer_create_params.py index c217b38ee..98a962541 100644 --- a/stripe/params/_customer_create_params.py +++ b/stripe/params/_customer_create_params.py @@ -285,8 +285,10 @@ class CustomerCreateParamsTaxIdDatum(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -295,6 +297,7 @@ class CustomerCreateParamsTaxIdDatum(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -325,6 +328,7 @@ class CustomerCreateParamsTaxIdDatum(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -354,7 +358,7 @@ class CustomerCreateParamsTaxIdDatum(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_customer_create_tax_id_params.py b/stripe/params/_customer_create_tax_id_params.py index 65da6200c..4bbe642f4 100644 --- a/stripe/params/_customer_create_tax_id_params.py +++ b/stripe/params/_customer_create_tax_id_params.py @@ -56,8 +56,10 @@ class CustomerCreateTaxIdParams(RequestOptions): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -66,6 +68,7 @@ class CustomerCreateTaxIdParams(RequestOptions): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -96,6 +99,7 @@ class CustomerCreateTaxIdParams(RequestOptions): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -125,7 +129,7 @@ class CustomerCreateTaxIdParams(RequestOptions): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index 3faba9082..fa19a1074 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -81,6 +81,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index 041b4e089..0a3556e89 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -80,6 +80,7 @@ class CustomerPaymentMethodListParams(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/params/_customer_tax_id_create_params.py b/stripe/params/_customer_tax_id_create_params.py index 7db835e16..e8625ba39 100644 --- a/stripe/params/_customer_tax_id_create_params.py +++ b/stripe/params/_customer_tax_id_create_params.py @@ -55,8 +55,10 @@ class CustomerTaxIdCreateParams(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -65,6 +67,7 @@ class CustomerTaxIdCreateParams(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -95,6 +98,7 @@ class CustomerTaxIdCreateParams(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -124,7 +128,7 @@ class CustomerTaxIdCreateParams(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_external_account_create_params.py b/stripe/params/_external_account_create_params.py index 44a37ef07..e4f2ddf1d 100644 --- a/stripe/params/_external_account_create_params.py +++ b/stripe/params/_external_account_create_params.py @@ -41,12 +41,12 @@ class ExternalAccountCreateParamsCard(TypedDict): cvc: NotRequired[str] exp_month: int exp_year: int - name: NotRequired[str] - number: str metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + name: NotRequired[str] + number: str class ExternalAccountCreateParamsBankAccount(TypedDict): diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index cbd5fff08..1aa215249 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -286,7 +286,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -306,6 +306,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -397,6 +403,10 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBlik(TypedDict): + pass + + class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): installments: NotRequired[ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index 1e8594d38..4513b9e4a 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -248,8 +248,10 @@ class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -258,6 +260,7 @@ class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -288,6 +291,7 @@ class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -317,7 +321,7 @@ class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 1fac40a29..6979a82a7 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -273,6 +273,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -364,6 +370,10 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBlik(TypedDict): + pass + + class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): installments: NotRequired[ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments" diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index 5c1d09a9d..fa260c26a 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). @@ -272,6 +272,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -363,6 +369,10 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBlik(TypedDict): + pass + + class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict): installments: NotRequired[ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments" diff --git a/stripe/params/_order_create_params.py b/stripe/params/_order_create_params.py index cf82c9f22..a26321218 100644 --- a/stripe/params/_order_create_params.py +++ b/stripe/params/_order_create_params.py @@ -2423,8 +2423,10 @@ class OrderCreateParamsTaxDetailsTaxId(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -2433,6 +2435,7 @@ class OrderCreateParamsTaxDetailsTaxId(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -2463,6 +2466,7 @@ class OrderCreateParamsTaxDetailsTaxId(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -2492,7 +2496,7 @@ class OrderCreateParamsTaxDetailsTaxId(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_order_modify_params.py b/stripe/params/_order_modify_params.py index e704114c1..02a3605da 100644 --- a/stripe/params/_order_modify_params.py +++ b/stripe/params/_order_modify_params.py @@ -2433,8 +2433,10 @@ class OrderModifyParamsTaxDetailsTaxId(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -2443,6 +2445,7 @@ class OrderModifyParamsTaxDetailsTaxId(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -2473,6 +2476,7 @@ class OrderModifyParamsTaxDetailsTaxId(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -2502,7 +2506,7 @@ class OrderModifyParamsTaxDetailsTaxId(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_order_update_params.py b/stripe/params/_order_update_params.py index 5530940b4..c13bc157f 100644 --- a/stripe/params/_order_update_params.py +++ b/stripe/params/_order_update_params.py @@ -2432,8 +2432,10 @@ class OrderUpdateParamsTaxDetailsTaxId(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -2442,6 +2444,7 @@ class OrderUpdateParamsTaxDetailsTaxId(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -2472,6 +2475,7 @@ class OrderUpdateParamsTaxDetailsTaxId(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -2501,7 +2505,7 @@ class OrderUpdateParamsTaxDetailsTaxId(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 59be2df9a..45be62465 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -13,6 +13,10 @@ class PaymentIntentConfirmParams(RequestOptions): """ Provides industry-specific information about the amount. """ + amount_to_confirm: NotRequired[int] + """ + Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided. + """ application_fee_amount: NotRequired["Literal['']|int"] """ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts). @@ -34,7 +38,7 @@ class PaymentIntentConfirmParams(RequestOptions): Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -2487,6 +2491,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataShopeepay" ] @@ -2503,6 +2511,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -2563,6 +2575,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -3096,6 +3109,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataStripeBalance(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataSunbit(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataSwish(TypedDict): pass @@ -6145,8 +6162,6 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPix(TypedDict): If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - - If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. """ diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 2fb665889..cafb63ca4 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -127,6 +127,7 @@ class PaymentIntentCreateParams(RequestOptions): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -2611,6 +2612,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataShopeepay" ] @@ -2627,6 +2632,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -2687,6 +2696,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -3220,6 +3230,10 @@ class PaymentIntentCreateParamsPaymentMethodDataStripeBalance(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataSunbit(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataSwish(TypedDict): pass @@ -6263,8 +6277,6 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPix(TypedDict): If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - - If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index 1425cae81..09671c353 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -52,7 +52,7 @@ class PaymentIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -2470,6 +2470,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataShopeepay" ] @@ -2486,6 +2490,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -2546,6 +2554,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -3079,6 +3088,10 @@ class PaymentIntentModifyParamsPaymentMethodDataStripeBalance(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataSunbit(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataSwish(TypedDict): pass @@ -6122,8 +6135,6 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPix(TypedDict): If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - - If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index 6cdf36e48..144269ee0 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -51,7 +51,7 @@ class PaymentIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this payment. @@ -2469,6 +2469,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataShopeepay" ] @@ -2485,6 +2489,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -2545,6 +2553,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -3078,6 +3087,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataStripeBalance(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataSunbit(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataSwish(TypedDict): pass @@ -6121,8 +6134,6 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPix(TypedDict): If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - - If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`. """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index a6bf078e9..67cf1faa5 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -146,6 +146,7 @@ class PaymentLinkCreateParams(RequestOptions): "sepa_debit", "shopeepay", "sofort", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index ee9dae5c4..0bc983969 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -90,7 +90,7 @@ class PaymentLinkModifyParams(RequestOptions): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 32805fb1d..edab674d9 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -89,7 +89,7 @@ class PaymentLinkUpdateParams(TypedDict): If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py index 1dcf3a869..de4fa987b 100644 --- a/stripe/params/_payment_method_configuration_create_params.py +++ b/stripe/params/_payment_method_configuration_create_params.py @@ -262,6 +262,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. """ + sunbit: NotRequired["PaymentMethodConfigurationCreateParamsSunbit"] + """ + Sunbit is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers choose to pay in 3, 6, or 12 installments. Customers are redirected from your website or app, authorize the payment with Sunbit, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ swish: NotRequired["PaymentMethodConfigurationCreateParamsSwish"] """ Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details. @@ -1244,6 +1248,22 @@ class PaymentMethodConfigurationCreateParamsSofortDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationCreateParamsSunbit(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsSunbitDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsSunbitDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsSwish(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsSwishDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py index e2299d562..d4c256ff0 100644 --- a/stripe/params/_payment_method_configuration_modify_params.py +++ b/stripe/params/_payment_method_configuration_modify_params.py @@ -262,6 +262,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. """ + sunbit: NotRequired["PaymentMethodConfigurationModifyParamsSunbit"] + """ + Sunbit is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers choose to pay in 3, 6, or 12 installments. Customers are redirected from your website or app, authorize the payment with Sunbit, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ swish: NotRequired["PaymentMethodConfigurationModifyParamsSwish"] """ Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details. @@ -1244,6 +1248,22 @@ class PaymentMethodConfigurationModifyParamsSofortDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationModifyParamsSunbit(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsSunbitDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsSunbitDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsSwish(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsSwishDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py index 1cd4b70c2..13515ad88 100644 --- a/stripe/params/_payment_method_configuration_update_params.py +++ b/stripe/params/_payment_method_configuration_update_params.py @@ -261,6 +261,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. """ + sunbit: NotRequired["PaymentMethodConfigurationUpdateParamsSunbit"] + """ + Sunbit is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers choose to pay in 3, 6, or 12 installments. Customers are redirected from your website or app, authorize the payment with Sunbit, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + """ swish: NotRequired["PaymentMethodConfigurationUpdateParamsSwish"] """ Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details. @@ -1243,6 +1247,22 @@ class PaymentMethodConfigurationUpdateParamsSofortDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationUpdateParamsSunbit(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsSunbitDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsSunbitDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsSwish(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsSwishDisplayPreference" diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 01374c37c..dc7832e22 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -251,6 +251,10 @@ class PaymentMethodCreateParams(RequestOptions): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["PaymentMethodCreateParamsSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["PaymentMethodCreateParamsSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -314,6 +318,7 @@ class PaymentMethodCreateParams(RequestOptions): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -883,6 +888,10 @@ class PaymentMethodCreateParamsStripeBalance(TypedDict): """ +class PaymentMethodCreateParamsSunbit(TypedDict): + pass + + class PaymentMethodCreateParamsSwish(TypedDict): pass diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index f748432cc..07a7f8c7b 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -89,6 +89,7 @@ class PaymentMethodListParams(RequestOptions): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index c3824bccf..7d2f6e08c 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -347,6 +347,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataShopeepay" ] @@ -363,6 +367,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -423,6 +431,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -956,6 +965,10 @@ class SetupIntentConfirmParamsPaymentMethodDataStripeBalance(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataSunbit(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataSwish(TypedDict): pass diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index fcd8d9e3c..0833474e7 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -99,6 +99,7 @@ class SetupIntentCreateParams(RequestOptions): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -483,6 +484,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired["SetupIntentCreateParamsPaymentMethodDataShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. @@ -497,6 +502,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["SetupIntentCreateParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["SetupIntentCreateParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -557,6 +566,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -1088,6 +1098,10 @@ class SetupIntentCreateParamsPaymentMethodDataStripeBalance(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataSunbit(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataSwish(TypedDict): pass diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 6979e0511..59db1eaeb 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -30,7 +30,7 @@ class SetupIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -325,6 +325,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired["SetupIntentModifyParamsPaymentMethodDataShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. @@ -339,6 +343,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["SetupIntentModifyParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["SetupIntentModifyParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -399,6 +407,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -930,6 +939,10 @@ class SetupIntentModifyParamsPaymentMethodDataStripeBalance(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataSunbit(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataSwish(TypedDict): pass diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 7660d2e2a..73f4b7a98 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -29,7 +29,7 @@ class SetupIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" + "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip']]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -324,6 +324,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. @@ -338,6 +342,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -398,6 +406,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -929,6 +938,10 @@ class SetupIntentUpdateParamsPaymentMethodDataStripeBalance(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataSunbit(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataSwish(TypedDict): pass diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index fde6317af..a59c3d184 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -703,7 +703,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -727,6 +727,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -818,6 +824,26 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlik( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_after: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard( TypedDict, ): @@ -995,7 +1021,7 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptio Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"] ] """ - Schedule at which the future payments will be charged. Defaults to `monthly`. + Schedule at which the future payments will be charged. Defaults to the subscription servicing interval. """ diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index c80fb52c4..92880ff82 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -671,7 +671,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -695,6 +695,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -786,6 +792,26 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlik( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_after: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard( TypedDict, ): @@ -963,7 +989,7 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPixMandateOptio Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"] ] """ - Schedule at which the future payments will be charged. Defaults to `monthly`. + Schedule at which the future payments will be charged. Defaults to the subscription servicing interval. """ diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index ee2818c52..9b1716688 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -670,7 +670,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration @@ -694,6 +694,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict): """ This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent. """ + blik: NotRequired[ + "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik" + ] + """ + This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent. + """ card: NotRequired[ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard" ] @@ -785,6 +791,26 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact( """ +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlik( + TypedDict, +): + mandate_options: NotRequired[ + "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Configuration options for setting up a mandate + """ + + +class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBlikMandateOptions( + TypedDict, +): + expires_after: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard( TypedDict, ): @@ -962,7 +988,7 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptio Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"] ] """ - Schedule at which the future payments will be charged. Defaults to `monthly`. + Schedule at which the future payments will be charged. Defaults to the subscription servicing interval. """ diff --git a/stripe/params/_tax_id_create_params.py b/stripe/params/_tax_id_create_params.py index 7dc4b04ac..0203eccfc 100644 --- a/stripe/params/_tax_id_create_params.py +++ b/stripe/params/_tax_id_create_params.py @@ -60,8 +60,10 @@ class TaxIdCreateParams(RequestOptions): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -70,6 +72,7 @@ class TaxIdCreateParams(RequestOptions): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -100,6 +103,7 @@ class TaxIdCreateParams(RequestOptions): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -129,7 +133,7 @@ class TaxIdCreateParams(RequestOptions): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 27b5d4525..a17f4cd42 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -131,6 +131,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-01-28.clover", "2026-02-25.clover", "2026-03-25.dahlia", + "2026-04-22.dahlia", ] ] """ diff --git a/stripe/params/billing/_meter_create_params.py b/stripe/params/billing/_meter_create_params.py index d1b7aeb47..9f3b72bbe 100644 --- a/stripe/params/billing/_meter_create_params.py +++ b/stripe/params/billing/_meter_create_params.py @@ -50,7 +50,7 @@ class MeterCreateParamsCustomerMapping(TypedDict): class MeterCreateParamsDefaultAggregation(TypedDict): formula: Literal["count", "last", "sum"] """ - Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window. + Specifies how events are aggregated. """ diff --git a/stripe/params/billing/_meter_event_create_params.py b/stripe/params/billing/_meter_event_create_params.py index 292b66c35..af17d23bd 100644 --- a/stripe/params/billing/_meter_event_create_params.py +++ b/stripe/params/billing/_meter_event_create_params.py @@ -17,7 +17,7 @@ class MeterEventCreateParams(RequestOptions): """ identifier: NotRequired[str] """ - A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. + A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. Stripe enforces uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. """ payload: "Dict[str, str]|UntypedStripeObject[str]" """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 615836817..d0c49a2e4 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -65,6 +65,8 @@ SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsBancontact as SessionCreateParamsPaymentMethodOptionsBancontact, SessionCreateParamsPaymentMethodOptionsBillie as SessionCreateParamsPaymentMethodOptionsBillie, + SessionCreateParamsPaymentMethodOptionsBlik as SessionCreateParamsPaymentMethodOptionsBlik, + SessionCreateParamsPaymentMethodOptionsBlikMandateOptions as SessionCreateParamsPaymentMethodOptionsBlikMandateOptions, SessionCreateParamsPaymentMethodOptionsBoleto as SessionCreateParamsPaymentMethodOptionsBoleto, SessionCreateParamsPaymentMethodOptionsCard as SessionCreateParamsPaymentMethodOptionsCard, SessionCreateParamsPaymentMethodOptionsCardInstallments as SessionCreateParamsPaymentMethodOptionsCardInstallments, @@ -459,6 +461,14 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsBlik": ( + "stripe.params.checkout._session_create_params", + False, + ), + "SessionCreateParamsPaymentMethodOptionsBlikMandateOptions": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsBoleto": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index bd3919a4a..fc732618d 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -156,6 +156,7 @@ class SessionCreateParams(RequestOptions): "sepa_debit", "shopeepay", "sofort", + "sunbit", "swish", "twint", "upi", @@ -358,6 +359,7 @@ class SessionCreateParams(RequestOptions): "sepa_debit", "shopeepay", "sofort", + "sunbit", "swish", "twint", "upi", @@ -1305,6 +1307,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Billie payment method options. """ + blik: NotRequired["SessionCreateParamsPaymentMethodOptionsBlik"] + """ + contains details about the BLIK payment method options. + """ boleto: NotRequired["SessionCreateParamsPaymentMethodOptionsBoleto"] """ contains details about the Boleto payment method options. @@ -1671,6 +1677,25 @@ class SessionCreateParamsPaymentMethodOptionsBillie(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsBlik(TypedDict): + mandate_options: NotRequired[ + "SessionCreateParamsPaymentMethodOptionsBlikMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + + +class SessionCreateParamsPaymentMethodOptionsBlikMandateOptions(TypedDict): + expires_after: NotRequired[int] + """ + Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite. + """ + + class SessionCreateParamsPaymentMethodOptionsBoleto(TypedDict): expires_after_days: NotRequired[int] """ diff --git a/stripe/params/identity/_verification_session_create_params.py b/stripe/params/identity/_verification_session_create_params.py index 94e1af613..9cc8f3d77 100644 --- a/stripe/params/identity/_verification_session_create_params.py +++ b/stripe/params/identity/_verification_session_create_params.py @@ -27,7 +27,7 @@ class VerificationSessionCreateParams(RequestOptions): "VerificationSessionCreateParamsProvidedDetails" ] """ - Details provided about the user being verified. These details may be shown to the user. + Details provided about the user being verified. These details might be shown to the user. """ related_customer: NotRequired[str] """ @@ -39,7 +39,7 @@ class VerificationSessionCreateParams(RequestOptions): """ related_person: NotRequired["VerificationSessionCreateParamsRelatedPerson"] """ - Tokens referencing a Person resource and it's associated account. + Tokens referencing a Person resource and its associated account. """ return_url: NotRequired[str] """ diff --git a/stripe/params/issuing/_card_create_params.py b/stripe/params/issuing/_card_create_params.py index 43767541d..880b06feb 100644 --- a/stripe/params/issuing/_card_create_params.py +++ b/stripe/params/issuing/_card_create_params.py @@ -181,6 +181,12 @@ class CardCreateParamsShippingCustoms(TypedDict): class CardCreateParamsSpendingControls(TypedDict): + allowed_card_presences: NotRequired[ + 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: NotRequired[ List[ Literal[ @@ -489,6 +495,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/issuing/_card_modify_params.py b/stripe/params/issuing/_card_modify_params.py index e818aa891..db85ee9a1 100644 --- a/stripe/params/issuing/_card_modify_params.py +++ b/stripe/params/issuing/_card_modify_params.py @@ -128,6 +128,12 @@ class CardModifyParamsShippingCustoms(TypedDict): class CardModifyParamsSpendingControls(TypedDict): + allowed_card_presences: NotRequired[ + 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: NotRequired[ List[ Literal[ @@ -436,6 +442,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/issuing/_card_update_params.py b/stripe/params/issuing/_card_update_params.py index 6c4c52241..b661a8811 100644 --- a/stripe/params/issuing/_card_update_params.py +++ b/stripe/params/issuing/_card_update_params.py @@ -127,6 +127,12 @@ class CardUpdateParamsShippingCustoms(TypedDict): class CardUpdateParamsSpendingControls(TypedDict): + allowed_card_presences: NotRequired[ + 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: NotRequired[ List[ Literal[ @@ -435,6 +441,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/issuing/_cardholder_create_params.py b/stripe/params/issuing/_cardholder_create_params.py index 301ccb649..4d447f277 100644 --- a/stripe/params/issuing/_cardholder_create_params.py +++ b/stripe/params/issuing/_cardholder_create_params.py @@ -185,6 +185,12 @@ class CardholderCreateParamsIndividualVerificationDocument(TypedDict): class CardholderCreateParamsSpendingControls(TypedDict): + allowed_card_presences: NotRequired[ + 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: NotRequired[ List[ Literal[ @@ -493,6 +499,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/issuing/_cardholder_modify_params.py b/stripe/params/issuing/_cardholder_modify_params.py index 664cf27bf..39b80bac1 100644 --- a/stripe/params/issuing/_cardholder_modify_params.py +++ b/stripe/params/issuing/_cardholder_modify_params.py @@ -176,6 +176,12 @@ class CardholderModifyParamsIndividualVerificationDocument(TypedDict): class CardholderModifyParamsSpendingControls(TypedDict): + allowed_card_presences: NotRequired[ + 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: NotRequired[ List[ Literal[ @@ -484,6 +490,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/issuing/_cardholder_update_params.py b/stripe/params/issuing/_cardholder_update_params.py index e38f34766..71c0cbb54 100644 --- a/stripe/params/issuing/_cardholder_update_params.py +++ b/stripe/params/issuing/_cardholder_update_params.py @@ -175,6 +175,12 @@ class CardholderUpdateParamsIndividualVerificationDocument(TypedDict): class CardholderUpdateParamsSpendingControls(TypedDict): + allowed_card_presences: NotRequired[ + 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: NotRequired[ List[ Literal[ @@ -483,6 +489,12 @@ 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"]] + ] + """ + 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[ diff --git a/stripe/params/radar/_value_list_create_params.py b/stripe/params/radar/_value_list_create_params.py index 6412874ce..b91242561 100644 --- a/stripe/params/radar/_value_list_create_params.py +++ b/stripe/params/radar/_value_list_create_params.py @@ -17,6 +17,7 @@ class ValueListCreateParams(RequestOptions): """ item_type: NotRequired[ Literal[ + "account", "card_bin", "card_fingerprint", "case_sensitive_string", @@ -31,7 +32,7 @@ class ValueListCreateParams(RequestOptions): ] ] """ - 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`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed. + 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. """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ diff --git a/stripe/params/shared_payment/__init__.py b/stripe/params/shared_payment/__init__.py new file mode 100644 index 000000000..6da5ed91c --- /dev/null +++ b/stripe/params/shared_payment/__init__.py @@ -0,0 +1,82 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.shared_payment._granted_token_create_params import ( + GrantedTokenCreateParams as GrantedTokenCreateParams, + GrantedTokenCreateParamsUsageLimits as GrantedTokenCreateParamsUsageLimits, + ) + from stripe.params.shared_payment._granted_token_retrieve_params import ( + GrantedTokenRetrieveParams as GrantedTokenRetrieveParams, + ) + from stripe.params.shared_payment._granted_token_revoke_params import ( + GrantedTokenRevokeParams as GrantedTokenRevokeParams, + ) + from stripe.params.shared_payment._issued_token_create_params import ( + IssuedTokenCreateParams as IssuedTokenCreateParams, + IssuedTokenCreateParamsSellerDetails as IssuedTokenCreateParamsSellerDetails, + IssuedTokenCreateParamsUsageLimits as IssuedTokenCreateParamsUsageLimits, + ) + from stripe.params.shared_payment._issued_token_retrieve_params import ( + IssuedTokenRetrieveParams as IssuedTokenRetrieveParams, + ) + from stripe.params.shared_payment._issued_token_revoke_params import ( + IssuedTokenRevokeParams as IssuedTokenRevokeParams, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "GrantedTokenCreateParams": ( + "stripe.params.shared_payment._granted_token_create_params", + False, + ), + "GrantedTokenCreateParamsUsageLimits": ( + "stripe.params.shared_payment._granted_token_create_params", + False, + ), + "GrantedTokenRetrieveParams": ( + "stripe.params.shared_payment._granted_token_retrieve_params", + False, + ), + "GrantedTokenRevokeParams": ( + "stripe.params.shared_payment._granted_token_revoke_params", + False, + ), + "IssuedTokenCreateParams": ( + "stripe.params.shared_payment._issued_token_create_params", + False, + ), + "IssuedTokenCreateParamsSellerDetails": ( + "stripe.params.shared_payment._issued_token_create_params", + False, + ), + "IssuedTokenCreateParamsUsageLimits": ( + "stripe.params.shared_payment._issued_token_create_params", + False, + ), + "IssuedTokenRetrieveParams": ( + "stripe.params.shared_payment._issued_token_retrieve_params", + False, + ), + "IssuedTokenRevokeParams": ( + "stripe.params.shared_payment._issued_token_revoke_params", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/params/shared_payment/_granted_token_create_params.py b/stripe/params/shared_payment/_granted_token_create_params.py new file mode 100644 index 000000000..c2505562c --- /dev/null +++ b/stripe/params/shared_payment/_granted_token_create_params.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# 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_extensions import Literal, NotRequired, TypedDict + + +class GrantedTokenCreateParams(RequestOptions): + customer: NotRequired[str] + """ + The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + payment_method: str + """ + The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken. + """ + shared_metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken. + """ + usage_limits: "GrantedTokenCreateParamsUsageLimits" + """ + Limits on how this SharedPaymentGrantedToken can be used. + """ + + +class GrantedTokenCreateParamsUsageLimits(TypedDict): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + expires_at: NotRequired[int] + """ + Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + """ + max_amount: int + """ + Max amount that can be captured using this SharedPaymentToken + """ diff --git a/stripe/params/shared_payment/_granted_token_retrieve_params.py b/stripe/params/shared_payment/_granted_token_retrieve_params.py new file mode 100644 index 000000000..dd609a688 --- /dev/null +++ b/stripe/params/shared_payment/_granted_token_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class GrantedTokenRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/shared_payment/_granted_token_revoke_params.py b/stripe/params/shared_payment/_granted_token_revoke_params.py new file mode 100644 index 000000000..7bc291a52 --- /dev/null +++ b/stripe/params/shared_payment/_granted_token_revoke_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class GrantedTokenRevokeParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/shared_payment/_issued_token_create_params.py b/stripe/params/shared_payment/_issued_token_create_params.py new file mode 100644 index 000000000..3010934cf --- /dev/null +++ b/stripe/params/shared_payment/_issued_token_create_params.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# 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_extensions import Literal, NotRequired, TypedDict + + +class IssuedTokenCreateParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + payment_method: str + """ + The PaymentMethod that is going to be shared by the SharedPaymentIssuedToken. + """ + return_url: NotRequired[str] + """ + If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. + """ + seller_details: "IssuedTokenCreateParamsSellerDetails" + """ + Seller details of the SharedPaymentIssuedToken, including network_id and external_id. + """ + setup_future_usage: NotRequired[Literal["on_session"]] + """ + Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later. + """ + shared_metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentIssuedToken. The values here are visible by default with the party that you share this SharedPaymentIssuedToken with. + """ + usage_limits: "IssuedTokenCreateParamsUsageLimits" + """ + Limits on how this SharedPaymentToken can be used. + """ + + +class IssuedTokenCreateParamsSellerDetails(TypedDict): + external_id: NotRequired[str] + """ + A unique id within a network that identifies a logical seller, usually this would be the unique merchant id. + """ + network_business_profile: NotRequired[str] + """ + A string that identifies the network that this SharedToken is being created for. + """ + + +class IssuedTokenCreateParamsUsageLimits(TypedDict): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + expires_at: NotRequired[int] + """ + Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + """ + max_amount: int + """ + Max amount that can be captured using this SharedPaymentToken + """ diff --git a/stripe/params/shared_payment/_issued_token_retrieve_params.py b/stripe/params/shared_payment/_issued_token_retrieve_params.py new file mode 100644 index 000000000..9c233a43f --- /dev/null +++ b/stripe/params/shared_payment/_issued_token_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class IssuedTokenRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/shared_payment/_issued_token_revoke_params.py b/stripe/params/shared_payment/_issued_token_revoke_params.py new file mode 100644 index 000000000..d2b1d1c6d --- /dev/null +++ b/stripe/params/shared_payment/_issued_token_revoke_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class IssuedTokenRevokeParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py index 24062fd37..2367ee936 100644 --- a/stripe/params/tax/__init__.py +++ b/stripe/params/tax/__init__.py @@ -199,10 +199,18 @@ RegistrationCreateParamsCountryOptionsUa as RegistrationCreateParamsCountryOptionsUa, RegistrationCreateParamsCountryOptionsUg as RegistrationCreateParamsCountryOptionsUg, RegistrationCreateParamsCountryOptionsUs as RegistrationCreateParamsCountryOptionsUs, + RegistrationCreateParamsCountryOptionsUsAdmissionsTax as RegistrationCreateParamsCountryOptionsUsAdmissionsTax, + RegistrationCreateParamsCountryOptionsUsAttendanceTax as RegistrationCreateParamsCountryOptionsUsAttendanceTax, + RegistrationCreateParamsCountryOptionsUsEntertainmentTax as RegistrationCreateParamsCountryOptionsUsEntertainmentTax, + RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax as RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax, + RegistrationCreateParamsCountryOptionsUsHospitalityTax as RegistrationCreateParamsCountryOptionsUsHospitalityTax, RegistrationCreateParamsCountryOptionsUsLocalAmusementTax as RegistrationCreateParamsCountryOptionsUsLocalAmusementTax, RegistrationCreateParamsCountryOptionsUsLocalLeaseTax as RegistrationCreateParamsCountryOptionsUsLocalLeaseTax, + RegistrationCreateParamsCountryOptionsUsLuxuryTax as RegistrationCreateParamsCountryOptionsUsLuxuryTax, + RegistrationCreateParamsCountryOptionsUsResortTax as RegistrationCreateParamsCountryOptionsUsResortTax, RegistrationCreateParamsCountryOptionsUsStateSalesTax as RegistrationCreateParamsCountryOptionsUsStateSalesTax, RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection as RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection, + RegistrationCreateParamsCountryOptionsUsTourismTax as RegistrationCreateParamsCountryOptionsUsTourismTax, RegistrationCreateParamsCountryOptionsUy as RegistrationCreateParamsCountryOptionsUy, RegistrationCreateParamsCountryOptionsUyStandard as RegistrationCreateParamsCountryOptionsUyStandard, RegistrationCreateParamsCountryOptionsUz as RegistrationCreateParamsCountryOptionsUz, @@ -933,6 +941,26 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsAdmissionsTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsAttendanceTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsEntertainmentTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsHospitalityTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUsLocalAmusementTax": ( "stripe.params.tax._registration_create_params", False, @@ -941,6 +969,14 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsLuxuryTax": ( + "stripe.params.tax._registration_create_params", + False, + ), + "RegistrationCreateParamsCountryOptionsUsResortTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUsStateSalesTax": ( "stripe.params.tax._registration_create_params", False, @@ -949,6 +985,10 @@ "stripe.params.tax._registration_create_params", False, ), + "RegistrationCreateParamsCountryOptionsUsTourismTax": ( + "stripe.params.tax._registration_create_params", + False, + ), "RegistrationCreateParamsCountryOptionsUy": ( "stripe.params.tax._registration_create_params", False, diff --git a/stripe/params/tax/_calculation_create_params.py b/stripe/params/tax/_calculation_create_params.py index a148df6f9..bd27d1cdc 100644 --- a/stripe/params/tax/_calculation_create_params.py +++ b/stripe/params/tax/_calculation_create_params.py @@ -140,8 +140,10 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -150,6 +152,7 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -180,6 +183,7 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -209,7 +213,7 @@ class CalculationCreateParamsCustomerDetailsTaxId(TypedDict): "zw_tin", ] """ - 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`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `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`, `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` + 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`, `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` """ value: str """ diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py index 03ab52b23..e2b26bbe8 100644 --- a/stripe/params/tax/_registration_create_params.py +++ b/stripe/params/tax/_registration_create_params.py @@ -1758,6 +1758,36 @@ class RegistrationCreateParamsCountryOptionsUg(TypedDict): class RegistrationCreateParamsCountryOptionsUs(TypedDict): + admissions_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsAdmissionsTax" + ] + """ + Options for the admission tax registration. + """ + attendance_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsAttendanceTax" + ] + """ + Options for the attendance tax registration. + """ + entertainment_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsEntertainmentTax" + ] + """ + Options for the entertainment tax registration. + """ + gross_receipts_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax" + ] + """ + Options for the gross receipts tax registration. + """ + hospitality_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsHospitalityTax" + ] + """ + Options for the hospitality tax registration. + """ local_amusement_tax: NotRequired[ "RegistrationCreateParamsCountryOptionsUsLocalAmusementTax" ] @@ -1770,6 +1800,18 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ Options for the local lease tax registration. """ + luxury_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsLuxuryTax" + ] + """ + Options for the luxury tax registration. + """ + resort_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsResortTax" + ] + """ + Options for the resort tax registration. + """ state: str """ Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). @@ -1780,6 +1822,12 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ Options for the state sales tax registration. """ + tourism_tax: NotRequired[ + "RegistrationCreateParamsCountryOptionsUsTourismTax" + ] + """ + Options for the tourism tax registration. + """ type: Literal[ "admissions_tax", "attendance_tax", @@ -1800,10 +1848,45 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsAdmissionsTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsAttendanceTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsEntertainmentTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsGrossReceiptsTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsHospitalityTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUsLocalAmusementTax(TypedDict): jurisdiction: str """ - A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `02154` (Arlington Heights), `05248` (Bensenville), `06613` (Bloomington), `10906` (Campton Hills), `14000` (Chicago), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), `64421` (Riverside), `65806` (Roselle), and `68081` (Schiller Park). + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=amusement_tax#registration-types). """ @@ -1814,6 +1897,20 @@ class RegistrationCreateParamsCountryOptionsUsLocalLeaseTax(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsLuxuryTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types). + """ + + +class RegistrationCreateParamsCountryOptionsUsResortTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUsStateSalesTax(TypedDict): elections: List[ "RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection" @@ -1836,6 +1933,13 @@ class RegistrationCreateParamsCountryOptionsUsStateSalesTaxElection(TypedDict): """ +class RegistrationCreateParamsCountryOptionsUsTourismTax(TypedDict): + jurisdiction: str + """ + A jurisdiction code representing the [local jurisdiction](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types). + """ + + class RegistrationCreateParamsCountryOptionsUy(TypedDict): standard: NotRequired["RegistrationCreateParamsCountryOptionsUyStandard"] """ diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index 8beb5a1bb..a18069676 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -6,6 +6,7 @@ if TYPE_CHECKING: from stripe.params.test_helpers import ( issuing as issuing, + shared_payment as shared_payment, terminal as terminal, treasury as treasury, ) @@ -69,6 +70,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance as ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance, + ConfirmationTokenCreateParamsPaymentMethodDataSunbit as ConfirmationTokenCreateParamsPaymentMethodDataSunbit, ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish, ConfirmationTokenCreateParamsPaymentMethodDataTwint as ConfirmationTokenCreateParamsPaymentMethodDataTwint, ConfirmationTokenCreateParamsPaymentMethodDataUpi as ConfirmationTokenCreateParamsPaymentMethodDataUpi, @@ -108,6 +110,7 @@ # name -> (import_target, is_submodule) _import_map = { "issuing": ("stripe.params.test_helpers.issuing", True), + "shared_payment": ("stripe.params.test_helpers.shared_payment", True), "terminal": ("stripe.params.test_helpers.terminal", True), "treasury": ("stripe.params.test_helpers.treasury", True), "ConfirmationTokenCreateParams": ( @@ -346,6 +349,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataSunbit": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataSwish": ( "stripe.params.test_helpers._confirmation_token_create_params", False, diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 9fd274963..343eb6fe4 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -311,6 +311,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ + shared_payment_granted_token: NotRequired[str] + """ + ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + """ shopeepay: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay" ] @@ -327,6 +331,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ This hash contains details about the Stripe balance payment method. """ + sunbit: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSunbit"] + """ + If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + """ swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"] """ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. @@ -387,6 +395,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "shopeepay", "sofort", "stripe_balance", + "sunbit", "swish", "twint", "upi", @@ -922,6 +931,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataSunbit(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataSwish(TypedDict): pass diff --git a/stripe/params/test_helpers/shared_payment/__init__.py b/stripe/params/test_helpers/shared_payment/__init__.py new file mode 100644 index 000000000..9290020d8 --- /dev/null +++ b/stripe/params/test_helpers/shared_payment/__init__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.test_helpers.shared_payment._granted_token_create_params import ( + GrantedTokenCreateParams as GrantedTokenCreateParams, + GrantedTokenCreateParamsUsageLimits as GrantedTokenCreateParamsUsageLimits, + ) + from stripe.params.test_helpers.shared_payment._granted_token_revoke_params import ( + GrantedTokenRevokeParams as GrantedTokenRevokeParams, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "GrantedTokenCreateParams": ( + "stripe.params.test_helpers.shared_payment._granted_token_create_params", + False, + ), + "GrantedTokenCreateParamsUsageLimits": ( + "stripe.params.test_helpers.shared_payment._granted_token_create_params", + False, + ), + "GrantedTokenRevokeParams": ( + "stripe.params.test_helpers.shared_payment._granted_token_revoke_params", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/params/test_helpers/shared_payment/_granted_token_create_params.py b/stripe/params/test_helpers/shared_payment/_granted_token_create_params.py new file mode 100644 index 000000000..7541f6ea1 --- /dev/null +++ b/stripe/params/test_helpers/shared_payment/_granted_token_create_params.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import UntypedStripeObject +from typing import Dict, List +from typing_extensions import Literal, NotRequired, TypedDict + + +class GrantedTokenCreateParams(TypedDict): + customer: NotRequired[str] + """ + The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any. + """ + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + payment_method: str + """ + The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken. + """ + shared_metadata: NotRequired[ + "Literal['']|Dict[str, str]|UntypedStripeObject[str]" + ] + """ + Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken. + """ + usage_limits: "GrantedTokenCreateParamsUsageLimits" + """ + Limits on how this SharedPaymentGrantedToken can be used. + """ + + +class GrantedTokenCreateParamsUsageLimits(TypedDict): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + expires_at: NotRequired[int] + """ + Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + """ + max_amount: int + """ + Max amount that can be captured using this SharedPaymentToken + """ diff --git a/stripe/params/test_helpers/shared_payment/_granted_token_revoke_params.py b/stripe/params/test_helpers/shared_payment/_granted_token_revoke_params.py new file mode 100644 index 000000000..95d0ccd0b --- /dev/null +++ b/stripe/params/test_helpers/shared_payment/_granted_token_revoke_params.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class GrantedTokenRevokeParams(TypedDict): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/treasury/_outbound_payment_create_params.py b/stripe/params/treasury/_outbound_payment_create_params.py index 7f0e02677..464ec432e 100644 --- a/stripe/params/treasury/_outbound_payment_create_params.py +++ b/stripe/params/treasury/_outbound_payment_create_params.py @@ -55,6 +55,10 @@ class OutboundPaymentCreateParams(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`. """ + purpose: NotRequired[Literal["payroll"]] + """ + The purpose of the OutboundPayment, if applicable. This list is not exhaustive, do not specify this parameter if your purpose does not match any that are provided. + """ statement_descriptor: NotRequired[str] """ The description that appears on the receiving end for this OutboundPayment (for example, bank statement for external bank transfer). Maximum 10 characters for `ach` payments, 140 characters for `us_domestic_wire` payments, or 500 characters for `stripe` network transfers. Can only include -#.$&*, spaces, and alphanumeric characters. The default value is "payment". diff --git a/stripe/params/v2/billing/_cadence_create_params.py b/stripe/params/v2/billing/_cadence_create_params.py index f66f625c2..8a0038501 100644 --- a/stripe/params/v2/billing/_cadence_create_params.py +++ b/stripe/params/v2/billing/_cadence_create_params.py @@ -29,24 +29,24 @@ class CadenceCreateParams(TypedDict): class CadenceCreateParamsBillingCycle(TypedDict): + day: NotRequired["CadenceCreateParamsBillingCycleDay"] + """ + Specific configuration for determining billing dates when type=day. + """ interval_count: NotRequired[int] """ The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. If this is not provided, it will default to 1. """ - type: Literal["day", "month", "week", "year"] - """ - The frequency at which a cadence bills. - """ - day: NotRequired["CadenceCreateParamsBillingCycleDay"] - """ - Specific configuration for determining billing dates when type=day. - """ month: NotRequired["CadenceCreateParamsBillingCycleMonth"] """ Specific configuration for determining billing dates when type=month. """ + type: Literal["day", "month", "week", "year"] + """ + The frequency at which a cadence bills. + """ week: NotRequired["CadenceCreateParamsBillingCycleWeek"] """ Specific configuration for determining billing dates when type=week. diff --git a/stripe/params/v2/core/_account_link_create_params.py b/stripe/params/v2/core/_account_link_create_params.py index c7d15ffef..88569189d 100644 --- a/stripe/params/v2/core/_account_link_create_params.py +++ b/stripe/params/v2/core/_account_link_create_params.py @@ -16,10 +16,6 @@ class AccountLinkCreateParams(TypedDict): class AccountLinkCreateParamsUseCase(TypedDict): - type: Literal["account_onboarding", "account_update"] - """ - Open Enum. The type of Account Link the user is requesting. - """ account_onboarding: NotRequired[ "AccountLinkCreateParamsUseCaseAccountOnboarding" ] @@ -30,6 +26,10 @@ class AccountLinkCreateParamsUseCase(TypedDict): """ Hash containing configuration options for an Account Link that updates an existing account. """ + type: Literal["account_onboarding", "account_update"] + """ + Open Enum. The type of Account Link the user is requesting. + """ class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict): diff --git a/stripe/params/v2/core/_event_destination_create_params.py b/stripe/params/v2/core/_event_destination_create_params.py index eaceb2f4d..6ac47e438 100644 --- a/stripe/params/v2/core/_event_destination_create_params.py +++ b/stripe/params/v2/core/_event_destination_create_params.py @@ -6,6 +6,16 @@ class EventDestinationCreateParams(TypedDict): + amazon_eventbridge: NotRequired[ + "EventDestinationCreateParamsAmazonEventbridge" + ] + """ + Amazon EventBridge configuration. + """ + azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"] + """ + Azure Event Grid configuration. + """ description: NotRequired[str] """ An optional description of what the event destination is used for. @@ -50,16 +60,6 @@ class EventDestinationCreateParams(TypedDict): """ Event destination type. """ - amazon_eventbridge: NotRequired[ - "EventDestinationCreateParamsAmazonEventbridge" - ] - """ - Amazon EventBridge configuration. - """ - azure_event_grid: NotRequired["EventDestinationCreateParamsAzureEventGrid"] - """ - Azure Event Grid configuration. - """ webhook_endpoint: NotRequired[ "EventDestinationCreateParamsWebhookEndpoint" ] diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py index 4fac71174..2535e2cc1 100644 --- a/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py +++ b/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py @@ -24,10 +24,6 @@ class OutboundSetupIntentCreateParams(TypedDict): class OutboundSetupIntentCreateParamsPayoutMethodData(TypedDict): - type: Literal["bank_account", "card", "crypto_wallet"] - """ - Closed Enum. The type of payout method to be created. - """ bank_account: NotRequired[ "OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount" ] @@ -38,6 +34,10 @@ class OutboundSetupIntentCreateParamsPayoutMethodData(TypedDict): """ The type specific details of the card payout method. """ + type: Literal["bank_account", "card", "crypto_wallet"] + """ + Closed Enum. The type of payout method to be created. + """ class OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount(TypedDict): diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py index 395351972..860c21abf 100644 --- a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py +++ b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py @@ -18,10 +18,6 @@ class OutboundSetupIntentUpdateParams(TypedDict): class OutboundSetupIntentUpdateParamsPayoutMethodData(TypedDict): - type: Literal["bank_account", "card", "crypto_wallet"] - """ - Closed Enum. The type of payout method to be created/updated. - """ bank_account: NotRequired[ "OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount" ] @@ -32,6 +28,10 @@ class OutboundSetupIntentUpdateParamsPayoutMethodData(TypedDict): """ The type specific details of the card payout method. """ + type: Literal["bank_account", "card", "crypto_wallet"] + """ + Closed Enum. The type of payout method to be created/updated. + """ class OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount(TypedDict): diff --git a/stripe/privacy/_redaction_job.py b/stripe/privacy/_redaction_job.py index e338657d9..48a3a1ce5 100644 --- a/stripe/privacy/_redaction_job.py +++ b/stripe/privacy/_redaction_job.py @@ -132,6 +132,10 @@ class Objects(StripeObject): """ Validation behavior determines how a job validates objects for redaction eligibility. Default is `error`. """ + validation_errors: Optional[ListObject["RedactionJobValidationError"]] + """ + The first 10 validation errors for the current validation attempt. Use the validation errors list endpoint to paginate through the full list. + """ @classmethod def _cls_cancel( diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 903751cc5..a3c0f06e5 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -23,7 +23,7 @@ class PaymentEvaluation(CreateableAPIResource["PaymentEvaluation"]): ) class ClientDeviceMetadataDetails(StripeObject): - radar_session: str + radar_session: Optional[str] """ ID for the Radar Session associated with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. """ @@ -451,13 +451,20 @@ class FraudulentPayment(StripeObject): """ The time when this signal was evaluated. """ - risk_level: Literal["elevated", "highest", "normal"] + risk_level: Literal[ + "elevated", + "highest", + "low", + "normal", + "not_assessed", + "unknown", + ] """ Risk level of this signal, based on the score. """ score: float """ - Score for this insight. Possible values for evaluated payments are -1 and any value between 0 and 100. The value is returned with two decimal places. A score of -1 indicates a test integration and higher scores indicate a higher likelihood of the signal being true. + Score for this signal. Possible values for evaluated payments are between 0 and 100. The value is returned with two decimal places and higher scores indicate a higher likelihood of the signal being true. A score of -1 is returned when a model evaluation was not performed, such as requests from incomplete integrations. """ fraudulent_payment: FraudulentPayment @@ -508,7 +515,7 @@ class FraudulentPayment(StripeObject): """ recommended_action: Literal["block", "continue"] """ - Recommended action based on the score of the fraudulent_payment signal. Possible values are `block` and `continue`. + Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. """ signals: Signals """ diff --git a/stripe/radar/_value_list.py b/stripe/radar/_value_list.py index 2e060b4be..d72089440 100644 --- a/stripe/radar/_value_list.py +++ b/stripe/radar/_value_list.py @@ -61,6 +61,7 @@ class ValueList( Unique identifier for the object. """ item_type: Literal[ + "account", "card_bin", "card_fingerprint", "case_sensitive_string", @@ -74,7 +75,7 @@ class ValueList( "us_bank_account_fingerprint", ] """ - The type of items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. + The type of 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`. """ list_items: ListObject["ValueListItem"] """ diff --git a/stripe/shared_payment/__init__.py b/stripe/shared_payment/__init__.py new file mode 100644 index 000000000..fdcf9c577 --- /dev/null +++ b/stripe/shared_payment/__init__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.shared_payment._granted_token import ( + GrantedToken as GrantedToken, + ) + from stripe.shared_payment._granted_token_service import ( + GrantedTokenService as GrantedTokenService, + ) + from stripe.shared_payment._issued_token import IssuedToken as IssuedToken + from stripe.shared_payment._issued_token_service import ( + IssuedTokenService as IssuedTokenService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "GrantedToken": ("stripe.shared_payment._granted_token", False), + "GrantedTokenService": ( + "stripe.shared_payment._granted_token_service", + False, + ), + "IssuedToken": ("stripe.shared_payment._issued_token", False), + "IssuedTokenService": ( + "stripe.shared_payment._issued_token_service", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py new file mode 100644 index 000000000..fa62663fa --- /dev/null +++ b/stripe/shared_payment/_granted_token.py @@ -0,0 +1,1776 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._api_resource import APIResource +from stripe._expandable_field import ExpandableField +from stripe._stripe_object import StripeObject, UntypedStripeObject +from stripe._test_helpers import APIResourceTestHelpers +from stripe._util import class_method_variant, sanitize_id +from typing import ClassVar, List, Optional, cast, overload +from typing_extensions import Literal, Type, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._charge import Charge + from stripe._setup_attempt import SetupAttempt + from stripe.params.shared_payment._granted_token_create_params import ( + GrantedTokenCreateParams, + ) + from stripe.params.shared_payment._granted_token_retrieve_params import ( + GrantedTokenRetrieveParams, + ) + from stripe.params.shared_payment._granted_token_revoke_params import ( + GrantedTokenRevokeParams, + ) + + +class GrantedToken(APIResource["GrantedToken"]): + """ + SharedPaymentGrantedToken is the view-only resource of a SharedPaymentIssuedToken, which is a limited-use reference to a PaymentMethod. + When another Stripe merchant shares a SharedPaymentIssuedToken with you, you can view attributes of the shared token using the SharedPaymentGrantedToken API, and use it with a PaymentIntent. + """ + + OBJECT_NAME: ClassVar[Literal["shared_payment.granted_token"]] = ( + "shared_payment.granted_token" + ) + + class AgentDetails(StripeObject): + network_business_profile: Optional[str] + """ + The Stripe Profile ID of the agent that issued this SharedPaymentGrantedToken. + """ + + class PaymentMethodDetails(StripeObject): + class AcssDebit(StripeObject): + account_number: Optional[str] + """ + Account number of the bank account. + """ + bank_name: Optional[str] + """ + Name of the bank associated with the bank account. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + """ + institution_number: Optional[str] + """ + Institution number of the bank account. + """ + last4: Optional[str] + """ + Last four digits of the bank account number. + """ + transit_number: Optional[str] + """ + Transit number of the bank account. + """ + + class Affirm(StripeObject): + pass + + class AfterpayClearpay(StripeObject): + pass + + class Alipay(StripeObject): + pass + + class Alma(StripeObject): + pass + + class AmazonPay(StripeObject): + pass + + class AuBecsDebit(StripeObject): + bsb_number: Optional[str] + """ + Six-digit number identifying bank and branch associated with this bank account. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + """ + last4: Optional[str] + """ + Last four digits of the bank account number. + """ + + class BacsDebit(StripeObject): + fingerprint: Optional[str] + """ + Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + """ + last4: Optional[str] + """ + Last four digits of the bank account number. + """ + sort_code: Optional[str] + """ + Sort code of the bank account. (e.g., `10-20-30`) + """ + + class Bancontact(StripeObject): + pass + + class Billie(StripeObject): + pass + + class BillingDetails(StripeObject): + class Address(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + address: Optional[Address] + """ + Billing address. + """ + email: Optional[str] + """ + Email address. + """ + name: Optional[str] + """ + Full name. + """ + phone: Optional[str] + """ + Billing phone number (including extension). + """ + tax_id: Optional[str] + """ + Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + """ + _inner_class_types = {"address": Address} + + class Blik(StripeObject): + pass + + class Boleto(StripeObject): + tax_id: str + """ + Uniquely identifies the customer tax id (CNPJ or CPF) + """ + + class Card(StripeObject): + class Checks(StripeObject): + address_line1_check: Optional[str] + """ + If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + address_postal_code_check: Optional[str] + """ + If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + cvc_check: Optional[str] + """ + If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + + class Networks(StripeObject): + available: List[str] + """ + All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). + """ + preferred: Optional[str] + """ + The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. + """ + + class Wallet(StripeObject): + class AmexExpressCheckout(StripeObject): + pass + + class ApplePay(StripeObject): + pass + + class GooglePay(StripeObject): + pass + + class Link(StripeObject): + pass + + class Masterpass(StripeObject): + class BillingAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + class ShippingAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + billing_address: Optional[BillingAddress] + """ + Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + email: Optional[str] + """ + Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + name: Optional[str] + """ + Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + shipping_address: Optional[ShippingAddress] + """ + Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + _inner_class_types = { + "billing_address": BillingAddress, + "shipping_address": ShippingAddress, + } + + class SamsungPay(StripeObject): + pass + + class VisaCheckout(StripeObject): + class BillingAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + class ShippingAddress(StripeObject): + city: Optional[str] + """ + City, district, suburb, town, or village. + """ + country: Optional[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: Optional[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: Optional[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: Optional[str] + """ + ZIP or postal code. + """ + state: Optional[str] + """ + State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + """ + + billing_address: Optional[BillingAddress] + """ + Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + email: Optional[str] + """ + Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + name: Optional[str] + """ + Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + shipping_address: Optional[ShippingAddress] + """ + Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + _inner_class_types = { + "billing_address": BillingAddress, + "shipping_address": ShippingAddress, + } + + amex_express_checkout: Optional[AmexExpressCheckout] + apple_pay: Optional[ApplePay] + dynamic_last4: Optional[str] + """ + (For tokenized numbers only.) The last four digits of the device account number. + """ + google_pay: Optional[GooglePay] + 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", + ] + """ + 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. + """ + visa_checkout: Optional[VisaCheckout] + _inner_class_types = { + "amex_express_checkout": AmexExpressCheckout, + "apple_pay": ApplePay, + "google_pay": GooglePay, + "link": Link, + "masterpass": Masterpass, + "samsung_pay": SamsungPay, + "visa_checkout": VisaCheckout, + } + + brand: str + """ + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + """ + checks: Optional[Checks] + """ + Checks on Card address and CVC if provided. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + display_brand: Optional[str] + """ + The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future. + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *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: str + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: str + """ + The last four digits of the card. + """ + networks: Optional[Networks] + """ + Contains information about card networks that can be used to process the payment. + """ + wallet: Optional[Wallet] + """ + If this Card is part of a card wallet, this contains the details of the card wallet. + """ + _inner_class_types = { + "checks": Checks, + "networks": Networks, + "wallet": Wallet, + } + + class CardPresent(StripeObject): + class Networks(StripeObject): + available: List[str] + """ + All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). + """ + preferred: Optional[str] + """ + The preferred network for the card. + """ + + class Offline(StripeObject): + stored_at: Optional[int] + """ + Time at which the payment was collected while offline + """ + type: Optional[Literal["deferred"]] + """ + The method used to process this payment method offline. Only deferred is allowed. + """ + + class Wallet(StripeObject): + type: Literal[ + "apple_pay", "google_pay", "samsung_pay", "unknown" + ] + """ + The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + """ + + brand: Optional[str] + """ + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + """ + brand_product: Optional[str] + """ + The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + """ + cardholder_name: Optional[str] + """ + The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *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: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + networks: Optional[Networks] + """ + Contains information about card networks that can be used to process the payment. + """ + offline: Optional[Offline] + """ + Details about payment methods collected offline. + """ + preferred_locales: Optional[List[str]] + """ + The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + """ + read_method: Optional[ + Literal[ + "contact_emv", + "contactless_emv", + "contactless_magstripe_mode", + "magnetic_stripe_fallback", + "magnetic_stripe_track2", + ] + ] + """ + How card details were read in this transaction. + """ + wallet: Optional[Wallet] + _inner_class_types = { + "networks": Networks, + "offline": Offline, + "wallet": Wallet, + } + + class Cashapp(StripeObject): + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by Cash App to every buyer. + """ + cashtag: Optional[str] + """ + A public identifier for buyers using Cash App. + """ + + class Crypto(StripeObject): + pass + + class CustomerBalance(StripeObject): + pass + + 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", + ] + ] + """ + The customer's bank. Should be one of `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_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + """ + + class Fpx(StripeObject): + account_holder_type: Optional[Literal["company", "individual"]] + """ + 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", + "bsn", + "cimb", + "deutsche_bank", + "hong_leong_bank", + "hsbc", + "kfh", + "maybank2e", + "maybank2u", + "ocbc", + "pb_enterprise", + "public_bank", + "rhb", + "standard_chartered", + "uob", + ] + """ + The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + """ + + class Giropay(StripeObject): + pass + + class Gopay(StripeObject): + pass + + class Grabpay(StripeObject): + pass + + class IdBankTransfer(StripeObject): + bank: Optional[Literal["bca", "bni", "bri", "cimb", "permata"]] + bank_code: Optional[str] + bank_name: Optional[str] + display_name: Optional[str] + + 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", + ] + ] + """ + 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", + ] + ] + """ + The Bank Identifier Code of the customer's bank, if the bank was provided. + """ + + class InteracPresent(StripeObject): + class Networks(StripeObject): + available: List[str] + """ + All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). + """ + preferred: Optional[str] + """ + The preferred network for the card. + """ + + brand: Optional[str] + """ + Card brand. Can be `interac`, `mastercard` or `visa`. + """ + cardholder_name: Optional[str] + """ + The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *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: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + networks: Optional[Networks] + """ + Contains information about card networks that can be used to process the payment. + """ + preferred_locales: Optional[List[str]] + """ + The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + """ + read_method: Optional[ + Literal[ + "contact_emv", + "contactless_emv", + "contactless_magstripe_mode", + "magnetic_stripe_fallback", + "magnetic_stripe_track2", + ] + ] + """ + How card details were read in this transaction. + """ + _inner_class_types = {"networks": Networks} + + class KakaoPay(StripeObject): + pass + + class Klarna(StripeObject): + class Dob(StripeObject): + day: Optional[int] + """ + The day of birth, between 1 and 31. + """ + month: Optional[int] + """ + The month of birth, between 1 and 12. + """ + year: Optional[int] + """ + The four-digit year of birth. + """ + + dob: Optional[Dob] + """ + The customer's date of birth, if provided. + """ + _inner_class_types = {"dob": Dob} + + class Konbini(StripeObject): + pass + + class KrCard(StripeObject): + brand: Optional[ + Literal[ + "bc", + "citi", + "hana", + "hyundai", + "jeju", + "jeonbuk", + "kakaobank", + "kbank", + "kdbbank", + "kookmin", + "kwangju", + "lotte", + "mg", + "nh", + "post", + "samsung", + "savingsbank", + "shinhan", + "shinhyup", + "suhyup", + "tossbank", + "woori", + ] + ] + """ + The local credit or debit card brand. + """ + last4: Optional[str] + """ + The last four digits of the card. This may not be present for American Express cards. + """ + + class Link(StripeObject): + email: Optional[str] + """ + Account owner's email address. + """ + persistent_token: Optional[str] + """ + [Deprecated] This is a legacy parameter that no longer has any function. + """ + + class MbWay(StripeObject): + pass + + class Mobilepay(StripeObject): + pass + + class Multibanco(StripeObject): + pass + + class NaverPay(StripeObject): + buyer_id: Optional[str] + """ + Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. + """ + funding: Literal["card", "points"] + """ + Whether to fund this transaction with Naver Pay points or a card. + """ + + class NzBankAccount(StripeObject): + account_holder_name: Optional[str] + """ + The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + """ + bank_code: str + """ + The numeric code for the bank account's bank. + """ + bank_name: str + """ + The name of the bank. + """ + branch_code: str + """ + The numeric code for the bank account's bank branch. + """ + last4: str + """ + Last four digits of the bank account number. + """ + suffix: Optional[str] + """ + The suffix of the bank account number. + """ + + class Oxxo(StripeObject): + pass + + 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", + ] + ] + """ + The customer's bank, if provided. + """ + + class PayByBank(StripeObject): + pass + + class Payco(StripeObject): + pass + + class Paynow(StripeObject): + pass + + class Paypal(StripeObject): + country: Optional[str] + """ + Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same. + """ + payer_email: Optional[str] + """ + Owner's email. Values are provided by PayPal directly + (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + payer_id: Optional[str] + """ + PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + """ + verified_email: Optional[str] + """ + Owner's verified email. Values are verified or provided by PayPal directly + (if supported) at the time of authorization or settlement. They cannot be set or mutated. + """ + + class Paypay(StripeObject): + pass + + class Payto(StripeObject): + bsb_number: Optional[str] + """ + Bank-State-Branch number of the bank account. + """ + last4: Optional[str] + """ + Last four digits of the bank account number. + """ + pay_id: Optional[str] + """ + The PayID alias for the bank account. + """ + + class Pix(StripeObject): + pass + + class Promptpay(StripeObject): + pass + + class Qris(StripeObject): + pass + + class Rechnung(StripeObject): + class Dob(StripeObject): + day: int + """ + The day of birth, between 1 and 31. + """ + month: int + """ + The month of birth, between 1 and 12. + """ + year: int + """ + The four-digit year of birth. + """ + + dob: Optional[Dob] + _inner_class_types = {"dob": Dob} + + class RevolutPay(StripeObject): + pass + + class SamsungPay(StripeObject): + pass + + class Satispay(StripeObject): + pass + + class SepaDebit(StripeObject): + class GeneratedFrom(StripeObject): + charge: Optional[ExpandableField["Charge"]] + """ + The ID of the Charge that generated this PaymentMethod, if any. + """ + setup_attempt: Optional[ExpandableField["SetupAttempt"]] + """ + The ID of the SetupAttempt that generated this PaymentMethod, if any. + """ + + bank_code: Optional[str] + """ + Bank code of bank associated with the bank account. + """ + branch_code: Optional[str] + """ + Branch code of bank associated with the bank account. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country the bank account is located in. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + """ + generated_from: Optional[GeneratedFrom] + """ + Information about the object that generated this PaymentMethod. + """ + last4: Optional[str] + """ + Last four characters of the IBAN. + """ + _inner_class_types = {"generated_from": GeneratedFrom} + + class Shopeepay(StripeObject): + pass + + class Sofort(StripeObject): + country: Optional[str] + """ + Two-letter ISO code representing the country the bank account is located in. + """ + + class StripeBalance(StripeObject): + account: Optional[str] + """ + The connected account ID whose Stripe balance to use as the source of payment + """ + + class Sunbit(StripeObject): + pass + + class Swish(StripeObject): + pass + + class Twint(StripeObject): + pass + + class Upi(StripeObject): + vpa: Optional[str] + """ + Customer's unique Virtual Payment Address + """ + + class UsBankAccount(StripeObject): + class Networks(StripeObject): + preferred: Optional[str] + """ + The preferred network. + """ + supported: List[Literal["ach", "us_domestic_wire"]] + """ + All supported networks. + """ + + class StatusDetails(StripeObject): + class Blocked(StripeObject): + network_code: Optional[ + Literal[ + "R02", + "R03", + "R04", + "R05", + "R07", + "R08", + "R10", + "R11", + "R16", + "R20", + "R29", + "R31", + ] + ] + """ + The ACH network code that resulted in this block. + """ + reason: Optional[ + Literal[ + "bank_account_closed", + "bank_account_frozen", + "bank_account_invalid_details", + "bank_account_restricted", + "bank_account_unusable", + "debit_not_authorized", + "tokenized_account_number_deactivated", + ] + ] + """ + The reason why this PaymentMethod's fingerprint has been blocked + """ + + blocked: Optional[Blocked] + _inner_class_types = {"blocked": Blocked} + + account_holder_type: Optional[Literal["company", "individual"]] + """ + Account holder type: individual or company. + """ + account_number: Optional[str] + """ + Account number of the bank account. + """ + account_type: Optional[Literal["checking", "savings"]] + """ + Account type: checkings or savings. Defaults to checking if omitted. + """ + bank_name: Optional[str] + """ + The name of the bank. + """ + financial_connections_account: Optional[str] + """ + The ID of the Financial Connections Account used to create the payment method. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + """ + last4: Optional[str] + """ + Last four digits of the bank account number. + """ + networks: Optional[Networks] + """ + Contains information about US bank account networks that can be used. + """ + routing_number: Optional[str] + """ + Routing number of the bank account. + """ + status_details: Optional[StatusDetails] + """ + Contains information about the future reusability of this PaymentMethod. + """ + _inner_class_types = { + "networks": Networks, + "status_details": StatusDetails, + } + + class WechatPay(StripeObject): + pass + + class Zip(StripeObject): + pass + + acss_debit: Optional[AcssDebit] + affirm: Optional[Affirm] + afterpay_clearpay: Optional[AfterpayClearpay] + alipay: Optional[Alipay] + alma: Optional[Alma] + amazon_pay: Optional[AmazonPay] + au_becs_debit: Optional[AuBecsDebit] + bacs_debit: Optional[BacsDebit] + bancontact: Optional[Bancontact] + billie: Optional[Billie] + billing_details: Optional[BillingDetails] + """ + Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + """ + blik: Optional[Blik] + boleto: Optional[Boleto] + card: Optional[Card] + card_present: Optional[CardPresent] + cashapp: Optional[Cashapp] + crypto: Optional[Crypto] + customer_balance: Optional[CustomerBalance] + eps: Optional[Eps] + fpx: Optional[Fpx] + giropay: Optional[Giropay] + gopay: Optional[Gopay] + grabpay: Optional[Grabpay] + id_bank_transfer: Optional[IdBankTransfer] + ideal: Optional[Ideal] + interac_present: Optional[InteracPresent] + kakao_pay: Optional[KakaoPay] + klarna: Optional[Klarna] + konbini: Optional[Konbini] + kr_card: Optional[KrCard] + link: Optional[Link] + mb_way: Optional[MbWay] + mobilepay: Optional[Mobilepay] + multibanco: Optional[Multibanco] + naver_pay: Optional[NaverPay] + nz_bank_account: Optional[NzBankAccount] + oxxo: Optional[Oxxo] + p24: Optional[P24] + pay_by_bank: Optional[PayByBank] + payco: Optional[Payco] + paynow: Optional[Paynow] + paypal: Optional[Paypal] + paypay: Optional[Paypay] + payto: Optional[Payto] + pix: Optional[Pix] + promptpay: Optional[Promptpay] + qris: Optional[Qris] + rechnung: Optional[Rechnung] + revolut_pay: Optional[RevolutPay] + samsung_pay: Optional[SamsungPay] + satispay: Optional[Satispay] + sepa_debit: Optional[SepaDebit] + shopeepay: Optional[Shopeepay] + sofort: Optional[Sofort] + stripe_balance: Optional[StripeBalance] + sunbit: Optional[Sunbit] + swish: Optional[Swish] + twint: Optional[Twint] + type: Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "card", + "card_present", + "cashapp", + "crypto", + "custom", + "customer_balance", + "eps", + "fpx", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "interac_present", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "paypay", + "payto", + "pix", + "promptpay", + "qris", + "rechnung", + "revolut_pay", + "samsung_pay", + "satispay", + "sepa_debit", + "shopeepay", + "sofort", + "stripe_balance", + "sunbit", + "swish", + "twint", + "upi", + "us_bank_account", + "wechat_pay", + "zip", + ] + """ + The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. + """ + upi: Optional[Upi] + us_bank_account: Optional[UsBankAccount] + wechat_pay: Optional[WechatPay] + zip: Optional[Zip] + _inner_class_types = { + "acss_debit": AcssDebit, + "affirm": Affirm, + "afterpay_clearpay": AfterpayClearpay, + "alipay": Alipay, + "alma": Alma, + "amazon_pay": AmazonPay, + "au_becs_debit": AuBecsDebit, + "bacs_debit": BacsDebit, + "bancontact": Bancontact, + "billie": Billie, + "billing_details": BillingDetails, + "blik": Blik, + "boleto": Boleto, + "card": Card, + "card_present": CardPresent, + "cashapp": Cashapp, + "crypto": Crypto, + "customer_balance": CustomerBalance, + "eps": Eps, + "fpx": Fpx, + "giropay": Giropay, + "gopay": Gopay, + "grabpay": Grabpay, + "id_bank_transfer": IdBankTransfer, + "ideal": Ideal, + "interac_present": InteracPresent, + "kakao_pay": KakaoPay, + "klarna": Klarna, + "konbini": Konbini, + "kr_card": KrCard, + "link": Link, + "mb_way": MbWay, + "mobilepay": Mobilepay, + "multibanco": Multibanco, + "naver_pay": NaverPay, + "nz_bank_account": NzBankAccount, + "oxxo": Oxxo, + "p24": P24, + "pay_by_bank": PayByBank, + "payco": Payco, + "paynow": Paynow, + "paypal": Paypal, + "paypay": Paypay, + "payto": Payto, + "pix": Pix, + "promptpay": Promptpay, + "qris": Qris, + "rechnung": Rechnung, + "revolut_pay": RevolutPay, + "samsung_pay": SamsungPay, + "satispay": Satispay, + "sepa_debit": SepaDebit, + "shopeepay": Shopeepay, + "sofort": Sofort, + "stripe_balance": StripeBalance, + "sunbit": Sunbit, + "swish": Swish, + "twint": Twint, + "upi": Upi, + "us_bank_account": UsBankAccount, + "wechat_pay": WechatPay, + "zip": Zip, + } + + class RiskDetails(StripeObject): + class Insights(StripeObject): + class Bot(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: float + """ + Risk score for this insight. + """ + + class CardIssuerDecline(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: float + """ + Risk score for this insight. + """ + + class CardTesting(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: float + """ + Risk score for this insight. + """ + + class FraudulentDispute(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: int + """ + Risk score for this insight. + """ + + class StolenCard(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: int + """ + Risk score for this insight. + """ + + bot: Optional[Bot] + """ + Bot risk insight. + """ + card_issuer_decline: Optional[CardIssuerDecline] + """ + Card issuer decline risk insight. + """ + card_testing: Optional[CardTesting] + """ + Card testing risk insight. + """ + fraudulent_dispute: Optional[FraudulentDispute] + """ + Fraudulent dispute risk insight. + """ + stolen_card: Optional[StolenCard] + """ + Stolen card risk insight. + """ + _inner_class_types = { + "bot": Bot, + "card_issuer_decline": CardIssuerDecline, + "card_testing": CardTesting, + "fraudulent_dispute": FraudulentDispute, + "stolen_card": StolenCard, + } + + insights: Insights + """ + Risk insights for this token, including scores and recommended actions for each risk type. + """ + _inner_class_types = {"insights": Insights} + + class UsageDetails(StripeObject): + class AmountCaptured(StripeObject): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + value: int + """ + Integer value of the amount in the smallest currency unit. + """ + + amount_captured: Optional[AmountCaptured] + """ + The total amount captured using this SharedPaymentToken. + """ + _inner_class_types = {"amount_captured": AmountCaptured} + + class UsageLimits(StripeObject): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + expires_at: Optional[int] + """ + Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + """ + max_amount: int + """ + Max amount that can be captured using this SharedPaymentToken. + """ + + agent_details: Optional[AgentDetails] + """ + Details about the agent that issued this SharedPaymentGrantedToken. + """ + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + deactivated_at: Optional[int] + """ + Time at which this SharedPaymentGrantedToken expires and can no longer be used to confirm a PaymentIntent. + """ + deactivated_reason: Optional[ + Literal["consumed", "expired", "resolved", "revoked"] + ] + """ + The reason why the SharedPaymentGrantedToken has been deactivated. + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + object: Literal["shared_payment.granted_token"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + payment_method_details: Optional[PaymentMethodDetails] + """ + Details of the PaymentMethod that was shared via this token. + """ + risk_details: Optional[RiskDetails] + """ + Risk details of the SharedPaymentGrantedToken. + """ + shared_metadata: Optional[UntypedStripeObject[str]] + """ + Metadata about the SharedPaymentGrantedToken. + """ + usage_details: Optional[UsageDetails] + """ + Some details about how the SharedPaymentGrantedToken has been used already. + """ + usage_limits: Optional[UsageLimits] + """ + Limits on how this SharedPaymentGrantedToken can be used. + """ + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["GrantedTokenRetrieveParams"] + ) -> "GrantedToken": + """ + Retrieves an existing SharedPaymentGrantedToken object + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["GrantedTokenRetrieveParams"] + ) -> "GrantedToken": + """ + Retrieves an existing SharedPaymentGrantedToken object + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance + + class TestHelpers(APIResourceTestHelpers["GrantedToken"]): + _resource_cls: Type["GrantedToken"] + + @classmethod + def create( + cls, **params: Unpack["GrantedTokenCreateParams"] + ) -> "GrantedToken": + """ + Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + cls._static_request( + "post", + "/v1/test_helpers/shared_payment/granted_tokens", + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["GrantedTokenCreateParams"] + ) -> "GrantedToken": + """ + Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + await cls._static_request_async( + "post", + "/v1/test_helpers/shared_payment/granted_tokens", + params=params, + ), + ) + + @classmethod + def _cls_revoke( + cls, + shared_payment_granted_token: str, + **params: Unpack["GrantedTokenRevokeParams"], + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + cls._static_request( + "post", + "/v1/test_helpers/shared_payment/granted_tokens/{shared_payment_granted_token}/revoke".format( + shared_payment_granted_token=sanitize_id( + shared_payment_granted_token + ) + ), + params=params, + ), + ) + + @overload + @staticmethod + def revoke( + shared_payment_granted_token: str, + **params: Unpack["GrantedTokenRevokeParams"], + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + ... + + @overload + def revoke( + self, **params: Unpack["GrantedTokenRevokeParams"] + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + ... + + @class_method_variant("_cls_revoke") + def revoke( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["GrantedTokenRevokeParams"] + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + self.resource._request( + "post", + "/v1/test_helpers/shared_payment/granted_tokens/{shared_payment_granted_token}/revoke".format( + shared_payment_granted_token=sanitize_id( + self.resource._data.get("id") + ) + ), + params=params, + ), + ) + + @classmethod + async def _cls_revoke_async( + cls, + shared_payment_granted_token: str, + **params: Unpack["GrantedTokenRevokeParams"], + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + await cls._static_request_async( + "post", + "/v1/test_helpers/shared_payment/granted_tokens/{shared_payment_granted_token}/revoke".format( + shared_payment_granted_token=sanitize_id( + shared_payment_granted_token + ) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def revoke_async( + shared_payment_granted_token: str, + **params: Unpack["GrantedTokenRevokeParams"], + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + ... + + @overload + async def revoke_async( + self, **params: Unpack["GrantedTokenRevokeParams"] + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + ... + + @class_method_variant("_cls_revoke_async") + async def revoke_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["GrantedTokenRevokeParams"] + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + await self.resource._request_async( + "post", + "/v1/test_helpers/shared_payment/granted_tokens/{shared_payment_granted_token}/revoke".format( + shared_payment_granted_token=sanitize_id( + self.resource._data.get("id") + ) + ), + params=params, + ), + ) + + @property + def test_helpers(self): + return self.TestHelpers(self) + + _inner_class_types = { + "agent_details": AgentDetails, + "payment_method_details": PaymentMethodDetails, + "risk_details": RiskDetails, + "usage_details": UsageDetails, + "usage_limits": UsageLimits, + } + + +GrantedToken.TestHelpers._resource_cls = GrantedToken diff --git a/stripe/shared_payment/_granted_token_service.py b/stripe/shared_payment/_granted_token_service.py new file mode 100644 index 000000000..686c89bc7 --- /dev/null +++ b/stripe/shared_payment/_granted_token_service.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.shared_payment._granted_token_retrieve_params import ( + GrantedTokenRetrieveParams, + ) + from stripe.shared_payment._granted_token import GrantedToken + + +class GrantedTokenService(StripeService): + def retrieve( + self, + shared_payment_granted_token: str, + params: Optional["GrantedTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "GrantedToken": + """ + Retrieves an existing SharedPaymentGrantedToken object + """ + return cast( + "GrantedToken", + self._request( + "get", + "/v1/shared_payment/granted_tokens/{shared_payment_granted_token}".format( + shared_payment_granted_token=sanitize_id( + shared_payment_granted_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + shared_payment_granted_token: str, + params: Optional["GrantedTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "GrantedToken": + """ + Retrieves an existing SharedPaymentGrantedToken object + """ + return cast( + "GrantedToken", + await self._request_async( + "get", + "/v1/shared_payment/granted_tokens/{shared_payment_granted_token}".format( + shared_payment_granted_token=sanitize_id( + shared_payment_granted_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/shared_payment/_issued_token.py b/stripe/shared_payment/_issued_token.py new file mode 100644 index 000000000..451e624a2 --- /dev/null +++ b/stripe/shared_payment/_issued_token.py @@ -0,0 +1,425 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource +from stripe._stripe_object import StripeObject, UntypedStripeObject +from stripe._util import class_method_variant, sanitize_id +from typing import ClassVar, Optional, cast, overload +from typing_extensions import Literal, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.shared_payment._issued_token_create_params import ( + IssuedTokenCreateParams, + ) + from stripe.params.shared_payment._issued_token_retrieve_params import ( + IssuedTokenRetrieveParams, + ) + from stripe.params.shared_payment._issued_token_revoke_params import ( + IssuedTokenRevokeParams, + ) + + +class IssuedToken(CreateableAPIResource["IssuedToken"]): + """ + A SharedPaymentIssuedToken is a limited-use reference to a PaymentMethod that can be created with a secret key. When shared with another Stripe account (Seller), it enables that account to either process a payment on Stripe against a PaymentMethod that your Stripe account owns, or to forward a usable credential created against the originalPaymentMethod to then process the payment off-Stripe. + """ + + OBJECT_NAME: ClassVar[Literal["shared_payment.issued_token"]] = ( + "shared_payment.issued_token" + ) + + class NextAction(StripeObject): + class UseStripeSdk(StripeObject): + value: str + """ + A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the next action. Its content is subject to change. + """ + + type: Literal["use_stripe_sdk"] + """ + Specifies the type of next action required. Determines which child attribute contains action details. + """ + use_stripe_sdk: Optional[UseStripeSdk] + """ + Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present when `next_action.type` is `use_stripe_sdk`. + """ + _inner_class_types = {"use_stripe_sdk": UseStripeSdk} + + class RiskDetails(StripeObject): + class Insights(StripeObject): + class Bot(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: float + """ + Risk score for this insight. + """ + + class CardIssuerDecline(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: float + """ + Risk score for this insight. + """ + + class CardTesting(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: float + """ + Risk score for this insight. + """ + + class FraudulentDispute(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: int + """ + Risk score for this insight. + """ + + class StolenCard(StripeObject): + recommended_action: str + """ + Recommended action for this insight. + """ + score: int + """ + Risk score for this insight. + """ + + bot: Optional[Bot] + """ + Bot risk insight. + """ + card_issuer_decline: Optional[CardIssuerDecline] + """ + Card issuer decline risk insight. + """ + card_testing: Optional[CardTesting] + """ + Card testing risk insight. + """ + fraudulent_dispute: Optional[FraudulentDispute] + """ + Fraudulent dispute risk insight. + """ + stolen_card: Optional[StolenCard] + """ + Stolen card risk insight. + """ + _inner_class_types = { + "bot": Bot, + "card_issuer_decline": CardIssuerDecline, + "card_testing": CardTesting, + "fraudulent_dispute": FraudulentDispute, + "stolen_card": StolenCard, + } + + insights: Insights + """ + Risk insights for this token, including scores and recommended actions for each risk type. + """ + _inner_class_types = {"insights": Insights} + + class SellerDetails(StripeObject): + external_id: str + """ + A unique id within a network that identifies a logical seller. This should usually be the merchant id on the seller platform. + """ + network_business_profile: str + """ + The unique and logical string that identifies the seller platform that this SharedToken is being created for. + """ + + class UsageDetails(StripeObject): + class AmountCaptured(StripeObject): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + value: int + """ + Integer value of the amount in the smallest currency unit. + """ + + amount_captured: Optional[AmountCaptured] + """ + The total amount captured using this SharedPaymentToken. + """ + _inner_class_types = {"amount_captured": AmountCaptured} + + class UsageLimits(StripeObject): + currency: str + """ + Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + """ + expires_at: Optional[int] + """ + Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + """ + max_amount: int + """ + Max amount that can be captured using this SharedPaymentToken. + """ + + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + deactivated_at: Optional[int] + """ + Time at which this SharedPaymentIssuedToken was deactivated. + """ + deactivated_reason: Optional[ + Literal["consumed", "expired", "resolved", "revoked"] + ] + """ + The reason why the SharedPaymentIssuedToken has been deactivated. + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + next_action: Optional[NextAction] + """ + If present, describes the action required to make this `SharedPaymentIssuedToken` usable for payments. Present when the token is in `requires_action` state. + """ + object: Literal["shared_payment.issued_token"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + payment_method: str + """ + ID of an existing PaymentMethod. + """ + return_url: Optional[str] + """ + If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. + """ + risk_details: Optional[RiskDetails] + """ + Risk details of the SharedPaymentIssuedToken. + """ + seller_details: Optional[SellerDetails] + """ + Seller details of the SharedPaymentIssuedToken, including network_id and external_id. + """ + setup_future_usage: Optional[Literal["on_session"]] + """ + Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later. + """ + shared_metadata: Optional[UntypedStripeObject[str]] + """ + Metadata about the SharedPaymentIssuedToken. + """ + status: Optional[Literal["active", "deactivated", "requires_action"]] + """ + Status of this SharedPaymentIssuedToken, one of `active`, `requires_action`, or `deactivated`. + """ + usage_details: Optional[UsageDetails] + """ + Usage details of the SharedPaymentIssuedToken + """ + usage_limits: Optional[UsageLimits] + """ + Usage limits of the SharedPaymentIssuedToken. + """ + + @classmethod + def create( + cls, **params: Unpack["IssuedTokenCreateParams"] + ) -> "IssuedToken": + """ + Creates a new SharedPaymentIssuedToken object + """ + return cast( + "IssuedToken", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["IssuedTokenCreateParams"] + ) -> "IssuedToken": + """ + Creates a new SharedPaymentIssuedToken object + """ + return cast( + "IssuedToken", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["IssuedTokenRetrieveParams"] + ) -> "IssuedToken": + """ + Retrieves an existing SharedPaymentIssuedToken object + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["IssuedTokenRetrieveParams"] + ) -> "IssuedToken": + """ + Retrieves an existing SharedPaymentIssuedToken object + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance + + @classmethod + def _cls_revoke( + cls, + shared_payment_issued_token: str, + **params: Unpack["IssuedTokenRevokeParams"], + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + return cast( + "IssuedToken", + cls._static_request( + "post", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}/revoke".format( + shared_payment_issued_token=sanitize_id( + shared_payment_issued_token + ) + ), + params=params, + ), + ) + + @overload + @staticmethod + def revoke( + shared_payment_issued_token: str, + **params: Unpack["IssuedTokenRevokeParams"], + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + ... + + @overload + def revoke( + self, **params: Unpack["IssuedTokenRevokeParams"] + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + ... + + @class_method_variant("_cls_revoke") + def revoke( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["IssuedTokenRevokeParams"] + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + return cast( + "IssuedToken", + self._request( + "post", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}/revoke".format( + shared_payment_issued_token=sanitize_id( + self._data.get("id") + ) + ), + params=params, + ), + ) + + @classmethod + async def _cls_revoke_async( + cls, + shared_payment_issued_token: str, + **params: Unpack["IssuedTokenRevokeParams"], + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + return cast( + "IssuedToken", + await cls._static_request_async( + "post", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}/revoke".format( + shared_payment_issued_token=sanitize_id( + shared_payment_issued_token + ) + ), + params=params, + ), + ) + + @overload + @staticmethod + async def revoke_async( + shared_payment_issued_token: str, + **params: Unpack["IssuedTokenRevokeParams"], + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + ... + + @overload + async def revoke_async( + self, **params: Unpack["IssuedTokenRevokeParams"] + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + ... + + @class_method_variant("_cls_revoke_async") + async def revoke_async( # pyright: ignore[reportGeneralTypeIssues] + self, **params: Unpack["IssuedTokenRevokeParams"] + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + return cast( + "IssuedToken", + await self._request_async( + "post", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}/revoke".format( + shared_payment_issued_token=sanitize_id( + self._data.get("id") + ) + ), + params=params, + ), + ) + + _inner_class_types = { + "next_action": NextAction, + "risk_details": RiskDetails, + "seller_details": SellerDetails, + "usage_details": UsageDetails, + "usage_limits": UsageLimits, + } diff --git a/stripe/shared_payment/_issued_token_service.py b/stripe/shared_payment/_issued_token_service.py new file mode 100644 index 000000000..53d847f40 --- /dev/null +++ b/stripe/shared_payment/_issued_token_service.py @@ -0,0 +1,155 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.shared_payment._issued_token_create_params import ( + IssuedTokenCreateParams, + ) + from stripe.params.shared_payment._issued_token_retrieve_params import ( + IssuedTokenRetrieveParams, + ) + from stripe.params.shared_payment._issued_token_revoke_params import ( + IssuedTokenRevokeParams, + ) + from stripe.shared_payment._issued_token import IssuedToken + + +class IssuedTokenService(StripeService): + def retrieve( + self, + shared_payment_issued_token: str, + params: Optional["IssuedTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "IssuedToken": + """ + Retrieves an existing SharedPaymentIssuedToken object + """ + return cast( + "IssuedToken", + self._request( + "get", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}".format( + shared_payment_issued_token=sanitize_id( + shared_payment_issued_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + shared_payment_issued_token: str, + params: Optional["IssuedTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "IssuedToken": + """ + Retrieves an existing SharedPaymentIssuedToken object + """ + return cast( + "IssuedToken", + await self._request_async( + "get", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}".format( + shared_payment_issued_token=sanitize_id( + shared_payment_issued_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "IssuedTokenCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "IssuedToken": + """ + Creates a new SharedPaymentIssuedToken object + """ + return cast( + "IssuedToken", + self._request( + "post", + "/v1/shared_payment/issued_tokens", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "IssuedTokenCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "IssuedToken": + """ + Creates a new SharedPaymentIssuedToken object + """ + return cast( + "IssuedToken", + await self._request_async( + "post", + "/v1/shared_payment/issued_tokens", + base_address="api", + params=params, + options=options, + ), + ) + + def revoke( + self, + shared_payment_issued_token: str, + params: Optional["IssuedTokenRevokeParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + return cast( + "IssuedToken", + self._request( + "post", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}/revoke".format( + shared_payment_issued_token=sanitize_id( + shared_payment_issued_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def revoke_async( + self, + shared_payment_issued_token: str, + params: Optional["IssuedTokenRevokeParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "IssuedToken": + """ + Revokes a SharedPaymentIssuedToken + """ + return cast( + "IssuedToken", + await self._request_async( + "post", + "/v1/shared_payment/issued_tokens/{shared_payment_issued_token}/revoke".format( + shared_payment_issued_token=sanitize_id( + shared_payment_issued_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index e404e2e70..292dfbf31 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -103,8 +103,10 @@ class TaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -113,6 +115,7 @@ class TaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -143,6 +146,7 @@ class TaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -173,7 +177,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: str """ @@ -514,7 +518,7 @@ class FlatAmount(StripeObject): """ tax_date: int """ - Timestamp of date at which the tax rules and rates in effect applies for the calculation. + The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window. """ @classmethod diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index f894db8f7..c135e8cd4 100644 --- a/stripe/tax/_transaction.py +++ b/stripe/tax/_transaction.py @@ -106,8 +106,10 @@ class TaxId(StripeObject): "et_tin", "eu_oss_vat", "eu_vat", + "fo_vat", "gb_vat", "ge_vat", + "gi_tin", "gn_nif", "hk_br", "hr_oib", @@ -116,6 +118,7 @@ class TaxId(StripeObject): "il_vat", "in_gst", "is_vat", + "it_cf", "jp_cn", "jp_rn", "jp_trn", @@ -146,6 +149,7 @@ class TaxId(StripeObject): "pe_ruc", "ph_tin", "pl_nip", + "py_ruc", "ro_tin", "rs_pib", "ru_inn", @@ -176,7 +180,7 @@ class TaxId(StripeObject): "zw_tin", ] """ - The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `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`, or `unknown` + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `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`, or `unknown` """ value: str """ @@ -425,7 +429,7 @@ class TaxRateDetails(StripeObject): """ tax_date: int """ - Timestamp of date at which the tax rules and rates in effect applies for the calculation. + The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window. """ type: Literal["reversal", "transaction"] """ diff --git a/stripe/test_helpers/__init__.py b/stripe/test_helpers/__init__.py index ec9625f6c..5d9492927 100644 --- a/stripe/test_helpers/__init__.py +++ b/stripe/test_helpers/__init__.py @@ -6,6 +6,7 @@ if TYPE_CHECKING: from stripe.test_helpers import ( issuing as issuing, + shared_payment as shared_payment, terminal as terminal, treasury as treasury, ) @@ -21,6 +22,9 @@ from stripe.test_helpers._refund_service import ( RefundService as RefundService, ) + from stripe.test_helpers._shared_payment_service import ( + SharedPaymentService as SharedPaymentService, + ) from stripe.test_helpers._terminal_service import ( TerminalService as TerminalService, ) @@ -35,6 +39,7 @@ # name -> (import_target, is_submodule) _import_map = { "issuing": ("stripe.test_helpers.issuing", True), + "shared_payment": ("stripe.test_helpers.shared_payment", True), "terminal": ("stripe.test_helpers.terminal", True), "treasury": ("stripe.test_helpers.treasury", True), "ConfirmationTokenService": ( @@ -44,6 +49,10 @@ "CustomerService": ("stripe.test_helpers._customer_service", False), "IssuingService": ("stripe.test_helpers._issuing_service", False), "RefundService": ("stripe.test_helpers._refund_service", False), + "SharedPaymentService": ( + "stripe.test_helpers._shared_payment_service", + False, + ), "TerminalService": ("stripe.test_helpers._terminal_service", False), "TestClock": ("stripe.test_helpers._test_clock", False), "TestClockService": ("stripe.test_helpers._test_clock_service", False), diff --git a/stripe/test_helpers/_shared_payment_service.py b/stripe/test_helpers/_shared_payment_service.py new file mode 100644 index 000000000..b69243dd9 --- /dev/null +++ b/stripe/test_helpers/_shared_payment_service.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.test_helpers.shared_payment._granted_token_service import ( + GrantedTokenService, + ) + +_subservices = { + "granted_tokens": [ + "stripe.test_helpers.shared_payment._granted_token_service", + "GrantedTokenService", + ], +} + + +class SharedPaymentService(StripeService): + granted_tokens: "GrantedTokenService" + + def __init__(self, requestor): + super().__init__(requestor) + + def __getattr__(self, name): + try: + import_from, service = _subservices[name] + service_class = getattr( + import_module(import_from), + service, + ) + setattr( + self, + name, + service_class(self._requestor), + ) + return getattr(self, name) + except KeyError: + raise AttributeError() diff --git a/stripe/test_helpers/shared_payment/__init__.py b/stripe/test_helpers/shared_payment/__init__.py new file mode 100644 index 000000000..6301289b7 --- /dev/null +++ b/stripe/test_helpers/shared_payment/__init__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.test_helpers.shared_payment._granted_token_service import ( + GrantedTokenService as GrantedTokenService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "GrantedTokenService": ( + "stripe.test_helpers.shared_payment._granted_token_service", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/test_helpers/shared_payment/_granted_token_service.py b/stripe/test_helpers/shared_payment/_granted_token_service.py new file mode 100644 index 000000000..66bfd21b2 --- /dev/null +++ b/stripe/test_helpers/shared_payment/_granted_token_service.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.test_helpers.shared_payment._granted_token_create_params import ( + GrantedTokenCreateParams, + ) + from stripe.params.test_helpers.shared_payment._granted_token_revoke_params import ( + GrantedTokenRevokeParams, + ) + from stripe.shared_payment._granted_token import GrantedToken + + +class GrantedTokenService(StripeService): + def create( + self, + params: "GrantedTokenCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "GrantedToken": + """ + Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + self._request( + "post", + "/v1/test_helpers/shared_payment/granted_tokens", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "GrantedTokenCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "GrantedToken": + """ + Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + await self._request_async( + "post", + "/v1/test_helpers/shared_payment/granted_tokens", + base_address="api", + params=params, + options=options, + ), + ) + + def revoke( + self, + shared_payment_granted_token: str, + params: Optional["GrantedTokenRevokeParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + self._request( + "post", + "/v1/test_helpers/shared_payment/granted_tokens/{shared_payment_granted_token}/revoke".format( + shared_payment_granted_token=sanitize_id( + shared_payment_granted_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def revoke_async( + self, + shared_payment_granted_token: str, + params: Optional["GrantedTokenRevokeParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "GrantedToken": + """ + Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + """ + return cast( + "GrantedToken", + await self._request_async( + "post", + "/v1/test_helpers/shared_payment/granted_tokens/{shared_payment_granted_token}/revoke".format( + shared_payment_granted_token=sanitize_id( + shared_payment_granted_token + ), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/treasury/_outbound_payment.py b/stripe/treasury/_outbound_payment.py index 237d23370..e3177e83d 100644 --- a/stripe/treasury/_outbound_payment.py +++ b/stripe/treasury/_outbound_payment.py @@ -295,6 +295,10 @@ class UsDomesticWire(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + purpose: Optional[Literal["payroll"]] + """ + The purpose of the OutboundPayment, if applicable. + """ returned_details: Optional[ReturnedDetails] """ Details about a returned OutboundPayment. Only set when the status is `returned`. diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 9c431b8ab..760159d7e 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -43805,8 +43805,6 @@ def test_v2_billing_cadence_post_service( client.v2.billing.cadences.create( { "billing_cycle": { - "interval_count": 797691627, - "type": "week", "day": { "time": { "hour": 3208676, @@ -43814,6 +43812,7 @@ def test_v2_billing_cadence_post_service( "second": 906279820, }, }, + "interval_count": 797691627, "month": { "day_of_month": 1361669285, "month_of_year": 82933018, @@ -43823,6 +43822,7 @@ def test_v2_billing_cadence_post_service( "second": 906279820, }, }, + "type": "week", "week": { "day_of_week": 43636807, "time": { @@ -43849,7 +43849,7 @@ def test_v2_billing_cadence_post_service( path="/v2/billing/cadences", query_string="", api_base="https://api.stripe.com", - post_data='{"billing_cycle":{"interval_count":797691627,"type":"week","day":{"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"month":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"week":{"day_of_week":43636807,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"year":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}}},"payer":{"billing_profile":"billing_profile"}}', + post_data='{"billing_cycle":{"day":{"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"interval_count":797691627,"month":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"type":"week","week":{"day_of_week":43636807,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"year":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}}},"payer":{"billing_profile":"billing_profile"}}', is_json=True, ) @@ -44521,7 +44521,6 @@ def test_v2_core_account_link_post_service( { "account": "account", "use_case": { - "type": "account_onboarding", "account_onboarding": { "collection_options": { "fields": "eventually_due", @@ -44540,6 +44539,7 @@ def test_v2_core_account_link_post_service( "refresh_url": "refresh_url", "return_url": "return_url", }, + "type": "account_onboarding", }, } ) @@ -44548,7 +44548,7 @@ def test_v2_core_account_link_post_service( path="/v2/core/account_links", query_string="", api_base="https://api.stripe.com", - post_data='{"account":"account","use_case":{"type":"account_onboarding","account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"}}}', + post_data='{"account":"account","use_case":{"account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"type":"account_onboarding"}}', is_json=True, )