diff --git a/API_VERSION b/API_VERSION index 0effa37ed..24e270edd 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -5a9ac40aabbc00a67ae2a186633fc8dd64b25c56 +c0dacb8d26f5b7c5d68ef88b3f51d40c1eafeab7 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 38c345727..ea1ecdee1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2103 +v2124 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index b68e8a3b5..4f63f5a23 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -183,6 +183,10 @@ class SupportAddress(StripeObject): """ Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes. """ + specified_commercial_transactions_act_url: Optional[str] + """ + A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan. + """ support_address: Optional[SupportAddress] """ A publicly available mailing address for sending support issues to. @@ -1487,6 +1491,12 @@ class Schedule(StripeObject): """ _inner_class_types = {"schedule": Schedule} + class PaypayPayments(StripeObject): + goods_type: Optional[Literal["digital_content", "other"]] + """ + Whether your business sells digital content or not. + """ + class SepaDebitPayments(StripeObject): creditor_id: Optional[str] """ @@ -1527,6 +1537,7 @@ class TosAcceptance(StripeObject): invoices: Optional[Invoices] payments: Payments payouts: Optional[Payouts] + paypay_payments: Optional[PaypayPayments] sepa_debit_payments: Optional[SepaDebitPayments] tax_forms: Optional[TaxForms] treasury: Optional[Treasury] @@ -1541,6 +1552,7 @@ class TosAcceptance(StripeObject): "invoices": Invoices, "payments": Payments, "payouts": Payouts, + "paypay_payments": PaypayPayments, "sepa_debit_payments": SepaDebitPayments, "tax_forms": TaxForms, "treasury": Treasury, diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py index c45992e82..141769402 100644 --- a/stripe/_api_requestor.py +++ b/stripe/_api_requestor.py @@ -634,7 +634,7 @@ def _args_for_request_with_retries( **params, } - encoded_params = urlencode(list(_api_encode(params or {}, api_mode))) + encoded_params = urlencode(list(_api_encode(params or {}))) # Don't use strict form encoding by changing the square bracket control # characters back to their literals. This is fine by the server, and diff --git a/stripe/_api_version.py b/stripe/_api_version.py index da2f6b5bd..fa105a51e 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 = "2025-10-29.preview" + CURRENT = "2025-11-17.preview" diff --git a/stripe/_bank_account.py b/stripe/_bank_account.py index 4a2c291df..f90c571fb 100644 --- a/stripe/_bank_account.py +++ b/stripe/_bank_account.py @@ -378,9 +378,9 @@ class Error(StripeObject): """ status: str """ - For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated. + For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, `tokenized_account_number_deactivated` or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If the status is `tokenized_account_number_deactivated`, the account utilizes a tokenized account number which has been deactivated due to expiration or revocation. This account will need to be reverified to continue using it for money movement. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated. - For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. + For external accounts, possible values are `new`, `errored`, `verification_failed`, and `tokenized_account_number_deactivated`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. """ @classmethod diff --git a/stripe/_charge.py b/stripe/_charge.py index a71352ebd..261090c00 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1273,6 +1273,7 @@ class Ideal(StripeObject): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -1289,7 +1290,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -1298,6 +1299,7 @@ class Ideal(StripeObject): "BITSNL2A", "BUNQNL2A", "BUUTNL2A", + "FNOMNL22", "FVLBNL22", "HANDNL2A", "INGBNL2A", @@ -1328,6 +1330,10 @@ class Ideal(StripeObject): """ Last four characters of the IBAN. """ + transaction_id: Optional[str] + """ + Unique transaction ID generated by iDEAL. + """ verified_name: Optional[str] """ Owner's verified full name. Values are verified or provided by iDEAL directly diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index a9186cff8..1be116035 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -957,6 +957,7 @@ class Ideal(StripeObject): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -973,7 +974,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -982,6 +983,7 @@ class Ideal(StripeObject): "BITSNL2A", "BUNQNL2A", "BUUTNL2A", + "FNOMNL22", "FVLBNL22", "HANDNL2A", "INGBNL2A", @@ -1423,6 +1425,7 @@ class Blocked(StripeObject): "bank_account_restricted", "bank_account_unusable", "debit_not_authorized", + "tokenized_account_number_deactivated", ] ] """ diff --git a/stripe/_encode.py b/stripe/_encode.py index 8ad5f484f..228edfdc6 100644 --- a/stripe/_encode.py +++ b/stripe/_encode.py @@ -2,7 +2,7 @@ import datetime import time from collections import OrderedDict -from typing import Generator, Optional, Tuple, Any +from typing import Generator, Tuple, Any def _encode_datetime(dttime: datetime.datetime): @@ -27,9 +27,7 @@ def _json_encode_date_callback(value): return value -def _api_encode( - data, api_mode: Optional[str] -) -> Generator[Tuple[str, Any], None, None]: +def _api_encode(data) -> Generator[Tuple[str, Any], None, None]: for key, value in data.items(): if value is None: continue @@ -37,16 +35,17 @@ def _api_encode( yield (key, value.stripe_id) elif isinstance(value, list) or isinstance(value, tuple): for i, sv in enumerate(value): - encoded_key = key if api_mode == "V2" else "%s[%d]" % (key, i) + # Always use indexed format for arrays + encoded_key = "%s[%d]" % (key, i) if isinstance(sv, dict): subdict = _encode_nested_dict(encoded_key, sv) - for k, v in _api_encode(subdict, api_mode): + for k, v in _api_encode(subdict): yield (k, v) else: yield (encoded_key, sv) elif isinstance(value, dict): subdict = _encode_nested_dict(key, value) - for subkey, subvalue in _api_encode(subdict, api_mode): + for subkey, subvalue in _api_encode(subdict): yield (subkey, subvalue) elif isinstance(value, datetime.datetime): yield (key, _encode_datetime(value)) diff --git a/stripe/_event.py b/stripe/_event.py index ef55f3f9d..47b561f2a 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -162,6 +162,7 @@ class Request(StripeObject): "billing_portal.session.created", "capability.updated", "capital.financing_offer.accepted", + "capital.financing_offer.accepted_other_offer", "capital.financing_offer.canceled", "capital.financing_offer.created", "capital.financing_offer.expired", @@ -229,6 +230,7 @@ class Request(StripeObject): "customer_cash_balance_transaction.created", "entitlements.active_entitlement_summary.updated", "file.created", + "financial_connections.account.account_numbers_updated", "financial_connections.account.created", "financial_connections.account.deactivated", "financial_connections.account.disconnected", @@ -237,6 +239,7 @@ class Request(StripeObject): "financial_connections.account.refreshed_inferred_balances", "financial_connections.account.refreshed_ownership", "financial_connections.account.refreshed_transactions", + "financial_connections.account.upcoming_account_number_expiry", "financial_connections.session.updated", "fx_quote.expired", "identity.verification_session.canceled", diff --git a/stripe/_mandate.py b/stripe/_mandate.py index a02b82012..cbc41da01 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -162,7 +162,7 @@ class Payto(StripeObject): """ amount_type: Literal["fixed", "maximum"] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: Optional[str] """ @@ -179,7 +179,7 @@ class Payto(StripeObject): "weekly", ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: Optional[int] """ @@ -201,7 +201,7 @@ class Payto(StripeObject): ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: Optional[str] """ diff --git a/stripe/_multipart_data_generator.py b/stripe/_multipart_data_generator.py index 1e0be2ba1..3151df83e 100644 --- a/stripe/_multipart_data_generator.py +++ b/stripe/_multipart_data_generator.py @@ -19,7 +19,7 @@ def __init__(self, chunk_size: int = 1028): def add_params(self, params): # Flatten parameters first - params = dict(_api_encode(params, "V1")) + params = dict(_api_encode(params)) for key, value in params.items(): if value is None: diff --git a/stripe/_oauth.py b/stripe/_oauth.py index 8f6b9d5dd..ba0214548 100644 --- a/stripe/_oauth.py +++ b/stripe/_oauth.py @@ -323,7 +323,7 @@ def authorize_url( OAuth._set_client_id(params) if "response_type" not in params: params["response_type"] = "code" - query = urlencode(list(_api_encode(params, "V1"))) + query = urlencode(list(_api_encode(params))) url = connect_api_base + path + "?" + query return url diff --git a/stripe/_oauth_service.py b/stripe/_oauth_service.py index 3744f9533..b02260a14 100644 --- a/stripe/_oauth_service.py +++ b/stripe/_oauth_service.py @@ -64,7 +64,7 @@ def authorize_url( self._set_client_id(params) if "response_type" not in params: params["response_type"] = "code" - query = urlencode(list(_api_encode(params, "V1"))) + query = urlencode(list(_api_encode(params))) # connect_api_base will be always set to stripe.DEFAULT_CONNECT_API_BASE # if it is not overridden on the client explicitly. diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index 5ef4f6c1f..f9829c366 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -417,6 +417,11 @@ "stripe.v2.core._account_person", "AccountPerson", ), + "v2.core.account_person_token": ( + "stripe.v2.core._account_person_token", + "AccountPersonToken", + ), + "v2.core.account_token": ("stripe.v2.core._account_token", "AccountToken"), "v2.core.event": ("stripe.v2.core._event", "Event"), "v2.core.event_destination": ( "stripe.v2.core._event_destination", @@ -494,10 +499,6 @@ "stripe.v2.money_management._transaction_entry", "TransactionEntry", ), - "v2.payments.off_session_payment": ( - "stripe.v2.payments._off_session_payment", - "OffSessionPayment", - ), # V2 Object classes: The end of the section generated from our OpenAPI spec } diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 2163c01b1..4636a3773 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -944,6 +944,7 @@ class Ideal(StripeObject): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -960,7 +961,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -969,6 +970,7 @@ class Ideal(StripeObject): "BITSNL2A", "BUNQNL2A", "BUUTNL2A", + "FNOMNL22", "FVLBNL22", "HANDNL2A", "INGBNL2A", @@ -999,6 +1001,10 @@ class Ideal(StripeObject): """ Last four characters of the IBAN. """ + transaction_id: Optional[str] + """ + Unique transaction ID generated by iDEAL. + """ verified_name: Optional[str] """ Owner's verified full name. Values are verified or provided by iDEAL directly @@ -1737,7 +1743,13 @@ class Twint(StripeObject): class UsBankAccount(StripeObject): account_holder_type: Optional[Literal["company", "individual"]] + """ + The type of entity that holds the account. This can be either 'individual' or 'company'. + """ account_type: Optional[Literal["checking", "savings"]] + """ + The type of the bank account. This can be either 'checking' or 'savings'. + """ bank_name: Optional[str] """ Name of the bank associated with the bank account. @@ -1756,11 +1768,11 @@ class UsBankAccount(StripeObject): """ payment_reference: Optional[str] """ - Reference number to locate ACH payments with customer's bank. + The ACH payment reference for this transaction. """ routing_number: Optional[str] """ - Routing number of the bank account. + The routing number for the bank account. """ class Wechat(StripeObject): @@ -1871,9 +1883,6 @@ class Zip(StripeObject): It contains information specific to the payment method. """ us_bank_account: Optional[UsBankAccount] - """ - Details of the US Bank Account used for this payment attempt. - """ wechat: Optional[Wechat] wechat_pay: Optional[WechatPay] zip: Optional[Zip] diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 43c5b457e..7c7a4b599 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2763,7 +2763,7 @@ class MandateOptions(StripeObject): """ amount_type: Optional[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: Optional[str] """ @@ -2782,7 +2782,7 @@ class MandateOptions(StripeObject): ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: Optional[int] """ @@ -2804,7 +2804,7 @@ class MandateOptions(StripeObject): ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ mandate_options: Optional[MandateOptions] diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 62a02a862..c4c9df8f8 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -927,6 +927,7 @@ class Ideal(StripeObject): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -943,7 +944,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -952,6 +953,7 @@ class Ideal(StripeObject): "BITSNL2A", "BUNQNL2A", "BUUTNL2A", + "FNOMNL22", "FVLBNL22", "HANDNL2A", "INGBNL2A", @@ -1399,6 +1401,7 @@ class Blocked(StripeObject): "bank_account_restricted", "bank_account_unusable", "debit_not_authorized", + "tokenized_account_number_deactivated", ] ] """ diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 772fbafa2..38b5e8589 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -960,6 +960,7 @@ class Ideal(StripeObject): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -976,7 +977,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -985,6 +986,7 @@ class Ideal(StripeObject): "BITSNL2A", "BUNQNL2A", "BUUTNL2A", + "FNOMNL22", "FVLBNL22", "HANDNL2A", "INGBNL2A", @@ -1015,6 +1017,10 @@ class Ideal(StripeObject): """ Last four characters of the IBAN. """ + transaction_id: Optional[str] + """ + Unique transaction ID generated by iDEAL. + """ verified_name: Optional[str] """ Owner's verified full name. Values are verified or provided by iDEAL directly @@ -1753,7 +1759,13 @@ class Twint(StripeObject): class UsBankAccount(StripeObject): account_holder_type: Optional[Literal["company", "individual"]] + """ + The type of entity that holds the account. This can be either 'individual' or 'company'. + """ account_type: Optional[Literal["checking", "savings"]] + """ + The type of the bank account. This can be either 'checking' or 'savings'. + """ bank_name: Optional[str] """ Name of the bank associated with the bank account. @@ -1772,11 +1784,11 @@ class UsBankAccount(StripeObject): """ payment_reference: Optional[str] """ - Reference number to locate ACH payments with customer's bank. + The ACH payment reference for this transaction. """ routing_number: Optional[str] """ - Routing number of the bank account. + The routing number for the bank account. """ class Wechat(StripeObject): @@ -1887,9 +1899,6 @@ class Zip(StripeObject): It contains information specific to the payment method. """ us_bank_account: Optional[UsBankAccount] - """ - Details of the US Bank Account used for this payment attempt. - """ wechat: Optional[Wechat] wechat_pay: Optional[WechatPay] zip: Optional[Zip] diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index 18b51a7d3..e91fec608 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -1361,7 +1361,7 @@ class TaxRateDetails(StripeObject): * `subscription_cycle`: A subscription advanced into a new period. * `subscription_threshold`: A subscription reached a billing threshold. * `subscription_update`: A subscription was updated. - * `upcoming`: Reserved for simulated invoices, per the upcoming invoice endpoint. + * `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription. """ collection_method: Literal["charge_automatically", "send_invoice"] """ diff --git a/stripe/_refund.py b/stripe/_refund.py index 10c71f463..e9d412ad5 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -164,6 +164,16 @@ class JpBankTransfer(StripeObject): class Klarna(StripeObject): pass + class MbWay(StripeObject): + reference: Optional[str] + """ + The reference assigned to the refund. + """ + reference_status: Optional[str] + """ + Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + """ + class Multibanco(StripeObject): reference: Optional[str] """ @@ -239,6 +249,9 @@ class ThBankTransfer(StripeObject): Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. """ + class Twint(StripeObject): + pass + class UsBankTransfer(StripeObject): reference: Optional[str] """ @@ -275,6 +288,7 @@ class Zip(StripeObject): id_bank_transfer: Optional[IdBankTransfer] jp_bank_transfer: Optional[JpBankTransfer] klarna: Optional[Klarna] + mb_way: Optional[MbWay] multibanco: Optional[Multibanco] mx_bank_transfer: Optional[MxBankTransfer] nz_bank_transfer: Optional[NzBankTransfer] @@ -286,6 +300,7 @@ class Zip(StripeObject): sofort: Optional[Sofort] swish: Optional[Swish] th_bank_transfer: Optional[ThBankTransfer] + twint: Optional[Twint] type: str """ The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction. @@ -314,6 +329,7 @@ class Zip(StripeObject): "id_bank_transfer": IdBankTransfer, "jp_bank_transfer": JpBankTransfer, "klarna": Klarna, + "mb_way": MbWay, "multibanco": Multibanco, "mx_bank_transfer": MxBankTransfer, "nz_bank_transfer": NzBankTransfer, @@ -325,6 +341,7 @@ class Zip(StripeObject): "sofort": Sofort, "swish": Swish, "th_bank_transfer": ThBankTransfer, + "twint": Twint, "us_bank_transfer": UsBankTransfer, "wechat_pay": WechatPay, "zip": Zip, diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 3e65b07fa..da132c07d 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -282,6 +282,7 @@ class Ideal(StripeObject): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -298,7 +299,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -307,6 +308,7 @@ class Ideal(StripeObject): "BITSNL2A", "BUNQNL2A", "BUUTNL2A", + "FNOMNL22", "FVLBNL22", "HANDNL2A", "INGBNL2A", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 9f2a514c6..8c5c84938 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -651,7 +651,7 @@ class MandateOptions(StripeObject): """ amount_type: Optional[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: Optional[str] """ @@ -670,7 +670,7 @@ class MandateOptions(StripeObject): ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: Optional[int] """ @@ -692,7 +692,7 @@ class MandateOptions(StripeObject): ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: Optional[str] """ diff --git a/stripe/_subscription.py b/stripe/_subscription.py index e1c585633..a39d98f33 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -199,7 +199,7 @@ class Duration(StripeObject): """ bill_until: BillUntil """ - Specifies the billing period. + Specifies the end of billing period. """ key: str """ diff --git a/stripe/_v2_services.py b/stripe/_v2_services.py index d1f85f1a7..ed6b5e4c6 100644 --- a/stripe/_v2_services.py +++ b/stripe/_v2_services.py @@ -8,7 +8,6 @@ from stripe.v2._billing_service import BillingService from stripe.v2._core_service import CoreService from stripe.v2._money_management_service import MoneyManagementService - from stripe.v2._payment_service import PaymentService from stripe.v2._test_helper_service import TestHelperService _subservices = { @@ -18,7 +17,6 @@ "stripe.v2._money_management_service", "MoneyManagementService", ], - "payments": ["stripe.v2._payment_service", "PaymentService"], "test_helpers": ["stripe.v2._test_helper_service", "TestHelperService"], } @@ -27,7 +25,6 @@ class V2Services(StripeService): billing: "BillingService" core: "CoreService" money_management: "MoneyManagementService" - payments: "PaymentService" test_helpers: "TestHelperService" def __init__(self, requestor): diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py index 7006d6042..451dca049 100644 --- a/stripe/billing_portal/_configuration.py +++ b/stripe/billing_portal/_configuration.py @@ -79,6 +79,10 @@ class PaymentMethodUpdate(StripeObject): """ Whether the feature is enabled. """ + payment_method_configuration: Optional[str] + """ + The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set, the default payment method configuration is used. + """ class SubscriptionCancel(StripeObject): class CancellationReason(StripeObject): diff --git a/stripe/capital/_financing_offer.py b/stripe/capital/_financing_offer.py index d1323ba46..c776f8861 100644 --- a/stripe/capital/_financing_offer.py +++ b/stripe/capital/_financing_offer.py @@ -32,7 +32,7 @@ class FinancingOffer(ListableAPIResource["FinancingOffer"]): class AcceptedTerms(StripeObject): advance_amount: int """ - Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000. + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. """ currency: str """ @@ -40,7 +40,7 @@ class AcceptedTerms(StripeObject): """ fee_amount: int """ - Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000. + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ previous_financing_fee_discount_amount: Optional[int] """ @@ -49,13 +49,13 @@ class AcceptedTerms(StripeObject): """ withhold_rate: float """ - Per-transaction rate at which Stripe will withhold funds to repay the financing. + Per-transaction rate at which Stripe withholds funds to repay the financing. """ class OfferedTerms(StripeObject): advance_amount: int """ - Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000. + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. """ campaign_type: Literal[ "newly_eligible_user", "previously_eligible_user", "repeat_user" @@ -69,7 +69,7 @@ class OfferedTerms(StripeObject): """ fee_amount: int """ - Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000. + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ previous_financing_fee_discount_rate: Optional[float] """ @@ -80,7 +80,7 @@ class OfferedTerms(StripeObject): """ withhold_rate: float """ - Per-transaction rate at which Stripe will withhold funds to repay the financing. + Per-transaction rate at which Stripe withholds funds to repay the financing. """ accepted_terms: Optional[AcceptedTerms] diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py index e50643321..5d1633562 100644 --- a/stripe/capital/_financing_summary.py +++ b/stripe/capital/_financing_summary.py @@ -30,16 +30,16 @@ class CurrentRepaymentInterval(StripeObject): """ paid_amount: Optional[int] """ - The amount that has already been paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000. + The amount that has already been paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000. """ remaining_amount: int """ - The amount that is yet to be paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000. + The amount that is yet to be paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000. """ advance_amount: int """ - Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000. + Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. """ advance_paid_out_at: Optional[float] """ @@ -55,15 +55,15 @@ class CurrentRepaymentInterval(StripeObject): """ fee_amount: int """ - Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000. + Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ paid_amount: int """ - The amount the Connected account has paid toward the financing debt so far, in minor units. For example, $1,000 USD will be represented as 100000. + The amount the Connected account has paid toward the financing debt so far, in minor units. For example, 1,000 USD is represented as 100000. """ remaining_amount: int """ - The balance remaining to be paid on the financing, in minor units. For example, $1,000 USD will be represented as 100000. + The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is represented as 100000. """ repayments_begin_at: Optional[float] """ @@ -71,7 +71,7 @@ class CurrentRepaymentInterval(StripeObject): """ withhold_rate: float """ - Per-transaction rate at which Stripe will withhold funds to repay the financing. + Per-transaction rate at which Stripe withholds funds to repay the financing. """ _inner_class_types = { "current_repayment_interval": CurrentRepaymentInterval, diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index d22f13097..3139e3db4 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1521,7 +1521,7 @@ class MandateOptions(StripeObject): """ amount_type: Optional[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: Optional[str] """ @@ -1540,7 +1540,7 @@ class MandateOptions(StripeObject): ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: Optional[int] """ @@ -1562,7 +1562,7 @@ class MandateOptions(StripeObject): ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: Optional[str] """ diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py index 50d44669b..304496a6b 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -97,6 +97,10 @@ V2CoreEventDestinationPingEvent as V2CoreEventDestinationPingEvent, V2CoreEventDestinationPingEventNotification as V2CoreEventDestinationPingEventNotification, ) + from stripe.events._v2_core_health_event_generation_failure_resolved_event import ( + V2CoreHealthEventGenerationFailureResolvedEvent as V2CoreHealthEventGenerationFailureResolvedEvent, + V2CoreHealthEventGenerationFailureResolvedEventNotification as V2CoreHealthEventGenerationFailureResolvedEventNotification, + ) from stripe.events._v2_money_management_adjustment_created_event import ( V2MoneyManagementAdjustmentCreatedEvent as V2MoneyManagementAdjustmentCreatedEvent, V2MoneyManagementAdjustmentCreatedEventNotification as V2MoneyManagementAdjustmentCreatedEventNotification, @@ -237,34 +241,6 @@ V2MoneyManagementTransactionUpdatedEvent as V2MoneyManagementTransactionUpdatedEvent, V2MoneyManagementTransactionUpdatedEventNotification as V2MoneyManagementTransactionUpdatedEventNotification, ) - from stripe.events._v2_payments_off_session_payment_authorization_attempt_failed_event import ( - V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent as V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent, - V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification as V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_authorization_attempt_started_event import ( - V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent as V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent, - V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification as V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_canceled_event import ( - V2PaymentsOffSessionPaymentCanceledEvent as V2PaymentsOffSessionPaymentCanceledEvent, - V2PaymentsOffSessionPaymentCanceledEventNotification as V2PaymentsOffSessionPaymentCanceledEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_created_event import ( - V2PaymentsOffSessionPaymentCreatedEvent as V2PaymentsOffSessionPaymentCreatedEvent, - V2PaymentsOffSessionPaymentCreatedEventNotification as V2PaymentsOffSessionPaymentCreatedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_failed_event import ( - V2PaymentsOffSessionPaymentFailedEvent as V2PaymentsOffSessionPaymentFailedEvent, - V2PaymentsOffSessionPaymentFailedEventNotification as V2PaymentsOffSessionPaymentFailedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_requires_capture_event import ( - V2PaymentsOffSessionPaymentRequiresCaptureEvent as V2PaymentsOffSessionPaymentRequiresCaptureEvent, - V2PaymentsOffSessionPaymentRequiresCaptureEventNotification as V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_succeeded_event import ( - V2PaymentsOffSessionPaymentSucceededEvent as V2PaymentsOffSessionPaymentSucceededEvent, - V2PaymentsOffSessionPaymentSucceededEventNotification as V2PaymentsOffSessionPaymentSucceededEventNotification, - ) # name -> (import_target, is_submodule) _import_map = { @@ -437,6 +413,14 @@ "stripe.events._v2_core_event_destination_ping_event", False, ), + "V2CoreHealthEventGenerationFailureResolvedEvent": ( + "stripe.events._v2_core_health_event_generation_failure_resolved_event", + False, + ), + "V2CoreHealthEventGenerationFailureResolvedEventNotification": ( + "stripe.events._v2_core_health_event_generation_failure_resolved_event", + False, + ), "V2MoneyManagementAdjustmentCreatedEvent": ( "stripe.events._v2_money_management_adjustment_created_event", False, @@ -717,62 +701,6 @@ "stripe.events._v2_money_management_transaction_updated_event", False, ), - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_failed_event", - False, - ), - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_failed_event", - False, - ), - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_started_event", - False, - ), - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_started_event", - False, - ), - "V2PaymentsOffSessionPaymentCanceledEvent": ( - "stripe.events._v2_payments_off_session_payment_canceled_event", - False, - ), - "V2PaymentsOffSessionPaymentCanceledEventNotification": ( - "stripe.events._v2_payments_off_session_payment_canceled_event", - False, - ), - "V2PaymentsOffSessionPaymentCreatedEvent": ( - "stripe.events._v2_payments_off_session_payment_created_event", - False, - ), - "V2PaymentsOffSessionPaymentCreatedEventNotification": ( - "stripe.events._v2_payments_off_session_payment_created_event", - False, - ), - "V2PaymentsOffSessionPaymentFailedEvent": ( - "stripe.events._v2_payments_off_session_payment_failed_event", - False, - ), - "V2PaymentsOffSessionPaymentFailedEventNotification": ( - "stripe.events._v2_payments_off_session_payment_failed_event", - False, - ), - "V2PaymentsOffSessionPaymentRequiresCaptureEvent": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - False, - ), - "V2PaymentsOffSessionPaymentRequiresCaptureEventNotification": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - False, - ), - "V2PaymentsOffSessionPaymentSucceededEvent": ( - "stripe.events._v2_payments_off_session_payment_succeeded_event", - False, - ), - "V2PaymentsOffSessionPaymentSucceededEventNotification": ( - "stripe.events._v2_payments_off_session_payment_succeeded_event", - False, - ), } if not TYPE_CHECKING: diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py index 9abd57b62..a8728a4da 100644 --- a/stripe/events/_event_classes.py +++ b/stripe/events/_event_classes.py @@ -70,6 +70,9 @@ from stripe.events._v2_core_event_destination_ping_event import ( V2CoreEventDestinationPingEventNotification, ) + from stripe.events._v2_core_health_event_generation_failure_resolved_event import ( + V2CoreHealthEventGenerationFailureResolvedEventNotification, + ) from stripe.events._v2_money_management_adjustment_created_event import ( V2MoneyManagementAdjustmentCreatedEventNotification, ) @@ -175,27 +178,6 @@ from stripe.events._v2_money_management_transaction_updated_event import ( V2MoneyManagementTransactionUpdatedEventNotification, ) - from stripe.events._v2_payments_off_session_payment_authorization_attempt_failed_event import ( - V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_authorization_attempt_started_event import ( - V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_canceled_event import ( - V2PaymentsOffSessionPaymentCanceledEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_created_event import ( - V2PaymentsOffSessionPaymentCreatedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_failed_event import ( - V2PaymentsOffSessionPaymentFailedEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_requires_capture_event import ( - V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, - ) - from stripe.events._v2_payments_off_session_payment_succeeded_event import ( - V2PaymentsOffSessionPaymentSucceededEventNotification, - ) _V2_EVENT_CLASS_LOOKUP = { @@ -283,6 +265,10 @@ "stripe.events._v2_core_event_destination_ping_event", "V2CoreEventDestinationPingEvent", ), + "v2.core.health.event_generation_failure.resolved": ( + "stripe.events._v2_core_health_event_generation_failure_resolved_event", + "V2CoreHealthEventGenerationFailureResolvedEvent", + ), "v2.money_management.adjustment.created": ( "stripe.events._v2_money_management_adjustment_created_event", "V2MoneyManagementAdjustmentCreatedEvent", @@ -423,34 +409,6 @@ "stripe.events._v2_money_management_transaction_updated_event", "V2MoneyManagementTransactionUpdatedEvent", ), - "v2.payments.off_session_payment.authorization_attempt_failed": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_failed_event", - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent", - ), - "v2.payments.off_session_payment.authorization_attempt_started": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_started_event", - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent", - ), - "v2.payments.off_session_payment.canceled": ( - "stripe.events._v2_payments_off_session_payment_canceled_event", - "V2PaymentsOffSessionPaymentCanceledEvent", - ), - "v2.payments.off_session_payment.created": ( - "stripe.events._v2_payments_off_session_payment_created_event", - "V2PaymentsOffSessionPaymentCreatedEvent", - ), - "v2.payments.off_session_payment.failed": ( - "stripe.events._v2_payments_off_session_payment_failed_event", - "V2PaymentsOffSessionPaymentFailedEvent", - ), - "v2.payments.off_session_payment.requires_capture": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - "V2PaymentsOffSessionPaymentRequiresCaptureEvent", - ), - "v2.payments.off_session_payment.succeeded": ( - "stripe.events._v2_payments_off_session_payment_succeeded_event", - "V2PaymentsOffSessionPaymentSucceededEvent", - ), } @@ -550,6 +508,10 @@ def get_v2_event_class(type_: str): "stripe.events._v2_core_event_destination_ping_event", "V2CoreEventDestinationPingEventNotification", ), + "v2.core.health.event_generation_failure.resolved": ( + "stripe.events._v2_core_health_event_generation_failure_resolved_event", + "V2CoreHealthEventGenerationFailureResolvedEventNotification", + ), "v2.money_management.adjustment.created": ( "stripe.events._v2_money_management_adjustment_created_event", "V2MoneyManagementAdjustmentCreatedEventNotification", @@ -690,34 +652,6 @@ def get_v2_event_class(type_: str): "stripe.events._v2_money_management_transaction_updated_event", "V2MoneyManagementTransactionUpdatedEventNotification", ), - "v2.payments.off_session_payment.authorization_attempt_failed": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_failed_event", - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification", - ), - "v2.payments.off_session_payment.authorization_attempt_started": ( - "stripe.events._v2_payments_off_session_payment_authorization_attempt_started_event", - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification", - ), - "v2.payments.off_session_payment.canceled": ( - "stripe.events._v2_payments_off_session_payment_canceled_event", - "V2PaymentsOffSessionPaymentCanceledEventNotification", - ), - "v2.payments.off_session_payment.created": ( - "stripe.events._v2_payments_off_session_payment_created_event", - "V2PaymentsOffSessionPaymentCreatedEventNotification", - ), - "v2.payments.off_session_payment.failed": ( - "stripe.events._v2_payments_off_session_payment_failed_event", - "V2PaymentsOffSessionPaymentFailedEventNotification", - ), - "v2.payments.off_session_payment.requires_capture": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - "V2PaymentsOffSessionPaymentRequiresCaptureEventNotification", - ), - "v2.payments.off_session_payment.succeeded": ( - "stripe.events._v2_payments_off_session_payment_succeeded_event", - "V2PaymentsOffSessionPaymentSucceededEventNotification", - ), } @@ -754,6 +688,7 @@ def get_v2_event_notification_class(type_: str): "V2CoreAccountPersonUpdatedEventNotification", "V2CoreAccountUpdatedEventNotification", "V2CoreEventDestinationPingEventNotification", + "V2CoreHealthEventGenerationFailureResolvedEventNotification", "V2MoneyManagementAdjustmentCreatedEventNotification", "V2MoneyManagementFinancialAccountCreatedEventNotification", "V2MoneyManagementFinancialAccountUpdatedEventNotification", @@ -789,11 +724,4 @@ def get_v2_event_notification_class(type_: str): "V2MoneyManagementReceivedDebitUpdatedEventNotification", "V2MoneyManagementTransactionCreatedEventNotification", "V2MoneyManagementTransactionUpdatedEventNotification", - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification", - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification", - "V2PaymentsOffSessionPaymentCanceledEventNotification", - "V2PaymentsOffSessionPaymentCreatedEventNotification", - "V2PaymentsOffSessionPaymentFailedEventNotification", - "V2PaymentsOffSessionPaymentRequiresCaptureEventNotification", - "V2PaymentsOffSessionPaymentSucceededEventNotification", ] diff --git a/stripe/events/_v2_core_health_event_generation_failure_resolved_event.py b/stripe/events/_v2_core_health_event_generation_failure_resolved_event.py new file mode 100644 index 000000000..12c4163a6 --- /dev/null +++ b/stripe/events/_v2_core_health_event_generation_failure_resolved_event.py @@ -0,0 +1,120 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe.v2.core._event import Event, EventNotification +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + + +class V2CoreHealthEventGenerationFailureResolvedEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.core.health.event_generation_failure.resolved" + type: Literal["v2.core.health.event_generation_failure.resolved"] + + @override + def fetch_event(self) -> "V2CoreHealthEventGenerationFailureResolvedEvent": + return cast( + "V2CoreHealthEventGenerationFailureResolvedEvent", + super().fetch_event(), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2CoreHealthEventGenerationFailureResolvedEvent": + return cast( + "V2CoreHealthEventGenerationFailureResolvedEvent", + await super().fetch_event_async(), + ) + + +class V2CoreHealthEventGenerationFailureResolvedEvent(Event): + LOOKUP_TYPE = "v2.core.health.event_generation_failure.resolved" + type: Literal["v2.core.health.event_generation_failure.resolved"] + + class V2CoreHealthEventGenerationFailureResolvedEventData(StripeObject): + class Impact(StripeObject): + class RelatedObject(StripeObject): + id: str + """ + The ID of the related object (e.g., "pi_..."). + """ + type: str + """ + The type of the related object (e.g., "payment_intent"). + """ + url: str + """ + The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). + """ + + context: Optional[str] + """ + The context the event should have been generated for. Only present when the account is a connected account. + """ + event_type: str + """ + The type of event that Stripe failed to generate. + """ + related_object: RelatedObject + """ + The related object details. + """ + _inner_class_types = {"related_object": RelatedObject} + + alert_id: str + """ + The alert ID. + """ + grouping_key: str + """ + The grouping key for the alert. + """ + impact: Impact + """ + The user impact. + """ + resolved_at: str + """ + The time when the user experience has returned to expected levels. + """ + summary: str + """ + A short description of the alert. + """ + _inner_class_types = {"impact": Impact} + + data: V2CoreHealthEventGenerationFailureResolvedEventData + """ + Data for the v2.core.health.event_generation_failure.resolved event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2CoreHealthEventGenerationFailureResolvedEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2CoreHealthEventGenerationFailureResolvedEvent.V2CoreHealthEventGenerationFailureResolvedEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt diff --git a/stripe/events/_v2_payments_off_session_payment_authorization_attempt_failed_event.py b/stripe/events/_v2_payments_off_session_payment_authorization_attempt_failed_event.py deleted file mode 100644 index d754715e2..000000000 --- a/stripe/events/_v2_payments_off_session_payment_authorization_attempt_failed_event.py +++ /dev/null @@ -1,122 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification( - EventNotification, -): - LOOKUP_TYPE = ( - "v2.payments.off_session_payment.authorization_attempt_failed" - ) - type: Literal[ - "v2.payments.off_session_payment.authorization_attempt_failed" - ] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event( - self, - ) -> "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent": - return cast( - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent": - return cast( - "V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent(Event): - LOOKUP_TYPE = ( - "v2.payments.off_session_payment.authorization_attempt_failed" - ) - type: Literal[ - "v2.payments.off_session_payment.authorization_attempt_failed" - ] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/events/_v2_payments_off_session_payment_authorization_attempt_started_event.py b/stripe/events/_v2_payments_off_session_payment_authorization_attempt_started_event.py deleted file mode 100644 index a703d6e3b..000000000 --- a/stripe/events/_v2_payments_off_session_payment_authorization_attempt_started_event.py +++ /dev/null @@ -1,122 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification( - EventNotification, -): - LOOKUP_TYPE = ( - "v2.payments.off_session_payment.authorization_attempt_started" - ) - type: Literal[ - "v2.payments.off_session_payment.authorization_attempt_started" - ] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event( - self, - ) -> "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent": - return cast( - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent": - return cast( - "V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent(Event): - LOOKUP_TYPE = ( - "v2.payments.off_session_payment.authorization_attempt_started" - ) - type: Literal[ - "v2.payments.off_session_payment.authorization_attempt_started" - ] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/events/_v2_payments_off_session_payment_canceled_event.py b/stripe/events/_v2_payments_off_session_payment_canceled_event.py deleted file mode 100644 index a36bcb1cb..000000000 --- a/stripe/events/_v2_payments_off_session_payment_canceled_event.py +++ /dev/null @@ -1,110 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentCanceledEventNotification(EventNotification): - LOOKUP_TYPE = "v2.payments.off_session_payment.canceled" - type: Literal["v2.payments.off_session_payment.canceled"] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event(self) -> "V2PaymentsOffSessionPaymentCanceledEvent": - return cast( - "V2PaymentsOffSessionPaymentCanceledEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentCanceledEvent": - return cast( - "V2PaymentsOffSessionPaymentCanceledEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentCanceledEvent(Event): - LOOKUP_TYPE = "v2.payments.off_session_payment.canceled" - type: Literal["v2.payments.off_session_payment.canceled"] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/events/_v2_payments_off_session_payment_created_event.py b/stripe/events/_v2_payments_off_session_payment_created_event.py deleted file mode 100644 index b4db0812d..000000000 --- a/stripe/events/_v2_payments_off_session_payment_created_event.py +++ /dev/null @@ -1,110 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentCreatedEventNotification(EventNotification): - LOOKUP_TYPE = "v2.payments.off_session_payment.created" - type: Literal["v2.payments.off_session_payment.created"] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event(self) -> "V2PaymentsOffSessionPaymentCreatedEvent": - return cast( - "V2PaymentsOffSessionPaymentCreatedEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentCreatedEvent": - return cast( - "V2PaymentsOffSessionPaymentCreatedEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentCreatedEvent(Event): - LOOKUP_TYPE = "v2.payments.off_session_payment.created" - type: Literal["v2.payments.off_session_payment.created"] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/events/_v2_payments_off_session_payment_failed_event.py b/stripe/events/_v2_payments_off_session_payment_failed_event.py deleted file mode 100644 index d00a70070..000000000 --- a/stripe/events/_v2_payments_off_session_payment_failed_event.py +++ /dev/null @@ -1,110 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentFailedEventNotification(EventNotification): - LOOKUP_TYPE = "v2.payments.off_session_payment.failed" - type: Literal["v2.payments.off_session_payment.failed"] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event(self) -> "V2PaymentsOffSessionPaymentFailedEvent": - return cast( - "V2PaymentsOffSessionPaymentFailedEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentFailedEvent": - return cast( - "V2PaymentsOffSessionPaymentFailedEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentFailedEvent(Event): - LOOKUP_TYPE = "v2.payments.off_session_payment.failed" - type: Literal["v2.payments.off_session_payment.failed"] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/events/_v2_payments_off_session_payment_requires_capture_event.py b/stripe/events/_v2_payments_off_session_payment_requires_capture_event.py deleted file mode 100644 index bb101b0bf..000000000 --- a/stripe/events/_v2_payments_off_session_payment_requires_capture_event.py +++ /dev/null @@ -1,112 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentRequiresCaptureEventNotification( - EventNotification, -): - LOOKUP_TYPE = "v2.payments.off_session_payment.requires_capture" - type: Literal["v2.payments.off_session_payment.requires_capture"] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event(self) -> "V2PaymentsOffSessionPaymentRequiresCaptureEvent": - return cast( - "V2PaymentsOffSessionPaymentRequiresCaptureEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentRequiresCaptureEvent": - return cast( - "V2PaymentsOffSessionPaymentRequiresCaptureEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentRequiresCaptureEvent(Event): - LOOKUP_TYPE = "v2.payments.off_session_payment.requires_capture" - type: Literal["v2.payments.off_session_payment.requires_capture"] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/events/_v2_payments_off_session_payment_succeeded_event.py b/stripe/events/_v2_payments_off_session_payment_succeeded_event.py deleted file mode 100644 index 19238512a..000000000 --- a/stripe/events/_v2_payments_off_session_payment_succeeded_event.py +++ /dev/null @@ -1,110 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe._util import get_api_mode -from stripe.v2.core._event import Event, EventNotification, RelatedObject -from typing import Any, Dict, cast -from typing_extensions import Literal, TYPE_CHECKING, override - -if TYPE_CHECKING: - from stripe._stripe_client import StripeClient - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentSucceededEventNotification(EventNotification): - LOOKUP_TYPE = "v2.payments.off_session_payment.succeeded" - type: Literal["v2.payments.off_session_payment.succeeded"] - related_object: RelatedObject - - def __init__( - self, parsed_body: Dict[str, Any], client: "StripeClient" - ) -> None: - super().__init__( - parsed_body, - client, - ) - self.related_object = RelatedObject(parsed_body["related_object"]) - - @override - def fetch_event(self) -> "V2PaymentsOffSessionPaymentSucceededEvent": - return cast( - "V2PaymentsOffSessionPaymentSucceededEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentSucceededEvent": - return cast( - "V2PaymentsOffSessionPaymentSucceededEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentSucceededEvent(Event): - LOOKUP_TYPE = "v2.payments.off_session_payment.succeeded" - type: Literal["v2.payments.off_session_payment.succeeded"] - - class RelatedObject(StripeObject): - id: str - """ - Unique identifier for the object relevant to the event. - """ - type: str - """ - Type of the object relevant to the event. - """ - url: str - """ - URL to retrieve the resource. - """ - - related_object: RelatedObject - """ - Object containing the reference to API resource relevant to the event - """ - - def fetch_related_object(self) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={"stripe_context": self.context}, - ), - ) diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py index bfd3113aa..d8f88e603 100644 --- a/stripe/financial_connections/_account.py +++ b/stripe/financial_connections/_account.py @@ -71,6 +71,24 @@ class AccountHolder(StripeObject): Type of account holder that this account belongs to. """ + class AccountNumber(StripeObject): + expected_expiry_date: Optional[int] + """ + When the account number is expected to expire, if applicable. + """ + identifier_type: Literal["account_number", "tokenized_account_number"] + """ + The type of account number associated with the account. + """ + status: Literal["deactivated", "transactable"] + """ + Whether the account number is currently active and usable for transactions. + """ + supported_networks: List[Literal["ach"]] + """ + The payment networks that the account number can be used for. + """ + class Balance(StripeObject): class Cash(StripeObject): available: Optional[Dict[str, int]] @@ -176,6 +194,10 @@ class TransactionRefresh(StripeObject): """ The account holder that this account belongs to. """ + account_numbers: Optional[List[AccountNumber]] + """ + Details about the account numbers. + """ balance: Optional[Balance] """ The most recent information about the account's balance. @@ -937,6 +959,7 @@ async def list_inferred_balances_async( _inner_class_types = { "account_holder": AccountHolder, + "account_numbers": AccountNumber, "balance": Balance, "balance_refresh": BalanceRefresh, "inferred_balances_refresh": InferredBalancesRefresh, diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py index 5b5a67173..2dd6bc7d6 100644 --- a/stripe/financial_connections/_session.py +++ b/stripe/financial_connections/_session.py @@ -96,7 +96,7 @@ class Cancelled(StripeObject): """ The accounts that were collected as part of this Session. """ - client_secret: str + client_secret: Optional[str] """ A value that will be passed to the client to launch the authentication flow. """ diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py index ebce1fe2b..bd805f845 100644 --- a/stripe/issuing/_card.py +++ b/stripe/issuing/_card.py @@ -42,6 +42,23 @@ class Card( OBJECT_NAME: ClassVar[Literal["issuing.card"]] = "issuing.card" + class LatestFraudWarning(StripeObject): + started_at: Optional[int] + """ + Timestamp of the most recent fraud warning. + """ + type: Optional[ + Literal[ + "card_testing_exposure", + "fraud_dispute_filed", + "third_party_reported", + "user_indicated_fraud", + ] + ] + """ + The type of fraud warning that most recently took place on this card. This field updates with every new fraud warning, so the value changes over time. If populated, cancel and reissue the card. + """ + class Shipping(StripeObject): class Address(StripeObject): city: Optional[str] @@ -1226,6 +1243,10 @@ class GooglePay(StripeObject): """ The last 4 digits of the card number. """ + latest_fraud_warning: Optional[LatestFraudWarning] + """ + Stripe's assessment of whether this card's details have been compromised. If this property isn't null, cancel and reissue the card to prevent fraudulent activity risk. + """ livemode: bool """ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -1958,6 +1979,7 @@ def test_helpers(self): return self.TestHelpers(self) _inner_class_types = { + "latest_fraud_warning": LatestFraudWarning, "shipping": Shipping, "spending_controls": SpendingControls, "wallets": Wallets, diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index 4bc745546..f72aae913 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -180,6 +180,7 @@ AccountCreateParamsSettingsPayments as AccountCreateParamsSettingsPayments, AccountCreateParamsSettingsPayouts as AccountCreateParamsSettingsPayouts, AccountCreateParamsSettingsPayoutsSchedule as AccountCreateParamsSettingsPayoutsSchedule, + AccountCreateParamsSettingsPaypayPayments as AccountCreateParamsSettingsPaypayPayments, AccountCreateParamsSettingsTaxForms as AccountCreateParamsSettingsTaxForms, AccountCreateParamsSettingsTreasury as AccountCreateParamsSettingsTreasury, AccountCreateParamsSettingsTreasuryTosAcceptance as AccountCreateParamsSettingsTreasuryTosAcceptance, @@ -570,6 +571,7 @@ AccountUpdateParamsSettingsPayments as AccountUpdateParamsSettingsPayments, AccountUpdateParamsSettingsPayouts as AccountUpdateParamsSettingsPayouts, AccountUpdateParamsSettingsPayoutsSchedule as AccountUpdateParamsSettingsPayoutsSchedule, + AccountUpdateParamsSettingsPaypayPayments as AccountUpdateParamsSettingsPaypayPayments, AccountUpdateParamsSettingsTaxForms as AccountUpdateParamsSettingsTaxForms, AccountUpdateParamsSettingsTreasury as AccountUpdateParamsSettingsTreasury, AccountUpdateParamsSettingsTreasuryTosAcceptance as AccountUpdateParamsSettingsTreasuryTosAcceptance, @@ -659,6 +661,22 @@ ChargeCaptureParamsPaymentDetails as ChargeCaptureParamsPaymentDetails, ChargeCaptureParamsPaymentDetailsCarRental as ChargeCaptureParamsPaymentDetailsCarRental, ChargeCaptureParamsPaymentDetailsCarRentalAffiliate as ChargeCaptureParamsPaymentDetailsCarRentalAffiliate, + ChargeCaptureParamsPaymentDetailsCarRentalDatum as ChargeCaptureParamsPaymentDetailsCarRentalDatum, + ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate as ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate, + ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance as ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance, + ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver as ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver, + ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff as ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff, + ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress as ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress, + ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance as ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance, + ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup as ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup, + ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress as ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress, + ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal, + ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts, + ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax, + ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax, + ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle as ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle, ChargeCaptureParamsPaymentDetailsCarRentalDelivery as ChargeCaptureParamsPaymentDetailsCarRentalDelivery, ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient as ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient, ChargeCaptureParamsPaymentDetailsCarRentalDistance as ChargeCaptureParamsPaymentDetailsCarRentalDistance, @@ -672,6 +690,18 @@ ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient as ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient, ChargeCaptureParamsPaymentDetailsFlight as ChargeCaptureParamsPaymentDetailsFlight, ChargeCaptureParamsPaymentDetailsFlightAffiliate as ChargeCaptureParamsPaymentDetailsFlightAffiliate, + ChargeCaptureParamsPaymentDetailsFlightDatum as ChargeCaptureParamsPaymentDetailsFlightDatum, + ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate as ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate, + ChargeCaptureParamsPaymentDetailsFlightDatumInsurance as ChargeCaptureParamsPaymentDetailsFlightDatumInsurance, + ChargeCaptureParamsPaymentDetailsFlightDatumPassenger as ChargeCaptureParamsPaymentDetailsFlightDatumPassenger, + ChargeCaptureParamsPaymentDetailsFlightDatumSegment as ChargeCaptureParamsPaymentDetailsFlightDatumSegment, + ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival as ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival, + ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture as ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture, + ChargeCaptureParamsPaymentDetailsFlightDatumTotal as ChargeCaptureParamsPaymentDetailsFlightDatumTotal, + ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts as ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts, + ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge as ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge, + ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax as ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax, + ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax as ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax, ChargeCaptureParamsPaymentDetailsFlightDelivery as ChargeCaptureParamsPaymentDetailsFlightDelivery, ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient as ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient, ChargeCaptureParamsPaymentDetailsFlightPassenger as ChargeCaptureParamsPaymentDetailsFlightPassenger, @@ -679,6 +709,18 @@ ChargeCaptureParamsPaymentDetailsLodging as ChargeCaptureParamsPaymentDetailsLodging, ChargeCaptureParamsPaymentDetailsLodgingAddress as ChargeCaptureParamsPaymentDetailsLodgingAddress, ChargeCaptureParamsPaymentDetailsLodgingAffiliate as ChargeCaptureParamsPaymentDetailsLodgingAffiliate, + ChargeCaptureParamsPaymentDetailsLodgingDatum as ChargeCaptureParamsPaymentDetailsLodgingDatum, + ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation as ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation, + ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate as ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate, + ChargeCaptureParamsPaymentDetailsLodgingDatumGuest as ChargeCaptureParamsPaymentDetailsLodgingDatumGuest, + ChargeCaptureParamsPaymentDetailsLodgingDatumHost as ChargeCaptureParamsPaymentDetailsLodgingDatumHost, + ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress as ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress, + ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance as ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance, + ChargeCaptureParamsPaymentDetailsLodgingDatumTotal as ChargeCaptureParamsPaymentDetailsLodgingDatumTotal, + ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts, + ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge, + ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax, + ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax, ChargeCaptureParamsPaymentDetailsLodgingDelivery as ChargeCaptureParamsPaymentDetailsLodgingDelivery, ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient as ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient, ChargeCaptureParamsPaymentDetailsLodgingPassenger as ChargeCaptureParamsPaymentDetailsLodgingPassenger, @@ -708,6 +750,22 @@ ChargeModifyParamsPaymentDetails as ChargeModifyParamsPaymentDetails, ChargeModifyParamsPaymentDetailsCarRental as ChargeModifyParamsPaymentDetailsCarRental, ChargeModifyParamsPaymentDetailsCarRentalAffiliate as ChargeModifyParamsPaymentDetailsCarRentalAffiliate, + ChargeModifyParamsPaymentDetailsCarRentalDatum as ChargeModifyParamsPaymentDetailsCarRentalDatum, + ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate as ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate, + ChargeModifyParamsPaymentDetailsCarRentalDatumDistance as ChargeModifyParamsPaymentDetailsCarRentalDatumDistance, + ChargeModifyParamsPaymentDetailsCarRentalDatumDriver as ChargeModifyParamsPaymentDetailsCarRentalDatumDriver, + ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff as ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff, + ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress as ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress, + ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance as ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance, + ChargeModifyParamsPaymentDetailsCarRentalDatumPickup as ChargeModifyParamsPaymentDetailsCarRentalDatumPickup, + ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress as ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress, + ChargeModifyParamsPaymentDetailsCarRentalDatumTotal as ChargeModifyParamsPaymentDetailsCarRentalDatumTotal, + ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts, + ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax, + ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax, + ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle as ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle, ChargeModifyParamsPaymentDetailsCarRentalDelivery as ChargeModifyParamsPaymentDetailsCarRentalDelivery, ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient as ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient, ChargeModifyParamsPaymentDetailsCarRentalDistance as ChargeModifyParamsPaymentDetailsCarRentalDistance, @@ -721,6 +779,18 @@ ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient as ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient, ChargeModifyParamsPaymentDetailsFlight as ChargeModifyParamsPaymentDetailsFlight, ChargeModifyParamsPaymentDetailsFlightAffiliate as ChargeModifyParamsPaymentDetailsFlightAffiliate, + ChargeModifyParamsPaymentDetailsFlightDatum as ChargeModifyParamsPaymentDetailsFlightDatum, + ChargeModifyParamsPaymentDetailsFlightDatumAffiliate as ChargeModifyParamsPaymentDetailsFlightDatumAffiliate, + ChargeModifyParamsPaymentDetailsFlightDatumInsurance as ChargeModifyParamsPaymentDetailsFlightDatumInsurance, + ChargeModifyParamsPaymentDetailsFlightDatumPassenger as ChargeModifyParamsPaymentDetailsFlightDatumPassenger, + ChargeModifyParamsPaymentDetailsFlightDatumSegment as ChargeModifyParamsPaymentDetailsFlightDatumSegment, + ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival as ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival, + ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture as ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture, + ChargeModifyParamsPaymentDetailsFlightDatumTotal as ChargeModifyParamsPaymentDetailsFlightDatumTotal, + ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts as ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts, + ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge as ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge, + ChargeModifyParamsPaymentDetailsFlightDatumTotalTax as ChargeModifyParamsPaymentDetailsFlightDatumTotalTax, + ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax as ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax, ChargeModifyParamsPaymentDetailsFlightDelivery as ChargeModifyParamsPaymentDetailsFlightDelivery, ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient as ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient, ChargeModifyParamsPaymentDetailsFlightPassenger as ChargeModifyParamsPaymentDetailsFlightPassenger, @@ -728,6 +798,18 @@ ChargeModifyParamsPaymentDetailsLodging as ChargeModifyParamsPaymentDetailsLodging, ChargeModifyParamsPaymentDetailsLodgingAddress as ChargeModifyParamsPaymentDetailsLodgingAddress, ChargeModifyParamsPaymentDetailsLodgingAffiliate as ChargeModifyParamsPaymentDetailsLodgingAffiliate, + ChargeModifyParamsPaymentDetailsLodgingDatum as ChargeModifyParamsPaymentDetailsLodgingDatum, + ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation as ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation, + ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate as ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate, + ChargeModifyParamsPaymentDetailsLodgingDatumGuest as ChargeModifyParamsPaymentDetailsLodgingDatumGuest, + ChargeModifyParamsPaymentDetailsLodgingDatumHost as ChargeModifyParamsPaymentDetailsLodgingDatumHost, + ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress as ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress, + ChargeModifyParamsPaymentDetailsLodgingDatumInsurance as ChargeModifyParamsPaymentDetailsLodgingDatumInsurance, + ChargeModifyParamsPaymentDetailsLodgingDatumTotal as ChargeModifyParamsPaymentDetailsLodgingDatumTotal, + ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts as ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts, + ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge as ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge, + ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax as ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax, + ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax as ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax, ChargeModifyParamsPaymentDetailsLodgingDelivery as ChargeModifyParamsPaymentDetailsLodgingDelivery, ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient as ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient, ChargeModifyParamsPaymentDetailsLodgingPassenger as ChargeModifyParamsPaymentDetailsLodgingPassenger, @@ -752,6 +834,22 @@ ChargeUpdateParamsPaymentDetails as ChargeUpdateParamsPaymentDetails, ChargeUpdateParamsPaymentDetailsCarRental as ChargeUpdateParamsPaymentDetailsCarRental, ChargeUpdateParamsPaymentDetailsCarRentalAffiliate as ChargeUpdateParamsPaymentDetailsCarRentalAffiliate, + ChargeUpdateParamsPaymentDetailsCarRentalDatum as ChargeUpdateParamsPaymentDetailsCarRentalDatum, + ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate as ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate, + ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance as ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance, + ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver as ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver, + ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff as ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff, + ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress as ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress, + ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance as ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance, + ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup as ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup, + ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress as ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress, + ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal, + ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts, + ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax, + ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax, + ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle as ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle, ChargeUpdateParamsPaymentDetailsCarRentalDelivery as ChargeUpdateParamsPaymentDetailsCarRentalDelivery, ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient as ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient, ChargeUpdateParamsPaymentDetailsCarRentalDistance as ChargeUpdateParamsPaymentDetailsCarRentalDistance, @@ -765,6 +863,18 @@ ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient as ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient, ChargeUpdateParamsPaymentDetailsFlight as ChargeUpdateParamsPaymentDetailsFlight, ChargeUpdateParamsPaymentDetailsFlightAffiliate as ChargeUpdateParamsPaymentDetailsFlightAffiliate, + ChargeUpdateParamsPaymentDetailsFlightDatum as ChargeUpdateParamsPaymentDetailsFlightDatum, + ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate as ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate, + ChargeUpdateParamsPaymentDetailsFlightDatumInsurance as ChargeUpdateParamsPaymentDetailsFlightDatumInsurance, + ChargeUpdateParamsPaymentDetailsFlightDatumPassenger as ChargeUpdateParamsPaymentDetailsFlightDatumPassenger, + ChargeUpdateParamsPaymentDetailsFlightDatumSegment as ChargeUpdateParamsPaymentDetailsFlightDatumSegment, + ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival as ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival, + ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture as ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture, + ChargeUpdateParamsPaymentDetailsFlightDatumTotal as ChargeUpdateParamsPaymentDetailsFlightDatumTotal, + ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts as ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts, + ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge as ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge, + ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax as ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax, + ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax as ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax, ChargeUpdateParamsPaymentDetailsFlightDelivery as ChargeUpdateParamsPaymentDetailsFlightDelivery, ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient as ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient, ChargeUpdateParamsPaymentDetailsFlightPassenger as ChargeUpdateParamsPaymentDetailsFlightPassenger, @@ -772,6 +882,18 @@ ChargeUpdateParamsPaymentDetailsLodging as ChargeUpdateParamsPaymentDetailsLodging, ChargeUpdateParamsPaymentDetailsLodgingAddress as ChargeUpdateParamsPaymentDetailsLodgingAddress, ChargeUpdateParamsPaymentDetailsLodgingAffiliate as ChargeUpdateParamsPaymentDetailsLodgingAffiliate, + ChargeUpdateParamsPaymentDetailsLodgingDatum as ChargeUpdateParamsPaymentDetailsLodgingDatum, + ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation as ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation, + ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate as ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate, + ChargeUpdateParamsPaymentDetailsLodgingDatumGuest as ChargeUpdateParamsPaymentDetailsLodgingDatumGuest, + ChargeUpdateParamsPaymentDetailsLodgingDatumHost as ChargeUpdateParamsPaymentDetailsLodgingDatumHost, + ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress as ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress, + ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance as ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance, + ChargeUpdateParamsPaymentDetailsLodgingDatumTotal as ChargeUpdateParamsPaymentDetailsLodgingDatumTotal, + ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts, + ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge, + ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax, + ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax, ChargeUpdateParamsPaymentDetailsLodgingDelivery as ChargeUpdateParamsPaymentDetailsLodgingDelivery, ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient as ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient, ChargeUpdateParamsPaymentDetailsLodgingPassenger as ChargeUpdateParamsPaymentDetailsLodgingPassenger, @@ -945,6 +1067,7 @@ ) from stripe.params._customer_balance_transaction_list_params import ( CustomerBalanceTransactionListParams as CustomerBalanceTransactionListParams, + CustomerBalanceTransactionListParamsCreated as CustomerBalanceTransactionListParamsCreated, ) from stripe.params._customer_balance_transaction_retrieve_params import ( CustomerBalanceTransactionRetrieveParams as CustomerBalanceTransactionRetrieveParams, @@ -1014,6 +1137,7 @@ ) from stripe.params._customer_list_balance_transactions_params import ( CustomerListBalanceTransactionsParams as CustomerListBalanceTransactionsParams, + CustomerListBalanceTransactionsParamsCreated as CustomerListBalanceTransactionsParamsCreated, ) from stripe.params._customer_list_cash_balance_transactions_params import ( CustomerListCashBalanceTransactionsParams as CustomerListCashBalanceTransactionsParams, @@ -1533,6 +1657,7 @@ ) from stripe.params._invoice_payment_list_params import ( InvoicePaymentListParams as InvoicePaymentListParams, + InvoicePaymentListParamsCreated as InvoicePaymentListParamsCreated, InvoicePaymentListParamsPayment as InvoicePaymentListParamsPayment, ) from stripe.params._invoice_payment_retrieve_params import ( @@ -1674,6 +1799,42 @@ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand, OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription, OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink as OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink, OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo as OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo, OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24 as OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24, @@ -1734,6 +1895,42 @@ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand, OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription, OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink as OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink, OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo as OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo, OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24 as OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24, @@ -1794,6 +1991,42 @@ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand, OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription, OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink, OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo, OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24 as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24, @@ -1850,6 +2083,22 @@ PaymentIntentCaptureParamsPaymentDetails as PaymentIntentCaptureParamsPaymentDetails, PaymentIntentCaptureParamsPaymentDetailsCarRental as PaymentIntentCaptureParamsPaymentDetailsCarRental, PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate as PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax, + PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle, PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery as PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery, PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient, PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance, @@ -1863,6 +2112,18 @@ PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient, PaymentIntentCaptureParamsPaymentDetailsFlight as PaymentIntentCaptureParamsPaymentDetailsFlight, PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate as PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate, + PaymentIntentCaptureParamsPaymentDetailsFlightDatum as PaymentIntentCaptureParamsPaymentDetailsFlightDatum, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger as PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment as PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax, + PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax, PaymentIntentCaptureParamsPaymentDetailsFlightDelivery as PaymentIntentCaptureParamsPaymentDetailsFlightDelivery, PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient, PaymentIntentCaptureParamsPaymentDetailsFlightPassenger as PaymentIntentCaptureParamsPaymentDetailsFlightPassenger, @@ -1870,6 +2131,18 @@ PaymentIntentCaptureParamsPaymentDetailsLodging as PaymentIntentCaptureParamsPaymentDetailsLodging, PaymentIntentCaptureParamsPaymentDetailsLodgingAddress as PaymentIntentCaptureParamsPaymentDetailsLodgingAddress, PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate as PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatum as PaymentIntentCaptureParamsPaymentDetailsLodgingDatum, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax, + PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax, PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery as PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery, PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient, PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger as PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger, @@ -1900,6 +2173,22 @@ PaymentIntentConfirmParamsPaymentDetails as PaymentIntentConfirmParamsPaymentDetails, PaymentIntentConfirmParamsPaymentDetailsCarRental as PaymentIntentConfirmParamsPaymentDetailsCarRental, PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate as PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax, + PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle, PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery as PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery, PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient, PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance, @@ -1913,6 +2202,18 @@ PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient, PaymentIntentConfirmParamsPaymentDetailsFlight as PaymentIntentConfirmParamsPaymentDetailsFlight, PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate as PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate, + PaymentIntentConfirmParamsPaymentDetailsFlightDatum as PaymentIntentConfirmParamsPaymentDetailsFlightDatum, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger as PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment as PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax, + PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax, PaymentIntentConfirmParamsPaymentDetailsFlightDelivery as PaymentIntentConfirmParamsPaymentDetailsFlightDelivery, PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient, PaymentIntentConfirmParamsPaymentDetailsFlightPassenger as PaymentIntentConfirmParamsPaymentDetailsFlightPassenger, @@ -1920,6 +2221,18 @@ PaymentIntentConfirmParamsPaymentDetailsLodging as PaymentIntentConfirmParamsPaymentDetailsLodging, PaymentIntentConfirmParamsPaymentDetailsLodgingAddress as PaymentIntentConfirmParamsPaymentDetailsLodgingAddress, PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate as PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatum as PaymentIntentConfirmParamsPaymentDetailsLodgingDatum, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax, + PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax, PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery as PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery, PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient, PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger as PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger, @@ -2033,6 +2346,42 @@ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand, PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription, PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, PaymentIntentConfirmParamsPaymentMethodOptionsKonbini as PaymentIntentConfirmParamsPaymentMethodOptionsKonbini, PaymentIntentConfirmParamsPaymentMethodOptionsKrCard as PaymentIntentConfirmParamsPaymentMethodOptionsKrCard, PaymentIntentConfirmParamsPaymentMethodOptionsLink as PaymentIntentConfirmParamsPaymentMethodOptionsLink, @@ -2102,6 +2451,22 @@ PaymentIntentCreateParamsPaymentDetails as PaymentIntentCreateParamsPaymentDetails, PaymentIntentCreateParamsPaymentDetailsCarRental as PaymentIntentCreateParamsPaymentDetailsCarRental, PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate as PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatum as PaymentIntentCreateParamsPaymentDetailsCarRentalDatum, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax, + PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle, PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery as PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery, PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient, PaymentIntentCreateParamsPaymentDetailsCarRentalDistance as PaymentIntentCreateParamsPaymentDetailsCarRentalDistance, @@ -2115,6 +2480,18 @@ PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient, PaymentIntentCreateParamsPaymentDetailsFlight as PaymentIntentCreateParamsPaymentDetailsFlight, PaymentIntentCreateParamsPaymentDetailsFlightAffiliate as PaymentIntentCreateParamsPaymentDetailsFlightAffiliate, + PaymentIntentCreateParamsPaymentDetailsFlightDatum as PaymentIntentCreateParamsPaymentDetailsFlightDatum, + PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate, + PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance as PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance, + PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger as PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger, + PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment as PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment, + PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival, + PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture, + PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal, + PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts, + PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge, + PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax, + PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax, PaymentIntentCreateParamsPaymentDetailsFlightDelivery as PaymentIntentCreateParamsPaymentDetailsFlightDelivery, PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient, PaymentIntentCreateParamsPaymentDetailsFlightPassenger as PaymentIntentCreateParamsPaymentDetailsFlightPassenger, @@ -2122,6 +2499,18 @@ PaymentIntentCreateParamsPaymentDetailsLodging as PaymentIntentCreateParamsPaymentDetailsLodging, PaymentIntentCreateParamsPaymentDetailsLodgingAddress as PaymentIntentCreateParamsPaymentDetailsLodgingAddress, PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate as PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate, + PaymentIntentCreateParamsPaymentDetailsLodgingDatum as PaymentIntentCreateParamsPaymentDetailsLodgingDatum, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest as PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost as PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax, + PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax, PaymentIntentCreateParamsPaymentDetailsLodgingDelivery as PaymentIntentCreateParamsPaymentDetailsLodgingDelivery, PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient, PaymentIntentCreateParamsPaymentDetailsLodgingPassenger as PaymentIntentCreateParamsPaymentDetailsLodgingPassenger, @@ -2235,6 +2624,42 @@ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand, PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription, PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, PaymentIntentCreateParamsPaymentMethodOptionsKonbini as PaymentIntentCreateParamsPaymentMethodOptionsKonbini, PaymentIntentCreateParamsPaymentMethodOptionsKrCard as PaymentIntentCreateParamsPaymentMethodOptionsKrCard, PaymentIntentCreateParamsPaymentMethodOptionsLink as PaymentIntentCreateParamsPaymentMethodOptionsLink, @@ -2337,6 +2762,22 @@ PaymentIntentModifyParamsPaymentDetails as PaymentIntentModifyParamsPaymentDetails, PaymentIntentModifyParamsPaymentDetailsCarRental as PaymentIntentModifyParamsPaymentDetailsCarRental, PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate as PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatum as PaymentIntentModifyParamsPaymentDetailsCarRentalDatum, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax, + PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle, PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery as PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery, PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient, PaymentIntentModifyParamsPaymentDetailsCarRentalDistance as PaymentIntentModifyParamsPaymentDetailsCarRentalDistance, @@ -2350,6 +2791,18 @@ PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient, PaymentIntentModifyParamsPaymentDetailsFlight as PaymentIntentModifyParamsPaymentDetailsFlight, PaymentIntentModifyParamsPaymentDetailsFlightAffiliate as PaymentIntentModifyParamsPaymentDetailsFlightAffiliate, + PaymentIntentModifyParamsPaymentDetailsFlightDatum as PaymentIntentModifyParamsPaymentDetailsFlightDatum, + PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate, + PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance as PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance, + PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger as PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger, + PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment as PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment, + PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival, + PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture, + PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal, + PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts, + PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge, + PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax, + PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax, PaymentIntentModifyParamsPaymentDetailsFlightDelivery as PaymentIntentModifyParamsPaymentDetailsFlightDelivery, PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient, PaymentIntentModifyParamsPaymentDetailsFlightPassenger as PaymentIntentModifyParamsPaymentDetailsFlightPassenger, @@ -2357,6 +2810,18 @@ PaymentIntentModifyParamsPaymentDetailsLodging as PaymentIntentModifyParamsPaymentDetailsLodging, PaymentIntentModifyParamsPaymentDetailsLodgingAddress as PaymentIntentModifyParamsPaymentDetailsLodgingAddress, PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate as PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate, + PaymentIntentModifyParamsPaymentDetailsLodgingDatum as PaymentIntentModifyParamsPaymentDetailsLodgingDatum, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest as PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost as PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax, + PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax, PaymentIntentModifyParamsPaymentDetailsLodgingDelivery as PaymentIntentModifyParamsPaymentDetailsLodgingDelivery, PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient, PaymentIntentModifyParamsPaymentDetailsLodgingPassenger as PaymentIntentModifyParamsPaymentDetailsLodgingPassenger, @@ -2470,6 +2935,42 @@ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand, PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription, PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, PaymentIntentModifyParamsPaymentMethodOptionsKonbini as PaymentIntentModifyParamsPaymentMethodOptionsKonbini, PaymentIntentModifyParamsPaymentMethodOptionsKrCard as PaymentIntentModifyParamsPaymentMethodOptionsKrCard, PaymentIntentModifyParamsPaymentMethodOptionsLink as PaymentIntentModifyParamsPaymentMethodOptionsLink, @@ -2547,6 +3048,22 @@ PaymentIntentUpdateParamsPaymentDetails as PaymentIntentUpdateParamsPaymentDetails, PaymentIntentUpdateParamsPaymentDetailsCarRental as PaymentIntentUpdateParamsPaymentDetailsCarRental, PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate as PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax, + PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle, PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery as PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery, PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient, PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance, @@ -2560,6 +3077,18 @@ PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient, PaymentIntentUpdateParamsPaymentDetailsFlight as PaymentIntentUpdateParamsPaymentDetailsFlight, PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate as PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate, + PaymentIntentUpdateParamsPaymentDetailsFlightDatum as PaymentIntentUpdateParamsPaymentDetailsFlightDatum, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger as PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment as PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax, + PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax, PaymentIntentUpdateParamsPaymentDetailsFlightDelivery as PaymentIntentUpdateParamsPaymentDetailsFlightDelivery, PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient, PaymentIntentUpdateParamsPaymentDetailsFlightPassenger as PaymentIntentUpdateParamsPaymentDetailsFlightPassenger, @@ -2567,6 +3096,18 @@ PaymentIntentUpdateParamsPaymentDetailsLodging as PaymentIntentUpdateParamsPaymentDetailsLodging, PaymentIntentUpdateParamsPaymentDetailsLodgingAddress as PaymentIntentUpdateParamsPaymentDetailsLodgingAddress, PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate as PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatum as PaymentIntentUpdateParamsPaymentDetailsLodgingDatum, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax, + PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax, PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery as PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery, PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient, PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger as PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger, @@ -2680,6 +3221,42 @@ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand, PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription, PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger, + PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher, PaymentIntentUpdateParamsPaymentMethodOptionsKonbini as PaymentIntentUpdateParamsPaymentMethodOptionsKonbini, PaymentIntentUpdateParamsPaymentMethodOptionsKrCard as PaymentIntentUpdateParamsPaymentMethodOptionsKrCard, PaymentIntentUpdateParamsPaymentMethodOptionsLink as PaymentIntentUpdateParamsPaymentMethodOptionsLink, @@ -5531,6 +6108,10 @@ "stripe.params._account_create_params", False, ), + "AccountCreateParamsSettingsPaypayPayments": ( + "stripe.params._account_create_params", + False, + ), "AccountCreateParamsSettingsTaxForms": ( "stripe.params._account_create_params", False, @@ -6779,6 +7360,10 @@ "stripe.params._account_update_params", False, ), + "AccountUpdateParamsSettingsPaypayPayments": ( + "stripe.params._account_update_params", + False, + ), "AccountUpdateParamsSettingsTaxForms": ( "stripe.params._account_update_params", False, @@ -6934,6 +7519,70 @@ "stripe.params._charge_capture_params", False, ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._charge_capture_params", + False, + ), "ChargeCaptureParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._charge_capture_params", False, @@ -6986,6 +7635,54 @@ "stripe.params._charge_capture_params", False, ), + "ChargeCaptureParamsPaymentDetailsFlightDatum": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._charge_capture_params", + False, + ), "ChargeCaptureParamsPaymentDetailsFlightDelivery": ( "stripe.params._charge_capture_params", False, @@ -7014,6 +7711,54 @@ "stripe.params._charge_capture_params", False, ), + "ChargeCaptureParamsPaymentDetailsLodgingDatum": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._charge_capture_params", + False, + ), + "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._charge_capture_params", + False, + ), "ChargeCaptureParamsPaymentDetailsLodgingDelivery": ( "stripe.params._charge_capture_params", False, @@ -7086,6 +7831,70 @@ "stripe.params._charge_modify_params", False, ), + "ChargeModifyParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._charge_modify_params", + False, + ), "ChargeModifyParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._charge_modify_params", False, @@ -7138,6 +7947,54 @@ "stripe.params._charge_modify_params", False, ), + "ChargeModifyParamsPaymentDetailsFlightDatum": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._charge_modify_params", + False, + ), "ChargeModifyParamsPaymentDetailsFlightDelivery": ( "stripe.params._charge_modify_params", False, @@ -7166,6 +8023,54 @@ "stripe.params._charge_modify_params", False, ), + "ChargeModifyParamsPaymentDetailsLodgingDatum": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._charge_modify_params", + False, + ), + "ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._charge_modify_params", + False, + ), "ChargeModifyParamsPaymentDetailsLodgingDelivery": ( "stripe.params._charge_modify_params", False, @@ -7221,43 +8126,107 @@ "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsCarRentalDelivery": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatum": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsCarRentalDistance": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsCarRentalDriver": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsEventDetails": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsEventDetailsAddress": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup": ( "stripe.params._charge_update_params", False, ), - "ChargeUpdateParamsPaymentDetailsEventDetailsDelivery": ( + "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDelivery": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDistance": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalDriver": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsEventDetails": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsEventDetailsAddress": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsEventDetailsDelivery": ( "stripe.params._charge_update_params", False, ), @@ -7273,6 +8242,54 @@ "stripe.params._charge_update_params", False, ), + "ChargeUpdateParamsPaymentDetailsFlightDatum": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._charge_update_params", + False, + ), "ChargeUpdateParamsPaymentDetailsFlightDelivery": ( "stripe.params._charge_update_params", False, @@ -7301,6 +8318,54 @@ "stripe.params._charge_update_params", False, ), + "ChargeUpdateParamsPaymentDetailsLodgingDatum": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._charge_update_params", + False, + ), + "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._charge_update_params", + False, + ), "ChargeUpdateParamsPaymentDetailsLodgingDelivery": ( "stripe.params._charge_update_params", False, @@ -7782,6 +8847,10 @@ "stripe.params._customer_balance_transaction_list_params", False, ), + "CustomerBalanceTransactionListParamsCreated": ( + "stripe.params._customer_balance_transaction_list_params", + False, + ), "CustomerBalanceTransactionRetrieveParams": ( "stripe.params._customer_balance_transaction_retrieve_params", False, @@ -7908,6 +8977,10 @@ "stripe.params._customer_list_balance_transactions_params", False, ), + "CustomerListBalanceTransactionsParamsCreated": ( + "stripe.params._customer_list_balance_transactions_params", + False, + ), "CustomerListCashBalanceTransactionsParams": ( "stripe.params._customer_list_cash_balance_transactions_params", False, @@ -9270,6 +10343,10 @@ "stripe.params._invoice_payment_list_params", False, ), + "InvoicePaymentListParamsCreated": ( + "stripe.params._invoice_payment_list_params", + False, + ), "InvoicePaymentListParamsPayment": ( "stripe.params._invoice_payment_list_params", False, @@ -9621,6 +10698,150 @@ "stripe.params._order_create_params", False, ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( + "stripe.params._order_create_params", + False, + ), + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( + "stripe.params._order_create_params", + False, + ), "OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink": ( "stripe.params._order_create_params", False, @@ -9814,39 +11035,183 @@ "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( "stripe.params._order_modify_params", False, ), - "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort": ( + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions": ( + "stripe.params._order_modify_params", + False, + ), + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort": ( "stripe.params._order_modify_params", False, ), @@ -10001,6 +11366,150 @@ "stripe.params._order_update_params", False, ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( + "stripe.params._order_update_params", + False, + ), + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( + "stripe.params._order_update_params", + False, + ), "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink": ( "stripe.params._order_update_params", False, @@ -10177,6 +11686,70 @@ "stripe.params._payment_intent_capture_params", False, ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._payment_intent_capture_params", + False, + ), "PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._payment_intent_capture_params", False, @@ -10229,6 +11802,54 @@ "stripe.params._payment_intent_capture_params", False, ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatum": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._payment_intent_capture_params", + False, + ), "PaymentIntentCaptureParamsPaymentDetailsFlightDelivery": ( "stripe.params._payment_intent_capture_params", False, @@ -10257,6 +11878,54 @@ "stripe.params._payment_intent_capture_params", False, ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatum": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._payment_intent_capture_params", + False, + ), "PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery": ( "stripe.params._payment_intent_capture_params", False, @@ -10369,6 +12038,70 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._payment_intent_confirm_params", False, @@ -10421,6 +12154,54 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery": ( "stripe.params._payment_intent_confirm_params", False, @@ -10449,6 +12230,54 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatum": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery": ( "stripe.params._payment_intent_confirm_params", False, @@ -10789,115 +12618,259 @@ "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCashapp": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCrypto": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsEps": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsFpx": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsGiropay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsGopay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsIdeal": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarna": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCashapp": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCrypto": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsEps": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsFpx": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsGiropay": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsGopay": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsIdeal": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsKlarna": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( "stripe.params._payment_intent_confirm_params", False, ), - "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": ( + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( "stripe.params._payment_intent_confirm_params", False, ), @@ -11169,6 +13142,70 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._payment_intent_create_params", False, @@ -11221,6 +13258,54 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatum": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentDetailsFlightDelivery": ( "stripe.params._payment_intent_create_params", False, @@ -11249,6 +13334,54 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatum": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentDetailsLodgingDelivery": ( "stripe.params._payment_intent_create_params", False, @@ -11701,6 +13834,150 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsKonbini": ( "stripe.params._payment_intent_create_params", False, @@ -12069,6 +14346,70 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._payment_intent_modify_params", False, @@ -12121,6 +14462,54 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatum": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentDetailsFlightDelivery": ( "stripe.params._payment_intent_modify_params", False, @@ -12149,6 +14538,54 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatum": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentDetailsLodgingDelivery": ( "stripe.params._payment_intent_modify_params", False, @@ -12489,115 +14926,259 @@ "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments": ( + "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardPresent": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCashapp": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCrypto": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsEps": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsFpx": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsGiropay": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsGopay": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsGrabpay": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsIdeal": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarna": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardPresent": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCashapp": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCrypto": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsEps": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsFpx": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsGiropay": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsGopay": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsGrabpay": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsIdeal": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsKlarna": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( "stripe.params._payment_intent_modify_params", False, ), - "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": ( + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( "stripe.params._payment_intent_modify_params", False, ), @@ -12877,6 +15458,70 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery": ( "stripe.params._payment_intent_update_params", False, @@ -12929,6 +15574,54 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatum": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery": ( "stripe.params._payment_intent_update_params", False, @@ -12957,6 +15650,54 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatum": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery": ( "stripe.params._payment_intent_update_params", False, @@ -13409,6 +16150,150 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsKonbini": ( "stripe.params._payment_intent_update_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index c1caa0491..75aec104b 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -140,6 +140,10 @@ class AccountCreateParamsBusinessProfile(TypedDict): """ Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes. """ + specified_commercial_transactions_act_url: NotRequired["Literal['']|str"] + """ + A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods. + """ support_address: NotRequired[ "AccountCreateParamsBusinessProfileSupportAddress" ] @@ -2020,6 +2024,10 @@ class AccountCreateParamsSettings(TypedDict): """ Settings specific to the account's payouts. """ + paypay_payments: NotRequired["AccountCreateParamsSettingsPaypayPayments"] + """ + Settings specific to the PayPay payments method. + """ tax_forms: NotRequired["AccountCreateParamsSettingsTaxForms"] """ Settings specific to the account's tax forms. @@ -2210,6 +2218,13 @@ class AccountCreateParamsSettingsPayoutsSchedule(TypedDict): """ +class AccountCreateParamsSettingsPaypayPayments(TypedDict): + goods_type: NotRequired[Literal["digital_content", "other"]] + """ + Whether your business sells digital content or not. + """ + + class AccountCreateParamsSettingsTaxForms(TypedDict): consented_to_paperless_delivery: NotRequired[bool] """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index a47f27158..7120e5204 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -127,6 +127,10 @@ class AccountUpdateParamsBusinessProfile(TypedDict): """ Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes. """ + specified_commercial_transactions_act_url: NotRequired["Literal['']|str"] + """ + A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan. + """ support_address: NotRequired[ "AccountUpdateParamsBusinessProfileSupportAddress" ] @@ -1932,6 +1936,10 @@ class AccountUpdateParamsSettings(TypedDict): """ Settings specific to the account's payouts. """ + paypay_payments: NotRequired["AccountUpdateParamsSettingsPaypayPayments"] + """ + Settings specific to the PayPay payments method. + """ tax_forms: NotRequired["AccountUpdateParamsSettingsTaxForms"] """ Settings specific to the account's tax forms. @@ -2126,6 +2134,13 @@ class AccountUpdateParamsSettingsPayoutsSchedule(TypedDict): """ +class AccountUpdateParamsSettingsPaypayPayments(TypedDict): + goods_type: NotRequired[Literal["digital_content", "other"]] + """ + Whether your business sells digital content or not. + """ + + class AccountUpdateParamsSettingsTaxForms(TypedDict): consented_to_paperless_delivery: NotRequired[bool] """ diff --git a/stripe/params/_charge_capture_params.py b/stripe/params/_charge_capture_params.py index 674c1061d..1f2b2829e 100644 --- a/stripe/params/_charge_capture_params.py +++ b/stripe/params/_charge_capture_params.py @@ -55,6 +55,12 @@ class ChargeCaptureParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[ChargeCaptureParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -69,10 +75,22 @@ class ChargeCaptureParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[ChargeCaptureParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["ChargeCaptureParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[ChargeCaptureParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -319,6 +337,415 @@ class ChargeCaptureParamsPaymentDetailsCarRentalReturnAddress(TypedDict): """ +class ChargeCaptureParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate" + ] + """ + Affiliate (such as travel agency) details for the rental. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the car rental. + """ + carrier_name: NotRequired[str] + """ + Name of the car rental company. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the car rental company. + """ + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance" + ] + """ + Distance details for the rental. + """ + drivers: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver"] + ] + """ + List of drivers for the rental. + """ + drop_off: "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff" + """ + Drop-off location details. + """ + insurances: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance"] + ] + """ + Insurance details for the rental. + """ + no_show_indicator: NotRequired[bool] + """ + Indicates if the customer was a no-show. + """ + pickup: "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup" + """ + Pickup location details. + """ + renter_name: NotRequired[str] + """ + Name of the person renting the vehicle. + """ + total: "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal" + """ + Total cost breakdown for the rental. + """ + vehicle: NotRequired[ + "ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle" + ] + """ + Vehicle details for the rental. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance(TypedDict): + amount: int + """ + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] + """ + Driver's date of birth. + """ + driver_identification_number: NotRequired[str] + """ + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( + TypedDict, +): + day: int + """ + Day of birth (1-31). + """ + month: int + """ + Month of birth (1-12). + """ + year: int + """ + Year of birth (must be greater than 1900). + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress" + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance(TypedDict): + amount: int + """ + Amount of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", + ] + """ + Type of insurance coverage. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress" + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int + """ + Total amount in cents. + """ + currency: NotRequired[str] + """ + Currency of the amount. + """ + discounts: NotRequired[ + "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts" + ] + """ + Discount details for the rental. + """ + extra_charges: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge"] + ] + """ + Additional charges for the rental. + """ + rate_per_unit: NotRequired[int] + """ + Rate per unit for the rental. + """ + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] + ] + """ + Unit of measurement for the rate. + """ + tax: NotRequired["ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax"] + """ + Tax breakdown for the rental. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code applied to the rental. + """ + maximum_free_miles_or_kilometers: NotRequired[int] + """ + Maximum number of free miles or kilometers included. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict, +): + amount: int + """ + Amount of the extra charge in cents. + """ + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] + """ + Type of extra charge. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates if the transaction is tax exempt. + """ + taxes: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate applied. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + +class ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] + """ + Make of the rental vehicle. + """ + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] + ] + """ + Type of the rental vehicle. + """ + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Class of the rental vehicle. + """ + vehicle_identification_number: NotRequired[str] + """ + Vehicle identification number (VIN). + """ + + class ChargeCaptureParamsPaymentDetailsEventDetails(TypedDict): access_controlled_venue: NotRequired[bool] """ @@ -544,61 +971,343 @@ class ChargeCaptureParamsPaymentDetailsFlightSegment(TypedDict): """ -class ChargeCaptureParamsPaymentDetailsLodging(TypedDict): - address: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingAddress"] - """ - The lodging location's address. - """ - adults: NotRequired[int] +class ChargeCaptureParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate" + ] """ - The number of adults on the booking + Affiliate details if applicable. """ - affiliate: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingAffiliate"] + booking_number: NotRequired[str] """ - Affiliate details for this purchase. + Reservation reference. """ - booking_number: NotRequired[str] + computerized_reservation_system: NotRequired[str] """ - The booking number associated with the lodging reservation. + Computerized reservation system used to make the reservation and purchase the ticket. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + endorsements_and_restrictions: NotRequired[str] """ - The lodging category + Ticket restrictions. """ - checkin_at: int + insurances: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsFlightDatumInsurance"] + ] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + List of insurances. """ - checkout_at: int + passengers: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsFlightDatumPassenger"] + ] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + List of passengers. """ - customer_service_phone_number: NotRequired[str] + segments: List["ChargeCaptureParamsPaymentDetailsFlightDatumSegment"] """ - The customer service phone number of the lodging company. + List of flight segments. """ - daily_room_rate_amount: NotRequired[int] + ticket_electronically_issued_indicator: NotRequired[bool] """ - The daily lodging room rate. + Electronic ticket indicator. """ - delivery: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDelivery"] + total: "ChargeCaptureParamsPaymentDetailsFlightDatumTotal" """ - Delivery details for this purchase. + Total cost breakdown. """ - extra_charges: NotRequired[ - List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" ] ] """ - List of additional charges being billed. + Type of flight transaction. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + travel_authorization_code: NotRequired[str] + """ + Code provided by the company to a travel agent authorizing ticket issuance. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int + """ + Insurance cost. + """ + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Insurance company name. + """ + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str + """ + Passenger's full name. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] + """ + Segment fare amount. + """ + arrival: "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival" + """ + Arrival details. + """ + carrier_code: str + """ + Airline carrier code. + """ + carrier_name: NotRequired[str] + """ + Carrier name. + """ + currency: NotRequired[str] + """ + Segment currency. + """ + departure: "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture" + """ + Departure details. + """ + exchange_ticket_number: NotRequired[str] + """ + Exchange ticket number. + """ + fare_basis_code: NotRequired[str] + """ + Fare basis code. + """ + fees: NotRequired[int] + """ + Additional fees. + """ + flight_number: NotRequired[str] + """ + Flight number. + """ + is_stop_over_indicator: NotRequired[bool] + """ + Stopover indicator. + """ + refundable: NotRequired[bool] + """ + Refundable ticket indicator. + """ + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] + """ + Class of service. + """ + tax_amount: NotRequired[int] + """ + Tax amount for segment. + """ + ticket_number: NotRequired[str] + """ + Ticket number. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival(TypedDict): + airport: str + """ + Arrival airport IATA code. + """ + arrives_at: NotRequired[int] + """ + Arrival date/time. + """ + city: NotRequired[str] + """ + Arrival city. + """ + country: NotRequired[str] + """ + Arrival country. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture(TypedDict): + airport: str + """ + Departure airport IATA code. + """ + city: NotRequired[str] + """ + Departure city. + """ + country: NotRequired[str] + """ + Departure country. + """ + departs_at: int + """ + Departure date/time. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int + """ + Total flight amount. + """ + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] + ] + """ + Reason for credit. + """ + currency: NotRequired[str] + """ + Total currency. + """ + discounts: NotRequired[ + "ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts" + ] + """ + Discount details. + """ + extra_charges: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge"] + ] + """ + Additional charges. + """ + tax: NotRequired["ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax"] + """ + Tax breakdown. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge(TypedDict): + amount: NotRequired[int] + """ + Amount of additional charges. + """ + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] + """ + Type of additional charges. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. + """ + + +class ChargeCaptureParamsPaymentDetailsLodging(TypedDict): + address: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingAddress"] + """ + The lodging location's address. + """ + adults: NotRequired[int] + """ + The number of adults on the booking + """ + affiliate: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingAffiliate"] + """ + Affiliate details for this purchase. + """ + booking_number: NotRequired[str] + """ + The booking number associated with the lodging reservation. + """ + category: NotRequired[Literal["hotel", "vacation_rental"]] + """ + The lodging category + """ + checkin_at: int + """ + Lodging check-in time. Measured in seconds since the Unix epoch. + """ + checkout_at: int + """ + Lodging check-out time. Measured in seconds since the Unix epoch. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDelivery"] + """ + Delivery details for this purchase. + """ + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] + """ + List of additional charges being billed. """ fire_safety_act_compliance: NotRequired[bool] """ @@ -713,6 +1422,309 @@ class ChargeCaptureParamsPaymentDetailsLodgingPassenger(TypedDict): """ +class ChargeCaptureParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDatumHost"] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "ChargeCaptureParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation(TypedDict): + accommodation_type: NotRequired[ + Literal[ + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", + ] + ] + """ + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Affiliate partner name. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str + """ + Guest's full name. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress" + ] + """ + Address of the host. + """ + country_of_domicile: NotRequired[str] + """ + Host's country of domicile. + """ + host_reference: NotRequired[str] + """ + Reference number for the host. + """ + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] + """ + Type of host. + """ + name: NotRequired[str] + """ + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int + """ + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int + """ + Total price of the lodging reservation in cents. + """ + cash_advances: NotRequired[int] + """ + Cash advances in cents. + """ + currency: NotRequired[str] + """ + Currency of the total amount. + """ + discounts: NotRequired[ + "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] + """ + Discount details for the lodging. + """ + extra_charges: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge"] + ] + """ + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax"] + """ + Tax breakdown for the lodging reservation. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge(TypedDict): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ + Literal[ + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" + ] + ] + """ + Type of extra charge. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ + + +class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount in cents. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + class ChargeCaptureParamsPaymentDetailsSubscription(TypedDict): affiliate: NotRequired[ "ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate" diff --git a/stripe/params/_charge_modify_params.py b/stripe/params/_charge_modify_params.py index e538cf313..ad8d744a4 100644 --- a/stripe/params/_charge_modify_params.py +++ b/stripe/params/_charge_modify_params.py @@ -56,6 +56,12 @@ class ChargeModifyParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[ChargeModifyParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -70,10 +76,22 @@ class ChargeModifyParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[ChargeModifyParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["ChargeModifyParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[ChargeModifyParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -320,6 +338,415 @@ class ChargeModifyParamsPaymentDetailsCarRentalReturnAddress(TypedDict): """ +class ChargeModifyParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate" + ] + """ + Affiliate (such as travel agency) details for the rental. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the car rental. + """ + carrier_name: NotRequired[str] + """ + Name of the car rental company. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the car rental company. + """ + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "ChargeModifyParamsPaymentDetailsCarRentalDatumDistance" + ] + """ + Distance details for the rental. + """ + drivers: NotRequired[ + List["ChargeModifyParamsPaymentDetailsCarRentalDatumDriver"] + ] + """ + List of drivers for the rental. + """ + drop_off: "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff" + """ + Drop-off location details. + """ + insurances: NotRequired[ + List["ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance"] + ] + """ + Insurance details for the rental. + """ + no_show_indicator: NotRequired[bool] + """ + Indicates if the customer was a no-show. + """ + pickup: "ChargeModifyParamsPaymentDetailsCarRentalDatumPickup" + """ + Pickup location details. + """ + renter_name: NotRequired[str] + """ + Name of the person renting the vehicle. + """ + total: "ChargeModifyParamsPaymentDetailsCarRentalDatumTotal" + """ + Total cost breakdown for the rental. + """ + vehicle: NotRequired[ + "ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle" + ] + """ + Vehicle details for the rental. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumDistance(TypedDict): + amount: int + """ + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] + """ + Driver's date of birth. + """ + driver_identification_number: NotRequired[str] + """ + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( + TypedDict, +): + day: int + """ + Day of birth (1-31). + """ + month: int + """ + Month of birth (1-12). + """ + year: int + """ + Year of birth (must be greater than 1900). + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress" + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance(TypedDict): + amount: int + """ + Amount of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", + ] + """ + Type of insurance coverage. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: "ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress" + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int + """ + Total amount in cents. + """ + currency: NotRequired[str] + """ + Currency of the amount. + """ + discounts: NotRequired[ + "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts" + ] + """ + Discount details for the rental. + """ + extra_charges: NotRequired[ + List["ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge"] + ] + """ + Additional charges for the rental. + """ + rate_per_unit: NotRequired[int] + """ + Rate per unit for the rental. + """ + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] + ] + """ + Unit of measurement for the rate. + """ + tax: NotRequired["ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax"] + """ + Tax breakdown for the rental. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code applied to the rental. + """ + maximum_free_miles_or_kilometers: NotRequired[int] + """ + Maximum number of free miles or kilometers included. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict +): + amount: int + """ + Amount of the extra charge in cents. + """ + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] + """ + Type of extra charge. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates if the transaction is tax exempt. + """ + taxes: NotRequired[ + List["ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate applied. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + +class ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] + """ + Make of the rental vehicle. + """ + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] + ] + """ + Type of the rental vehicle. + """ + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Class of the rental vehicle. + """ + vehicle_identification_number: NotRequired[str] + """ + Vehicle identification number (VIN). + """ + + class ChargeModifyParamsPaymentDetailsEventDetails(TypedDict): access_controlled_venue: NotRequired[bool] """ @@ -541,61 +968,343 @@ class ChargeModifyParamsPaymentDetailsFlightSegment(TypedDict): """ -class ChargeModifyParamsPaymentDetailsLodging(TypedDict): - address: NotRequired["ChargeModifyParamsPaymentDetailsLodgingAddress"] - """ - The lodging location's address. - """ - adults: NotRequired[int] +class ChargeModifyParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "ChargeModifyParamsPaymentDetailsFlightDatumAffiliate" + ] """ - The number of adults on the booking + Affiliate details if applicable. """ - affiliate: NotRequired["ChargeModifyParamsPaymentDetailsLodgingAffiliate"] + booking_number: NotRequired[str] """ - Affiliate details for this purchase. + Reservation reference. """ - booking_number: NotRequired[str] + computerized_reservation_system: NotRequired[str] """ - The booking number associated with the lodging reservation. + Computerized reservation system used to make the reservation and purchase the ticket. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + endorsements_and_restrictions: NotRequired[str] """ - The lodging category + Ticket restrictions. """ - checkin_at: int + insurances: NotRequired[ + List["ChargeModifyParamsPaymentDetailsFlightDatumInsurance"] + ] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + List of insurances. """ - checkout_at: int + passengers: NotRequired[ + List["ChargeModifyParamsPaymentDetailsFlightDatumPassenger"] + ] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + List of passengers. """ - customer_service_phone_number: NotRequired[str] + segments: List["ChargeModifyParamsPaymentDetailsFlightDatumSegment"] """ - The customer service phone number of the lodging company. + List of flight segments. """ - daily_room_rate_amount: NotRequired[int] + ticket_electronically_issued_indicator: NotRequired[bool] """ - The daily lodging room rate. + Electronic ticket indicator. """ - delivery: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDelivery"] + total: "ChargeModifyParamsPaymentDetailsFlightDatumTotal" """ - Delivery details for this purchase. + Total cost breakdown. """ - extra_charges: NotRequired[ - List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" ] ] """ - List of additional charges being billed. + Type of flight transaction. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + travel_authorization_code: NotRequired[str] + """ + Code provided by the company to a travel agent authorizing ticket issuance. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int + """ + Insurance cost. + """ + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Insurance company name. + """ + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str + """ + Passenger's full name. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] + """ + Segment fare amount. + """ + arrival: "ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival" + """ + Arrival details. + """ + carrier_code: str + """ + Airline carrier code. + """ + carrier_name: NotRequired[str] + """ + Carrier name. + """ + currency: NotRequired[str] + """ + Segment currency. + """ + departure: "ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture" + """ + Departure details. + """ + exchange_ticket_number: NotRequired[str] + """ + Exchange ticket number. + """ + fare_basis_code: NotRequired[str] + """ + Fare basis code. + """ + fees: NotRequired[int] + """ + Additional fees. + """ + flight_number: NotRequired[str] + """ + Flight number. + """ + is_stop_over_indicator: NotRequired[bool] + """ + Stopover indicator. + """ + refundable: NotRequired[bool] + """ + Refundable ticket indicator. + """ + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] + """ + Class of service. + """ + tax_amount: NotRequired[int] + """ + Tax amount for segment. + """ + ticket_number: NotRequired[str] + """ + Ticket number. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival(TypedDict): + airport: str + """ + Arrival airport IATA code. + """ + arrives_at: NotRequired[int] + """ + Arrival date/time. + """ + city: NotRequired[str] + """ + Arrival city. + """ + country: NotRequired[str] + """ + Arrival country. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture(TypedDict): + airport: str + """ + Departure airport IATA code. + """ + city: NotRequired[str] + """ + Departure city. + """ + country: NotRequired[str] + """ + Departure country. + """ + departs_at: int + """ + Departure date/time. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int + """ + Total flight amount. + """ + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] + ] + """ + Reason for credit. + """ + currency: NotRequired[str] + """ + Total currency. + """ + discounts: NotRequired[ + "ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts" + ] + """ + Discount details. + """ + extra_charges: NotRequired[ + List["ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge"] + ] + """ + Additional charges. + """ + tax: NotRequired["ChargeModifyParamsPaymentDetailsFlightDatumTotalTax"] + """ + Tax breakdown. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge(TypedDict): + amount: NotRequired[int] + """ + Amount of additional charges. + """ + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] + """ + Type of additional charges. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. + """ + + +class ChargeModifyParamsPaymentDetailsLodging(TypedDict): + address: NotRequired["ChargeModifyParamsPaymentDetailsLodgingAddress"] + """ + The lodging location's address. + """ + adults: NotRequired[int] + """ + The number of adults on the booking + """ + affiliate: NotRequired["ChargeModifyParamsPaymentDetailsLodgingAffiliate"] + """ + Affiliate details for this purchase. + """ + booking_number: NotRequired[str] + """ + The booking number associated with the lodging reservation. + """ + category: NotRequired[Literal["hotel", "vacation_rental"]] + """ + The lodging category + """ + checkin_at: int + """ + Lodging check-in time. Measured in seconds since the Unix epoch. + """ + checkout_at: int + """ + Lodging check-out time. Measured in seconds since the Unix epoch. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDelivery"] + """ + Delivery details for this purchase. + """ + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] + """ + List of additional charges being billed. """ fire_safety_act_compliance: NotRequired[bool] """ @@ -710,6 +1419,309 @@ class ChargeModifyParamsPaymentDetailsLodgingPassenger(TypedDict): """ +class ChargeModifyParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["ChargeModifyParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDatumHost"] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["ChargeModifyParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "ChargeModifyParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation(TypedDict): + accommodation_type: NotRequired[ + Literal[ + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", + ] + ] + """ + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Affiliate partner name. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str + """ + Guest's full name. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress" + ] + """ + Address of the host. + """ + country_of_domicile: NotRequired[str] + """ + Host's country of domicile. + """ + host_reference: NotRequired[str] + """ + Reference number for the host. + """ + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] + """ + Type of host. + """ + name: NotRequired[str] + """ + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int + """ + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int + """ + Total price of the lodging reservation in cents. + """ + cash_advances: NotRequired[int] + """ + Cash advances in cents. + """ + currency: NotRequired[str] + """ + Currency of the total amount. + """ + discounts: NotRequired[ + "ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] + """ + Discount details for the lodging. + """ + extra_charges: NotRequired[ + List["ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge"] + ] + """ + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax"] + """ + Tax breakdown for the lodging reservation. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge(TypedDict): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ + Literal[ + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" + ] + ] + """ + Type of extra charge. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ + + +class ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount in cents. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + class ChargeModifyParamsPaymentDetailsSubscription(TypedDict): affiliate: NotRequired[ "ChargeModifyParamsPaymentDetailsSubscriptionAffiliate" diff --git a/stripe/params/_charge_update_params.py b/stripe/params/_charge_update_params.py index 45c3462b1..8e8b27a41 100644 --- a/stripe/params/_charge_update_params.py +++ b/stripe/params/_charge_update_params.py @@ -55,6 +55,12 @@ class ChargeUpdateParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[ChargeUpdateParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -69,10 +75,22 @@ class ChargeUpdateParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[ChargeUpdateParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["ChargeUpdateParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[ChargeUpdateParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -319,6 +337,415 @@ class ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress(TypedDict): """ +class ChargeUpdateParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate" + ] + """ + Affiliate (such as travel agency) details for the rental. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the car rental. + """ + carrier_name: NotRequired[str] + """ + Name of the car rental company. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the car rental company. + """ + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance" + ] + """ + Distance details for the rental. + """ + drivers: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver"] + ] + """ + List of drivers for the rental. + """ + drop_off: "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff" + """ + Drop-off location details. + """ + insurances: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance"] + ] + """ + Insurance details for the rental. + """ + no_show_indicator: NotRequired[bool] + """ + Indicates if the customer was a no-show. + """ + pickup: "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup" + """ + Pickup location details. + """ + renter_name: NotRequired[str] + """ + Name of the person renting the vehicle. + """ + total: "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal" + """ + Total cost breakdown for the rental. + """ + vehicle: NotRequired[ + "ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle" + ] + """ + Vehicle details for the rental. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance(TypedDict): + amount: int + """ + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] + """ + Driver's date of birth. + """ + driver_identification_number: NotRequired[str] + """ + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( + TypedDict, +): + day: int + """ + Day of birth (1-31). + """ + month: int + """ + Month of birth (1-12). + """ + year: int + """ + Year of birth (must be greater than 1900). + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress" + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance(TypedDict): + amount: int + """ + Amount of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", + ] + """ + Type of insurance coverage. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress" + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int + """ + Total amount in cents. + """ + currency: NotRequired[str] + """ + Currency of the amount. + """ + discounts: NotRequired[ + "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts" + ] + """ + Discount details for the rental. + """ + extra_charges: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge"] + ] + """ + Additional charges for the rental. + """ + rate_per_unit: NotRequired[int] + """ + Rate per unit for the rental. + """ + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] + ] + """ + Unit of measurement for the rate. + """ + tax: NotRequired["ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax"] + """ + Tax breakdown for the rental. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code applied to the rental. + """ + maximum_free_miles_or_kilometers: NotRequired[int] + """ + Maximum number of free miles or kilometers included. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict +): + amount: int + """ + Amount of the extra charge in cents. + """ + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] + """ + Type of extra charge. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates if the transaction is tax exempt. + """ + taxes: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate applied. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + +class ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] + """ + Make of the rental vehicle. + """ + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] + ] + """ + Type of the rental vehicle. + """ + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Class of the rental vehicle. + """ + vehicle_identification_number: NotRequired[str] + """ + Vehicle identification number (VIN). + """ + + class ChargeUpdateParamsPaymentDetailsEventDetails(TypedDict): access_controlled_venue: NotRequired[bool] """ @@ -540,61 +967,343 @@ class ChargeUpdateParamsPaymentDetailsFlightSegment(TypedDict): """ -class ChargeUpdateParamsPaymentDetailsLodging(TypedDict): - address: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingAddress"] - """ - The lodging location's address. - """ - adults: NotRequired[int] +class ChargeUpdateParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate" + ] """ - The number of adults on the booking + Affiliate details if applicable. """ - affiliate: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingAffiliate"] + booking_number: NotRequired[str] """ - Affiliate details for this purchase. + Reservation reference. """ - booking_number: NotRequired[str] + computerized_reservation_system: NotRequired[str] """ - The booking number associated with the lodging reservation. + Computerized reservation system used to make the reservation and purchase the ticket. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + endorsements_and_restrictions: NotRequired[str] """ - The lodging category + Ticket restrictions. """ - checkin_at: int + insurances: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsFlightDatumInsurance"] + ] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + List of insurances. """ - checkout_at: int + passengers: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsFlightDatumPassenger"] + ] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + List of passengers. """ - customer_service_phone_number: NotRequired[str] + segments: List["ChargeUpdateParamsPaymentDetailsFlightDatumSegment"] """ - The customer service phone number of the lodging company. + List of flight segments. """ - daily_room_rate_amount: NotRequired[int] + ticket_electronically_issued_indicator: NotRequired[bool] """ - The daily lodging room rate. + Electronic ticket indicator. """ - delivery: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDelivery"] + total: "ChargeUpdateParamsPaymentDetailsFlightDatumTotal" """ - Delivery details for this purchase. + Total cost breakdown. """ - extra_charges: NotRequired[ - List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" ] ] """ - List of additional charges being billed. + Type of flight transaction. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + travel_authorization_code: NotRequired[str] + """ + Code provided by the company to a travel agent authorizing ticket issuance. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int + """ + Insurance cost. + """ + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Insurance company name. + """ + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str + """ + Passenger's full name. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] + """ + Segment fare amount. + """ + arrival: "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival" + """ + Arrival details. + """ + carrier_code: str + """ + Airline carrier code. + """ + carrier_name: NotRequired[str] + """ + Carrier name. + """ + currency: NotRequired[str] + """ + Segment currency. + """ + departure: "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture" + """ + Departure details. + """ + exchange_ticket_number: NotRequired[str] + """ + Exchange ticket number. + """ + fare_basis_code: NotRequired[str] + """ + Fare basis code. + """ + fees: NotRequired[int] + """ + Additional fees. + """ + flight_number: NotRequired[str] + """ + Flight number. + """ + is_stop_over_indicator: NotRequired[bool] + """ + Stopover indicator. + """ + refundable: NotRequired[bool] + """ + Refundable ticket indicator. + """ + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] + """ + Class of service. + """ + tax_amount: NotRequired[int] + """ + Tax amount for segment. + """ + ticket_number: NotRequired[str] + """ + Ticket number. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival(TypedDict): + airport: str + """ + Arrival airport IATA code. + """ + arrives_at: NotRequired[int] + """ + Arrival date/time. + """ + city: NotRequired[str] + """ + Arrival city. + """ + country: NotRequired[str] + """ + Arrival country. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture(TypedDict): + airport: str + """ + Departure airport IATA code. + """ + city: NotRequired[str] + """ + Departure city. + """ + country: NotRequired[str] + """ + Departure country. + """ + departs_at: int + """ + Departure date/time. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int + """ + Total flight amount. + """ + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] + ] + """ + Reason for credit. + """ + currency: NotRequired[str] + """ + Total currency. + """ + discounts: NotRequired[ + "ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts" + ] + """ + Discount details. + """ + extra_charges: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge"] + ] + """ + Additional charges. + """ + tax: NotRequired["ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax"] + """ + Tax breakdown. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge(TypedDict): + amount: NotRequired[int] + """ + Amount of additional charges. + """ + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] + """ + Type of additional charges. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. + """ + + +class ChargeUpdateParamsPaymentDetailsLodging(TypedDict): + address: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingAddress"] + """ + The lodging location's address. + """ + adults: NotRequired[int] + """ + The number of adults on the booking + """ + affiliate: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingAffiliate"] + """ + Affiliate details for this purchase. + """ + booking_number: NotRequired[str] + """ + The booking number associated with the lodging reservation. + """ + category: NotRequired[Literal["hotel", "vacation_rental"]] + """ + The lodging category + """ + checkin_at: int + """ + Lodging check-in time. Measured in seconds since the Unix epoch. + """ + checkout_at: int + """ + Lodging check-out time. Measured in seconds since the Unix epoch. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDelivery"] + """ + Delivery details for this purchase. + """ + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] + """ + List of additional charges being billed. """ fire_safety_act_compliance: NotRequired[bool] """ @@ -709,6 +1418,309 @@ class ChargeUpdateParamsPaymentDetailsLodgingPassenger(TypedDict): """ +class ChargeUpdateParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDatumHost"] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "ChargeUpdateParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation(TypedDict): + accommodation_type: NotRequired[ + Literal[ + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", + ] + ] + """ + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Affiliate partner name. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str + """ + Guest's full name. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress" + ] + """ + Address of the host. + """ + country_of_domicile: NotRequired[str] + """ + Host's country of domicile. + """ + host_reference: NotRequired[str] + """ + Reference number for the host. + """ + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] + """ + Type of host. + """ + name: NotRequired[str] + """ + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress(TypedDict): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int + """ + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int + """ + Total price of the lodging reservation in cents. + """ + cash_advances: NotRequired[int] + """ + Cash advances in cents. + """ + currency: NotRequired[str] + """ + Currency of the total amount. + """ + discounts: NotRequired[ + "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] + """ + Discount details for the lodging. + """ + extra_charges: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge"] + ] + """ + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax"] + """ + Tax breakdown for the lodging reservation. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts(TypedDict): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge(TypedDict): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ + Literal[ + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" + ] + ] + """ + Type of extra charge. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ + + +class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] + """ + Tax amount in cents. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + class ChargeUpdateParamsPaymentDetailsSubscription(TypedDict): affiliate: NotRequired[ "ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate" diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index f5bb6998e..01aeb5c6f 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -656,6 +656,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", diff --git a/stripe/params/_customer_balance_transaction_list_params.py b/stripe/params/_customer_balance_transaction_list_params.py index 6ef239a18..826403276 100644 --- a/stripe/params/_customer_balance_transaction_list_params.py +++ b/stripe/params/_customer_balance_transaction_list_params.py @@ -5,6 +5,10 @@ class CustomerBalanceTransactionListParams(TypedDict): + created: NotRequired["CustomerBalanceTransactionListParamsCreated|int"] + """ + Only return customer balance transactions that were created during the given date interval. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -21,3 +25,22 @@ class CustomerBalanceTransactionListParams(TypedDict): """ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ + + +class CustomerBalanceTransactionListParamsCreated(TypedDict): + gt: NotRequired[int] + """ + Minimum value to filter by (exclusive) + """ + gte: NotRequired[int] + """ + Minimum value to filter by (inclusive) + """ + lt: NotRequired[int] + """ + Maximum value to filter by (exclusive) + """ + lte: NotRequired[int] + """ + Maximum value to filter by (inclusive) + """ diff --git a/stripe/params/_customer_list_balance_transactions_params.py b/stripe/params/_customer_list_balance_transactions_params.py index 258153525..9175024be 100644 --- a/stripe/params/_customer_list_balance_transactions_params.py +++ b/stripe/params/_customer_list_balance_transactions_params.py @@ -2,10 +2,14 @@ # File generated from our OpenAPI spec from stripe._request_options import RequestOptions from typing import List -from typing_extensions import NotRequired +from typing_extensions import NotRequired, TypedDict class CustomerListBalanceTransactionsParams(RequestOptions): + created: NotRequired["CustomerListBalanceTransactionsParamsCreated|int"] + """ + Only return customer balance transactions that were created during the given date interval. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -22,3 +26,22 @@ class CustomerListBalanceTransactionsParams(RequestOptions): """ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ + + +class CustomerListBalanceTransactionsParamsCreated(TypedDict): + gt: NotRequired[int] + """ + Minimum value to filter by (exclusive) + """ + gte: NotRequired[int] + """ + Minimum value to filter by (inclusive) + """ + lt: NotRequired[int] + """ + Maximum value to filter by (exclusive) + """ + lte: NotRequired[int] + """ + Maximum value to filter by (inclusive) + """ diff --git a/stripe/params/_invoice_payment_list_params.py b/stripe/params/_invoice_payment_list_params.py index cf5327031..80bc1acf4 100644 --- a/stripe/params/_invoice_payment_list_params.py +++ b/stripe/params/_invoice_payment_list_params.py @@ -6,6 +6,10 @@ class InvoicePaymentListParams(RequestOptions): + created: NotRequired["InvoicePaymentListParamsCreated|int"] + """ + Only return invoice payments that were created during the given date interval. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -36,6 +40,25 @@ class InvoicePaymentListParams(RequestOptions): """ +class InvoicePaymentListParamsCreated(TypedDict): + gt: NotRequired[int] + """ + Minimum value to filter by (exclusive) + """ + gte: NotRequired[int] + """ + Minimum value to filter by (inclusive) + """ + lt: NotRequired[int] + """ + Maximum value to filter by (exclusive) + """ + lte: NotRequired[int] + """ + Maximum value to filter by (inclusive) + """ + + class InvoicePaymentListParamsPayment(TypedDict): payment_intent: NotRequired[str] """ diff --git a/stripe/params/_order_create_params.py b/stripe/params/_order_create_params.py index b7aa3b710..c4175e43f 100644 --- a/stripe/params/_order_create_params.py +++ b/stripe/params/_order_create_params.py @@ -758,6 +758,12 @@ class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarna(TypedDict): """ Subscription details if setting up or charging a subscription. """ + supplementary_purchase_data: NotRequired[ + "Literal['']|OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand( @@ -825,6 +831,1088 @@ class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNext """ +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" + ] + """ + Supplementary bus reservation details. + """ + event_reservation_details: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" + ] + """ + Supplementary event reservation details. + """ + ferry_reservation_details: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" + ] + """ + Supplementary ferry reservation details. + """ + insurances: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" + ] + """ + Supplementary insurance details. + """ + marketplace_sellers: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" + ] + """ + Supplementary marketplace seller details. + """ + round_trip_reservation_details: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" + ] + """ + Supplementary round trip reservation details. + """ + train_reservation_details: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" + ] + """ + Supplementary train reservation details. + """ + vouchers: NotRequired[ + "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" + ] + """ + Voucher details, such as a gift card or discount code. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] + """ + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" + ] + """ + Address of the event. + """ + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + ends_at: NotRequired[int] + """ + End timestamp of the event. + """ + event_company_name: NotRequired[str] + """ + Company selling the ticket. + """ + event_name: NotRequired[str] + """ + Name of the event. + """ + event_type: NotRequired[ + Literal[ + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", + ] + ] + """ + Type of the event. + """ + insurances: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] + ] + """ + List of insurances for this event. + """ + starts_at: NotRequired[int] + """ + Start timestamp of the event. + """ + venue_name: NotRequired[str] + """ + Name of the venue where the event takes place. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, +): + line_item_references: NotRequired[List[str]] + """ + The references to line items for purchases with multiple associated sub-sellers. + """ + marketplace_seller_address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] + """ + The address of the selling or delivering merchant. + """ + marketplace_seller_name: NotRequired[str] + """ + The name of the marketplace seller. + """ + marketplace_seller_reference: NotRequired[str] + """ + The unique identifier for the marketplace seller. + """ + number_of_transactions: NotRequired[int] + """ + The number of transactions the sub-seller completed in the last 12 months. + """ + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] + ] + """ + The category of the product. + """ + seller_last_login_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was last logged in. + """ + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] + ] + """ + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. + """ + seller_registered_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was created. + """ + seller_updated_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was last updated. + """ + shipping_references: NotRequired[List[str]] + """ + The references to shipping addresses for purchases with multiple associated sub-sellers. + """ + volume_of_transactions: NotRequired[int] + """ + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for this voucher. + """ + ends_at: NotRequired[int] + """ + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. + """ + + class OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_order_modify_params.py b/stripe/params/_order_modify_params.py index cb7902dc1..cf01e7df3 100644 --- a/stripe/params/_order_modify_params.py +++ b/stripe/params/_order_modify_params.py @@ -766,6 +766,12 @@ class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarna(TypedDict): """ Subscription details if setting up or charging a subscription. """ + supplementary_purchase_data: NotRequired[ + "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand( @@ -833,6 +839,1088 @@ class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNext """ +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" + ] + """ + Supplementary bus reservation details. + """ + event_reservation_details: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" + ] + """ + Supplementary event reservation details. + """ + ferry_reservation_details: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" + ] + """ + Supplementary ferry reservation details. + """ + insurances: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" + ] + """ + Supplementary insurance details. + """ + marketplace_sellers: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" + ] + """ + Supplementary marketplace seller details. + """ + round_trip_reservation_details: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" + ] + """ + Supplementary round trip reservation details. + """ + train_reservation_details: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" + ] + """ + Supplementary train reservation details. + """ + vouchers: NotRequired[ + "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" + ] + """ + Voucher details, such as a gift card or discount code. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] + """ + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" + ] + """ + Address of the event. + """ + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + ends_at: NotRequired[int] + """ + End timestamp of the event. + """ + event_company_name: NotRequired[str] + """ + Company selling the ticket. + """ + event_name: NotRequired[str] + """ + Name of the event. + """ + event_type: NotRequired[ + Literal[ + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", + ] + ] + """ + Type of the event. + """ + insurances: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] + ] + """ + List of insurances for this event. + """ + starts_at: NotRequired[int] + """ + Start timestamp of the event. + """ + venue_name: NotRequired[str] + """ + Name of the venue where the event takes place. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, +): + line_item_references: NotRequired[List[str]] + """ + The references to line items for purchases with multiple associated sub-sellers. + """ + marketplace_seller_address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] + """ + The address of the selling or delivering merchant. + """ + marketplace_seller_name: NotRequired[str] + """ + The name of the marketplace seller. + """ + marketplace_seller_reference: NotRequired[str] + """ + The unique identifier for the marketplace seller. + """ + number_of_transactions: NotRequired[int] + """ + The number of transactions the sub-seller completed in the last 12 months. + """ + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] + ] + """ + The category of the product. + """ + seller_last_login_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was last logged in. + """ + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] + ] + """ + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. + """ + seller_registered_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was created. + """ + seller_updated_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was last updated. + """ + shipping_references: NotRequired[List[str]] + """ + The references to shipping addresses for purchases with multiple associated sub-sellers. + """ + volume_of_transactions: NotRequired[int] + """ + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for this voucher. + """ + ends_at: NotRequired[int] + """ + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. + """ + + class OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_order_update_params.py b/stripe/params/_order_update_params.py index e78699671..5f0d32b71 100644 --- a/stripe/params/_order_update_params.py +++ b/stripe/params/_order_update_params.py @@ -765,6 +765,12 @@ class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarna(TypedDict): """ Subscription details if setting up or charging a subscription. """ + supplementary_purchase_data: NotRequired[ + "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand( @@ -832,6 +838,1088 @@ class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNext """ +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" + ] + """ + Supplementary bus reservation details. + """ + event_reservation_details: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" + ] + """ + Supplementary event reservation details. + """ + ferry_reservation_details: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" + ] + """ + Supplementary ferry reservation details. + """ + insurances: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" + ] + """ + Supplementary insurance details. + """ + marketplace_sellers: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" + ] + """ + Supplementary marketplace seller details. + """ + round_trip_reservation_details: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" + ] + """ + Supplementary round trip reservation details. + """ + train_reservation_details: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" + ] + """ + Supplementary train reservation details. + """ + vouchers: NotRequired[ + "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" + ] + """ + Voucher details, such as a gift card or discount code. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] + """ + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" + ] + """ + Address of the event. + """ + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + ends_at: NotRequired[int] + """ + End timestamp of the event. + """ + event_company_name: NotRequired[str] + """ + Company selling the ticket. + """ + event_name: NotRequired[str] + """ + Name of the event. + """ + event_type: NotRequired[ + Literal[ + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", + ] + ] + """ + Type of the event. + """ + insurances: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] + ] + """ + List of insurances for this event. + """ + starts_at: NotRequired[int] + """ + Start timestamp of the event. + """ + venue_name: NotRequired[str] + """ + Name of the venue where the event takes place. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, +): + line_item_references: NotRequired[List[str]] + """ + The references to line items for purchases with multiple associated sub-sellers. + """ + marketplace_seller_address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] + """ + The address of the selling or delivering merchant. + """ + marketplace_seller_name: NotRequired[str] + """ + The name of the marketplace seller. + """ + marketplace_seller_reference: NotRequired[str] + """ + The unique identifier for the marketplace seller. + """ + number_of_transactions: NotRequired[int] + """ + The number of transactions the sub-seller completed in the last 12 months. + """ + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] + ] + """ + The category of the product. + """ + seller_last_login_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was last logged in. + """ + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] + ] + """ + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. + """ + seller_registered_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was created. + """ + seller_updated_at: NotRequired[int] + """ + The date when the seller's account with the marketplace was last updated. + """ + shipping_references: NotRequired[List[str]] + """ + The references to shipping addresses for purchases with multiple associated sub-sellers. + """ + volume_of_transactions: NotRequired[int] + """ + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" + ] + """ + Arrival details. + """ + carrier_name: NotRequired[str] + """ + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" + ] + """ + Departure details. + """ + insurances: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" + ] + ] + """ + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" + ] + """ + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. + """ + + +class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( + TypedDict, +): + affiliate_name: NotRequired[str] + """ + Name of associated or partner company for this voucher. + """ + ends_at: NotRequired[int] + """ + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. + """ + + class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py index 9c07fc038..2f1b43afb 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -271,6 +271,12 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -287,10 +293,22 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["PaymentIntentCaptureParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -549,6 +567,441 @@ class PaymentIntentCaptureParamsPaymentDetailsCarRentalReturnAddress( """ +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate" + ] + """ + Affiliate (such as travel agency) details for the rental. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the car rental. + """ + carrier_name: NotRequired[str] + """ + Name of the car rental company. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the car rental company. + """ + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance" + ] + """ + Distance details for the rental. + """ + drivers: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver"] + ] + """ + List of drivers for the rental. + """ + drop_off: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff" + """ + Drop-off location details. + """ + insurances: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance"] + ] + """ + Insurance details for the rental. + """ + no_show_indicator: NotRequired[bool] + """ + Indicates if the customer was a no-show. + """ + pickup: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup" + """ + Pickup location details. + """ + renter_name: NotRequired[str] + """ + Name of the person renting the vehicle. + """ + total: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal" + """ + Total cost breakdown for the rental. + """ + vehicle: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle" + ] + """ + Vehicle details for the rental. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate( + TypedDict, +): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance( + TypedDict +): + amount: int + """ + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] + """ + Driver's date of birth. + """ + driver_identification_number: NotRequired[str] + """ + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( + TypedDict, +): + day: int + """ + Day of birth (1-31). + """ + month: int + """ + Month of birth (1-12). + """ + year: int + """ + Year of birth (must be greater than 1900). + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: ( + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress" + ) + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress( + TypedDict, +): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance( + TypedDict, +): + amount: int + """ + Amount of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", + ] + """ + Type of insurance coverage. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: ( + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress" + ) + """ + Address of the rental location. + """ + location_name: NotRequired[str] + """ + Location name. + """ + time: int + """ + Timestamp for the location. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress( + TypedDict, +): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int + """ + Total amount in cents. + """ + currency: NotRequired[str] + """ + Currency of the amount. + """ + discounts: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts" + ] + """ + Discount details for the rental. + """ + extra_charges: NotRequired[ + List[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge" + ] + ] + """ + Additional charges for the rental. + """ + rate_per_unit: NotRequired[int] + """ + Rate per unit for the rental. + """ + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] + ] + """ + Unit of measurement for the rate. + """ + tax: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax" + ] + """ + Tax breakdown for the rental. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code applied to the rental. + """ + maximum_free_miles_or_kilometers: NotRequired[int] + """ + Maximum number of free miles or kilometers included. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict, +): + amount: int + """ + Amount of the extra charge in cents. + """ + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] + """ + Type of extra charge. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax( + TypedDict +): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates if the transaction is tax exempt. + """ + taxes: NotRequired[ + List[ + "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax" + ] + ] + """ + Array of tax details. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate applied. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] + """ + Make of the rental vehicle. + """ + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] + ] + """ + Type of the rental vehicle. + """ + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Class of the rental vehicle. + """ + vehicle_identification_number: NotRequired[str] + """ + Vehicle identification number (VIN). + """ + + class PaymentIntentCaptureParamsPaymentDetailsEventDetails(TypedDict): access_controlled_venue: NotRequired[bool] """ @@ -780,28 +1233,330 @@ class PaymentIntentCaptureParamsPaymentDetailsFlightSegment(TypedDict): """ -class PaymentIntentCaptureParamsPaymentDetailsLodging(TypedDict): - address: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsLodgingAddress" +class PaymentIntentCaptureParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate" ] """ - The lodging location's address. + Affiliate details if applicable. """ - adults: NotRequired[int] + booking_number: NotRequired[str] """ - The number of adults on the booking + Reservation reference. """ - affiliate: NotRequired[ - "PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate" - ] + computerized_reservation_system: NotRequired[str] """ - Affiliate details for this purchase. + Computerized reservation system used to make the reservation and purchase the ticket. """ - booking_number: NotRequired[str] + endorsements_and_restrictions: NotRequired[str] """ - The booking number associated with the lodging reservation. + Ticket restrictions. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + insurances: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance"] + ] + """ + List of insurances. + """ + passengers: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger"] + ] + """ + List of passengers. + """ + segments: List[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment" + ] + """ + List of flight segments. + """ + ticket_electronically_issued_indicator: NotRequired[bool] + """ + Electronic ticket indicator. + """ + total: "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal" + """ + Total cost breakdown. + """ + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" + ] + ] + """ + Type of flight transaction. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Name of affiliate partner. + """ + travel_authorization_code: NotRequired[str] + """ + Code provided by the company to a travel agent authorizing ticket issuance. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int + """ + Insurance cost. + """ + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Insurance company name. + """ + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str + """ + Passenger's full name. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] + """ + Segment fare amount. + """ + arrival: ( + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival" + ) + """ + Arrival details. + """ + carrier_code: str + """ + Airline carrier code. + """ + carrier_name: NotRequired[str] + """ + Carrier name. + """ + currency: NotRequired[str] + """ + Segment currency. + """ + departure: ( + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture" + ) + """ + Departure details. + """ + exchange_ticket_number: NotRequired[str] + """ + Exchange ticket number. + """ + fare_basis_code: NotRequired[str] + """ + Fare basis code. + """ + fees: NotRequired[int] + """ + Additional fees. + """ + flight_number: NotRequired[str] + """ + Flight number. + """ + is_stop_over_indicator: NotRequired[bool] + """ + Stopover indicator. + """ + refundable: NotRequired[bool] + """ + Refundable ticket indicator. + """ + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] + """ + Class of service. + """ + tax_amount: NotRequired[int] + """ + Tax amount for segment. + """ + ticket_number: NotRequired[str] + """ + Ticket number. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival( + TypedDict, +): + airport: str + """ + Arrival airport IATA code. + """ + arrives_at: NotRequired[int] + """ + Arrival date/time. + """ + city: NotRequired[str] + """ + Arrival city. + """ + country: NotRequired[str] + """ + Arrival country. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture( + TypedDict, +): + airport: str + """ + Departure airport IATA code. + """ + city: NotRequired[str] + """ + Departure city. + """ + country: NotRequired[str] + """ + Departure country. + """ + departs_at: int + """ + Departure date/time. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int + """ + Total flight amount. + """ + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] + ] + """ + Reason for credit. + """ + currency: NotRequired[str] + """ + Total currency. + """ + discounts: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts" + ] + """ + Discount details. + """ + extra_charges: NotRequired[ + List[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge" + ] + ] + """ + Additional charges. + """ + tax: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax" + ] + """ + Tax breakdown. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] + """ + Amount of additional charges. + """ + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] + """ + Type of additional charges. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax( + TypedDict +): + amount: NotRequired[int] + """ + Tax amount. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodging(TypedDict): + address: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingAddress" + ] + """ + The lodging location's address. + """ + adults: NotRequired[int] + """ + The number of adults on the booking + """ + affiliate: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate" + ] + """ + Affiliate details for this purchase. + """ + booking_number: NotRequired[str] + """ + The booking number associated with the lodging reservation. + """ + category: NotRequired[Literal["hotel", "vacation_rental"]] """ The lodging category """ @@ -957,6 +1712,325 @@ class PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger(TypedDict): """ +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost" + ] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation( + TypedDict, +): + accommodation_type: NotRequired[ + Literal[ + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", + ] + ] + """ + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] + """ + Affiliate partner code. + """ + name: NotRequired[str] + """ + Affiliate partner name. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str + """ + Guest's full name. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress" + ] + """ + Address of the host. + """ + country_of_domicile: NotRequired[str] + """ + Host's country of domicile. + """ + host_reference: NotRequired[str] + """ + Reference number for the host. + """ + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] + """ + Type of host. + """ + name: NotRequired[str] + """ + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress( + TypedDict, +): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int + """ + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int + """ + Total price of the lodging reservation in cents. + """ + cash_advances: NotRequired[int] + """ + Cash advances in cents. + """ + currency: NotRequired[str] + """ + Currency of the total amount. + """ + discounts: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] + """ + Discount details for the lodging. + """ + extra_charges: NotRequired[ + List[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge" + ] + ] + """ + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired[ + "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax" + ] + """ + Tax breakdown for the lodging reservation. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ + Literal[ + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" + ] + ] + """ + Type of extra charge. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ + + +class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] + """ + Tax amount in cents. + """ + rate: NotRequired[int] + """ + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax applied. + """ + + class PaymentIntentCaptureParamsPaymentDetailsSubscription(TypedDict): affiliate: NotRequired[ "PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate" diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 053711bd6..ff8607df0 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -391,6 +391,12 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -407,10 +413,22 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["PaymentIntentConfirmParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -669,344 +687,487 @@ class PaymentIntentConfirmParamsPaymentDetailsCarRentalReturnAddress( """ -class PaymentIntentConfirmParamsPaymentDetailsEventDetails(TypedDict): - access_controlled_venue: NotRequired[bool] +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate" + ] """ - Indicates if the tickets are digitally checked when entering the venue. + Affiliate (such as travel agency) details for the rental. """ - address: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress" - ] + booking_number: NotRequired[str] """ - The event location's address. + Booking confirmation number for the car rental. """ - affiliate: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate" - ] + carrier_name: NotRequired[str] """ - Affiliate details for this purchase. + Name of the car rental company. """ - company: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The name of the company + Customer service phone number for the car rental company. """ - delivery: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery" + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance" ] """ - Delivery details for this purchase. + Distance details for the rental. """ - ends_at: NotRequired[int] + drivers: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver"] + ] """ - Event end time. Measured in seconds since the Unix epoch. + List of drivers for the rental. """ - genre: NotRequired[str] + drop_off: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff" """ - Type of the event entertainment (concert, sports event etc) + Drop-off location details. """ - name: str + insurances: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance"] + ] """ - The name of the event. + Insurance details for the rental. """ - starts_at: NotRequired[int] + no_show_indicator: NotRequired[bool] """ - Event start time. Measured in seconds since the Unix epoch. + Indicates if the customer was a no-show. """ - - -class PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress(TypedDict): - city: NotRequired[str] + pickup: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup" """ - City, district, suburb, town, or village. + Pickup location details. """ - country: NotRequired[str] + renter_name: NotRequired[str] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Name of the person renting the vehicle. """ - line1: NotRequired[str] + total: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal" """ - Address line 1, such as the street, PO Box, or company name. + Total cost breakdown for the rental. """ - line2: NotRequired[str] + vehicle: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle" + ] """ - Address line 2, such as the apartment, suite, unit, or building. + Vehicle details for the rental. """ - postal_code: NotRequired[str] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate( + TypedDict, +): + code: NotRequired[str] """ - ZIP or postal code. + Affiliate partner code. """ - state: NotRequired[str] + name: NotRequired[str] """ - State, county, province, or region. + Name of affiliate partner. """ -class PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate(TypedDict): - name: str +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance( + TypedDict +): + amount: int """ - The name of the affiliate that originated the purchase. + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. """ -class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] """ - The delivery method for the payment + Driver's date of birth. """ - recipient: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient" - ] + driver_identification_number: NotRequired[str] """ - Details of the recipient. + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. """ -class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient( +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( TypedDict, ): - email: NotRequired[str] + day: int """ - The email of the recipient the ticket is delivered to. + Day of birth (1-31). """ - name: NotRequired[str] + month: int """ - The name of the recipient the ticket is delivered to. + Month of birth (1-12). """ - phone: NotRequired[str] + year: int """ - The phone number of the recipient the ticket is delivered to. + Year of birth (must be greater than 1900). """ -class PaymentIntentConfirmParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate" - ] +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: ( + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress" + ) """ - Affiliate details for this purchase. + Address of the rental location. """ - agency_number: NotRequired[str] + location_name: NotRequired[str] """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + Location name. """ - carrier: NotRequired[str] + time: int """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Timestamp for the location. """ - delivery: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress( + TypedDict, +): + city: str """ - Delivery details for this purchase. + City, district, suburb, town, or village. """ - passenger_name: NotRequired[str] + country: str """ - The name of the person or entity on the reservation. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - passengers: NotRequired[ - List["PaymentIntentConfirmParamsPaymentDetailsFlightPassenger"] - ] + line1: str """ - The details of the passengers in the travel reservation. + Address line 1, such as the street, PO Box, or company name. """ - segments: List["PaymentIntentConfirmParamsPaymentDetailsFlightSegment"] + line2: NotRequired[str] """ - The individual flight segments associated with the trip. + Address line 2, such as the apartment, suite, unit, or building. """ - ticket_number: NotRequired[str] + postal_code: str """ - The ticket number associated with the travel reservation. + ZIP or postal code. """ - - -class PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + state: NotRequired[str] """ - The name of the affiliate that originated the purchase. + State, county, province, or region. """ -class PaymentIntentConfirmParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance( + TypedDict, +): + amount: int """ - The delivery method for the payment + Amount of the insurance coverage in cents. """ - recipient: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient" + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", ] """ - Details of the recipient. + Type of insurance coverage. """ -class PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict, -): - email: NotRequired[str] +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: ( + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress" + ) """ - The email of the recipient the ticket is delivered to. + Address of the rental location. """ - name: NotRequired[str] + location_name: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Location name. """ - phone: NotRequired[str] + time: int """ - The phone number of the recipient the ticket is delivered to. + Timestamp for the location. """ -class PaymentIntentConfirmParamsPaymentDetailsFlightPassenger(TypedDict): - name: str +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress( + TypedDict, +): + city: str """ - Full name of the person or entity on the flight reservation. + City, district, suburb, town, or village. """ - - -class PaymentIntentConfirmParamsPaymentDetailsFlightSegment(TypedDict): - amount: NotRequired[int] + country: str """ - The flight segment amount. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - arrival_airport: NotRequired[str] + line1: str """ - The International Air Transport Association (IATA) airport code for the arrival airport. + Address line 1, such as the street, PO Box, or company name. """ - arrives_at: NotRequired[int] + line2: NotRequired[str] """ - The arrival time for the flight segment. Measured in seconds since the Unix epoch. + Address line 2, such as the apartment, suite, unit, or building. """ - carrier: NotRequired[str] + postal_code: str """ - The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. + ZIP or postal code. """ - departs_at: int + state: NotRequired[str] """ - The departure time for the flight segment. Measured in seconds since the Unix epoch. + State, county, province, or region. """ - departure_airport: NotRequired[str] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int """ - The International Air Transport Association (IATA) airport code for the departure airport. + Total amount in cents. """ - flight_number: NotRequired[str] + currency: NotRequired[str] """ - The flight number associated with the segment + Currency of the amount. """ - service_class: NotRequired[ - Literal["business", "economy", "first", "premium_economy"] + discounts: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts" ] """ - The fare class for the segment. + Discount details for the rental. """ - - -class PaymentIntentConfirmParamsPaymentDetailsLodging(TypedDict): - address: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsLodgingAddress" + extra_charges: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge" + ] ] """ - The lodging location's address. + Additional charges for the rental. """ - adults: NotRequired[int] + rate_per_unit: NotRequired[int] """ - The number of adults on the booking + Rate per unit for the rental. """ - affiliate: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate" + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] ] """ - Affiliate details for this purchase. + Unit of measurement for the rate. """ - booking_number: NotRequired[str] + tax: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax" + ] """ - The booking number associated with the lodging reservation. + Tax breakdown for the rental. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - The lodging category + Corporate client discount code. """ - checkin_at: int + coupon: NotRequired[str] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + Coupon code applied to the rental. """ - checkout_at: int + maximum_free_miles_or_kilometers: NotRequired[int] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + Maximum number of free miles or kilometers included. """ - customer_service_phone_number: NotRequired[str] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict, +): + amount: int """ - The customer service phone number of the lodging company. + Amount of the extra charge in cents. """ - daily_room_rate_amount: NotRequired[int] + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] """ - The daily lodging room rate. + Type of extra charge. """ - delivery: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax( + TypedDict +): + tax_exempt_indicator: NotRequired[bool] """ - Delivery details for this purchase. + Indicates if the transaction is tax exempt. """ - extra_charges: NotRequired[ + taxes: NotRequired[ List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax" ] ] """ - List of additional charges being billed. + Array of tax details. """ - fire_safety_act_compliance: NotRequired[bool] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] """ - Indicates whether the lodging location is compliant with the Fire Safety Act. + Tax amount. """ - name: NotRequired[str] + rate: NotRequired[int] """ - The name of the lodging location. + Tax rate applied. """ - no_show: NotRequired[bool] + type: NotRequired[str] """ - Indicates if the customer did not keep their booking while failing to cancel the reservation. + Type of tax applied. """ - number_of_rooms: NotRequired[int] + + +class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] """ - The number of rooms on the booking + Make of the rental vehicle. """ - passengers: NotRequired[ - List["PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger"] + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] ] """ - The details of the passengers in the travel reservation + Type of the rental vehicle. """ - property_phone_number: NotRequired[str] + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] """ - The phone number of the lodging location. + Class of the rental vehicle. """ - room_class: NotRequired[str] + vehicle_identification_number: NotRequired[str] """ - The room class for this purchase. + Vehicle identification number (VIN). """ - room_nights: NotRequired[int] + + +class PaymentIntentConfirmParamsPaymentDetailsEventDetails(TypedDict): + access_controlled_venue: NotRequired[bool] """ - The number of room nights + Indicates if the tickets are digitally checked when entering the venue. """ - total_room_tax_amount: NotRequired[int] + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress" + ] """ - The total tax amount associating with the room reservation. + The event location's address. """ - total_tax_amount: NotRequired[int] + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate" + ] """ - The total tax amount + Affiliate details for this purchase. + """ + company: NotRequired[str] + """ + The name of the company + """ + delivery: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery" + ] + """ + Delivery details for this purchase. + """ + ends_at: NotRequired[int] + """ + Event end time. Measured in seconds since the Unix epoch. + """ + genre: NotRequired[str] + """ + Type of the event entertainment (concert, sports event etc) + """ + name: str + """ + The name of the event. + """ + starts_at: NotRequired[int] + """ + Event start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentConfirmParamsPaymentDetailsLodgingAddress(TypedDict): +class PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1033,27 +1194,27 @@ class PaymentIntentConfirmParamsPaymentDetailsLodgingAddress(TypedDict): """ -class PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate(TypedDict): +class PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery(TypedDict): +class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery(TypedDict): mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ The delivery method for the payment """ recipient: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient" + "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient" ] """ Details of the recipient. """ -class PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient( +class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient( TypedDict, ): email: NotRequired[str] @@ -1070,519 +1231,537 @@ class PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient( """ -class PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger(TypedDict): - name: str - """ - Full name of the person or entity on the lodging reservation. - """ - - -class PaymentIntentConfirmParamsPaymentDetailsSubscription(TypedDict): +class PaymentIntentConfirmParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate" + "PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate" ] """ Affiliate details for this purchase. """ - auto_renewal: NotRequired[bool] + agency_number: NotRequired[str] """ - Info whether the subscription will be auto renewed upon expiry. + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. """ - billing_interval: NotRequired[ - "PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval" + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery" ] """ - Subscription billing details for this purchase. + Delivery details for this purchase. """ - ends_at: NotRequired[int] + passenger_name: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + The name of the person or entity on the reservation. """ - name: str + passengers: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsFlightPassenger"] + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + The details of the passengers in the travel reservation. """ - starts_at: NotRequired[int] + segments: List["PaymentIntentConfirmParamsPaymentDetailsFlightSegment"] """ - Subscription start time. Measured in seconds since the Unix epoch. + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. """ -class PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate(TypedDict): +class PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval( - TypedDict, -): - count: int +class PaymentIntentConfirmParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + The delivery method for the payment """ - interval: Literal["day", "month", "week", "year"] + recipient: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient" + ] """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Details of the recipient. """ -class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): - acss_debit: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataAcssDebit" - ] +class PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] """ - If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. + The email of the recipient the ticket is delivered to. """ - affirm: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAffirm"] + name: NotRequired[str] """ - If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + The name of the recipient the ticket is delivered to. """ - afterpay_clearpay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay" - ] + phone: NotRequired[str] """ - If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. + The phone number of the recipient the ticket is delivered to. """ - alipay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlipay"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightPassenger(TypedDict): + name: str """ - If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. + Full name of the person or entity on the flight reservation. """ - allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightSegment(TypedDict): + amount: NotRequired[int] """ - This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + The flight segment amount. """ - alma: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlma"] + arrival_airport: NotRequired[str] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + The International Air Transport Association (IATA) airport code for the arrival airport. """ - amazon_pay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay" - ] + arrives_at: NotRequired[int] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + The arrival time for the flight segment. Measured in seconds since the Unix epoch. """ - au_becs_debit: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit" - ] + carrier: NotRequired[str] """ - If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. + The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. """ - bacs_debit: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit" - ] + departs_at: int """ - If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. + The departure time for the flight segment. Measured in seconds since the Unix epoch. """ - bancontact: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataBancontact" - ] + departure_airport: NotRequired[str] """ - If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. + The International Air Transport Association (IATA) airport code for the departure airport. """ - billie: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBillie"] + flight_number: NotRequired[str] """ - If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. + The flight number associated with the segment """ - billing_details: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataBillingDetails" + service_class: NotRequired[ + Literal["business", "economy", "first", "premium_economy"] ] """ - Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + The fare class for the segment. """ - blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate" + ] """ - If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + Affiliate details if applicable. """ - boleto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBoleto"] + booking_number: NotRequired[str] """ - If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. + Reservation reference. """ - cashapp: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCashapp"] + computerized_reservation_system: NotRequired[str] """ - If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. + Computerized reservation system used to make the reservation and purchase the ticket. """ - crypto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCrypto"] + endorsements_and_restrictions: NotRequired[str] """ - If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. + Ticket restrictions. """ - customer_balance: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance" + insurances: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance"] ] """ - If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. + List of insurances. """ - eps: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataEps"] + passengers: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger"] + ] """ - If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. + List of passengers. """ - fpx: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataFpx"] + segments: List[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment" + ] """ - If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. + List of flight segments. """ - giropay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGiropay"] + ticket_electronically_issued_indicator: NotRequired[bool] """ - If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. + Electronic ticket indicator. """ - gopay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGopay"] + total: "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal" """ - If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. + Total cost breakdown. """ - grabpay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGrabpay"] + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" + ] + ] """ - If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. + Type of flight transaction. """ - id_bank_transfer: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] """ - If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. + Affiliate partner code. """ - ideal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataIdeal"] + name: NotRequired[str] """ - If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. + Name of affiliate partner. """ - interac_present: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataInteracPresent" - ] + travel_authorization_code: NotRequired[str] """ - If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. + Code provided by the company to a travel agent authorizing ticket issuance. """ - kakao_pay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataKakaoPay" + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int + """ + Insurance cost. + """ + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Insurance company name. + """ + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" ] """ - If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + Type of insurance. """ - klarna: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarna"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str """ - If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. + Passenger's full name. """ - konbini: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKonbini"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] """ - If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + Segment fare amount. """ - kr_card: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKrCard"] + arrival: ( + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival" + ) """ - If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + Arrival details. """ - link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"] + carrier_code: str """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + Airline carrier code. """ - mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"] + carrier_name: NotRequired[str] """ - If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + Carrier name. """ - metadata: NotRequired[Dict[str, str]] + currency: NotRequired[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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + Segment currency. """ - mobilepay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataMobilepay" - ] + departure: ( + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture" + ) """ - If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + Departure details. """ - multibanco: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataMultibanco" - ] + exchange_ticket_number: NotRequired[str] """ - If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. + Exchange ticket number. """ - naver_pay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataNaverPay" - ] + fare_basis_code: NotRequired[str] """ - If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + Fare basis code. """ - nz_bank_account: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount" - ] + fees: NotRequired[int] """ - If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. + Additional fees. """ - oxxo: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataOxxo"] + flight_number: NotRequired[str] """ - If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + Flight number. """ - p24: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataP24"] + is_stop_over_indicator: NotRequired[bool] """ - If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + Stopover indicator. """ - pay_by_bank: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataPayByBank" - ] + refundable: NotRequired[bool] """ - If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + Refundable ticket indicator. """ - payco: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayco"] + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] """ - If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Class of service. """ - paynow: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaynow"] + tax_amount: NotRequired[int] """ - If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + Tax amount for segment. """ - paypal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypal"] + ticket_number: NotRequired[str] """ - If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + Ticket number. """ - paypay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypay"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival( + TypedDict, +): + airport: str """ - If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + Arrival airport IATA code. """ - payto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayto"] + arrives_at: NotRequired[int] """ - If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Arrival date/time. """ - pix: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPix"] + city: NotRequired[str] """ - If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + Arrival city. """ - promptpay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataPromptpay" - ] + country: NotRequired[str] """ - If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + Arrival country. """ - qris: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataQris"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture( + TypedDict, +): + airport: str """ - If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + Departure airport IATA code. """ - radar_options: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataRadarOptions" - ] + city: NotRequired[str] """ - Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. + Departure city. """ - rechnung: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataRechnung" - ] + country: NotRequired[str] """ - If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + Departure country. """ - revolut_pay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataRevolutPay" - ] + departs_at: int """ - If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. + Departure date/time. """ - samsung_pay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataSamsungPay" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int """ - If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + Total flight amount. """ - satispay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataSatispay" + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] ] """ - If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + Reason for credit. """ - sepa_debit: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit" - ] + currency: NotRequired[str] """ - If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. + Total currency. """ - shopeepay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataShopeepay" + discounts: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts" ] """ - If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + Discount details. """ - sofort: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSofort"] + extra_charges: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge" + ] + ] """ - If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + Additional charges. """ - stripe_balance: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataStripeBalance" + tax: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax" ] """ - This hash contains details about the Stripe balance payment method. + Tax breakdown. """ - swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + Corporate client discount code. """ - twint: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataTwint"] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] """ - If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + Amount of additional charges. """ - type: Literal[ - "acss_debit", - "affirm", - "afterpay_clearpay", - "alipay", - "alma", - "amazon_pay", - "au_becs_debit", - "bacs_debit", - "bancontact", - "billie", - "blik", - "boleto", - "cashapp", - "crypto", - "customer_balance", - "eps", - "fpx", - "giropay", - "gopay", - "grabpay", - "id_bank_transfer", - "ideal", - "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", - "swish", - "twint", - "us_bank_account", - "wechat_pay", - "zip", + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] ] """ - 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. + Type of additional charges. """ - us_bank_account: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount" + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax"] ] """ - If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + Array of tax details. """ - wechat_pay: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodDataWechatPay" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax( + TypedDict +): + amount: NotRequired[int] """ - If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. + Tax amount. """ - zip: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataZip"] + rate: NotRequired[int] """ - If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. """ -class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): - account_number: str +class PaymentIntentConfirmParamsPaymentDetailsLodging(TypedDict): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingAddress" + ] """ - Customer's bank account number. + The lodging location's address. """ - institution_number: str + adults: NotRequired[int] """ - Institution number of the customer's bank. + The number of adults on the booking """ - transit_number: str + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate" + ] """ - Transit number of the customer's bank. + Affiliate details for this purchase. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataAffirm(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataAlipay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataAlma(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataAmazonPay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit(TypedDict): - account_number: str + booking_number: NotRequired[str] """ - The account number for the bank account. + The booking number associated with the lodging reservation. """ - bsb_number: str + category: NotRequired[Literal["hotel", "vacation_rental"]] """ - Bank-State-Branch number of the bank account. + The lodging category """ - - -class PaymentIntentConfirmParamsPaymentMethodDataBacsDebit(TypedDict): - account_number: NotRequired[str] + checkin_at: int """ - Account number of the bank account that the funds will be debited from. + Lodging check-in time. Measured in seconds since the Unix epoch. """ - sort_code: NotRequired[str] + checkout_at: int """ - Sort code of the bank account. (e.g., `10-20-30`) + Lodging check-out time. Measured in seconds since the Unix epoch. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataBancontact(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataBillie(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataBillingDetails(TypedDict): - address: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress" + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery" ] """ - Billing address. + Delivery details for this purchase. """ - email: NotRequired["Literal['']|str"] + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] """ - Email address. + List of additional charges being billed. """ - name: NotRequired["Literal['']|str"] + fire_safety_act_compliance: NotRequired[bool] """ - Full name. + Indicates whether the lodging location is compliant with the Fire Safety Act. """ - phone: NotRequired["Literal['']|str"] + name: NotRequired[str] """ - Billing phone number (including extension). + The name of the lodging location. """ - tax_id: NotRequired[str] + no_show: NotRequired[bool] """ - Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + Indicates if the customer did not keep their booking while failing to cancel the reservation. + """ + number_of_rooms: NotRequired[int] + """ + The number of rooms on the booking + """ + passengers: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger"] + ] + """ + The details of the passengers in the travel reservation + """ + property_phone_number: NotRequired[str] + """ + The phone number of the lodging location. + """ + room_class: NotRequired[str] + """ + The room class for this purchase. + """ + room_nights: NotRequired[int] + """ + The number of room nights + """ + total_room_tax_amount: NotRequired[int] + """ + The total tax amount associating with the room reservation. + """ + total_tax_amount: NotRequired[int] + """ + The total tax amount """ -class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( - TypedDict, -): +class PaymentIntentConfirmParamsPaymentDetailsLodgingAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1609,1847 +1788,3831 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( """ -class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataBoleto(TypedDict): - tax_id: str +class PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate(TypedDict): + name: str """ - The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + The name of the affiliate that originated the purchase. """ -class PaymentIntentConfirmParamsPaymentMethodDataCashapp(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataCrypto(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict): - bank: NotRequired[ - Literal[ - "arzte_und_apotheker_bank", - "austrian_anadi_bank_ag", - "bank_austria", - "bankhaus_carl_spangler", - "bankhaus_schelhammer_und_schattera_ag", - "bawag_psk_ag", - "bks_bank_ag", - "brull_kallmus_bank_ag", - "btv_vier_lander_bank", - "capital_bank_grawe_gruppe_ag", - "deutsche_bank_ag", - "dolomitenbank", - "easybank_ag", - "erste_bank_und_sparkassen", - "hypo_alpeadriabank_international_ag", - "hypo_bank_burgenland_aktiengesellschaft", - "hypo_noe_lb_fur_niederosterreich_u_wien", - "hypo_oberosterreich_salzburg_steiermark", - "hypo_tirol_bank_ag", - "hypo_vorarlberg_bank_ag", - "marchfelder_bank", - "oberbank_ag", - "raiffeisen_bankengruppe_osterreich", - "schoellerbank_ag", - "sparda_bank_wien", - "volksbank_gruppe", - "volkskreditbank_ag", - "vr_bank_braunau", - ] +class PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] + """ + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient" ] """ - The customer's bank. + Details of the recipient. """ -class PaymentIntentConfirmParamsPaymentMethodDataFpx(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] +class PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] """ - Account holder type for FPX transaction + The email of the recipient the ticket is delivered to. """ - 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", - ] + name: NotRequired[str] """ - The customer's bank. + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. """ -class PaymentIntentConfirmParamsPaymentMethodDataGiropay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataGopay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer(TypedDict): - bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] +class PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger(TypedDict): + name: str """ - Bank where the account is held. + Full name of the person or entity on the lodging reservation. """ -class PaymentIntentConfirmParamsPaymentMethodDataIdeal(TypedDict): - bank: NotRequired[ - Literal[ - "abn_amro", - "asn_bank", - "bunq", - "buut", - "handelsbanken", - "ing", - "knab", - "moneyou", - "n26", - "nn", - "rabobank", - "regiobank", - "revolut", - "sns_bank", - "triodos_bank", - "van_lanschot", - "yoursafe", - ] +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation" ] """ - The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + Accommodation details for the lodging. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataInteracPresent(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataKakaoPay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataKlarna(TypedDict): - dob: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob"] + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate" + ] """ - Customer's date of birth + Affiliate details if applicable. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob(TypedDict): - day: int + booking_number: NotRequired[str] """ - The day of birth, between 1 and 31. + Booking confirmation number for the lodging. """ - month: int + checkin_at: int """ - The month of birth, between 1 and 12. + Check-in date. """ - year: int + checkout_at: int """ - The four-digit year of birth. + Check-out date. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataKonbini(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataKrCard(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataLink(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataMbWay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataMobilepay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataMultibanco(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataNaverPay(TypedDict): - funding: NotRequired[Literal["card", "points"]] + customer_service_phone_number: NotRequired[str] """ - Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Customer service phone number for the lodging company. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount(TypedDict): - account_holder_name: NotRequired[str] + fire_safety_act_compliance_indicator: NotRequired[bool] """ - The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + Whether the lodging is compliant with any hotel fire safety regulations. """ - account_number: str + guests: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest"] + ] """ - The account number for the bank account. + List of guests for the lodging. """ - bank_code: str + host: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost" + ] """ - The numeric code for the bank account's bank. + Host details for the lodging. """ - branch_code: str + insurances: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance"] + ] """ - The numeric code for the bank account's bank branch. + List of insurances for the lodging. """ - reference: NotRequired[str] - suffix: str + no_show_indicator: NotRequired[bool] """ - The suffix of the bank account number. + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. """ -class PaymentIntentConfirmParamsPaymentMethodDataOxxo(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataP24(TypedDict): - bank: NotRequired[ +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation( + TypedDict, +): + accommodation_type: NotRequired[ 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", + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", ] ] """ - The customer's bank. + Type of accommodation. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataPayByBank(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataPayco(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataPaynow(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataPaypal(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataPaypay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataPayto(TypedDict): - account_number: NotRequired[str] + bed_type: NotRequired[str] """ - The account number for the bank account. + Bed type. """ - bsb_number: NotRequired[str] + daily_rate_amount: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Daily accommodation rate in cents. """ - pay_id: NotRequired[str] + nights: NotRequired[int] """ - The PayID alias for the bank account. + Number of nights. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataPix(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataPromptpay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataQris(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict): - session: NotRequired[str] + number_of_rooms: NotRequired[int] """ - A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + Number of rooms, cabanas, apartments, and so on. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataRechnung(TypedDict): - dob: "PaymentIntentConfirmParamsPaymentMethodDataRechnungDob" + rate_type: NotRequired[str] """ - Customer's date of birth + Rate type. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataRechnungDob(TypedDict): - day: int + smoking_indicator: NotRequired[bool] """ - The day of birth, between 1 and 31. + Whether smoking is allowed. """ - month: int + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] """ - The month of birth, between 1 and 12. + Affiliate partner code. """ - year: int + name: NotRequired[str] """ - The four-digit year of birth. + Affiliate partner name. """ -class PaymentIntentConfirmParamsPaymentMethodDataRevolutPay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataSamsungPay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): - iban: str +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str """ - IBAN of the bank account. + Guest's full name. """ -class PaymentIntentConfirmParamsPaymentMethodDataShopeepay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataSofort(TypedDict): - country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress" + ] """ - Two-letter ISO code representing the country the bank account is located in. + Address of the host. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataStripeBalance(TypedDict): - account: NotRequired[str] + country_of_domicile: NotRequired[str] """ - The connected account ID whose Stripe balance to use as the source of payment + Host's country of domicile. """ - source_type: NotRequired[Literal["bank_account", "card", "fpx"]] + host_reference: NotRequired[str] """ - The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + Reference number for the host. """ - - -class PaymentIntentConfirmParamsPaymentMethodDataSwish(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataTwint(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] """ - Account holder type: individual or company. + Type of host. """ - account_number: NotRequired[str] + name: NotRequired[str] """ - Account number of the bank account. + Name of the lodging property or host. """ - account_type: NotRequired[Literal["checking", "savings"]] + number_of_reservations: NotRequired[int] """ - Account type: checkings or savings. Defaults to checking if omitted. + Total number of reservations for the host. """ - financial_connections_account: NotRequired[str] + property_phone_number: NotRequired[str] """ - The ID of a Financial Connections Account to use as a payment method. + Property phone number. """ - routing_number: NotRequired[str] + registered_at: NotRequired[int] """ - Routing number of the bank account. + Host's registration date. """ -class PaymentIntentConfirmParamsPaymentMethodDataWechatPay(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodDataZip(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): - acss_debit: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit" - ] +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress( + TypedDict, +): + city: str """ - If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + City, district, suburb, town, or village. """ - affirm: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAffirm" - ] + country: str """ - If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - afterpay_clearpay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay" - ] + line1: str """ - If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + Address line 1, such as the street, PO Box, or company name. """ - alipay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlipay" - ] + line2: NotRequired[str] """ - If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + Address line 2, such as the apartment, suite, unit, or building. """ - alma: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlma" - ] + postal_code: str """ - If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + ZIP or postal code. """ - amazon_pay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay" - ] + state: NotRequired[str] """ - If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + State, county, province, or region. """ - au_becs_debit: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int """ - If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + Price of the insurance coverage in cents. """ - bacs_debit: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit" - ] + currency: NotRequired[str] """ - If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + Currency of the insurance amount. """ - bancontact: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBancontact" - ] + insurance_company_name: NotRequired[str] """ - If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. + Name of the insurance company. """ - billie: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBillie" + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" ] """ - If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + Type of insurance coverage. """ - blik: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int """ - If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + Total price of the lodging reservation in cents. """ - boleto: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBoleto" - ] + cash_advances: NotRequired[int] """ - If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + Cash advances in cents. """ - card: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCard" - ] + currency: NotRequired[str] """ - Configuration for any card payments attempted on this PaymentIntent. + Currency of the total amount. """ - card_present: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent" + discounts: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts" ] """ - If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + Discount details for the lodging. """ - cashapp: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCashapp" + extra_charges: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge" + ] ] """ - If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + Additional charges for the lodging. """ - crypto: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCrypto" - ] + prepaid_amount: NotRequired[int] """ - If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + Prepaid amount in cents. """ - customer_balance: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance" + tax: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax" ] """ - If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + Tax breakdown for the lodging reservation. """ - eps: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsEps" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + Corporate client discount code. """ - fpx: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsFpx" - ] + coupon: NotRequired[str] """ - If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + Coupon code. """ - giropay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiropay" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] """ - If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + Amount of the extra charge in cents. """ - gopay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGopay" + type: NotRequired[ + Literal[ + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" + ] ] """ - If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + Type of extra charge. """ - grabpay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] """ - If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + Indicates whether the transaction is tax exempt. """ - id_bank_transfer: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer" + taxes: NotRequired[ + List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax"] ] """ - If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + Tax details. """ - ideal: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdeal" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] """ - If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + Tax amount in cents. """ - interac_present: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent" - ] + rate: NotRequired[int] """ - If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + Tax rate. """ - kakao_pay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay" - ] + type: NotRequired[str] """ - If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + Type of tax applied. """ - klarna: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKlarna" + + +class PaymentIntentConfirmParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate" ] """ - If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + Affiliate details for this purchase. """ - konbini: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKonbini" - ] + auto_renewal: NotRequired[bool] """ - If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + Info whether the subscription will be auto renewed upon expiry. """ - kr_card: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKrCard" + billing_interval: NotRequired[ + "PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval" ] """ - If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + Subscription billing details for this purchase. """ - link: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink" - ] + ends_at: NotRequired[int] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + Subscription end time. Measured in seconds since the Unix epoch. """ - mb_way: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay" - ] + name: str """ - If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + Name of the product on subscription. e.g. Apple Music Subscription """ - mobilepay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMobilepay" - ] + starts_at: NotRequired[int] """ - If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + Subscription start time. Measured in seconds since the Unix epoch. """ - multibanco: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMultibanco" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + The name of the affiliate that originated the purchase. """ - naver_pay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNaverPay" - ] + + +class PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval( + TypedDict, +): + count: int """ - If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - nz_bank_account: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNzBankAccount" - ] + interval: Literal["day", "month", "week", "year"] """ - If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ - oxxo: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsOxxo" + + +class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): + acss_debit: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataAcssDebit" ] """ - If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ - p24: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsP24" - ] + affirm: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAffirm"] """ - If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. """ - pay_by_bank: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayByBank" + afterpay_clearpay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay" ] """ - If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. """ - payco: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayco" - ] + alipay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlipay"] """ - If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. """ - paynow: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaynow" - ] + allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] """ - If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. """ - paypal: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypal" - ] + alma: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlma"] """ - If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. """ - paypay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypay" + amazon_pay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay" ] """ - If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ - payto: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayto" + au_becs_debit: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit" ] """ - If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ - pix: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPix" + bacs_debit: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit" ] """ - If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. + """ + bancontact: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataBancontact" + ] + """ + If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. + """ + billie: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBillie"] + """ + If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. + """ + billing_details: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataBillingDetails" + ] + """ + Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + """ + blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"] + """ + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + """ + boleto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBoleto"] + """ + If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. + """ + cashapp: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCashapp"] + """ + If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. + """ + crypto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCrypto"] + """ + If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. + """ + customer_balance: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance" + ] + """ + If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. + """ + eps: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataEps"] + """ + If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. + """ + fpx: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataFpx"] + """ + If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. + """ + giropay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGiropay"] + """ + If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. + """ + gopay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGopay"] + """ + If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. + """ + grabpay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGrabpay"] + """ + If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. + """ + id_bank_transfer: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer" + ] + """ + If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. + """ + ideal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataIdeal"] + """ + If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. + """ + interac_present: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataInteracPresent" + ] + """ + If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. + """ + kakao_pay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataKakaoPay" + ] + """ + If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + """ + klarna: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarna"] + """ + If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. + """ + konbini: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKonbini"] + """ + If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + """ + kr_card: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKrCard"] + """ + If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + """ + link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"] + """ + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + """ + mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"] + """ + If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + """ + metadata: NotRequired[Dict[str, 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + """ + mobilepay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataMobilepay" + ] + """ + If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + """ + multibanco: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataMultibanco" + ] + """ + If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. + """ + naver_pay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataNaverPay" + ] + """ + If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + """ + nz_bank_account: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount" + ] + """ + If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. + """ + oxxo: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataOxxo"] + """ + If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + """ + p24: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataP24"] + """ + If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + """ + pay_by_bank: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataPayByBank" + ] + """ + If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + """ + payco: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayco"] + """ + If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + """ + paynow: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaynow"] + """ + If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + """ + paypal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypal"] + """ + If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + """ + paypay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ + payto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayto"] + """ + If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + """ + pix: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPix"] + """ + If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. """ promptpay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay" + "PaymentIntentConfirmParamsPaymentMethodDataPromptpay" ] """ - If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. """ - qris: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsQris" + qris: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataQris"] + """ + If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + """ + radar_options: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataRadarOptions" ] """ - If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. """ rechnung: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRechnung" + "PaymentIntentConfirmParamsPaymentMethodDataRechnung" ] """ - If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. """ revolut_pay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay" + "PaymentIntentConfirmParamsPaymentMethodDataRevolutPay" ] """ - If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. """ samsung_pay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay" + "PaymentIntentConfirmParamsPaymentMethodDataSamsungPay" ] """ - If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. """ satispay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSatispay" + "PaymentIntentConfirmParamsPaymentMethodDataSatispay" ] """ - If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. """ sepa_debit: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit" + "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit" ] """ - If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ shopeepay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay" + "PaymentIntentConfirmParamsPaymentMethodDataShopeepay" + ] + """ + If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + """ + sofort: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSofort"] + """ + If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + """ + stripe_balance: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataStripeBalance" + ] + """ + This hash contains details about the Stripe balance payment method. + """ + swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"] + """ + If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + """ + twint: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataTwint"] + """ + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + """ + type: Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "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", + "swish", + "twint", + "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. + """ + us_bank_account: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount" + ] + """ + If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + """ + wechat_pay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataWechatPay" + ] + """ + If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. + """ + zip: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataZip"] + """ + If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): + account_number: str + """ + Customer's bank account number. + """ + institution_number: str + """ + Institution number of the customer's bank. + """ + transit_number: str + """ + Transit number of the customer's bank. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataAffirm(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataAlipay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataAlma(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataAmazonPay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit(TypedDict): + account_number: str + """ + The account number for the bank account. + """ + bsb_number: str + """ + Bank-State-Branch number of the bank account. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataBacsDebit(TypedDict): + account_number: NotRequired[str] + """ + Account number of the bank account that the funds will be debited from. + """ + sort_code: NotRequired[str] + """ + Sort code of the bank account. (e.g., `10-20-30`) + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataBancontact(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataBillie(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataBillingDetails(TypedDict): + address: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress" + ] + """ + Billing address. + """ + email: NotRequired["Literal['']|str"] + """ + Email address. + """ + name: NotRequired["Literal['']|str"] + """ + Full name. + """ + phone: NotRequired["Literal['']|str"] + """ + Billing phone number (including extension). + """ + tax_id: NotRequired[str] + """ + Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataBoleto(TypedDict): + tax_id: str + """ + The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataCashapp(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataCrypto(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict): + bank: NotRequired[ + Literal[ + "arzte_und_apotheker_bank", + "austrian_anadi_bank_ag", + "bank_austria", + "bankhaus_carl_spangler", + "bankhaus_schelhammer_und_schattera_ag", + "bawag_psk_ag", + "bks_bank_ag", + "brull_kallmus_bank_ag", + "btv_vier_lander_bank", + "capital_bank_grawe_gruppe_ag", + "deutsche_bank_ag", + "dolomitenbank", + "easybank_ag", + "erste_bank_und_sparkassen", + "hypo_alpeadriabank_international_ag", + "hypo_bank_burgenland_aktiengesellschaft", + "hypo_noe_lb_fur_niederosterreich_u_wien", + "hypo_oberosterreich_salzburg_steiermark", + "hypo_tirol_bank_ag", + "hypo_vorarlberg_bank_ag", + "marchfelder_bank", + "oberbank_ag", + "raiffeisen_bankengruppe_osterreich", + "schoellerbank_ag", + "sparda_bank_wien", + "volksbank_gruppe", + "volkskreditbank_ag", + "vr_bank_braunau", + ] + ] + """ + The customer's bank. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataFpx(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type for FPX transaction + """ + 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. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataGiropay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataGopay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer(TypedDict): + bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] + """ + Bank where the account is held. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataIdeal(TypedDict): + bank: NotRequired[ + Literal[ + "abn_amro", + "asn_bank", + "bunq", + "buut", + "finom", + "handelsbanken", + "ing", + "knab", + "moneyou", + "n26", + "nn", + "rabobank", + "regiobank", + "revolut", + "sns_bank", + "triodos_bank", + "van_lanschot", + "yoursafe", + ] + ] + """ + The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataInteracPresent(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataKakaoPay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataKlarna(TypedDict): + dob: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob"] + """ + Customer's date of birth + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob(TypedDict): + 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. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataKonbini(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataKrCard(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataLink(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataMbWay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataMobilepay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataMultibanco(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataNaverPay(TypedDict): + funding: NotRequired[Literal["card", "points"]] + """ + Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount(TypedDict): + account_holder_name: NotRequired[str] + """ + The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + """ + account_number: str + """ + The account number for the bank account. + """ + bank_code: str + """ + The numeric code for the bank account's bank. + """ + branch_code: str + """ + The numeric code for the bank account's bank branch. + """ + reference: NotRequired[str] + suffix: str + """ + The suffix of the bank account number. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataOxxo(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataP24(TypedDict): + bank: NotRequired[ + 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. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataPayByBank(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataPayco(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataPaynow(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataPaypal(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataPaypay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataPayto(TypedDict): + account_number: NotRequired[str] + """ + The account number for the bank account. + """ + bsb_number: NotRequired[str] + """ + Bank-State-Branch number of the bank account. + """ + pay_id: NotRequired[str] + """ + The PayID alias for the bank account. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataPix(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataPromptpay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataQris(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict): + session: NotRequired[str] + """ + A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataRechnung(TypedDict): + dob: "PaymentIntentConfirmParamsPaymentMethodDataRechnungDob" + """ + Customer's date of birth + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataRechnungDob(TypedDict): + 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. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataRevolutPay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataSamsungPay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict): + iban: str + """ + IBAN of the bank account. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataShopeepay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataSofort(TypedDict): + country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + """ + Two-letter ISO code representing the country the bank account is located in. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataStripeBalance(TypedDict): + account: NotRequired[str] + """ + The connected account ID whose Stripe balance to use as the source of payment + """ + source_type: NotRequired[Literal["bank_account", "card", "fpx"]] + """ + The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataSwish(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataTwint(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type: individual or company. + """ + account_number: NotRequired[str] + """ + Account number of the bank account. + """ + account_type: NotRequired[Literal["checking", "savings"]] + """ + Account type: checkings or savings. Defaults to checking if omitted. + """ + financial_connections_account: NotRequired[str] + """ + The ID of a Financial Connections Account to use as a payment method. + """ + routing_number: NotRequired[str] + """ + Routing number of the bank account. + """ + + +class PaymentIntentConfirmParamsPaymentMethodDataWechatPay(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodDataZip(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): + acss_debit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit" + ] + """ + If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + """ + affirm: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAffirm" + ] + """ + If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + """ + afterpay_clearpay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay" + ] + """ + If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + """ + alipay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlipay" + ] + """ + If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + """ + alma: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlma" + ] + """ + If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + """ + amazon_pay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay" + ] + """ + If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + """ + au_becs_debit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit" + ] + """ + If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + """ + bacs_debit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit" + ] + """ + If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + """ + bancontact: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBancontact" + ] + """ + If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. + """ + billie: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBillie" + ] + """ + If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + """ + blik: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik" + ] + """ + If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + """ + boleto: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBoleto" + ] + """ + If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + """ + card: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCard" + ] + """ + Configuration for any card payments attempted on this PaymentIntent. + """ + card_present: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent" + ] + """ + If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + cashapp: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCashapp" + ] + """ + If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + """ + crypto: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCrypto" + ] + """ + If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + """ + customer_balance: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance" + ] + """ + If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + """ + eps: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsEps" + ] + """ + If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + """ + fpx: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsFpx" + ] + """ + If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + """ + giropay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiropay" + ] + """ + If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + """ + gopay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGopay" + ] + """ + If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + """ + grabpay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay" + ] + """ + If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + """ + id_bank_transfer: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer" + ] + """ + If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + """ + ideal: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdeal" + ] + """ + If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + """ + interac_present: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent" + ] + """ + If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + kakao_pay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay" + ] + """ + If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + """ + klarna: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKlarna" + ] + """ + If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + """ + konbini: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKonbini" + ] + """ + If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + """ + kr_card: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKrCard" + ] + """ + If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + """ + link: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink" + ] + """ + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + """ + mb_way: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay" + ] + """ + If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + """ + mobilepay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMobilepay" + ] + """ + If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + """ + multibanco: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMultibanco" + ] + """ + If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + """ + naver_pay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNaverPay" + ] + """ + If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + """ + nz_bank_account: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNzBankAccount" + ] + """ + If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + """ + oxxo: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsOxxo" + ] + """ + If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + """ + p24: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsP24" + ] + """ + If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + """ + pay_by_bank: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayByBank" + ] + """ + If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + """ + payco: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayco" + ] + """ + If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + """ + paynow: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaynow" + ] + """ + If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + """ + paypal: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypal" + ] + """ + If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + """ + paypay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ + payto: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayto" + ] + """ + If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + """ + pix: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPix" + ] + """ + If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + """ + promptpay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay" + ] + """ + If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + """ + qris: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsQris" + ] + """ + If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + """ + rechnung: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRechnung" + ] + """ + If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + """ + revolut_pay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay" + ] + """ + If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + """ + samsung_pay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay" + ] + """ + If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + """ + satispay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSatispay" + ] + """ + If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + """ + sepa_debit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit" + ] + """ + If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + """ + shopeepay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay" + ] + """ + If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + """ + sofort: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSofort" + ] + """ + If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + """ + stripe_balance: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance" + ] + """ + If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + """ + swish: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSwish" + ] + """ + If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + """ + twint: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsTwint" + ] + """ + If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + """ + us_bank_account: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount" + ] + """ + If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + """ + wechat_pay: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay" + ] + """ + If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + """ + zip: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsZip" + ] + """ + If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + verification_method: NotRequired[ + Literal["automatic", "instant", "microdeposits"] + ] + """ + Bank account verification method. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions( + TypedDict, +): + custom_mandate_url: NotRequired["Literal['']|str"] + """ + A URL for custom mandate text to render during confirmation step. + The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, + or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + """ + interval_description: NotRequired[str] + """ + Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + """ + payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + """ + Payment schedule for the mandate. + """ + transaction_type: NotRequired[Literal["business", "personal"]] + """ + Transaction type of the mandate. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAffirm(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + preferred_locale: NotRequired[str] + """ + Preferred language of the Affirm authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay( + TypedDict +): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + reference: NotRequired[str] + """ + An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. + This field differs from the statement descriptor and item name. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAlipay(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAlma(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions( + TypedDict, +): + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBancontact(TypedDict): + preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + """ + Preferred language of the Bancontact authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsBoleto(TypedDict): + expires_after_days: NotRequired[int] + """ + The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + cvc_token: NotRequired[str] + """ + A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + """ + installments: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments" + ] + """ + Installment configuration for payments attempted on this PaymentIntent. + + For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + """ + mandate_options: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions" + ] + """ + Configuration options for setting up an eMandate for cards issued in India. + """ + moto: NotRequired[bool] + """ + When specified, this parameter indicates that a transaction will be marked + as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This + parameter can only be provided during confirmation. + """ + network: NotRequired[ + Literal[ + "amex", + "cartes_bancaires", + "diners", + "discover", + "eftpos_au", + "girocard", + "interac", + "jcb", + "link", + "mastercard", + "unionpay", + "unknown", + "visa", + ] + ] + """ + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + request_decremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + """ + request_extended_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + """ + request_incremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. + """ + request_multicapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + """ + request_overcapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + request_three_d_secure: NotRequired[ + Literal["any", "automatic", "challenge"] + ] + """ + We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + """ + require_cvc_recollection: NotRequired[bool] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + """ + statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + """ + statement_details: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails" + ] + """ + Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + """ + three_d_secure: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure" + ] + """ + If 3D Secure authentication was performed with a third-party provider, + the authentication details to use for this payment. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments( + TypedDict +): + enabled: NotRequired[bool] + """ + Setting to true enables installments for this PaymentIntent. + This will cause the response to contain a list of available installment plans. + Setting to false will prevent any selected plan from applying to a charge. + """ + plan: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan" + ] + """ + The selected installment plan to use for this payment attempt. + This parameter can only be provided during confirmation. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan( + TypedDict, +): + count: NotRequired[int] + """ + For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + """ + interval: NotRequired[Literal["month"]] + """ + For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. + One of `month`. + """ + type: Literal["bonus", "fixed_count", "revolving"] + """ + Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. + """ + amount_type: Literal["fixed", "maximum"] + """ + One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + """ + description: NotRequired[str] + """ + A description of the mandate or subscription that is meant to be displayed to the customer. + """ + end_date: NotRequired[int] + """ + End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + """ + interval: Literal["day", "month", "sporadic", "week", "year"] + """ + Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + """ + interval_count: NotRequired[int] + """ + The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + """ + reference: str + """ + Unique identifier for the mandate or subscription. + """ + start_date: int + """ + Start date of the mandate or subscription. Start date should not be lesser than yesterday. + """ + supported_types: NotRequired[List[Literal["india"]]] + """ + Specifies the type of mandates supported. Possible values are `india`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress" + ] + """ + Please pass in an address that is within your Stripe user account country + """ + phone: NotRequired[str] + """ + Phone number (e.g., a toll-free number that customers can call) + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure( + TypedDict +): + ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + """ + The `transStatus` returned from the card Issuer's ACS in the ARes. + """ + cryptogram: str + """ + The cryptogram, also known as the "authentication value" (AAV, CAVV or + AEVV). This value is 20 bytes, base64-encoded into a 28-character string. + (Most 3D Secure providers will return the base64-encoded version, which + is what you should specify here.) + """ + electronic_commerce_indicator: NotRequired[ + Literal["01", "02", "05", "06", "07"] + ] + """ + The Electronic Commerce Indicator (ECI) is returned by your 3D Secure + provider and indicates what degree of authentication was performed. + """ + exemption_indicator: NotRequired[Literal["low_risk", "none"]] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + network_options: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + ] + """ + Network specific 3DS fields. Network specific arguments require an + explicit card brand choice. The parameter `payment_method_options.card.network`` + must be populated accordingly + """ + requestor_challenge_indicator: NotRequired[str] + """ + The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the + AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + """ + transaction_id: str + """ + For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server + Transaction ID (dsTransID). + """ + version: Literal["1.0.2", "2.1.0", "2.2.0"] + """ + The version of 3D Secure that was performed. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( + TypedDict, +): + cartes_bancaires: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" + ] + """ + Cartes Bancaires-specific 3DS fields. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( + TypedDict, +): + cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] + """ + The cryptogram calculation algorithm used by the card Issuer's ACS + to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. + messageExtension: CB-AVALGO + """ + cb_exemption: NotRequired[str] + """ + The exemption indicator returned from Cartes Bancaires in the ARes. + message extension: CB-EXEMPTION; string (4 characters) + This is a 3 byte bitmap (low significant byte first and most significant + bit first) that has been Base64 encoded + """ + cb_score: NotRequired[int] + """ + The risk score returned from Cartes Bancaires in the ARes. + message extension: CB-SCORE; numeric value 0-99 + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): + capture_method: NotRequired[Literal["manual", "manual_preferred"]] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + request_extended_authorization: NotRequired[bool] + """ + Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + """ + request_incremental_authorization_support: NotRequired[bool] + """ + Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + """ + routing: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCashapp(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCrypto(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance(TypedDict): + bank_transfer: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer" + ] + """ + Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + """ + funding_type: NotRequired[Literal["bank_transfer"]] + """ + The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer( + TypedDict, +): + eu_bank_transfer: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + ] + """ + Configuration for the eu_bank_transfer funding type. + """ + requested_address_types: NotRequired[ + List[ + Literal[ + "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" + ] + ] + ] + """ + List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. + + Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + """ + type: Literal[ + "eu_bank_transfer", + "gb_bank_transfer", + "jp_bank_transfer", + "mx_bank_transfer", + "us_bank_transfer", + ] + """ + The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( + TypedDict, +): + country: str + """ + The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsEps(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsFpx(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsGiropay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsGopay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer(TypedDict): + expires_after: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + """ + expires_at: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsIdeal(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent(TypedDict): + pass + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarna(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + on_demand: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand" + ] + """ + On-demand details if setting up or charging an on-demand payment. + """ + preferred_locale: NotRequired[ + Literal[ + "cs-CZ", + "da-DK", + "de-AT", + "de-CH", + "de-DE", + "el-GR", + "en-AT", + "en-AU", + "en-BE", + "en-CA", + "en-CH", + "en-CZ", + "en-DE", + "en-DK", + "en-ES", + "en-FI", + "en-FR", + "en-GB", + "en-GR", + "en-IE", + "en-IT", + "en-NL", + "en-NO", + "en-NZ", + "en-PL", + "en-PT", + "en-RO", + "en-SE", + "en-US", + "es-ES", + "es-US", + "fi-FI", + "fr-BE", + "fr-CA", + "fr-CH", + "fr-FR", + "it-CH", + "it-IT", + "nb-NO", + "nl-BE", + "nl-NL", + "pl-PL", + "pt-PT", + "ro-RO", + "sv-FI", + "sv-SE", + ] + ] + """ + Preferred language of the Klarna authorization page that the customer is redirected to + """ + setup_future_usage: NotRequired[ + Literal["none", "off_session", "on_session"] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + subscriptions: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription]" + ] + """ + Subscription details if setting up or charging a subscription. + """ + supplementary_purchase_data: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): + average_amount: NotRequired[int] + """ + Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + maximum_amount: NotRequired[int] + """ + The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + minimum_amount: NotRequired[int] + """ + The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + """ + Interval at which the customer is making purchases + """ + purchase_interval_count: NotRequired[int] + """ + The number of `purchase_interval` between charges + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Unit of time between subscription charges. + """ + interval_count: NotRequired[int] + """ + The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + """ + name: NotRequired[str] + """ + Name for subscription. + """ + next_billing: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" ] """ - If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + Describes the upcoming charge for this subscription. """ - sofort: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSofort" - ] + reference: str """ - If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. """ - stripe_balance: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance" - ] + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( + TypedDict, +): + amount: int """ - If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + The amount of the next charge for the subscription. """ - swish: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSwish" - ] + date: str """ - If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + The date of the next charge for the subscription in YYYY-MM-DD format. """ - twint: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsTwint" + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" ] """ - If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + Supplementary bus reservation details. """ - us_bank_account: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount" + event_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" ] """ - If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + Supplementary event reservation details. """ - wechat_pay: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay" + ferry_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" ] """ - If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + Supplementary ferry reservation details. """ - zip: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsZip" + insurances: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" ] """ - If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + Supplementary insurance details. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions" + marketplace_sellers: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" ] """ - Additional fields for Mandate creation + Supplementary marketplace seller details. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" + round_trip_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Supplementary round trip reservation details. """ - target_date: NotRequired[str] + train_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" + ] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Supplementary train reservation details. """ - verification_method: NotRequired[ - Literal["automatic", "instant", "microdeposits"] + vouchers: NotRequired[ + "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" ] """ - Bank account verification method. + Voucher details, such as a gift card or discount code. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( TypedDict, ): - custom_mandate_url: NotRequired["Literal['']|str"] - """ - A URL for custom mandate text to render during confirmation step. - The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, - or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. - """ - interval_description: NotRequired[str] + affiliate_name: NotRequired[str] """ - Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + Name of associated or partner company for the service. """ - payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + arrival: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" + ] """ - Payment schedule for the mandate. + Arrival details. """ - transaction_type: NotRequired[Literal["business", "personal"]] + carrier_name: NotRequired[str] """ - Transaction type of the mandate. + Name of transportation company. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsAffirm(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + currency: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Currency. """ - preferred_locale: NotRequired[str] + departure: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" + ] """ - Preferred language of the Affirm authorization page that the customer is redirected to. + Departure details. """ - setup_future_usage: NotRequired[Literal["none"]] + insurances: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] + ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + List of insurances for this reservation. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay( - TypedDict -): - capture_method: NotRequired["Literal['']|Literal['manual']"] + passengers: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] + ] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + List of passengers that this reservation applies to. """ - reference: NotRequired[str] + price: NotRequired[int] """ - An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. - This field differs from the statement descriptor and item name. + Price in cents. """ - setup_future_usage: NotRequired[Literal["none"]] + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Ticket class. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsAlipay(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsAlma(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Address of the arrival location. """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + arrival_location: NotRequired[str] """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Identifier name or reference for the arrival location. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. - """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + The city or town. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + country: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The country in ISO 3166-1 alpha-2 format. """ - target_date: NotRequired[str] + postal_code: NotRequired[str] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + The postal code formatted according to country. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions" - ] + region: NotRequired[str] """ - Additional fields for Mandate creation + The state, county, province, or region formatted according to country. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + street_address: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Line 1 of the street address. """ - target_date: NotRequired[str] + street_address2: NotRequired[str] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( TypedDict, ): - reference_prefix: NotRequired["Literal['']|str"] + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] """ - Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + Address of the departure location. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsBancontact(TypedDict): - preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + departs_at: NotRequired[int] """ - Preferred language of the Bancontact authorization page that the customer is redirected to. + Timestamp of departure. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + departure_location: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Identifier name or reference for the origin location. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict): - code: NotRequired[str] + The postal code formatted according to country. """ - The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + region: NotRequired[str] """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + The state, county, province, or region formatted according to country. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsBoleto(TypedDict): - expires_after_days: NotRequired[int] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. + Insurance currency. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Type of insurance. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + price: NotRequired[int] + """ + Price of insurance in cents. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - cvc_token: NotRequired[str] + The family name of the person. """ - A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + given_name: NotRequired[str] """ - installments: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments" - ] + The given name of the person. """ - Installment configuration for payments attempted on this PaymentIntent. - For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] """ - mandate_options: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions" + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" ] """ - Configuration options for setting up an eMandate for cards issued in India. + Address of the event. """ - moto: NotRequired[bool] + affiliate_name: NotRequired[str] """ - When specified, this parameter indicates that a transaction will be marked - as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This - parameter can only be provided during confirmation. + Name of associated or partner company for the service. """ - network: NotRequired[ + ends_at: NotRequired[int] + """ + End timestamp of the event. + """ + event_company_name: NotRequired[str] + """ + Company selling the ticket. + """ + event_name: NotRequired[str] + """ + Name of the event. + """ + event_type: NotRequired[ Literal[ - "amex", - "cartes_bancaires", - "diners", - "discover", - "eftpos_au", - "girocard", - "interac", - "jcb", - "link", - "mastercard", - "unionpay", - "unknown", - "visa", + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", ] ] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Type of the event. """ - request_decremental_authorization: NotRequired[ - Literal["if_available", "never"] + insurances: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] ] """ - Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + List of insurances for this event. """ - request_extended_authorization: NotRequired[ - Literal["if_available", "never"] - ] + starts_at: NotRequired[int] """ - Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + Start timestamp of the event. """ - request_incremental_authorization: NotRequired[ - Literal["if_available", "never"] - ] + venue_name: NotRequired[str] """ - Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. + Name of the venue where the event takes place. """ - request_multicapture: NotRequired[Literal["if_available", "never"]] + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( + TypedDict, +): + city: NotRequired[str] """ - Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + The city or town. """ - request_overcapture: NotRequired[Literal["if_available", "never"]] + country: NotRequired[str] """ - Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + The country in ISO 3166-1 alpha-2 format. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] + postal_code: NotRequired[str] """ - Request partial authorization on this PaymentIntent. + The postal code formatted according to country. """ - request_three_d_secure: NotRequired[ - Literal["any", "automatic", "challenge"] - ] + region: NotRequired[str] """ - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + The state, county, province, or region formatted according to country. """ - require_cvc_recollection: NotRequired[bool] + street_address: NotRequired[str] """ - When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + Line 1 of the street address. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] + """ + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. + """ - 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`. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] + Name of associated or partner company for the service. """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + arrival: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" + ] """ - statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + Arrival details. """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + carrier_name: NotRequired[str] """ - statement_details: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails" + Name of transportation company. + """ + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" ] """ - Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + Departure details. """ - three_d_secure: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure" + insurances: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] ] """ - If 3D Secure authentication was performed with a third-party provider, - the authentication details to use for this payment. + List of insurances for this reservation. + """ + passengers: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] + ] + """ + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments( - TypedDict +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, ): - enabled: NotRequired[bool] + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" + ] """ - Setting to true enables installments for this PaymentIntent. - This will cause the response to contain a list of available installment plans. - Setting to false will prevent any selected plan from applying to a charge. + Address of the arrival location. """ - plan: NotRequired[ - "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan" - ] + arrival_location: NotRequired[str] """ - The selected installment plan to use for this payment attempt. - This parameter can only be provided during confirmation. + Identifier name or reference for the arrival location. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( TypedDict, ): - count: NotRequired[int] + city: NotRequired[str] """ - For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + The city or town. """ - interval: NotRequired[Literal["month"]] + country: NotRequired[str] """ - For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. - One of `month`. + The country in ISO 3166-1 alpha-2 format. """ - type: Literal["bonus", "fixed_count", "revolving"] + postal_code: NotRequired[str] """ - Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( TypedDict, ): - amount: int + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] """ - Amount to be charged for future payments. + Address of the departure location. """ - amount_type: Literal["fixed", "maximum"] + departs_at: NotRequired[int] """ - One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + Timestamp of departure. """ - description: NotRequired[str] + departure_location: NotRequired[str] """ - A description of the mandate or subscription that is meant to be displayed to the customer. + Identifier name or reference for the origin location. """ - end_date: NotRequired[int] + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] """ - End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + The city or town. """ - interval: Literal["day", "month", "sporadic", "week", "year"] + country: NotRequired[str] """ - Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + The country in ISO 3166-1 alpha-2 format. """ - interval_count: NotRequired[int] + postal_code: NotRequired[str] """ - The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + The postal code formatted according to country. """ - reference: str + region: NotRequired[str] """ - Unique identifier for the mandate or subscription. + The state, county, province, or region formatted according to country. """ - start_date: int + street_address: NotRequired[str] """ - Start date of the mandate or subscription. Start date should not be lesser than yesterday. + Line 1 of the street address. """ - supported_types: NotRequired[List[Literal["india"]]] + street_address2: NotRequired[str] """ - Specifies the type of mandates supported. Possible values are `india`. + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( TypedDict, ): - address: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress" + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] ] """ - Please pass in an address that is within your Stripe user account country + Type of insurance. """ - phone: NotRequired[str] + price: NotRequired[int] """ - Phone number (e.g., a toll-free number that customers can call) + Price of insurance in cents. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( TypedDict, ): - city: NotRequired[str] + family_name: NotRequired[str] """ - City, district, suburb, town, or village. + The family name of the person. """ - country: NotRequired[str] + given_name: NotRequired[str] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + The given name of the person. """ - line1: NotRequired[str] + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( + TypedDict, +): + currency: NotRequired[str] """ - Address line 1, such as the street, PO Box, or company name. + Insurance currency. """ - line2: NotRequired[str] + insurance_company_name: NotRequired[str] """ - Address line 2, such as the apartment, suite, unit, or building. + Name of the company providing the insurance. """ - postal_code: NotRequired[str] + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - ZIP or postal code. + Type of insurance """ - state: NotRequired[str] + price: NotRequired[int] """ - State, county, province, or region. + Price of insurance in cents. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure( - TypedDict +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, ): - ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + line_item_references: NotRequired[List[str]] """ - The `transStatus` returned from the card Issuer's ACS in the ARes. + The references to line items for purchases with multiple associated sub-sellers. """ - cryptogram: str + marketplace_seller_address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] """ - The cryptogram, also known as the "authentication value" (AAV, CAVV or - AEVV). This value is 20 bytes, base64-encoded into a 28-character string. - (Most 3D Secure providers will return the base64-encoded version, which - is what you should specify here.) + The address of the selling or delivering merchant. """ - electronic_commerce_indicator: NotRequired[ - Literal["01", "02", "05", "06", "07"] + marketplace_seller_name: NotRequired[str] + """ + The name of the marketplace seller. + """ + marketplace_seller_reference: NotRequired[str] + """ + The unique identifier for the marketplace seller. + """ + number_of_transactions: NotRequired[int] + """ + The number of transactions the sub-seller completed in the last 12 months. + """ + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] ] """ - The Electronic Commerce Indicator (ECI) is returned by your 3D Secure - provider and indicates what degree of authentication was performed. + The category of the product. """ - exemption_indicator: NotRequired[Literal["low_risk", "none"]] + seller_last_login_at: NotRequired[int] """ - The exemption requested via 3DS and accepted by the issuer at authentication time. + The date when the seller's account with the marketplace was last logged in. """ - network_options: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] ] """ - Network specific 3DS fields. Network specific arguments require an - explicit card brand choice. The parameter `payment_method_options.card.network`` - must be populated accordingly + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. """ - requestor_challenge_indicator: NotRequired[str] + seller_registered_at: NotRequired[int] """ - The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the - AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + The date when the seller's account with the marketplace was created. """ - transaction_id: str + seller_updated_at: NotRequired[int] """ - For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server - Transaction ID (dsTransID). + The date when the seller's account with the marketplace was last updated. """ - version: Literal["1.0.2", "2.1.0", "2.2.0"] + shipping_references: NotRequired[List[str]] """ - The version of 3D Secure that was performed. + The references to shipping addresses for purchases with multiple associated sub-sellers. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( - TypedDict, -): - cartes_bancaires: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" - ] + volume_of_transactions: NotRequired[int] """ - Cartes Bancaires-specific 3DS fields. + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( TypedDict, ): - cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] - """ - The cryptogram calculation algorithm used by the card Issuer's ACS - to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. - messageExtension: CB-AVALGO - """ - cb_exemption: NotRequired[str] + city: NotRequired[str] """ - The exemption indicator returned from Cartes Bancaires in the ARes. - message extension: CB-EXEMPTION; string (4 characters) - This is a 3 byte bitmap (low significant byte first and most significant - bit first) that has been Base64 encoded + The city or town. """ - cb_score: NotRequired[int] + country: NotRequired[str] """ - The risk score returned from Cartes Bancaires in the ARes. - message extension: CB-SCORE; numeric value 0-99 + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] + postal_code: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The postal code formatted according to country. """ - request_extended_authorization: NotRequired[bool] + region: NotRequired[str] """ - Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + The state, county, province, or region formatted according to country. """ - request_incremental_authorization_support: NotRequired[bool] + street_address: NotRequired[str] """ - Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + Line 1 of the street address. """ - routing: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting" - ] + street_address2: NotRequired[str] """ - Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( TypedDict, ): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority + affiliate_name: NotRequired[str] """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCashapp(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" + arrival: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCrypto(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] - """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Arrival details. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance(TypedDict): - bank_transfer: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer" - ] + carrier_name: NotRequired[str] """ - Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + Name of transportation company. """ - funding_type: NotRequired[Literal["bank_transfer"]] + currency: NotRequired[str] """ - The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + Currency. """ - setup_future_usage: NotRequired[Literal["none"]] + departure: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Departure details. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer( - TypedDict, -): - eu_bank_transfer: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + insurances: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] ] """ - Configuration for the eu_bank_transfer funding type. + List of insurances for this reservation. """ - requested_address_types: NotRequired[ + passengers: NotRequired[ List[ - Literal[ - "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" - ] + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" ] ] """ - List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. - - Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + List of passengers that this reservation applies to. """ - type: Literal[ - "eu_bank_transfer", - "gb_bank_transfer", - "jp_bank_transfer", - "mx_bank_transfer", - "us_bank_transfer", + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + Ticket class. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( TypedDict, ): - country: str + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + Address of the arrival location. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsEps(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + arrival_location: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Identifier name or reference for the arrival location. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsFpx(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The city or town. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsGiropay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + country: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsGopay(TypedDict): - setup_future_usage: NotRequired[Literal["none", "off_session"]] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + region: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer(TypedDict): - expires_after: NotRequired[int] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + Address of the departure location. """ - expires_at: NotRequired[int] + departs_at: NotRequired[int] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + Timestamp of departure. """ - setup_future_usage: NotRequired[Literal["none"]] + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsIdeal(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent(TypedDict): - pass - - -class PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Arrival details. """ - - -class PaymentIntentConfirmParamsPaymentMethodOptionsKlarna(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + carrier_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of transportation company. """ - on_demand: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand" + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" ] """ - On-demand details if setting up or charging an on-demand payment. + Departure details. """ - preferred_locale: NotRequired[ - Literal[ - "cs-CZ", - "da-DK", - "de-AT", - "de-CH", - "de-DE", - "el-GR", - "en-AT", - "en-AU", - "en-BE", - "en-CA", - "en-CH", - "en-CZ", - "en-DE", - "en-DK", - "en-ES", - "en-FI", - "en-FR", - "en-GB", - "en-GR", - "en-IE", - "en-IT", - "en-NL", - "en-NO", - "en-NZ", - "en-PL", - "en-PT", - "en-RO", - "en-SE", - "en-US", - "es-ES", - "es-US", - "fi-FI", - "fr-BE", - "fr-CA", - "fr-CH", - "fr-FR", - "it-CH", - "it-IT", - "nb-NO", - "nl-BE", - "nl-NL", - "pl-PL", - "pt-PT", - "ro-RO", - "sv-FI", - "sv-SE", + insurances: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" ] ] """ - Preferred language of the Klarna authorization page that the customer is redirected to + List of insurances for this reservation. """ - setup_future_usage: NotRequired[ - Literal["none", "off_session", "on_session"] + passengers: NotRequired[ + List[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ - 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`. +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - subscriptions: NotRequired[ - "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription]" + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" ] """ - Subscription details if setting up or charging a subscription. + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): - average_amount: NotRequired[int] +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] """ - Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + The city or town. """ - maximum_amount: NotRequired[int] + country: NotRequired[str] """ - The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The country in ISO 3166-1 alpha-2 format. """ - minimum_amount: NotRequired[int] + postal_code: NotRequired[str] """ - The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The postal code formatted according to country. """ - purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + region: NotRequired[str] """ - Interval at which the customer is making purchases + The state, county, province, or region formatted according to country. """ - purchase_interval_count: NotRequired[int] + street_address: NotRequired[str] """ - The number of `purchase_interval` between charges + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + currency: NotRequired[str] """ - Unit of time between subscription charges. + Insurance currency. """ - interval_count: NotRequired[int] + insurance_company_name: NotRequired[str] """ - The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + Name of the company providing the insurance. """ - name: NotRequired[str] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Name for subscription. + Type of insurance. """ - next_billing: NotRequired[ - "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" - ] + price: NotRequired[int] """ - Describes the upcoming charge for this subscription. + Price of insurance in cents. """ - reference: str + + +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ -class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( +class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( TypedDict, ): - amount: int + affiliate_name: NotRequired[str] """ - The amount of the next charge for the subscription. + Name of associated or partner company for this voucher. """ - date: str + ends_at: NotRequired[int] """ - The date of the next charge for the subscription in YYYY-MM-DD format. + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. """ @@ -3867,7 +6030,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -3886,7 +6049,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -3908,7 +6071,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index f5f900472..30eddb044 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -532,6 +532,12 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -548,10 +554,22 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["PaymentIntentCreateParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -806,344 +824,483 @@ class PaymentIntentCreateParamsPaymentDetailsCarRentalReturnAddress(TypedDict): """ -class PaymentIntentCreateParamsPaymentDetailsEventDetails(TypedDict): - access_controlled_venue: NotRequired[bool] +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate" + ] """ - Indicates if the tickets are digitally checked when entering the venue. + Affiliate (such as travel agency) details for the rental. """ - address: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress" - ] + booking_number: NotRequired[str] """ - The event location's address. + Booking confirmation number for the car rental. """ - affiliate: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate" - ] + carrier_name: NotRequired[str] """ - Affiliate details for this purchase. + Name of the car rental company. """ - company: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The name of the company + Customer service phone number for the car rental company. """ - delivery: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery" + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance" ] """ - Delivery details for this purchase. + Distance details for the rental. """ - ends_at: NotRequired[int] + drivers: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver"] + ] """ - Event end time. Measured in seconds since the Unix epoch. + List of drivers for the rental. """ - genre: NotRequired[str] + drop_off: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff" """ - Type of the event entertainment (concert, sports event etc) + Drop-off location details. """ - name: str + insurances: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance"] + ] """ - The name of the event. + Insurance details for the rental. """ - starts_at: NotRequired[int] + no_show_indicator: NotRequired[bool] """ - Event start time. Measured in seconds since the Unix epoch. + Indicates if the customer was a no-show. """ - - -class PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress(TypedDict): - city: NotRequired[str] + pickup: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup" """ - City, district, suburb, town, or village. + Pickup location details. """ - country: NotRequired[str] + renter_name: NotRequired[str] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Name of the person renting the vehicle. """ - line1: NotRequired[str] + total: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal" """ - Address line 1, such as the street, PO Box, or company name. + Total cost breakdown for the rental. """ - line2: NotRequired[str] + vehicle: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle" + ] """ - Address line 2, such as the apartment, suite, unit, or building. + Vehicle details for the rental. """ - postal_code: NotRequired[str] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate( + TypedDict +): + code: NotRequired[str] """ - ZIP or postal code. + Affiliate partner code. """ - state: NotRequired[str] + name: NotRequired[str] """ - State, county, province, or region. + Name of affiliate partner. """ -class PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate(TypedDict): - name: str +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance(TypedDict): + amount: int """ - The name of the affiliate that originated the purchase. + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. """ -class PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] """ - The delivery method for the payment + Driver's date of birth. """ - recipient: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient" - ] + driver_identification_number: NotRequired[str] """ - Details of the recipient. + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. """ -class PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient( +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( TypedDict, ): - email: NotRequired[str] + day: int """ - The email of the recipient the ticket is delivered to. + Day of birth (1-31). """ - name: NotRequired[str] + month: int """ - The name of the recipient the ticket is delivered to. + Month of birth (1-12). """ - phone: NotRequired[str] + year: int """ - The phone number of the recipient the ticket is delivered to. + Year of birth (must be greater than 1900). """ -class PaymentIntentCreateParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFlightAffiliate" - ] +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: ( + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress" + ) """ - Affiliate details for this purchase. + Address of the rental location. """ - agency_number: NotRequired[str] + location_name: NotRequired[str] """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + Location name. """ - carrier: NotRequired[str] + time: int """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Timestamp for the location. """ - delivery: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFlightDelivery" - ] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress( + TypedDict, +): + city: str """ - Delivery details for this purchase. + City, district, suburb, town, or village. """ - passenger_name: NotRequired[str] + country: str """ - The name of the person or entity on the reservation. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - passengers: NotRequired[ - List["PaymentIntentCreateParamsPaymentDetailsFlightPassenger"] - ] + line1: str """ - The details of the passengers in the travel reservation. + Address line 1, such as the street, PO Box, or company name. """ - segments: List["PaymentIntentCreateParamsPaymentDetailsFlightSegment"] + line2: NotRequired[str] """ - The individual flight segments associated with the trip. + Address line 2, such as the apartment, suite, unit, or building. """ - ticket_number: NotRequired[str] + postal_code: str """ - The ticket number associated with the travel reservation. + ZIP or postal code. """ - - -class PaymentIntentCreateParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + state: NotRequired[str] """ - The name of the affiliate that originated the purchase. + State, county, province, or region. """ -class PaymentIntentCreateParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance( + TypedDict +): + amount: int """ - The delivery method for the payment + Amount of the insurance coverage in cents. """ - recipient: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient" + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", ] """ - Details of the recipient. + Type of insurance coverage. """ -class PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict -): - email: NotRequired[str] +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: ( + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress" + ) """ - The email of the recipient the ticket is delivered to. + Address of the rental location. """ - name: NotRequired[str] + location_name: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Location name. """ - phone: NotRequired[str] + time: int """ - The phone number of the recipient the ticket is delivered to. + Timestamp for the location. """ -class PaymentIntentCreateParamsPaymentDetailsFlightPassenger(TypedDict): - name: str +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress( + TypedDict, +): + city: str """ - Full name of the person or entity on the flight reservation. + City, district, suburb, town, or village. """ - - -class PaymentIntentCreateParamsPaymentDetailsFlightSegment(TypedDict): - amount: NotRequired[int] + country: str """ - The flight segment amount. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - arrival_airport: NotRequired[str] + line1: str """ - The International Air Transport Association (IATA) airport code for the arrival airport. + Address line 1, such as the street, PO Box, or company name. """ - arrives_at: NotRequired[int] + line2: NotRequired[str] """ - The arrival time for the flight segment. Measured in seconds since the Unix epoch. + Address line 2, such as the apartment, suite, unit, or building. """ - carrier: NotRequired[str] + postal_code: str """ - The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. + ZIP or postal code. """ - departs_at: int + state: NotRequired[str] """ - The departure time for the flight segment. Measured in seconds since the Unix epoch. + State, county, province, or region. """ - departure_airport: NotRequired[str] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int """ - The International Air Transport Association (IATA) airport code for the departure airport. + Total amount in cents. """ - flight_number: NotRequired[str] + currency: NotRequired[str] """ - The flight number associated with the segment + Currency of the amount. """ - service_class: NotRequired[ - Literal["business", "economy", "first", "premium_economy"] + discounts: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts" ] """ - The fare class for the segment. + Discount details for the rental. """ - - -class PaymentIntentCreateParamsPaymentDetailsLodging(TypedDict): - address: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsLodgingAddress" + extra_charges: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge" + ] ] """ - The lodging location's address. + Additional charges for the rental. """ - adults: NotRequired[int] + rate_per_unit: NotRequired[int] """ - The number of adults on the booking + Rate per unit for the rental. """ - affiliate: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate" + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] ] """ - Affiliate details for this purchase. + Unit of measurement for the rate. """ - booking_number: NotRequired[str] + tax: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax" + ] """ - The booking number associated with the lodging reservation. + Tax breakdown for the rental. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - The lodging category + Corporate client discount code. """ - checkin_at: int + coupon: NotRequired[str] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + Coupon code applied to the rental. """ - checkout_at: int + maximum_free_miles_or_kilometers: NotRequired[int] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + Maximum number of free miles or kilometers included. """ - customer_service_phone_number: NotRequired[str] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict, +): + amount: int """ - The customer service phone number of the lodging company. + Amount of the extra charge in cents. """ - daily_room_rate_amount: NotRequired[int] + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] """ - The daily lodging room rate. + Type of extra charge. """ - delivery: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsLodgingDelivery" - ] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] """ - Delivery details for this purchase. + Indicates if the transaction is tax exempt. """ - extra_charges: NotRequired[ + taxes: NotRequired[ List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax" ] ] """ - List of additional charges being billed. + Array of tax details. """ - fire_safety_act_compliance: NotRequired[bool] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] """ - Indicates whether the lodging location is compliant with the Fire Safety Act. + Tax amount. """ - name: NotRequired[str] + rate: NotRequired[int] """ - The name of the lodging location. + Tax rate applied. """ - no_show: NotRequired[bool] + type: NotRequired[str] """ - Indicates if the customer did not keep their booking while failing to cancel the reservation. + Type of tax applied. """ - number_of_rooms: NotRequired[int] + + +class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] """ - The number of rooms on the booking + Make of the rental vehicle. """ - passengers: NotRequired[ - List["PaymentIntentCreateParamsPaymentDetailsLodgingPassenger"] + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] ] """ - The details of the passengers in the travel reservation + Type of the rental vehicle. """ - property_phone_number: NotRequired[str] + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] """ - The phone number of the lodging location. + Class of the rental vehicle. """ - room_class: NotRequired[str] + vehicle_identification_number: NotRequired[str] """ - The room class for this purchase. + Vehicle identification number (VIN). """ - room_nights: NotRequired[int] + + +class PaymentIntentCreateParamsPaymentDetailsEventDetails(TypedDict): + access_controlled_venue: NotRequired[bool] """ - The number of room nights + Indicates if the tickets are digitally checked when entering the venue. """ - total_room_tax_amount: NotRequired[int] + address: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress" + ] """ - The total tax amount associating with the room reservation. + The event location's address. """ - total_tax_amount: NotRequired[int] + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate" + ] """ - The total tax amount + Affiliate details for this purchase. + """ + company: NotRequired[str] + """ + The name of the company + """ + delivery: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery" + ] + """ + Delivery details for this purchase. + """ + ends_at: NotRequired[int] + """ + Event end time. Measured in seconds since the Unix epoch. + """ + genre: NotRequired[str] + """ + Type of the event entertainment (concert, sports event etc) + """ + name: str + """ + The name of the event. + """ + starts_at: NotRequired[int] + """ + Event start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentCreateParamsPaymentDetailsLodgingAddress(TypedDict): +class PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1170,27 +1327,27 @@ class PaymentIntentCreateParamsPaymentDetailsLodgingAddress(TypedDict): """ -class PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate(TypedDict): +class PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentCreateParamsPaymentDetailsLodgingDelivery(TypedDict): +class PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery(TypedDict): mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ The delivery method for the payment """ recipient: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient" + "PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient" ] """ Details of the recipient. """ -class PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient( +class PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient( TypedDict, ): email: NotRequired[str] @@ -1207,515 +1364,531 @@ class PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient( """ -class PaymentIntentCreateParamsPaymentDetailsLodgingPassenger(TypedDict): - name: str - """ - Full name of the person or entity on the lodging reservation. - """ - - -class PaymentIntentCreateParamsPaymentDetailsSubscription(TypedDict): +class PaymentIntentCreateParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate" + "PaymentIntentCreateParamsPaymentDetailsFlightAffiliate" ] """ Affiliate details for this purchase. """ - auto_renewal: NotRequired[bool] + agency_number: NotRequired[str] """ - Info whether the subscription will be auto renewed upon expiry. + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. """ - billing_interval: NotRequired[ - "PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval" + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDelivery" ] """ - Subscription billing details for this purchase. + Delivery details for this purchase. """ - ends_at: NotRequired[int] + passenger_name: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + The name of the person or entity on the reservation. """ - name: str + passengers: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsFlightPassenger"] + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + The details of the passengers in the travel reservation. """ - starts_at: NotRequired[int] + segments: List["PaymentIntentCreateParamsPaymentDetailsFlightSegment"] """ - Subscription start time. Measured in seconds since the Unix epoch. + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. """ -class PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): +class PaymentIntentCreateParamsPaymentDetailsFlightAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval( - TypedDict, -): - count: int +class PaymentIntentCreateParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + The delivery method for the payment """ - interval: Literal["day", "month", "week", "year"] + recipient: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient" + ] """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Details of the recipient. """ -class PaymentIntentCreateParamsPaymentMethodData(TypedDict): - acss_debit: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataAcssDebit" - ] +class PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict +): + email: NotRequired[str] """ - If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. + The email of the recipient the ticket is delivered to. """ - affirm: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAffirm"] + name: NotRequired[str] """ - If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + The name of the recipient the ticket is delivered to. """ - afterpay_clearpay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay" - ] + phone: NotRequired[str] """ - If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. + The phone number of the recipient the ticket is delivered to. """ - alipay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlipay"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightPassenger(TypedDict): + name: str """ - If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. + Full name of the person or entity on the flight reservation. """ - allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] + + +class PaymentIntentCreateParamsPaymentDetailsFlightSegment(TypedDict): + amount: NotRequired[int] """ - This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + The flight segment amount. """ - alma: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlma"] + arrival_airport: NotRequired[str] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + The International Air Transport Association (IATA) airport code for the arrival airport. """ - amazon_pay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataAmazonPay" - ] + arrives_at: NotRequired[int] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + The arrival time for the flight segment. Measured in seconds since the Unix epoch. """ - au_becs_debit: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit" - ] + carrier: NotRequired[str] """ - If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. + The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. """ - bacs_debit: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataBacsDebit" - ] + departs_at: int """ - If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. + The departure time for the flight segment. Measured in seconds since the Unix epoch. """ - bancontact: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataBancontact" - ] + departure_airport: NotRequired[str] """ - If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. + The International Air Transport Association (IATA) airport code for the departure airport. """ - billie: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBillie"] + flight_number: NotRequired[str] """ - If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. + The flight number associated with the segment """ - billing_details: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataBillingDetails" + service_class: NotRequired[ + Literal["business", "economy", "first", "premium_economy"] ] """ - Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + The fare class for the segment. """ - blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate" + ] """ - If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + Affiliate details if applicable. """ - boleto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBoleto"] + booking_number: NotRequired[str] """ - If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. + Reservation reference. """ - cashapp: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCashapp"] + computerized_reservation_system: NotRequired[str] """ - If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. + Computerized reservation system used to make the reservation and purchase the ticket. """ - crypto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCrypto"] + endorsements_and_restrictions: NotRequired[str] """ - If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. + Ticket restrictions. """ - customer_balance: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance" + insurances: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance"] ] """ - If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. - """ - eps: NotRequired["PaymentIntentCreateParamsPaymentMethodDataEps"] - """ - If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. + List of insurances. """ - fpx: NotRequired["PaymentIntentCreateParamsPaymentMethodDataFpx"] + passengers: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger"] + ] """ - If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. + List of passengers. """ - giropay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGiropay"] + segments: List["PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment"] """ - If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. + List of flight segments. """ - gopay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGopay"] + ticket_electronically_issued_indicator: NotRequired[bool] """ - If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. + Electronic ticket indicator. """ - grabpay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGrabpay"] + total: "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal" """ - If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. + Total cost breakdown. """ - id_bank_transfer: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer" + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" + ] ] """ - If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. + Type of flight transaction. """ - ideal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataIdeal"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] """ - If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. + Affiliate partner code. """ - interac_present: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataInteracPresent" - ] + name: NotRequired[str] """ - If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. + Name of affiliate partner. """ - kakao_pay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataKakaoPay" - ] + travel_authorization_code: NotRequired[str] """ - If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + Code provided by the company to a travel agent authorizing ticket issuance. """ - klarna: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarna"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int """ - If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. + Insurance cost. """ - konbini: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKonbini"] + currency: NotRequired[str] """ - If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + Insurance currency. """ - kr_card: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKrCard"] + insurance_company_name: NotRequired[str] """ - If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + Insurance company name. """ - link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"] + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + Type of insurance. """ - mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str """ - If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + Passenger's full name. """ - metadata: NotRequired[Dict[str, str]] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] """ - Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + Segment fare amount. """ - mobilepay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataMobilepay" - ] + arrival: "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival" """ - If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + Arrival details. """ - multibanco: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataMultibanco" - ] + carrier_code: str """ - If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. + Airline carrier code. """ - naver_pay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataNaverPay" - ] + carrier_name: NotRequired[str] """ - If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + Carrier name. """ - nz_bank_account: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount" - ] + currency: NotRequired[str] """ - If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. + Segment currency. """ - oxxo: NotRequired["PaymentIntentCreateParamsPaymentMethodDataOxxo"] + departure: ( + "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture" + ) """ - If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + Departure details. """ - p24: NotRequired["PaymentIntentCreateParamsPaymentMethodDataP24"] + exchange_ticket_number: NotRequired[str] """ - If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + Exchange ticket number. """ - pay_by_bank: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataPayByBank" - ] + fare_basis_code: NotRequired[str] """ - If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + Fare basis code. """ - payco: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayco"] + fees: NotRequired[int] """ - If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Additional fees. """ - paynow: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaynow"] + flight_number: NotRequired[str] """ - If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + Flight number. """ - paypal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypal"] + is_stop_over_indicator: NotRequired[bool] """ - If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + Stopover indicator. """ - paypay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypay"] + refundable: NotRequired[bool] """ - If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + Refundable ticket indicator. """ - payto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayto"] + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] """ - If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Class of service. """ - pix: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPix"] + tax_amount: NotRequired[int] """ - If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + Tax amount for segment. """ - promptpay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataPromptpay" - ] + ticket_number: NotRequired[str] """ - If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + Ticket number. """ - qris: NotRequired["PaymentIntentCreateParamsPaymentMethodDataQris"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival( + TypedDict, +): + airport: str """ - If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + Arrival airport IATA code. """ - radar_options: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataRadarOptions" - ] + arrives_at: NotRequired[int] """ - Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. + Arrival date/time. """ - rechnung: NotRequired["PaymentIntentCreateParamsPaymentMethodDataRechnung"] + city: NotRequired[str] """ - If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + Arrival city. """ - revolut_pay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataRevolutPay" - ] + country: NotRequired[str] """ - If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. + Arrival country. """ - samsung_pay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataSamsungPay" - ] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture( + TypedDict, +): + airport: str """ - If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + Departure airport IATA code. """ - satispay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSatispay"] + city: NotRequired[str] """ - If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + Departure city. """ - sepa_debit: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataSepaDebit" - ] + country: NotRequired[str] """ - If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. + Departure country. """ - shopeepay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataShopeepay" - ] + departs_at: int """ - If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + Departure date/time. """ - sofort: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSofort"] + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int """ - If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + Total flight amount. """ - stripe_balance: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataStripeBalance" + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] ] """ - This hash contains details about the Stripe balance payment method. - """ - swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"] - """ - If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + Reason for credit. """ - twint: NotRequired["PaymentIntentCreateParamsPaymentMethodDataTwint"] + currency: NotRequired[str] """ - If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + Total currency. """ - type: Literal[ - "acss_debit", - "affirm", - "afterpay_clearpay", - "alipay", - "alma", - "amazon_pay", - "au_becs_debit", - "bacs_debit", - "bancontact", - "billie", - "blik", - "boleto", - "cashapp", - "crypto", - "customer_balance", - "eps", - "fpx", - "giropay", - "gopay", - "grabpay", - "id_bank_transfer", - "ideal", - "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", - "swish", - "twint", - "us_bank_account", - "wechat_pay", - "zip", + discounts: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts" ] """ - 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. + Discount details. """ - us_bank_account: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount" + extra_charges: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge" + ] ] """ - If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + Additional charges. """ - wechat_pay: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodDataWechatPay" + tax: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax" ] """ - If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. - """ - zip: NotRequired["PaymentIntentCreateParamsPaymentMethodDataZip"] - """ - If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + Tax breakdown. """ -class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): - account_number: str +class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - Customer's bank account number. + Corporate client discount code. """ - institution_number: str + + +class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] """ - Institution number of the customer's bank. + Amount of additional charges. """ - transit_number: str + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] """ - Transit number of the customer's bank. + Type of additional charges. """ -class PaymentIntentCreateParamsPaymentMethodDataAffirm(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataAlipay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataAlma(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataAmazonPay(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ -class PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict): - account_number: str +class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] """ - The account number for the bank account. + Tax amount. """ - bsb_number: str + rate: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. """ -class PaymentIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict): - account_number: NotRequired[str] +class PaymentIntentCreateParamsPaymentDetailsLodging(TypedDict): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingAddress" + ] """ - Account number of the bank account that the funds will be debited from. + The lodging location's address. """ - sort_code: NotRequired[str] + adults: NotRequired[int] """ - Sort code of the bank account. (e.g., `10-20-30`) + The number of adults on the booking """ - - -class PaymentIntentCreateParamsPaymentMethodDataBancontact(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataBillie(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataBillingDetails(TypedDict): - address: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress" + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate" ] """ - Billing address. + Affiliate details for this purchase. """ - email: NotRequired["Literal['']|str"] + booking_number: NotRequired[str] """ - Email address. + The booking number associated with the lodging reservation. """ - name: NotRequired["Literal['']|str"] + category: NotRequired[Literal["hotel", "vacation_rental"]] """ - Full name. + The lodging category """ - phone: NotRequired["Literal['']|str"] + checkin_at: int """ - Billing phone number (including extension). + Lodging check-in time. Measured in seconds since the Unix epoch. """ - tax_id: NotRequired[str] + checkout_at: int """ - Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + Lodging check-out time. Measured in seconds since the Unix epoch. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDelivery" + ] + """ + Delivery details for this purchase. + """ + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] + """ + List of additional charges being billed. + """ + fire_safety_act_compliance: NotRequired[bool] + """ + Indicates whether the lodging location is compliant with the Fire Safety Act. + """ + name: NotRequired[str] + """ + The name of the lodging location. + """ + no_show: NotRequired[bool] + """ + Indicates if the customer did not keep their booking while failing to cancel the reservation. + """ + number_of_rooms: NotRequired[int] + """ + The number of rooms on the booking + """ + passengers: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsLodgingPassenger"] + ] + """ + The details of the passengers in the travel reservation + """ + property_phone_number: NotRequired[str] + """ + The phone number of the lodging location. + """ + room_class: NotRequired[str] + """ + The room class for this purchase. + """ + room_nights: NotRequired[int] + """ + The number of room nights + """ + total_room_tax_amount: NotRequired[int] + """ + The total tax amount associating with the room reservation. + """ + total_tax_amount: NotRequired[int] + """ + The total tax amount """ -class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( - TypedDict, -): +class PaymentIntentCreateParamsPaymentDetailsLodgingAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1742,1841 +1915,3821 @@ class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( """ -class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ -class PaymentIntentCreateParamsPaymentMethodDataBoleto(TypedDict): - tax_id: str +class PaymentIntentCreateParamsPaymentDetailsLodgingDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient" + ] + """ + Details of the recipient. """ -class PaymentIntentCreateParamsPaymentMethodDataCashapp(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ -class PaymentIntentCreateParamsPaymentMethodDataCrypto(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingPassenger(TypedDict): + name: str + """ + Full name of the person or entity on the lodging reservation. + """ -class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost" + ] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ -class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict): - bank: NotRequired[ +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation( + TypedDict, +): + accommodation_type: NotRequired[ Literal[ - "arzte_und_apotheker_bank", - "austrian_anadi_bank_ag", - "bank_austria", - "bankhaus_carl_spangler", - "bankhaus_schelhammer_und_schattera_ag", - "bawag_psk_ag", - "bks_bank_ag", - "brull_kallmus_bank_ag", - "btv_vier_lander_bank", - "capital_bank_grawe_gruppe_ag", - "deutsche_bank_ag", - "dolomitenbank", - "easybank_ag", - "erste_bank_und_sparkassen", - "hypo_alpeadriabank_international_ag", - "hypo_bank_burgenland_aktiengesellschaft", - "hypo_noe_lb_fur_niederosterreich_u_wien", - "hypo_oberosterreich_salzburg_steiermark", - "hypo_tirol_bank_ag", - "hypo_vorarlberg_bank_ag", - "marchfelder_bank", - "oberbank_ag", - "raiffeisen_bankengruppe_osterreich", - "schoellerbank_ag", - "sparda_bank_wien", - "volksbank_gruppe", - "volkskreditbank_ag", - "vr_bank_braunau", + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", ] ] """ - The customer's bank. + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. """ -class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] """ - Account holder type for FPX transaction + Affiliate partner code. """ - 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", - ] + name: NotRequired[str] """ - The customer's bank. + Affiliate partner name. """ -class PaymentIntentCreateParamsPaymentMethodDataGiropay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataGopay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataGrabpay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer(TypedDict): - bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str """ - Bank where the account is held. + Guest's full name. """ -class PaymentIntentCreateParamsPaymentMethodDataIdeal(TypedDict): - bank: NotRequired[ - Literal[ - "abn_amro", - "asn_bank", - "bunq", - "buut", - "handelsbanken", - "ing", - "knab", - "moneyou", - "n26", - "nn", - "rabobank", - "regiobank", - "revolut", - "sns_bank", - "triodos_bank", - "van_lanschot", - "yoursafe", - ] +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress" ] """ - The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + Address of the host. """ - - -class PaymentIntentCreateParamsPaymentMethodDataInteracPresent(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataKakaoPay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataKlarna(TypedDict): - dob: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarnaDob"] + country_of_domicile: NotRequired[str] """ - Customer's date of birth + Host's country of domicile. """ - - -class PaymentIntentCreateParamsPaymentMethodDataKlarnaDob(TypedDict): - day: int + host_reference: NotRequired[str] """ - The day of birth, between 1 and 31. + Reference number for the host. """ - month: int + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] """ - The month of birth, between 1 and 12. + Type of host. """ - year: int + name: NotRequired[str] """ - The four-digit year of birth. + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. """ -class PaymentIntentCreateParamsPaymentMethodDataKonbini(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataKrCard(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataLink(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataMbWay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataMobilepay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataMultibanco(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress( + TypedDict +): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ -class PaymentIntentCreateParamsPaymentMethodDataNaverPay(TypedDict): - funding: NotRequired[Literal["card", "points"]] +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int """ - Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. """ -class PaymentIntentCreateParamsPaymentMethodDataNzBankAccount(TypedDict): - account_holder_name: NotRequired[str] +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int """ - The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + Total price of the lodging reservation in cents. """ - account_number: str + cash_advances: NotRequired[int] """ - The account number for the bank account. + Cash advances in cents. """ - bank_code: str + currency: NotRequired[str] """ - The numeric code for the bank account's bank. + Currency of the total amount. """ - branch_code: str + discounts: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] """ - The numeric code for the bank account's bank branch. + Discount details for the lodging. """ - reference: NotRequired[str] - suffix: str + extra_charges: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge" + ] + ] """ - The suffix of the bank account number. + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax" + ] + """ + Tax breakdown for the lodging reservation. """ -class PaymentIntentCreateParamsPaymentMethodDataOxxo(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ -class PaymentIntentCreateParamsPaymentMethodDataP24(TypedDict): - bank: NotRequired[ +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ 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", + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" ] ] """ - The customer's bank. + Type of extra charge. """ -class PaymentIntentCreateParamsPaymentMethodDataPayByBank(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataPayco(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataPaynow(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataPaypal(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataPaypay(TypedDict): - pass +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ -class PaymentIntentCreateParamsPaymentMethodDataPayto(TypedDict): - account_number: NotRequired[str] +class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax( + TypedDict +): + amount: NotRequired[int] """ - The account number for the bank account. + Tax amount in cents. """ - bsb_number: NotRequired[str] + rate: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Tax rate. """ - pay_id: NotRequired[str] + type: NotRequired[str] """ - The PayID alias for the bank account. + Type of tax applied. """ -class PaymentIntentCreateParamsPaymentMethodDataPix(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataPromptpay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataQris(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict): - session: NotRequired[str] - """ - A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. - """ - - -class PaymentIntentCreateParamsPaymentMethodDataRechnung(TypedDict): - dob: "PaymentIntentCreateParamsPaymentMethodDataRechnungDob" +class PaymentIntentCreateParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate" + ] """ - Customer's date of birth + Affiliate details for this purchase. """ - - -class PaymentIntentCreateParamsPaymentMethodDataRechnungDob(TypedDict): - day: int + auto_renewal: NotRequired[bool] """ - The day of birth, between 1 and 31. + Info whether the subscription will be auto renewed upon expiry. """ - month: int + billing_interval: NotRequired[ + "PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval" + ] """ - The month of birth, between 1 and 12. + Subscription billing details for this purchase. """ - year: int + ends_at: NotRequired[int] """ - The four-digit year of birth. + Subscription end time. Measured in seconds since the Unix epoch. """ - - -class PaymentIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataSamsungPay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): - iban: str + name: str """ - IBAN of the bank account. + Name of the product on subscription. e.g. Apple Music Subscription """ - - -class PaymentIntentCreateParamsPaymentMethodDataShopeepay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataSofort(TypedDict): - country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + starts_at: NotRequired[int] """ - Two-letter ISO code representing the country the bank account is located in. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentCreateParamsPaymentMethodDataStripeBalance(TypedDict): - account: NotRequired[str] - """ - The connected account ID whose Stripe balance to use as the source of payment - """ - source_type: NotRequired[Literal["bank_account", "card", "fpx"]] +class PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + The name of the affiliate that originated the purchase. """ -class PaymentIntentCreateParamsPaymentMethodDataSwish(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataTwint(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] - """ - Account holder type: individual or company. - """ - account_number: NotRequired[str] - """ - Account number of the bank account. - """ - account_type: NotRequired[Literal["checking", "savings"]] - """ - Account type: checkings or savings. Defaults to checking if omitted. - """ - financial_connections_account: NotRequired[str] +class PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval( + TypedDict, +): + count: int """ - The ID of a Financial Connections Account to use as a payment method. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - routing_number: NotRequired[str] + interval: Literal["day", "month", "week", "year"] """ - Routing number of the bank account. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ -class PaymentIntentCreateParamsPaymentMethodDataWechatPay(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodDataZip(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): +class PaymentIntentCreateParamsPaymentMethodData(TypedDict): acss_debit: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit" + "PaymentIntentCreateParamsPaymentMethodDataAcssDebit" ] """ - If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ - affirm: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAffirm" - ] + affirm: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAffirm"] """ - If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. """ afterpay_clearpay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay" + "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay" ] """ - If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. """ - alipay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlipay" - ] + alipay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlipay"] """ - If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. """ - alma: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlma" - ] + allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] """ - If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + """ + alma: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlma"] + """ + If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay" + "PaymentIntentCreateParamsPaymentMethodDataAmazonPay" ] """ - If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit" + "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit" ] """ - If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ bacs_debit: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit" + "PaymentIntentCreateParamsPaymentMethodDataBacsDebit" ] """ - If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. """ bancontact: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBancontact" - ] - """ - If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. - """ - billie: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillie" + "PaymentIntentCreateParamsPaymentMethodDataBancontact" ] """ - If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. """ - blik: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik" - ] + billie: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBillie"] """ - If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. """ - boleto: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBoleto" + billing_details: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataBillingDetails" ] """ - If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ - card: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCard" - ] + blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"] """ - Configuration for any card payments attempted on this PaymentIntent. + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. """ - card_present: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPresent" - ] + boleto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBoleto"] """ - If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ - cashapp: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCashapp" - ] + cashapp: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCashapp"] """ - If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. """ - crypto: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCrypto" - ] + crypto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCrypto"] """ - If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. """ customer_balance: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance" + "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance" ] """ - If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ - eps: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsEps" - ] + eps: NotRequired["PaymentIntentCreateParamsPaymentMethodDataEps"] """ - If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. """ - fpx: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsFpx" - ] + fpx: NotRequired["PaymentIntentCreateParamsPaymentMethodDataFpx"] """ - If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ - giropay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiropay" - ] + giropay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGiropay"] """ - If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. """ - gopay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGopay" - ] + gopay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGopay"] """ - If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. """ - grabpay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGrabpay" - ] + grabpay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGrabpay"] """ - If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. """ id_bank_transfer: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer" + "PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer" ] """ - If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. """ - ideal: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdeal" - ] + ideal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataIdeal"] """ - If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. """ interac_present: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent" + "PaymentIntentCreateParamsPaymentMethodDataInteracPresent" ] """ - If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. """ kakao_pay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay" + "PaymentIntentCreateParamsPaymentMethodDataKakaoPay" ] """ - If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. """ - klarna: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarna" - ] + klarna: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarna"] """ - If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. """ - konbini: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKonbini" - ] + konbini: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKonbini"] """ - If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. """ - kr_card: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKrCard" - ] + kr_card: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKrCard"] """ - If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. """ - link: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink" - ] + link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. """ - mb_way: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay" - ] + mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"] """ - If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + """ + metadata: NotRequired[Dict[str, 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ mobilepay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMobilepay" + "PaymentIntentCreateParamsPaymentMethodDataMobilepay" ] """ - If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. """ multibanco: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMultibanco" + "PaymentIntentCreateParamsPaymentMethodDataMultibanco" ] """ - If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. """ naver_pay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNaverPay" + "PaymentIntentCreateParamsPaymentMethodDataNaverPay" ] """ - If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. """ nz_bank_account: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount" + "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount" ] """ - If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. """ - oxxo: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsOxxo" + oxxo: NotRequired["PaymentIntentCreateParamsPaymentMethodDataOxxo"] + """ + If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + """ + p24: NotRequired["PaymentIntentCreateParamsPaymentMethodDataP24"] + """ + If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + """ + pay_by_bank: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataPayByBank" ] """ - If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. """ - p24: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsP24" + payco: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayco"] + """ + If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + """ + paynow: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaynow"] + """ + If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + """ + paypal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypal"] + """ + If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + """ + paypay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ + payto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayto"] + """ + If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + """ + pix: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPix"] + """ + If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + """ + promptpay: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataPromptpay" ] """ - If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. """ - pay_by_bank: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayByBank" + qris: NotRequired["PaymentIntentCreateParamsPaymentMethodDataQris"] + """ + If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + """ + radar_options: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataRadarOptions" ] """ - If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. """ - payco: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayco" + rechnung: NotRequired["PaymentIntentCreateParamsPaymentMethodDataRechnung"] + """ + If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + """ + revolut_pay: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataRevolutPay" ] """ - If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. """ - paynow: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaynow" + samsung_pay: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataSamsungPay" ] """ - If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. """ - paypal: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypal" + satispay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSatispay"] + """ + If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + """ + sepa_debit: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataSepaDebit" ] """ - If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - paypay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypay" + shopeepay: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataShopeepay" + ] + """ + If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + """ + sofort: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSofort"] + """ + If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + """ + stripe_balance: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataStripeBalance" + ] + """ + This hash contains details about the Stripe balance payment method. + """ + swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"] + """ + If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + """ + twint: NotRequired["PaymentIntentCreateParamsPaymentMethodDataTwint"] + """ + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + """ + type: Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "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", + "swish", + "twint", + "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. + """ + us_bank_account: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount" ] """ - If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + """ + wechat_pay: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataWechatPay" + ] + """ + If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. + """ + zip: NotRequired["PaymentIntentCreateParamsPaymentMethodDataZip"] + """ + If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): + account_number: str + """ + Customer's bank account number. + """ + institution_number: str + """ + Institution number of the customer's bank. + """ + transit_number: str + """ + Transit number of the customer's bank. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataAffirm(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataAlipay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataAlma(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataAmazonPay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict): + account_number: str + """ + The account number for the bank account. + """ + bsb_number: str + """ + Bank-State-Branch number of the bank account. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict): + account_number: NotRequired[str] + """ + Account number of the bank account that the funds will be debited from. + """ + sort_code: NotRequired[str] + """ + Sort code of the bank account. (e.g., `10-20-30`) + """ + + +class PaymentIntentCreateParamsPaymentMethodDataBancontact(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataBillie(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataBillingDetails(TypedDict): + address: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress" + ] + """ + Billing address. + """ + email: NotRequired["Literal['']|str"] + """ + Email address. + """ + name: NotRequired["Literal['']|str"] + """ + Full name. + """ + phone: NotRequired["Literal['']|str"] + """ + Billing phone number (including extension). + """ + tax_id: NotRequired[str] + """ + Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataBoleto(TypedDict): + tax_id: str + """ + The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + """ + + +class PaymentIntentCreateParamsPaymentMethodDataCashapp(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataCrypto(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict): + bank: NotRequired[ + Literal[ + "arzte_und_apotheker_bank", + "austrian_anadi_bank_ag", + "bank_austria", + "bankhaus_carl_spangler", + "bankhaus_schelhammer_und_schattera_ag", + "bawag_psk_ag", + "bks_bank_ag", + "brull_kallmus_bank_ag", + "btv_vier_lander_bank", + "capital_bank_grawe_gruppe_ag", + "deutsche_bank_ag", + "dolomitenbank", + "easybank_ag", + "erste_bank_und_sparkassen", + "hypo_alpeadriabank_international_ag", + "hypo_bank_burgenland_aktiengesellschaft", + "hypo_noe_lb_fur_niederosterreich_u_wien", + "hypo_oberosterreich_salzburg_steiermark", + "hypo_tirol_bank_ag", + "hypo_vorarlberg_bank_ag", + "marchfelder_bank", + "oberbank_ag", + "raiffeisen_bankengruppe_osterreich", + "schoellerbank_ag", + "sparda_bank_wien", + "volksbank_gruppe", + "volkskreditbank_ag", + "vr_bank_braunau", + ] + ] + """ + The customer's bank. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type for FPX transaction + """ + 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. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataGiropay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataGopay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataGrabpay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer(TypedDict): + bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] + """ + Bank where the account is held. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataIdeal(TypedDict): + bank: NotRequired[ + Literal[ + "abn_amro", + "asn_bank", + "bunq", + "buut", + "finom", + "handelsbanken", + "ing", + "knab", + "moneyou", + "n26", + "nn", + "rabobank", + "regiobank", + "revolut", + "sns_bank", + "triodos_bank", + "van_lanschot", + "yoursafe", + ] + ] + """ + The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataInteracPresent(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataKakaoPay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataKlarna(TypedDict): + dob: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarnaDob"] + """ + Customer's date of birth + """ + + +class PaymentIntentCreateParamsPaymentMethodDataKlarnaDob(TypedDict): + 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. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataKonbini(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataKrCard(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataLink(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataMbWay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataMobilepay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataMultibanco(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataNaverPay(TypedDict): + funding: NotRequired[Literal["card", "points"]] + """ + Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataNzBankAccount(TypedDict): + account_holder_name: NotRequired[str] + """ + The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + """ + account_number: str + """ + The account number for the bank account. + """ + bank_code: str + """ + The numeric code for the bank account's bank. + """ + branch_code: str + """ + The numeric code for the bank account's bank branch. + """ + reference: NotRequired[str] + suffix: str + """ + The suffix of the bank account number. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataOxxo(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataP24(TypedDict): + bank: NotRequired[ + 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. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataPayByBank(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataPayco(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataPaynow(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataPaypal(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataPaypay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataPayto(TypedDict): + account_number: NotRequired[str] + """ + The account number for the bank account. + """ + bsb_number: NotRequired[str] + """ + Bank-State-Branch number of the bank account. + """ + pay_id: NotRequired[str] + """ + The PayID alias for the bank account. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataPix(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataPromptpay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataQris(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict): + session: NotRequired[str] + """ + A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataRechnung(TypedDict): + dob: "PaymentIntentCreateParamsPaymentMethodDataRechnungDob" + """ + Customer's date of birth + """ + + +class PaymentIntentCreateParamsPaymentMethodDataRechnungDob(TypedDict): + 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. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataSamsungPay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict): + iban: str + """ + IBAN of the bank account. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataShopeepay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataSofort(TypedDict): + country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + """ + Two-letter ISO code representing the country the bank account is located in. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataStripeBalance(TypedDict): + account: NotRequired[str] + """ + The connected account ID whose Stripe balance to use as the source of payment + """ + source_type: NotRequired[Literal["bank_account", "card", "fpx"]] + """ + The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + """ + + +class PaymentIntentCreateParamsPaymentMethodDataSwish(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataTwint(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type: individual or company. + """ + account_number: NotRequired[str] + """ + Account number of the bank account. + """ + account_type: NotRequired[Literal["checking", "savings"]] + """ + Account type: checkings or savings. Defaults to checking if omitted. + """ + financial_connections_account: NotRequired[str] + """ + The ID of a Financial Connections Account to use as a payment method. + """ + routing_number: NotRequired[str] + """ + Routing number of the bank account. + """ + + +class PaymentIntentCreateParamsPaymentMethodDataWechatPay(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodDataZip(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): + acss_debit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit" + ] + """ + If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + """ + affirm: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAffirm" + ] + """ + If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + """ + afterpay_clearpay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay" + ] + """ + If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + """ + alipay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlipay" + ] + """ + If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + """ + alma: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlma" + ] + """ + If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + """ + amazon_pay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay" + ] + """ + If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + """ + au_becs_debit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit" + ] + """ + If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + """ + bacs_debit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit" + ] + """ + If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + """ + bancontact: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBancontact" + ] + """ + If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. + """ + billie: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillie" + ] + """ + If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + """ + blik: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik" + ] + """ + If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + """ + boleto: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBoleto" + ] + """ + If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + """ + card: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCard" + ] + """ + Configuration for any card payments attempted on this PaymentIntent. + """ + card_present: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPresent" + ] + """ + If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + cashapp: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCashapp" + ] + """ + If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + """ + crypto: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCrypto" + ] + """ + If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + """ + customer_balance: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance" + ] + """ + If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + """ + eps: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsEps" + ] + """ + If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + """ + fpx: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsFpx" + ] + """ + If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + """ + giropay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiropay" + ] + """ + If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + """ + gopay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGopay" + ] + """ + If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + """ + grabpay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGrabpay" + ] + """ + If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + """ + id_bank_transfer: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer" + ] + """ + If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + """ + ideal: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdeal" + ] + """ + If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + """ + interac_present: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent" + ] + """ + If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + kakao_pay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay" + ] + """ + If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + """ + klarna: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarna" + ] + """ + If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + """ + konbini: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKonbini" + ] + """ + If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + """ + kr_card: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKrCard" + ] + """ + If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + """ + link: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink" + ] + """ + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + """ + mb_way: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay" + ] + """ + If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + """ + mobilepay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMobilepay" + ] + """ + If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + """ + multibanco: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMultibanco" + ] + """ + If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + """ + naver_pay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNaverPay" + ] + """ + If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + """ + nz_bank_account: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount" + ] + """ + If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + """ + oxxo: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsOxxo" + ] + """ + If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + """ + p24: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsP24" + ] + """ + If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + """ + pay_by_bank: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayByBank" + ] + """ + If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + """ + payco: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayco" + ] + """ + If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + """ + paynow: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaynow" + ] + """ + If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + """ + paypal: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypal" + ] + """ + If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + """ + paypay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ + payto: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayto" + ] + """ + If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + """ + pix: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPix" + ] + """ + If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + """ + promptpay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPromptpay" + ] + """ + If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + """ + qris: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsQris" + ] + """ + If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + """ + rechnung: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRechnung" + ] + """ + If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + """ + revolut_pay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay" + ] + """ + If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + """ + samsung_pay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay" + ] + """ + If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + """ + satispay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSatispay" + ] + """ + If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + """ + sepa_debit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit" + ] + """ + If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + """ + shopeepay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsShopeepay" + ] + """ + If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + """ + sofort: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSofort" + ] + """ + If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + """ + stripe_balance: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance" + ] + """ + If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + """ + swish: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish" + ] + """ + If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + """ + twint: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsTwint" + ] + """ + If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + """ + us_bank_account: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount" + ] + """ + If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + """ + wechat_pay: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsWechatPay" + ] + """ + If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + """ + zip: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsZip" + ] + """ + If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + verification_method: NotRequired[ + Literal["automatic", "instant", "microdeposits"] + ] + """ + Bank account verification method. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions( + TypedDict, +): + custom_mandate_url: NotRequired["Literal['']|str"] + """ + A URL for custom mandate text to render during confirmation step. + The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, + or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + """ + interval_description: NotRequired[str] + """ + Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + """ + payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + """ + Payment schedule for the mandate. + """ + transaction_type: NotRequired[Literal["business", "personal"]] + """ + Transaction type of the mandate. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAffirm(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + preferred_locale: NotRequired[str] + """ + Preferred language of the Affirm authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + reference: NotRequired[str] + """ + An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. + This field differs from the statement descriptor and item name. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAlipay(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAlma(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( + TypedDict, +): + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBancontact(TypedDict): + preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + """ + Preferred language of the Bancontact authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict): + expires_after_days: NotRequired[int] + """ + The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + cvc_token: NotRequired[str] + """ + A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + """ + installments: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments" + ] + """ + Installment configuration for payments attempted on this PaymentIntent. + + For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + """ + mandate_options: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions" + ] + """ + Configuration options for setting up an eMandate for cards issued in India. + """ + moto: NotRequired[bool] + """ + When specified, this parameter indicates that a transaction will be marked + as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This + parameter can only be provided during confirmation. + """ + network: NotRequired[ + Literal[ + "amex", + "cartes_bancaires", + "diners", + "discover", + "eftpos_au", + "girocard", + "interac", + "jcb", + "link", + "mastercard", + "unionpay", + "unknown", + "visa", + ] + ] + """ + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + request_decremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + """ + request_extended_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + """ + request_incremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. + """ + request_multicapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + """ + request_overcapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + request_three_d_secure: NotRequired[ + Literal["any", "automatic", "challenge"] + ] + """ + We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + """ + require_cvc_recollection: NotRequired[bool] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + """ + statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + """ + statement_details: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails" + ] + """ + Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + """ + three_d_secure: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure" + ] + """ + If 3D Secure authentication was performed with a third-party provider, + the authentication details to use for this payment. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments(TypedDict): + enabled: NotRequired[bool] + """ + Setting to true enables installments for this PaymentIntent. + This will cause the response to contain a list of available installment plans. + Setting to false will prevent any selected plan from applying to a charge. + """ + plan: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan" + ] + """ + The selected installment plan to use for this payment attempt. + This parameter can only be provided during confirmation. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan( + TypedDict, +): + count: NotRequired[int] + """ + For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + """ + interval: NotRequired[Literal["month"]] + """ + For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. + One of `month`. + """ + type: Literal["bonus", "fixed_count", "revolving"] + """ + Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. + """ + amount_type: Literal["fixed", "maximum"] + """ + One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + """ + description: NotRequired[str] + """ + A description of the mandate or subscription that is meant to be displayed to the customer. + """ + end_date: NotRequired[int] + """ + End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + """ + interval: Literal["day", "month", "sporadic", "week", "year"] + """ + Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + """ + interval_count: NotRequired[int] + """ + The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + """ + reference: str + """ + Unique identifier for the mandate or subscription. + """ + start_date: int + """ + Start date of the mandate or subscription. Start date should not be lesser than yesterday. + """ + supported_types: NotRequired[List[Literal["india"]]] + """ + Specifies the type of mandates supported. Possible values are `india`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress" + ] + """ + Please pass in an address that is within your Stripe user account country + """ + phone: NotRequired[str] + """ + Phone number (e.g., a toll-free number that customers can call) + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): + ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + """ + The `transStatus` returned from the card Issuer's ACS in the ARes. + """ + cryptogram: str + """ + The cryptogram, also known as the "authentication value" (AAV, CAVV or + AEVV). This value is 20 bytes, base64-encoded into a 28-character string. + (Most 3D Secure providers will return the base64-encoded version, which + is what you should specify here.) + """ + electronic_commerce_indicator: NotRequired[ + Literal["01", "02", "05", "06", "07"] + ] + """ + The Electronic Commerce Indicator (ECI) is returned by your 3D Secure + provider and indicates what degree of authentication was performed. + """ + exemption_indicator: NotRequired[Literal["low_risk", "none"]] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + network_options: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + ] + """ + Network specific 3DS fields. Network specific arguments require an + explicit card brand choice. The parameter `payment_method_options.card.network`` + must be populated accordingly + """ + requestor_challenge_indicator: NotRequired[str] + """ + The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the + AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + """ + transaction_id: str + """ + For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server + Transaction ID (dsTransID). + """ + version: Literal["1.0.2", "2.1.0", "2.2.0"] + """ + The version of 3D Secure that was performed. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( + TypedDict, +): + cartes_bancaires: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" + ] + """ + Cartes Bancaires-specific 3DS fields. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( + TypedDict, +): + cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] + """ + The cryptogram calculation algorithm used by the card Issuer's ACS + to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. + messageExtension: CB-AVALGO + """ + cb_exemption: NotRequired[str] + """ + The exemption indicator returned from Cartes Bancaires in the ARes. + message extension: CB-EXEMPTION; string (4 characters) + This is a 3 byte bitmap (low significant byte first and most significant + bit first) that has been Base64 encoded + """ + cb_score: NotRequired[int] + """ + The risk score returned from Cartes Bancaires in the ARes. + message extension: CB-SCORE; numeric value 0-99 + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): + capture_method: NotRequired[Literal["manual", "manual_preferred"]] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + request_extended_authorization: NotRequired[bool] + """ + Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + """ + request_incremental_authorization_support: NotRequired[bool] + """ + Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + """ + routing: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCrypto(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict): + bank_transfer: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer" + ] + """ + Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + """ + funding_type: NotRequired[Literal["bank_transfer"]] + """ + The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer( + TypedDict, +): + eu_bank_transfer: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + ] + """ + Configuration for the eu_bank_transfer funding type. + """ + requested_address_types: NotRequired[ + List[ + Literal[ + "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" + ] + ] + ] + """ + List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. + + Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + """ + type: Literal[ + "eu_bank_transfer", + "gb_bank_transfer", + "jp_bank_transfer", + "mx_bank_transfer", + "us_bank_transfer", + ] + """ + The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( + TypedDict, +): + country: str + """ + The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsEps(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsGiropay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsGopay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsGrabpay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer(TypedDict): + expires_after: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + """ + expires_at: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsIdeal(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent(TypedDict): + pass + + +class PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarna(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + on_demand: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand" + ] + """ + On-demand details if setting up or charging an on-demand payment. + """ + preferred_locale: NotRequired[ + Literal[ + "cs-CZ", + "da-DK", + "de-AT", + "de-CH", + "de-DE", + "el-GR", + "en-AT", + "en-AU", + "en-BE", + "en-CA", + "en-CH", + "en-CZ", + "en-DE", + "en-DK", + "en-ES", + "en-FI", + "en-FR", + "en-GB", + "en-GR", + "en-IE", + "en-IT", + "en-NL", + "en-NO", + "en-NZ", + "en-PL", + "en-PT", + "en-RO", + "en-SE", + "en-US", + "es-ES", + "es-US", + "fi-FI", + "fr-BE", + "fr-CA", + "fr-CH", + "fr-FR", + "it-CH", + "it-IT", + "nb-NO", + "nl-BE", + "nl-NL", + "pl-PL", + "pt-PT", + "ro-RO", + "sv-FI", + "sv-SE", + ] + ] + """ + Preferred language of the Klarna authorization page that the customer is redirected to + """ + setup_future_usage: NotRequired[ + Literal["none", "off_session", "on_session"] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + subscriptions: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription]" + ] + """ + Subscription details if setting up or charging a subscription. + """ + supplementary_purchase_data: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): + average_amount: NotRequired[int] + """ + Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + maximum_amount: NotRequired[int] + """ + The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + minimum_amount: NotRequired[int] + """ + The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + """ + Interval at which the customer is making purchases + """ + purchase_interval_count: NotRequired[int] + """ + The number of `purchase_interval` between charges + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Unit of time between subscription charges. + """ + interval_count: NotRequired[int] + """ + The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + """ + name: NotRequired[str] + """ + Name for subscription. + """ + next_billing: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" + ] + """ + Describes the upcoming charge for this subscription. + """ + reference: str + """ + A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( + TypedDict, +): + amount: int + """ + The amount of the next charge for the subscription. + """ + date: str """ - payto: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayto" + The date of the next charge for the subscription in YYYY-MM-DD format. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" ] """ - If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + Supplementary bus reservation details. """ - pix: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPix" + event_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" ] """ - If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + Supplementary event reservation details. """ - promptpay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPromptpay" + ferry_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" ] """ - If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + Supplementary ferry reservation details. """ - qris: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsQris" + insurances: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" ] """ - If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + Supplementary insurance details. """ - rechnung: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRechnung" + marketplace_sellers: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" ] """ - If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + Supplementary marketplace seller details. """ - revolut_pay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay" + round_trip_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" ] """ - If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + Supplementary round trip reservation details. """ - samsung_pay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay" + train_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" ] """ - If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + Supplementary train reservation details. """ - satispay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSatispay" + vouchers: NotRequired[ + "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" ] """ - If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + Voucher details, such as a gift card or discount code. """ - sepa_debit: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit" - ] + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + Name of associated or partner company for the service. """ - shopeepay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsShopeepay" + arrival: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" ] """ - If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + Arrival details. """ - sofort: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSofort" - ] + carrier_name: NotRequired[str] """ - If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + Name of transportation company. """ - stripe_balance: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance" - ] + currency: NotRequired[str] """ - If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + Currency. """ - swish: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish" + departure: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" ] """ - If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + Departure details. """ - twint: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsTwint" + insurances: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] ] """ - If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + List of insurances for this reservation. """ - us_bank_account: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount" + passengers: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] ] """ - If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + List of passengers that this reservation applies to. """ - wechat_pay: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsWechatPay" - ] + price: NotRequired[int] """ - If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + Price in cents. """ - zip: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsZip" + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + Ticket class. """ -class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions" +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" ] """ - Additional fields for Mandate creation + Address of the arrival location. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ - 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`. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] """ - target_date: NotRequired[str] + Address of the departure location. """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + departs_at: NotRequired[int] """ - verification_method: NotRequired[ - Literal["automatic", "instant", "microdeposits"] - ] + Timestamp of departure. """ - Bank account verification method. + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( TypedDict, ): - custom_mandate_url: NotRequired["Literal['']|str"] + city: NotRequired[str] """ - A URL for custom mandate text to render during confirmation step. - The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, - or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + The city or town. """ - interval_description: NotRequired[str] + country: NotRequired[str] """ - Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + The country in ISO 3166-1 alpha-2 format. """ - payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + postal_code: NotRequired[str] """ - Payment schedule for the mandate. + The postal code formatted according to country. """ - transaction_type: NotRequired[Literal["business", "personal"]] + region: NotRequired[str] """ - Transaction type of the mandate. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsAffirm(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - preferred_locale: NotRequired[str] + Insurance currency. """ - Preferred language of the Affirm authorization page that the customer is redirected to. + insurance_company_name: NotRequired[str] """ - setup_future_usage: NotRequired[Literal["none"]] + Name of the company providing the insurance. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - reference: NotRequired[str] + The family name of the person. """ - An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. - This field differs from the statement descriptor and item name. + given_name: NotRequired[str] """ - setup_future_usage: NotRequired[Literal["none"]] + The given name of the person. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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`. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsAlipay(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Address of the event. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsAlma(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + affiliate_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + ends_at: NotRequired[int] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + End timestamp of the event. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + event_company_name: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Company selling the ticket. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + event_name: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Name of the event. """ - target_date: NotRequired[str] + event_type: NotRequired[ + Literal[ + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", + ] + ] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Type of the event. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions" + insurances: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] ] """ - Additional fields for Mandate creation + List of insurances for this event. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + starts_at: NotRequired[int] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Start timestamp of the event. """ - target_date: NotRequired[str] + venue_name: NotRequired[str] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Name of the venue where the event takes place. """ -class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( TypedDict, ): - reference_prefix: NotRequired["Literal['']|str"] + city: NotRequired[str] """ - Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + The city or town. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsBancontact(TypedDict): - preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + country: NotRequired[str] """ - Preferred language of the Bancontact authorization page that the customer is redirected to. + The country in ISO 3166-1 alpha-2 format. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + region: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict): - code: NotRequired[str] + street_address: NotRequired[str] """ - The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + Line 1 of the street address. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + street_address2: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Line 2 of the street address. """ -class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict): - expires_after_days: NotRequired[int] - """ - The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + Insurance currency. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + insurance_company_name: NotRequired[str] """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Name of the company providing the insurance. """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - cvc_token: NotRequired[str] + Type of insurance. """ - A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + price: NotRequired[int] """ - installments: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments" - ] + Price of insurance in cents. """ - Installment configuration for payments attempted on this PaymentIntent. - For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - mandate_options: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" ] """ - Configuration options for setting up an eMandate for cards issued in India. + Arrival details. """ - moto: NotRequired[bool] + carrier_name: NotRequired[str] """ - When specified, this parameter indicates that a transaction will be marked - as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This - parameter can only be provided during confirmation. + Name of transportation company. """ - network: NotRequired[ - Literal[ - "amex", - "cartes_bancaires", - "diners", - "discover", - "eftpos_au", - "girocard", - "interac", - "jcb", - "link", - "mastercard", - "unionpay", - "unknown", - "visa", - ] - ] + currency: NotRequired[str] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Currency. """ - request_decremental_authorization: NotRequired[ - Literal["if_available", "never"] + departure: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" ] """ - Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + Departure details. """ - request_extended_authorization: NotRequired[ - Literal["if_available", "never"] + insurances: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] ] """ - Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + List of insurances for this reservation. """ - request_incremental_authorization: NotRequired[ - Literal["if_available", "never"] + passengers: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] ] """ - Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. - """ - request_multicapture: NotRequired[Literal["if_available", "never"]] - """ - Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + List of passengers that this reservation applies to. """ - request_overcapture: NotRequired[Literal["if_available", "never"]] + price: NotRequired[int] """ - Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + Price in cents. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - Request partial authorization on this PaymentIntent. + Ticket class. """ - request_three_d_secure: NotRequired[ - Literal["any", "automatic", "challenge"] + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" ] """ - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - """ - require_cvc_recollection: NotRequired[bool] + Address of the arrival location. """ - When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + arrival_location: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + Identifier name or reference for the arrival location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + The city or town. """ - statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + country: NotRequired[str] """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + The country in ISO 3166-1 alpha-2 format. """ - statement_details: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails" - ] + postal_code: NotRequired[str] """ - Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + The postal code formatted according to country. """ - three_d_secure: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure" - ] + region: NotRequired[str] """ - If 3D Secure authentication was performed with a third-party provider, - the authentication details to use for this payment. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments(TypedDict): - enabled: NotRequired[bool] + street_address: NotRequired[str] """ - Setting to true enables installments for this PaymentIntent. - This will cause the response to contain a list of available installment plans. - Setting to false will prevent any selected plan from applying to a charge. + Line 1 of the street address. """ - plan: NotRequired[ - "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan" - ] + street_address2: NotRequired[str] """ - The selected installment plan to use for this payment attempt. - This parameter can only be provided during confirmation. + Line 2 of the street address. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( TypedDict, ): - count: NotRequired[int] + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] """ - For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + Address of the departure location. """ - interval: NotRequired[Literal["month"]] + departs_at: NotRequired[int] """ - For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. - One of `month`. + Timestamp of departure. """ - type: Literal["bonus", "fixed_count", "revolving"] + departure_location: NotRequired[str] """ - Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + Identifier name or reference for the origin location. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( TypedDict, ): - amount: int + city: NotRequired[str] """ - Amount to be charged for future payments. + The city or town. """ - amount_type: Literal["fixed", "maximum"] + country: NotRequired[str] """ - One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + The country in ISO 3166-1 alpha-2 format. """ - description: NotRequired[str] + postal_code: NotRequired[str] """ - A description of the mandate or subscription that is meant to be displayed to the customer. + The postal code formatted according to country. """ - end_date: NotRequired[int] + region: NotRequired[str] """ - End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + The state, county, province, or region formatted according to country. """ - interval: Literal["day", "month", "sporadic", "week", "year"] + street_address: NotRequired[str] """ - Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + Line 1 of the street address. """ - interval_count: NotRequired[int] + street_address2: NotRequired[str] """ - The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + Line 2 of the street address. """ - reference: str + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - Unique identifier for the mandate or subscription. + Insurance currency. """ - start_date: int + insurance_company_name: NotRequired[str] """ - Start date of the mandate or subscription. Start date should not be lesser than yesterday. + Name of the company providing the insurance. """ - supported_types: NotRequired[List[Literal["india"]]] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Specifies the type of mandates supported. Possible values are `india`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( TypedDict, ): - address: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress" - ] + family_name: NotRequired[str] """ - Please pass in an address that is within your Stripe user account country + The family name of the person. """ - phone: NotRequired[str] + given_name: NotRequired[str] """ - Phone number (e.g., a toll-free number that customers can call) + The given name of the person. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( TypedDict, ): - city: NotRequired[str] + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] """ - City, district, suburb, town, or village. + Name of the company providing the insurance. """ - country: NotRequired[str] + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Type of insurance """ - line1: NotRequired[str] + price: NotRequired[int] """ - Address line 1, such as the street, PO Box, or company name. + Price of insurance in cents. """ - line2: NotRequired[str] + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, +): + line_item_references: NotRequired[List[str]] """ - Address line 2, such as the apartment, suite, unit, or building. + The references to line items for purchases with multiple associated sub-sellers. """ - postal_code: NotRequired[str] + marketplace_seller_address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] """ - ZIP or postal code. + The address of the selling or delivering merchant. """ - state: NotRequired[str] + marketplace_seller_name: NotRequired[str] """ - State, county, province, or region. + The name of the marketplace seller. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): - ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + marketplace_seller_reference: NotRequired[str] """ - The `transStatus` returned from the card Issuer's ACS in the ARes. + The unique identifier for the marketplace seller. """ - cryptogram: str + number_of_transactions: NotRequired[int] """ - The cryptogram, also known as the "authentication value" (AAV, CAVV or - AEVV). This value is 20 bytes, base64-encoded into a 28-character string. - (Most 3D Secure providers will return the base64-encoded version, which - is what you should specify here.) + The number of transactions the sub-seller completed in the last 12 months. """ - electronic_commerce_indicator: NotRequired[ - Literal["01", "02", "05", "06", "07"] + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] ] """ - The Electronic Commerce Indicator (ECI) is returned by your 3D Secure - provider and indicates what degree of authentication was performed. + The category of the product. """ - exemption_indicator: NotRequired[Literal["low_risk", "none"]] + seller_last_login_at: NotRequired[int] """ - The exemption requested via 3DS and accepted by the issuer at authentication time. + The date when the seller's account with the marketplace was last logged in. """ - network_options: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] ] """ - Network specific 3DS fields. Network specific arguments require an - explicit card brand choice. The parameter `payment_method_options.card.network`` - must be populated accordingly + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. """ - requestor_challenge_indicator: NotRequired[str] + seller_registered_at: NotRequired[int] """ - The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the - AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + The date when the seller's account with the marketplace was created. """ - transaction_id: str + seller_updated_at: NotRequired[int] """ - For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server - Transaction ID (dsTransID). + The date when the seller's account with the marketplace was last updated. """ - version: Literal["1.0.2", "2.1.0", "2.2.0"] + shipping_references: NotRequired[List[str]] """ - The version of 3D Secure that was performed. + The references to shipping addresses for purchases with multiple associated sub-sellers. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( - TypedDict, -): - cartes_bancaires: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" - ] + volume_of_transactions: NotRequired[int] """ - Cartes Bancaires-specific 3DS fields. + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( TypedDict, ): - cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] - """ - The cryptogram calculation algorithm used by the card Issuer's ACS - to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. - messageExtension: CB-AVALGO - """ - cb_exemption: NotRequired[str] + city: NotRequired[str] """ - The exemption indicator returned from Cartes Bancaires in the ARes. - message extension: CB-EXEMPTION; string (4 characters) - This is a 3 byte bitmap (low significant byte first and most significant - bit first) that has been Base64 encoded + The city or town. """ - cb_score: NotRequired[int] + country: NotRequired[str] """ - The risk score returned from Cartes Bancaires in the ARes. - message extension: CB-SCORE; numeric value 0-99 + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] + postal_code: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The postal code formatted according to country. """ - request_extended_authorization: NotRequired[bool] + region: NotRequired[str] """ - Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + The state, county, province, or region formatted according to country. """ - request_incremental_authorization_support: NotRequired[bool] + street_address: NotRequired[str] """ - Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + Line 1 of the street address. """ - routing: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting" - ] + street_address2: NotRequired[str] """ - Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + Line 2 of the street address. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( TypedDict, ): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority + affiliate_name: NotRequired[str] """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" + arrival: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCrypto(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] - """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Arrival details. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict): - bank_transfer: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer" - ] + carrier_name: NotRequired[str] """ - Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + Name of transportation company. """ - funding_type: NotRequired[Literal["bank_transfer"]] + currency: NotRequired[str] """ - The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + Currency. """ - setup_future_usage: NotRequired[Literal["none"]] + departure: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Departure details. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer( - TypedDict, -): - eu_bank_transfer: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + insurances: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] ] """ - Configuration for the eu_bank_transfer funding type. + List of insurances for this reservation. """ - requested_address_types: NotRequired[ + passengers: NotRequired[ List[ - Literal[ - "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" - ] + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" ] ] """ - List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. - - Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + List of passengers that this reservation applies to. """ - type: Literal[ - "eu_bank_transfer", - "gb_bank_transfer", - "jp_bank_transfer", - "mx_bank_transfer", - "us_bank_transfer", + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + Ticket class. """ -class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( TypedDict, ): - country: str + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + Address of the arrival location. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsEps(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + arrival_location: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Identifier name or reference for the arrival location. """ -class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The city or town. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsGiropay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + country: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsGopay(TypedDict): - setup_future_usage: NotRequired[Literal["none", "off_session"]] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsGrabpay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + region: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer(TypedDict): - expires_after: NotRequired[int] +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + Address of the departure location. """ - expires_at: NotRequired[int] + departs_at: NotRequired[int] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + Timestamp of departure. """ - setup_future_usage: NotRequired[Literal["none"]] + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentCreateParamsPaymentMethodOptionsIdeal(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent(TypedDict): - pass - - -class PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Arrival details. """ - - -class PaymentIntentCreateParamsPaymentMethodOptionsKlarna(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + carrier_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of transportation company. """ - on_demand: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand" + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" ] """ - On-demand details if setting up or charging an on-demand payment. + Departure details. """ - preferred_locale: NotRequired[ - Literal[ - "cs-CZ", - "da-DK", - "de-AT", - "de-CH", - "de-DE", - "el-GR", - "en-AT", - "en-AU", - "en-BE", - "en-CA", - "en-CH", - "en-CZ", - "en-DE", - "en-DK", - "en-ES", - "en-FI", - "en-FR", - "en-GB", - "en-GR", - "en-IE", - "en-IT", - "en-NL", - "en-NO", - "en-NZ", - "en-PL", - "en-PT", - "en-RO", - "en-SE", - "en-US", - "es-ES", - "es-US", - "fi-FI", - "fr-BE", - "fr-CA", - "fr-CH", - "fr-FR", - "it-CH", - "it-IT", - "nb-NO", - "nl-BE", - "nl-NL", - "pl-PL", - "pt-PT", - "ro-RO", - "sv-FI", - "sv-SE", + insurances: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" ] ] """ - Preferred language of the Klarna authorization page that the customer is redirected to + List of insurances for this reservation. """ - setup_future_usage: NotRequired[ - Literal["none", "off_session", "on_session"] + passengers: NotRequired[ + List[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ - 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`. +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - subscriptions: NotRequired[ - "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription]" + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" ] """ - Subscription details if setting up or charging a subscription. + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): - average_amount: NotRequired[int] +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] """ - Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + The city or town. """ - maximum_amount: NotRequired[int] + country: NotRequired[str] """ - The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The country in ISO 3166-1 alpha-2 format. """ - minimum_amount: NotRequired[int] + postal_code: NotRequired[str] """ - The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The postal code formatted according to country. """ - purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + region: NotRequired[str] """ - Interval at which the customer is making purchases + The state, county, province, or region formatted according to country. """ - purchase_interval_count: NotRequired[int] + street_address: NotRequired[str] """ - The number of `purchase_interval` between charges + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + currency: NotRequired[str] """ - Unit of time between subscription charges. + Insurance currency. """ - interval_count: NotRequired[int] + insurance_company_name: NotRequired[str] """ - The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + Name of the company providing the insurance. """ - name: NotRequired[str] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Name for subscription. + Type of insurance. """ - next_billing: NotRequired[ - "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" - ] + price: NotRequired[int] """ - Describes the upcoming charge for this subscription. + Price of insurance in cents. """ - reference: str + + +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ -class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( +class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( TypedDict, ): - amount: int + affiliate_name: NotRequired[str] """ - The amount of the next charge for the subscription. + Name of associated or partner company for this voucher. """ - date: str + ends_at: NotRequired[int] """ - The date of the next charge for the subscription in YYYY-MM-DD format. + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. """ @@ -3994,7 +6147,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -4013,7 +6166,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -4035,7 +6188,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index c0087b1d3..d255fd695 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -390,6 +390,12 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -406,10 +412,22 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["PaymentIntentModifyParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -664,344 +682,483 @@ class PaymentIntentModifyParamsPaymentDetailsCarRentalReturnAddress(TypedDict): """ -class PaymentIntentModifyParamsPaymentDetailsEventDetails(TypedDict): - access_controlled_venue: NotRequired[bool] +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate" + ] """ - Indicates if the tickets are digitally checked when entering the venue. + Affiliate (such as travel agency) details for the rental. """ - address: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress" - ] + booking_number: NotRequired[str] """ - The event location's address. + Booking confirmation number for the car rental. """ - affiliate: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate" - ] + carrier_name: NotRequired[str] """ - Affiliate details for this purchase. + Name of the car rental company. """ - company: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The name of the company + Customer service phone number for the car rental company. """ - delivery: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery" + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance" ] """ - Delivery details for this purchase. + Distance details for the rental. """ - ends_at: NotRequired[int] + drivers: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver"] + ] """ - Event end time. Measured in seconds since the Unix epoch. + List of drivers for the rental. """ - genre: NotRequired[str] + drop_off: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff" """ - Type of the event entertainment (concert, sports event etc) + Drop-off location details. """ - name: str + insurances: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance"] + ] """ - The name of the event. + Insurance details for the rental. """ - starts_at: NotRequired[int] + no_show_indicator: NotRequired[bool] """ - Event start time. Measured in seconds since the Unix epoch. + Indicates if the customer was a no-show. """ - - -class PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress(TypedDict): - city: NotRequired[str] + pickup: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup" """ - City, district, suburb, town, or village. + Pickup location details. """ - country: NotRequired[str] + renter_name: NotRequired[str] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Name of the person renting the vehicle. """ - line1: NotRequired[str] + total: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal" """ - Address line 1, such as the street, PO Box, or company name. + Total cost breakdown for the rental. """ - line2: NotRequired[str] + vehicle: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle" + ] """ - Address line 2, such as the apartment, suite, unit, or building. + Vehicle details for the rental. """ - postal_code: NotRequired[str] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate( + TypedDict +): + code: NotRequired[str] """ - ZIP or postal code. + Affiliate partner code. """ - state: NotRequired[str] + name: NotRequired[str] """ - State, county, province, or region. + Name of affiliate partner. """ -class PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate(TypedDict): - name: str +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance(TypedDict): + amount: int """ - The name of the affiliate that originated the purchase. + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. """ -class PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] """ - The delivery method for the payment + Driver's date of birth. """ - recipient: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient" - ] + driver_identification_number: NotRequired[str] """ - Details of the recipient. + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. """ -class PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient( +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( TypedDict, ): - email: NotRequired[str] + day: int """ - The email of the recipient the ticket is delivered to. + Day of birth (1-31). """ - name: NotRequired[str] + month: int """ - The name of the recipient the ticket is delivered to. + Month of birth (1-12). """ - phone: NotRequired[str] + year: int """ - The phone number of the recipient the ticket is delivered to. + Year of birth (must be greater than 1900). """ -class PaymentIntentModifyParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFlightAffiliate" - ] +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: ( + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress" + ) """ - Affiliate details for this purchase. + Address of the rental location. """ - agency_number: NotRequired[str] + location_name: NotRequired[str] """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + Location name. """ - carrier: NotRequired[str] + time: int """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Timestamp for the location. """ - delivery: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFlightDelivery" - ] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress( + TypedDict, +): + city: str """ - Delivery details for this purchase. + City, district, suburb, town, or village. """ - passenger_name: NotRequired[str] + country: str """ - The name of the person or entity on the reservation. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - passengers: NotRequired[ - List["PaymentIntentModifyParamsPaymentDetailsFlightPassenger"] - ] + line1: str """ - The details of the passengers in the travel reservation. + Address line 1, such as the street, PO Box, or company name. """ - segments: List["PaymentIntentModifyParamsPaymentDetailsFlightSegment"] + line2: NotRequired[str] """ - The individual flight segments associated with the trip. + Address line 2, such as the apartment, suite, unit, or building. """ - ticket_number: NotRequired[str] + postal_code: str """ - The ticket number associated with the travel reservation. + ZIP or postal code. """ - - -class PaymentIntentModifyParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + state: NotRequired[str] """ - The name of the affiliate that originated the purchase. + State, county, province, or region. """ -class PaymentIntentModifyParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance( + TypedDict +): + amount: int """ - The delivery method for the payment + Amount of the insurance coverage in cents. """ - recipient: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient" + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", ] """ - Details of the recipient. + Type of insurance coverage. """ -class PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict -): - email: NotRequired[str] +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: ( + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress" + ) """ - The email of the recipient the ticket is delivered to. + Address of the rental location. """ - name: NotRequired[str] + location_name: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Location name. """ - phone: NotRequired[str] + time: int """ - The phone number of the recipient the ticket is delivered to. + Timestamp for the location. """ -class PaymentIntentModifyParamsPaymentDetailsFlightPassenger(TypedDict): - name: str +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress( + TypedDict, +): + city: str """ - Full name of the person or entity on the flight reservation. + City, district, suburb, town, or village. """ - - -class PaymentIntentModifyParamsPaymentDetailsFlightSegment(TypedDict): - amount: NotRequired[int] + country: str """ - The flight segment amount. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - arrival_airport: NotRequired[str] + line1: str """ - The International Air Transport Association (IATA) airport code for the arrival airport. + Address line 1, such as the street, PO Box, or company name. """ - arrives_at: NotRequired[int] + line2: NotRequired[str] """ - The arrival time for the flight segment. Measured in seconds since the Unix epoch. + Address line 2, such as the apartment, suite, unit, or building. """ - carrier: NotRequired[str] + postal_code: str """ - The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. + ZIP or postal code. """ - departs_at: int + state: NotRequired[str] """ - The departure time for the flight segment. Measured in seconds since the Unix epoch. + State, county, province, or region. """ - departure_airport: NotRequired[str] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int """ - The International Air Transport Association (IATA) airport code for the departure airport. + Total amount in cents. """ - flight_number: NotRequired[str] + currency: NotRequired[str] """ - The flight number associated with the segment + Currency of the amount. """ - service_class: NotRequired[ - Literal["business", "economy", "first", "premium_economy"] + discounts: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts" ] """ - The fare class for the segment. + Discount details for the rental. """ - - -class PaymentIntentModifyParamsPaymentDetailsLodging(TypedDict): - address: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsLodgingAddress" + extra_charges: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge" + ] ] """ - The lodging location's address. + Additional charges for the rental. """ - adults: NotRequired[int] + rate_per_unit: NotRequired[int] """ - The number of adults on the booking + Rate per unit for the rental. """ - affiliate: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate" + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] ] """ - Affiliate details for this purchase. + Unit of measurement for the rate. """ - booking_number: NotRequired[str] + tax: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax" + ] """ - The booking number associated with the lodging reservation. + Tax breakdown for the rental. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - The lodging category + Corporate client discount code. """ - checkin_at: int + coupon: NotRequired[str] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + Coupon code applied to the rental. """ - checkout_at: int + maximum_free_miles_or_kilometers: NotRequired[int] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + Maximum number of free miles or kilometers included. """ - customer_service_phone_number: NotRequired[str] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict, +): + amount: int """ - The customer service phone number of the lodging company. + Amount of the extra charge in cents. """ - daily_room_rate_amount: NotRequired[int] + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] """ - The daily lodging room rate. + Type of extra charge. """ - delivery: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsLodgingDelivery" - ] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] """ - Delivery details for this purchase. + Indicates if the transaction is tax exempt. """ - extra_charges: NotRequired[ + taxes: NotRequired[ List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax" ] ] """ - List of additional charges being billed. + Array of tax details. """ - fire_safety_act_compliance: NotRequired[bool] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] """ - Indicates whether the lodging location is compliant with the Fire Safety Act. + Tax amount. """ - name: NotRequired[str] + rate: NotRequired[int] """ - The name of the lodging location. + Tax rate applied. """ - no_show: NotRequired[bool] + type: NotRequired[str] """ - Indicates if the customer did not keep their booking while failing to cancel the reservation. + Type of tax applied. """ - number_of_rooms: NotRequired[int] + + +class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] """ - The number of rooms on the booking + Make of the rental vehicle. """ - passengers: NotRequired[ - List["PaymentIntentModifyParamsPaymentDetailsLodgingPassenger"] + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] ] """ - The details of the passengers in the travel reservation + Type of the rental vehicle. """ - property_phone_number: NotRequired[str] + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] """ - The phone number of the lodging location. + Class of the rental vehicle. """ - room_class: NotRequired[str] + vehicle_identification_number: NotRequired[str] """ - The room class for this purchase. + Vehicle identification number (VIN). """ - room_nights: NotRequired[int] + + +class PaymentIntentModifyParamsPaymentDetailsEventDetails(TypedDict): + access_controlled_venue: NotRequired[bool] """ - The number of room nights + Indicates if the tickets are digitally checked when entering the venue. """ - total_room_tax_amount: NotRequired[int] + address: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress" + ] """ - The total tax amount associating with the room reservation. + The event location's address. """ - total_tax_amount: NotRequired[int] + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate" + ] """ - The total tax amount + Affiliate details for this purchase. + """ + company: NotRequired[str] + """ + The name of the company + """ + delivery: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery" + ] + """ + Delivery details for this purchase. + """ + ends_at: NotRequired[int] + """ + Event end time. Measured in seconds since the Unix epoch. + """ + genre: NotRequired[str] + """ + Type of the event entertainment (concert, sports event etc) + """ + name: str + """ + The name of the event. + """ + starts_at: NotRequired[int] + """ + Event start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentModifyParamsPaymentDetailsLodgingAddress(TypedDict): +class PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1028,27 +1185,27 @@ class PaymentIntentModifyParamsPaymentDetailsLodgingAddress(TypedDict): """ -class PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate(TypedDict): +class PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentModifyParamsPaymentDetailsLodgingDelivery(TypedDict): +class PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery(TypedDict): mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ The delivery method for the payment """ recipient: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient" + "PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient" ] """ Details of the recipient. """ -class PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient( +class PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient( TypedDict, ): email: NotRequired[str] @@ -1065,515 +1222,531 @@ class PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient( """ -class PaymentIntentModifyParamsPaymentDetailsLodgingPassenger(TypedDict): - name: str - """ - Full name of the person or entity on the lodging reservation. - """ - - -class PaymentIntentModifyParamsPaymentDetailsSubscription(TypedDict): +class PaymentIntentModifyParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate" + "PaymentIntentModifyParamsPaymentDetailsFlightAffiliate" ] """ Affiliate details for this purchase. """ - auto_renewal: NotRequired[bool] + agency_number: NotRequired[str] """ - Info whether the subscription will be auto renewed upon expiry. + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. """ - billing_interval: NotRequired[ - "PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval" + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDelivery" ] """ - Subscription billing details for this purchase. + Delivery details for this purchase. """ - ends_at: NotRequired[int] + passenger_name: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + The name of the person or entity on the reservation. """ - name: str + passengers: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsFlightPassenger"] + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + The details of the passengers in the travel reservation. """ - starts_at: NotRequired[int] + segments: List["PaymentIntentModifyParamsPaymentDetailsFlightSegment"] """ - Subscription start time. Measured in seconds since the Unix epoch. + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. """ -class PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict): +class PaymentIntentModifyParamsPaymentDetailsFlightAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval( - TypedDict, -): - count: int +class PaymentIntentModifyParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + The delivery method for the payment """ - interval: Literal["day", "month", "week", "year"] + recipient: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient" + ] """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Details of the recipient. """ -class PaymentIntentModifyParamsPaymentMethodData(TypedDict): - acss_debit: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataAcssDebit" - ] +class PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict +): + email: NotRequired[str] """ - If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. + The email of the recipient the ticket is delivered to. """ - affirm: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAffirm"] + name: NotRequired[str] """ - If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + The name of the recipient the ticket is delivered to. """ - afterpay_clearpay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay" - ] + phone: NotRequired[str] """ - If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. + The phone number of the recipient the ticket is delivered to. """ - alipay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlipay"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightPassenger(TypedDict): + name: str """ - If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. + Full name of the person or entity on the flight reservation. """ - allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] + + +class PaymentIntentModifyParamsPaymentDetailsFlightSegment(TypedDict): + amount: NotRequired[int] """ - This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + The flight segment amount. """ - alma: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlma"] + arrival_airport: NotRequired[str] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + The International Air Transport Association (IATA) airport code for the arrival airport. """ - amazon_pay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataAmazonPay" - ] + arrives_at: NotRequired[int] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + The arrival time for the flight segment. Measured in seconds since the Unix epoch. """ - au_becs_debit: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit" - ] + carrier: NotRequired[str] """ - If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. + The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. """ - bacs_debit: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataBacsDebit" - ] + departs_at: int """ - If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. + The departure time for the flight segment. Measured in seconds since the Unix epoch. """ - bancontact: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataBancontact" - ] + departure_airport: NotRequired[str] """ - If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. + The International Air Transport Association (IATA) airport code for the departure airport. """ - billie: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBillie"] + flight_number: NotRequired[str] """ - If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. + The flight number associated with the segment """ - billing_details: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataBillingDetails" + service_class: NotRequired[ + Literal["business", "economy", "first", "premium_economy"] ] """ - Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + The fare class for the segment. """ - blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate" + ] """ - If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + Affiliate details if applicable. """ - boleto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBoleto"] + booking_number: NotRequired[str] """ - If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. + Reservation reference. """ - cashapp: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCashapp"] + computerized_reservation_system: NotRequired[str] """ - If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. + Computerized reservation system used to make the reservation and purchase the ticket. """ - crypto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCrypto"] + endorsements_and_restrictions: NotRequired[str] """ - If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. + Ticket restrictions. """ - customer_balance: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataCustomerBalance" + insurances: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance"] ] """ - If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. - """ - eps: NotRequired["PaymentIntentModifyParamsPaymentMethodDataEps"] - """ - If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. + List of insurances. """ - fpx: NotRequired["PaymentIntentModifyParamsPaymentMethodDataFpx"] + passengers: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger"] + ] """ - If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. + List of passengers. """ - giropay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGiropay"] + segments: List["PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment"] """ - If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. + List of flight segments. """ - gopay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGopay"] + ticket_electronically_issued_indicator: NotRequired[bool] """ - If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. + Electronic ticket indicator. """ - grabpay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGrabpay"] + total: "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal" """ - If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. + Total cost breakdown. """ - id_bank_transfer: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer" + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" + ] ] """ - If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. + Type of flight transaction. """ - ideal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataIdeal"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] """ - If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. + Affiliate partner code. """ - interac_present: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataInteracPresent" - ] + name: NotRequired[str] """ - If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. + Name of affiliate partner. """ - kakao_pay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataKakaoPay" - ] + travel_authorization_code: NotRequired[str] """ - If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + Code provided by the company to a travel agent authorizing ticket issuance. """ - klarna: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarna"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int """ - If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. + Insurance cost. """ - konbini: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKonbini"] + currency: NotRequired[str] """ - If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + Insurance currency. """ - kr_card: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKrCard"] + insurance_company_name: NotRequired[str] """ - If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + Insurance company name. """ - link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"] + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + Type of insurance. """ - mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str """ - If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + Passenger's full name. """ - metadata: NotRequired[Dict[str, str]] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] """ - Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + Segment fare amount. """ - mobilepay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataMobilepay" - ] + arrival: "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival" """ - If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + Arrival details. """ - multibanco: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataMultibanco" - ] + carrier_code: str """ - If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. + Airline carrier code. """ - naver_pay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataNaverPay" - ] + carrier_name: NotRequired[str] """ - If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + Carrier name. """ - nz_bank_account: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataNzBankAccount" - ] + currency: NotRequired[str] """ - If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. + Segment currency. """ - oxxo: NotRequired["PaymentIntentModifyParamsPaymentMethodDataOxxo"] + departure: ( + "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture" + ) """ - If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + Departure details. """ - p24: NotRequired["PaymentIntentModifyParamsPaymentMethodDataP24"] + exchange_ticket_number: NotRequired[str] """ - If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + Exchange ticket number. """ - pay_by_bank: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataPayByBank" - ] + fare_basis_code: NotRequired[str] """ - If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + Fare basis code. """ - payco: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayco"] + fees: NotRequired[int] """ - If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Additional fees. """ - paynow: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaynow"] + flight_number: NotRequired[str] """ - If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + Flight number. """ - paypal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypal"] + is_stop_over_indicator: NotRequired[bool] """ - If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + Stopover indicator. """ - paypay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypay"] + refundable: NotRequired[bool] """ - If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + Refundable ticket indicator. """ - payto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayto"] + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] """ - If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Class of service. """ - pix: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPix"] + tax_amount: NotRequired[int] """ - If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + Tax amount for segment. """ - promptpay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataPromptpay" - ] + ticket_number: NotRequired[str] """ - If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + Ticket number. """ - qris: NotRequired["PaymentIntentModifyParamsPaymentMethodDataQris"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival( + TypedDict, +): + airport: str """ - If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + Arrival airport IATA code. """ - radar_options: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataRadarOptions" - ] + arrives_at: NotRequired[int] """ - Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. + Arrival date/time. """ - rechnung: NotRequired["PaymentIntentModifyParamsPaymentMethodDataRechnung"] + city: NotRequired[str] """ - If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + Arrival city. """ - revolut_pay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataRevolutPay" - ] + country: NotRequired[str] """ - If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. + Arrival country. """ - samsung_pay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataSamsungPay" - ] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture( + TypedDict, +): + airport: str """ - If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + Departure airport IATA code. """ - satispay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSatispay"] + city: NotRequired[str] """ - If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + Departure city. """ - sepa_debit: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataSepaDebit" - ] + country: NotRequired[str] """ - If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. + Departure country. """ - shopeepay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataShopeepay" - ] + departs_at: int """ - If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + Departure date/time. """ - sofort: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSofort"] + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int """ - If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + Total flight amount. """ - stripe_balance: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataStripeBalance" + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] ] """ - This hash contains details about the Stripe balance payment method. - """ - swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"] - """ - If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + Reason for credit. """ - twint: NotRequired["PaymentIntentModifyParamsPaymentMethodDataTwint"] + currency: NotRequired[str] """ - If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + Total currency. """ - type: Literal[ - "acss_debit", - "affirm", - "afterpay_clearpay", - "alipay", - "alma", - "amazon_pay", - "au_becs_debit", - "bacs_debit", - "bancontact", - "billie", - "blik", - "boleto", - "cashapp", - "crypto", - "customer_balance", - "eps", - "fpx", - "giropay", - "gopay", - "grabpay", - "id_bank_transfer", - "ideal", - "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", - "swish", - "twint", - "us_bank_account", - "wechat_pay", - "zip", + discounts: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts" ] """ - 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. + Discount details. """ - us_bank_account: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataUsBankAccount" + extra_charges: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge" + ] ] """ - If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + Additional charges. """ - wechat_pay: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodDataWechatPay" + tax: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax" ] """ - If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. - """ - zip: NotRequired["PaymentIntentModifyParamsPaymentMethodDataZip"] - """ - If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + Tax breakdown. """ -class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): - account_number: str +class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - Customer's bank account number. + Corporate client discount code. """ - institution_number: str + + +class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] """ - Institution number of the customer's bank. + Amount of additional charges. """ - transit_number: str + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] """ - Transit number of the customer's bank. + Type of additional charges. """ -class PaymentIntentModifyParamsPaymentMethodDataAffirm(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataAlipay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataAlma(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataAmazonPay(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ -class PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit(TypedDict): - account_number: str +class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] """ - The account number for the bank account. + Tax amount. """ - bsb_number: str + rate: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. """ -class PaymentIntentModifyParamsPaymentMethodDataBacsDebit(TypedDict): - account_number: NotRequired[str] +class PaymentIntentModifyParamsPaymentDetailsLodging(TypedDict): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingAddress" + ] """ - Account number of the bank account that the funds will be debited from. + The lodging location's address. """ - sort_code: NotRequired[str] + adults: NotRequired[int] """ - Sort code of the bank account. (e.g., `10-20-30`) + The number of adults on the booking """ - - -class PaymentIntentModifyParamsPaymentMethodDataBancontact(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataBillie(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataBillingDetails(TypedDict): - address: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress" + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate" ] """ - Billing address. + Affiliate details for this purchase. """ - email: NotRequired["Literal['']|str"] + booking_number: NotRequired[str] """ - Email address. + The booking number associated with the lodging reservation. """ - name: NotRequired["Literal['']|str"] + category: NotRequired[Literal["hotel", "vacation_rental"]] """ - Full name. + The lodging category """ - phone: NotRequired["Literal['']|str"] + checkin_at: int """ - Billing phone number (including extension). + Lodging check-in time. Measured in seconds since the Unix epoch. """ - tax_id: NotRequired[str] + checkout_at: int """ - Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + Lodging check-out time. Measured in seconds since the Unix epoch. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDelivery" + ] + """ + Delivery details for this purchase. + """ + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] + """ + List of additional charges being billed. + """ + fire_safety_act_compliance: NotRequired[bool] + """ + Indicates whether the lodging location is compliant with the Fire Safety Act. + """ + name: NotRequired[str] + """ + The name of the lodging location. + """ + no_show: NotRequired[bool] + """ + Indicates if the customer did not keep their booking while failing to cancel the reservation. + """ + number_of_rooms: NotRequired[int] + """ + The number of rooms on the booking + """ + passengers: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsLodgingPassenger"] + ] + """ + The details of the passengers in the travel reservation + """ + property_phone_number: NotRequired[str] + """ + The phone number of the lodging location. + """ + room_class: NotRequired[str] + """ + The room class for this purchase. + """ + room_nights: NotRequired[int] + """ + The number of room nights + """ + total_room_tax_amount: NotRequired[int] + """ + The total tax amount associating with the room reservation. + """ + total_tax_amount: NotRequired[int] + """ + The total tax amount """ -class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( - TypedDict, -): +class PaymentIntentModifyParamsPaymentDetailsLodgingAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1600,1841 +1773,3821 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( """ -class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ -class PaymentIntentModifyParamsPaymentMethodDataBoleto(TypedDict): - tax_id: str +class PaymentIntentModifyParamsPaymentDetailsLodgingDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient" + ] + """ + Details of the recipient. """ -class PaymentIntentModifyParamsPaymentMethodDataCashapp(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ -class PaymentIntentModifyParamsPaymentMethodDataCrypto(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingPassenger(TypedDict): + name: str + """ + Full name of the person or entity on the lodging reservation. + """ -class PaymentIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost" + ] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ -class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict): - bank: NotRequired[ +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation( + TypedDict, +): + accommodation_type: NotRequired[ Literal[ - "arzte_und_apotheker_bank", - "austrian_anadi_bank_ag", - "bank_austria", - "bankhaus_carl_spangler", - "bankhaus_schelhammer_und_schattera_ag", - "bawag_psk_ag", - "bks_bank_ag", - "brull_kallmus_bank_ag", - "btv_vier_lander_bank", - "capital_bank_grawe_gruppe_ag", - "deutsche_bank_ag", - "dolomitenbank", - "easybank_ag", - "erste_bank_und_sparkassen", - "hypo_alpeadriabank_international_ag", - "hypo_bank_burgenland_aktiengesellschaft", - "hypo_noe_lb_fur_niederosterreich_u_wien", - "hypo_oberosterreich_salzburg_steiermark", - "hypo_tirol_bank_ag", - "hypo_vorarlberg_bank_ag", - "marchfelder_bank", - "oberbank_ag", - "raiffeisen_bankengruppe_osterreich", - "schoellerbank_ag", - "sparda_bank_wien", - "volksbank_gruppe", - "volkskreditbank_ag", - "vr_bank_braunau", + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", ] ] """ - The customer's bank. + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. """ -class PaymentIntentModifyParamsPaymentMethodDataFpx(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] """ - Account holder type for FPX transaction + Affiliate partner code. """ - 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", - ] + name: NotRequired[str] """ - The customer's bank. + Affiliate partner name. """ -class PaymentIntentModifyParamsPaymentMethodDataGiropay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataGopay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataGrabpay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer(TypedDict): - bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str """ - Bank where the account is held. + Guest's full name. """ -class PaymentIntentModifyParamsPaymentMethodDataIdeal(TypedDict): - bank: NotRequired[ - Literal[ - "abn_amro", - "asn_bank", - "bunq", - "buut", - "handelsbanken", - "ing", - "knab", - "moneyou", - "n26", - "nn", - "rabobank", - "regiobank", - "revolut", - "sns_bank", - "triodos_bank", - "van_lanschot", - "yoursafe", - ] +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress" ] """ - The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + Address of the host. """ - - -class PaymentIntentModifyParamsPaymentMethodDataInteracPresent(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataKakaoPay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataKlarna(TypedDict): - dob: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarnaDob"] + country_of_domicile: NotRequired[str] """ - Customer's date of birth + Host's country of domicile. """ - - -class PaymentIntentModifyParamsPaymentMethodDataKlarnaDob(TypedDict): - day: int + host_reference: NotRequired[str] """ - The day of birth, between 1 and 31. + Reference number for the host. """ - month: int + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] """ - The month of birth, between 1 and 12. + Type of host. """ - year: int + name: NotRequired[str] """ - The four-digit year of birth. + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. """ -class PaymentIntentModifyParamsPaymentMethodDataKonbini(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataKrCard(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataLink(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataMbWay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataMobilepay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataMultibanco(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress( + TypedDict +): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ -class PaymentIntentModifyParamsPaymentMethodDataNaverPay(TypedDict): - funding: NotRequired[Literal["card", "points"]] +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int """ - Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. """ -class PaymentIntentModifyParamsPaymentMethodDataNzBankAccount(TypedDict): - account_holder_name: NotRequired[str] +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int """ - The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + Total price of the lodging reservation in cents. """ - account_number: str + cash_advances: NotRequired[int] """ - The account number for the bank account. + Cash advances in cents. """ - bank_code: str + currency: NotRequired[str] """ - The numeric code for the bank account's bank. + Currency of the total amount. """ - branch_code: str + discounts: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] """ - The numeric code for the bank account's bank branch. + Discount details for the lodging. """ - reference: NotRequired[str] - suffix: str + extra_charges: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge" + ] + ] """ - The suffix of the bank account number. + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax" + ] + """ + Tax breakdown for the lodging reservation. """ -class PaymentIntentModifyParamsPaymentMethodDataOxxo(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ -class PaymentIntentModifyParamsPaymentMethodDataP24(TypedDict): - bank: NotRequired[ +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ 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", + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" ] ] """ - The customer's bank. + Type of extra charge. """ -class PaymentIntentModifyParamsPaymentMethodDataPayByBank(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataPayco(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataPaynow(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataPaypal(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataPaypay(TypedDict): - pass +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ -class PaymentIntentModifyParamsPaymentMethodDataPayto(TypedDict): - account_number: NotRequired[str] +class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax( + TypedDict +): + amount: NotRequired[int] """ - The account number for the bank account. + Tax amount in cents. """ - bsb_number: NotRequired[str] + rate: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Tax rate. """ - pay_id: NotRequired[str] + type: NotRequired[str] """ - The PayID alias for the bank account. + Type of tax applied. """ -class PaymentIntentModifyParamsPaymentMethodDataPix(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataPromptpay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataQris(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict): - session: NotRequired[str] - """ - A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. - """ - - -class PaymentIntentModifyParamsPaymentMethodDataRechnung(TypedDict): - dob: "PaymentIntentModifyParamsPaymentMethodDataRechnungDob" +class PaymentIntentModifyParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate" + ] """ - Customer's date of birth + Affiliate details for this purchase. """ - - -class PaymentIntentModifyParamsPaymentMethodDataRechnungDob(TypedDict): - day: int + auto_renewal: NotRequired[bool] """ - The day of birth, between 1 and 31. + Info whether the subscription will be auto renewed upon expiry. """ - month: int + billing_interval: NotRequired[ + "PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval" + ] """ - The month of birth, between 1 and 12. + Subscription billing details for this purchase. """ - year: int + ends_at: NotRequired[int] """ - The four-digit year of birth. + Subscription end time. Measured in seconds since the Unix epoch. """ - - -class PaymentIntentModifyParamsPaymentMethodDataRevolutPay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataSamsungPay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): - iban: str + name: str """ - IBAN of the bank account. + Name of the product on subscription. e.g. Apple Music Subscription """ - - -class PaymentIntentModifyParamsPaymentMethodDataShopeepay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataSofort(TypedDict): - country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + starts_at: NotRequired[int] """ - Two-letter ISO code representing the country the bank account is located in. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentModifyParamsPaymentMethodDataStripeBalance(TypedDict): - account: NotRequired[str] - """ - The connected account ID whose Stripe balance to use as the source of payment - """ - source_type: NotRequired[Literal["bank_account", "card", "fpx"]] +class PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + The name of the affiliate that originated the purchase. """ -class PaymentIntentModifyParamsPaymentMethodDataSwish(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataTwint(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataUsBankAccount(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] - """ - Account holder type: individual or company. - """ - account_number: NotRequired[str] - """ - Account number of the bank account. - """ - account_type: NotRequired[Literal["checking", "savings"]] - """ - Account type: checkings or savings. Defaults to checking if omitted. - """ - financial_connections_account: NotRequired[str] +class PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval( + TypedDict, +): + count: int """ - The ID of a Financial Connections Account to use as a payment method. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - routing_number: NotRequired[str] + interval: Literal["day", "month", "week", "year"] """ - Routing number of the bank account. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ -class PaymentIntentModifyParamsPaymentMethodDataWechatPay(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodDataZip(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): +class PaymentIntentModifyParamsPaymentMethodData(TypedDict): acss_debit: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit" + "PaymentIntentModifyParamsPaymentMethodDataAcssDebit" ] """ - If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ - affirm: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAffirm" - ] + affirm: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAffirm"] """ - If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. """ afterpay_clearpay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay" + "PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay" ] """ - If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. """ - alipay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlipay" - ] + alipay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlipay"] """ - If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. """ - alma: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlma" - ] + allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] """ - If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + """ + alma: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlma"] + """ + If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay" + "PaymentIntentModifyParamsPaymentMethodDataAmazonPay" ] """ - If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit" + "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit" ] """ - If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ bacs_debit: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit" + "PaymentIntentModifyParamsPaymentMethodDataBacsDebit" ] """ - If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. """ bancontact: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBancontact" - ] - """ - If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. - """ - billie: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBillie" + "PaymentIntentModifyParamsPaymentMethodDataBancontact" ] """ - If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. """ - blik: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik" - ] + billie: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBillie"] """ - If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. """ - boleto: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBoleto" + billing_details: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataBillingDetails" ] """ - If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ - card: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCard" - ] + blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"] """ - Configuration for any card payments attempted on this PaymentIntent. + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. """ - card_present: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPresent" - ] + boleto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBoleto"] """ - If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ - cashapp: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCashapp" - ] + cashapp: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCashapp"] """ - If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. """ - crypto: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCrypto" - ] + crypto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCrypto"] """ - If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. """ customer_balance: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance" + "PaymentIntentModifyParamsPaymentMethodDataCustomerBalance" ] """ - If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ - eps: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsEps" - ] + eps: NotRequired["PaymentIntentModifyParamsPaymentMethodDataEps"] """ - If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. """ - fpx: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsFpx" - ] + fpx: NotRequired["PaymentIntentModifyParamsPaymentMethodDataFpx"] """ - If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ - giropay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiropay" - ] + giropay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGiropay"] """ - If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. """ - gopay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGopay" - ] + gopay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGopay"] """ - If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. """ - grabpay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGrabpay" - ] + grabpay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGrabpay"] """ - If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. """ id_bank_transfer: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer" + "PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer" ] """ - If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. """ - ideal: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdeal" - ] + ideal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataIdeal"] """ - If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. """ interac_present: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent" + "PaymentIntentModifyParamsPaymentMethodDataInteracPresent" ] """ - If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. """ kakao_pay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay" + "PaymentIntentModifyParamsPaymentMethodDataKakaoPay" ] """ - If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. """ - klarna: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKlarna" - ] + klarna: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarna"] """ - If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. """ - konbini: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKonbini" - ] + konbini: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKonbini"] """ - If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. """ - kr_card: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKrCard" - ] + kr_card: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKrCard"] """ - If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. """ - link: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink" - ] + link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. """ - mb_way: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay" - ] + mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"] """ - If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + """ + metadata: NotRequired[Dict[str, 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ mobilepay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMobilepay" + "PaymentIntentModifyParamsPaymentMethodDataMobilepay" ] """ - If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. """ multibanco: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMultibanco" + "PaymentIntentModifyParamsPaymentMethodDataMultibanco" ] """ - If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. """ naver_pay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNaverPay" + "PaymentIntentModifyParamsPaymentMethodDataNaverPay" ] """ - If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. """ nz_bank_account: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNzBankAccount" + "PaymentIntentModifyParamsPaymentMethodDataNzBankAccount" ] """ - If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. """ - oxxo: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsOxxo" + oxxo: NotRequired["PaymentIntentModifyParamsPaymentMethodDataOxxo"] + """ + If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + """ + p24: NotRequired["PaymentIntentModifyParamsPaymentMethodDataP24"] + """ + If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + """ + pay_by_bank: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataPayByBank" ] """ - If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. """ - p24: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsP24" + payco: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayco"] + """ + If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + """ + paynow: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaynow"] + """ + If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + """ + paypal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypal"] + """ + If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + """ + paypay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ + payto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayto"] + """ + If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + """ + pix: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPix"] + """ + If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + """ + promptpay: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataPromptpay" ] """ - If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. """ - pay_by_bank: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayByBank" + qris: NotRequired["PaymentIntentModifyParamsPaymentMethodDataQris"] + """ + If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + """ + radar_options: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataRadarOptions" ] """ - If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. """ - payco: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayco" + rechnung: NotRequired["PaymentIntentModifyParamsPaymentMethodDataRechnung"] + """ + If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + """ + revolut_pay: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataRevolutPay" ] """ - If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. """ - paynow: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaynow" + samsung_pay: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataSamsungPay" ] """ - If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. """ - paypal: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypal" + satispay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSatispay"] + """ + If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + """ + sepa_debit: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataSepaDebit" ] """ - If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - paypay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypay" + shopeepay: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataShopeepay" + ] + """ + If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + """ + sofort: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSofort"] + """ + If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + """ + stripe_balance: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataStripeBalance" + ] + """ + This hash contains details about the Stripe balance payment method. + """ + swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"] + """ + If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + """ + twint: NotRequired["PaymentIntentModifyParamsPaymentMethodDataTwint"] + """ + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + """ + type: Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "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", + "swish", + "twint", + "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. + """ + us_bank_account: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataUsBankAccount" ] """ - If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + """ + wechat_pay: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataWechatPay" + ] + """ + If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. + """ + zip: NotRequired["PaymentIntentModifyParamsPaymentMethodDataZip"] + """ + If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): + account_number: str + """ + Customer's bank account number. + """ + institution_number: str + """ + Institution number of the customer's bank. + """ + transit_number: str + """ + Transit number of the customer's bank. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataAffirm(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataAlipay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataAlma(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataAmazonPay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit(TypedDict): + account_number: str + """ + The account number for the bank account. + """ + bsb_number: str + """ + Bank-State-Branch number of the bank account. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataBacsDebit(TypedDict): + account_number: NotRequired[str] + """ + Account number of the bank account that the funds will be debited from. + """ + sort_code: NotRequired[str] + """ + Sort code of the bank account. (e.g., `10-20-30`) + """ + + +class PaymentIntentModifyParamsPaymentMethodDataBancontact(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataBillie(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataBillingDetails(TypedDict): + address: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress" + ] + """ + Billing address. + """ + email: NotRequired["Literal['']|str"] + """ + Email address. + """ + name: NotRequired["Literal['']|str"] + """ + Full name. + """ + phone: NotRequired["Literal['']|str"] + """ + Billing phone number (including extension). + """ + tax_id: NotRequired[str] + """ + Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataBoleto(TypedDict): + tax_id: str + """ + The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + """ + + +class PaymentIntentModifyParamsPaymentMethodDataCashapp(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataCrypto(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict): + bank: NotRequired[ + Literal[ + "arzte_und_apotheker_bank", + "austrian_anadi_bank_ag", + "bank_austria", + "bankhaus_carl_spangler", + "bankhaus_schelhammer_und_schattera_ag", + "bawag_psk_ag", + "bks_bank_ag", + "brull_kallmus_bank_ag", + "btv_vier_lander_bank", + "capital_bank_grawe_gruppe_ag", + "deutsche_bank_ag", + "dolomitenbank", + "easybank_ag", + "erste_bank_und_sparkassen", + "hypo_alpeadriabank_international_ag", + "hypo_bank_burgenland_aktiengesellschaft", + "hypo_noe_lb_fur_niederosterreich_u_wien", + "hypo_oberosterreich_salzburg_steiermark", + "hypo_tirol_bank_ag", + "hypo_vorarlberg_bank_ag", + "marchfelder_bank", + "oberbank_ag", + "raiffeisen_bankengruppe_osterreich", + "schoellerbank_ag", + "sparda_bank_wien", + "volksbank_gruppe", + "volkskreditbank_ag", + "vr_bank_braunau", + ] + ] + """ + The customer's bank. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataFpx(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type for FPX transaction + """ + 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. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataGiropay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataGopay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataGrabpay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer(TypedDict): + bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] + """ + Bank where the account is held. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataIdeal(TypedDict): + bank: NotRequired[ + Literal[ + "abn_amro", + "asn_bank", + "bunq", + "buut", + "finom", + "handelsbanken", + "ing", + "knab", + "moneyou", + "n26", + "nn", + "rabobank", + "regiobank", + "revolut", + "sns_bank", + "triodos_bank", + "van_lanschot", + "yoursafe", + ] + ] + """ + The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataInteracPresent(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataKakaoPay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataKlarna(TypedDict): + dob: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarnaDob"] + """ + Customer's date of birth + """ + + +class PaymentIntentModifyParamsPaymentMethodDataKlarnaDob(TypedDict): + 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. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataKonbini(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataKrCard(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataLink(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataMbWay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataMobilepay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataMultibanco(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataNaverPay(TypedDict): + funding: NotRequired[Literal["card", "points"]] + """ + Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataNzBankAccount(TypedDict): + account_holder_name: NotRequired[str] + """ + The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + """ + account_number: str + """ + The account number for the bank account. + """ + bank_code: str + """ + The numeric code for the bank account's bank. + """ + branch_code: str + """ + The numeric code for the bank account's bank branch. + """ + reference: NotRequired[str] + suffix: str + """ + The suffix of the bank account number. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataOxxo(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataP24(TypedDict): + bank: NotRequired[ + 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. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataPayByBank(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataPayco(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataPaynow(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataPaypal(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataPaypay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataPayto(TypedDict): + account_number: NotRequired[str] + """ + The account number for the bank account. + """ + bsb_number: NotRequired[str] + """ + Bank-State-Branch number of the bank account. + """ + pay_id: NotRequired[str] + """ + The PayID alias for the bank account. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataPix(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataPromptpay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataQris(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict): + session: NotRequired[str] + """ + A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataRechnung(TypedDict): + dob: "PaymentIntentModifyParamsPaymentMethodDataRechnungDob" + """ + Customer's date of birth + """ + + +class PaymentIntentModifyParamsPaymentMethodDataRechnungDob(TypedDict): + 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. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataRevolutPay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataSamsungPay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict): + iban: str + """ + IBAN of the bank account. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataShopeepay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataSofort(TypedDict): + country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + """ + Two-letter ISO code representing the country the bank account is located in. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataStripeBalance(TypedDict): + account: NotRequired[str] + """ + The connected account ID whose Stripe balance to use as the source of payment + """ + source_type: NotRequired[Literal["bank_account", "card", "fpx"]] + """ + The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + """ + + +class PaymentIntentModifyParamsPaymentMethodDataSwish(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataTwint(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataUsBankAccount(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type: individual or company. + """ + account_number: NotRequired[str] + """ + Account number of the bank account. + """ + account_type: NotRequired[Literal["checking", "savings"]] + """ + Account type: checkings or savings. Defaults to checking if omitted. + """ + financial_connections_account: NotRequired[str] + """ + The ID of a Financial Connections Account to use as a payment method. + """ + routing_number: NotRequired[str] + """ + Routing number of the bank account. + """ + + +class PaymentIntentModifyParamsPaymentMethodDataWechatPay(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodDataZip(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): + acss_debit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit" + ] + """ + If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + """ + affirm: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAffirm" + ] + """ + If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + """ + afterpay_clearpay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay" + ] + """ + If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + """ + alipay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlipay" + ] + """ + If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + """ + alma: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlma" + ] + """ + If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + """ + amazon_pay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay" + ] + """ + If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + """ + au_becs_debit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit" + ] + """ + If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + """ + bacs_debit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit" + ] + """ + If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + """ + bancontact: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBancontact" + ] + """ + If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. + """ + billie: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBillie" + ] + """ + If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + """ + blik: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik" + ] + """ + If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + """ + boleto: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBoleto" + ] + """ + If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + """ + card: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCard" + ] + """ + Configuration for any card payments attempted on this PaymentIntent. + """ + card_present: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPresent" + ] + """ + If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + cashapp: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCashapp" + ] + """ + If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + """ + crypto: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCrypto" + ] + """ + If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + """ + customer_balance: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance" + ] + """ + If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + """ + eps: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsEps" + ] + """ + If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + """ + fpx: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsFpx" + ] + """ + If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + """ + giropay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiropay" + ] + """ + If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + """ + gopay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGopay" + ] + """ + If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + """ + grabpay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGrabpay" + ] + """ + If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + """ + id_bank_transfer: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer" + ] + """ + If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + """ + ideal: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdeal" + ] + """ + If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + """ + interac_present: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent" + ] + """ + If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + kakao_pay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay" + ] + """ + If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + """ + klarna: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKlarna" + ] + """ + If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + """ + konbini: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKonbini" + ] + """ + If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + """ + kr_card: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKrCard" + ] + """ + If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + """ + link: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink" + ] + """ + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + """ + mb_way: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay" + ] + """ + If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + """ + mobilepay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMobilepay" + ] + """ + If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + """ + multibanco: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMultibanco" + ] + """ + If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + """ + naver_pay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNaverPay" + ] + """ + If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + """ + nz_bank_account: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNzBankAccount" + ] + """ + If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + """ + oxxo: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsOxxo" + ] + """ + If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + """ + p24: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsP24" + ] + """ + If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + """ + pay_by_bank: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayByBank" + ] + """ + If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + """ + payco: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayco" + ] + """ + If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + """ + paynow: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaynow" + ] + """ + If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + """ + paypal: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypal" + ] + """ + If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + """ + paypay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ + payto: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayto" + ] + """ + If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + """ + pix: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPix" + ] + """ + If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + """ + promptpay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPromptpay" + ] + """ + If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + """ + qris: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsQris" + ] + """ + If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + """ + rechnung: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRechnung" + ] + """ + If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + """ + revolut_pay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay" + ] + """ + If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + """ + samsung_pay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay" + ] + """ + If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + """ + satispay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSatispay" + ] + """ + If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + """ + sepa_debit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit" + ] + """ + If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + """ + shopeepay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsShopeepay" + ] + """ + If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + """ + sofort: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSofort" + ] + """ + If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + """ + stripe_balance: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance" + ] + """ + If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + """ + swish: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSwish" + ] + """ + If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + """ + twint: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsTwint" + ] + """ + If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + """ + us_bank_account: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount" + ] + """ + If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + """ + wechat_pay: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsWechatPay" + ] + """ + If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + """ + zip: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsZip" + ] + """ + If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + verification_method: NotRequired[ + Literal["automatic", "instant", "microdeposits"] + ] + """ + Bank account verification method. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions( + TypedDict, +): + custom_mandate_url: NotRequired["Literal['']|str"] + """ + A URL for custom mandate text to render during confirmation step. + The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, + or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + """ + interval_description: NotRequired[str] + """ + Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + """ + payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + """ + Payment schedule for the mandate. + """ + transaction_type: NotRequired[Literal["business", "personal"]] + """ + Transaction type of the mandate. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAffirm(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + preferred_locale: NotRequired[str] + """ + Preferred language of the Affirm authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + reference: NotRequired[str] + """ + An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. + This field differs from the statement descriptor and item name. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAlipay(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAlma(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions( + TypedDict, +): + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBancontact(TypedDict): + preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + """ + Preferred language of the Bancontact authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsBoleto(TypedDict): + expires_after_days: NotRequired[int] + """ + The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + cvc_token: NotRequired[str] + """ + A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + """ + installments: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments" + ] + """ + Installment configuration for payments attempted on this PaymentIntent. + + For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + """ + mandate_options: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions" + ] + """ + Configuration options for setting up an eMandate for cards issued in India. + """ + moto: NotRequired[bool] + """ + When specified, this parameter indicates that a transaction will be marked + as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This + parameter can only be provided during confirmation. + """ + network: NotRequired[ + Literal[ + "amex", + "cartes_bancaires", + "diners", + "discover", + "eftpos_au", + "girocard", + "interac", + "jcb", + "link", + "mastercard", + "unionpay", + "unknown", + "visa", + ] + ] + """ + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + request_decremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + """ + request_extended_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + """ + request_incremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. + """ + request_multicapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + """ + request_overcapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + request_three_d_secure: NotRequired[ + Literal["any", "automatic", "challenge"] + ] + """ + We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + """ + require_cvc_recollection: NotRequired[bool] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + """ + statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + """ + statement_details: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails" + ] + """ + Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + """ + three_d_secure: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure" + ] + """ + If 3D Secure authentication was performed with a third-party provider, + the authentication details to use for this payment. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments(TypedDict): + enabled: NotRequired[bool] + """ + Setting to true enables installments for this PaymentIntent. + This will cause the response to contain a list of available installment plans. + Setting to false will prevent any selected plan from applying to a charge. + """ + plan: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan" + ] + """ + The selected installment plan to use for this payment attempt. + This parameter can only be provided during confirmation. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan( + TypedDict, +): + count: NotRequired[int] + """ + For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + """ + interval: NotRequired[Literal["month"]] + """ + For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. + One of `month`. + """ + type: Literal["bonus", "fixed_count", "revolving"] + """ + Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. + """ + amount_type: Literal["fixed", "maximum"] + """ + One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + """ + description: NotRequired[str] + """ + A description of the mandate or subscription that is meant to be displayed to the customer. + """ + end_date: NotRequired[int] + """ + End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + """ + interval: Literal["day", "month", "sporadic", "week", "year"] + """ + Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + """ + interval_count: NotRequired[int] + """ + The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + """ + reference: str + """ + Unique identifier for the mandate or subscription. + """ + start_date: int + """ + Start date of the mandate or subscription. Start date should not be lesser than yesterday. + """ + supported_types: NotRequired[List[Literal["india"]]] + """ + Specifies the type of mandates supported. Possible values are `india`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress" + ] + """ + Please pass in an address that is within your Stripe user account country + """ + phone: NotRequired[str] + """ + Phone number (e.g., a toll-free number that customers can call) + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): + ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + """ + The `transStatus` returned from the card Issuer's ACS in the ARes. + """ + cryptogram: str + """ + The cryptogram, also known as the "authentication value" (AAV, CAVV or + AEVV). This value is 20 bytes, base64-encoded into a 28-character string. + (Most 3D Secure providers will return the base64-encoded version, which + is what you should specify here.) + """ + electronic_commerce_indicator: NotRequired[ + Literal["01", "02", "05", "06", "07"] + ] + """ + The Electronic Commerce Indicator (ECI) is returned by your 3D Secure + provider and indicates what degree of authentication was performed. + """ + exemption_indicator: NotRequired[Literal["low_risk", "none"]] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + network_options: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + ] + """ + Network specific 3DS fields. Network specific arguments require an + explicit card brand choice. The parameter `payment_method_options.card.network`` + must be populated accordingly + """ + requestor_challenge_indicator: NotRequired[str] + """ + The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the + AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + """ + transaction_id: str + """ + For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server + Transaction ID (dsTransID). + """ + version: Literal["1.0.2", "2.1.0", "2.2.0"] + """ + The version of 3D Secure that was performed. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( + TypedDict, +): + cartes_bancaires: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" + ] + """ + Cartes Bancaires-specific 3DS fields. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( + TypedDict, +): + cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] + """ + The cryptogram calculation algorithm used by the card Issuer's ACS + to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. + messageExtension: CB-AVALGO + """ + cb_exemption: NotRequired[str] + """ + The exemption indicator returned from Cartes Bancaires in the ARes. + message extension: CB-EXEMPTION; string (4 characters) + This is a 3 byte bitmap (low significant byte first and most significant + bit first) that has been Base64 encoded + """ + cb_score: NotRequired[int] + """ + The risk score returned from Cartes Bancaires in the ARes. + message extension: CB-SCORE; numeric value 0-99 + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): + capture_method: NotRequired[Literal["manual", "manual_preferred"]] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + request_extended_authorization: NotRequired[bool] + """ + Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + """ + request_incremental_authorization_support: NotRequired[bool] + """ + Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + """ + routing: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCashapp(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCrypto(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance(TypedDict): + bank_transfer: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer" + ] + """ + Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + """ + funding_type: NotRequired[Literal["bank_transfer"]] + """ + The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer( + TypedDict, +): + eu_bank_transfer: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + ] + """ + Configuration for the eu_bank_transfer funding type. + """ + requested_address_types: NotRequired[ + List[ + Literal[ + "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" + ] + ] + ] + """ + List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. + + Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + """ + type: Literal[ + "eu_bank_transfer", + "gb_bank_transfer", + "jp_bank_transfer", + "mx_bank_transfer", + "us_bank_transfer", + ] + """ + The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( + TypedDict, +): + country: str + """ + The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsEps(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsFpx(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsGiropay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsGopay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsGrabpay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer(TypedDict): + expires_after: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + """ + expires_at: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsIdeal(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent(TypedDict): + pass + + +class PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarna(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + on_demand: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand" + ] + """ + On-demand details if setting up or charging an on-demand payment. + """ + preferred_locale: NotRequired[ + Literal[ + "cs-CZ", + "da-DK", + "de-AT", + "de-CH", + "de-DE", + "el-GR", + "en-AT", + "en-AU", + "en-BE", + "en-CA", + "en-CH", + "en-CZ", + "en-DE", + "en-DK", + "en-ES", + "en-FI", + "en-FR", + "en-GB", + "en-GR", + "en-IE", + "en-IT", + "en-NL", + "en-NO", + "en-NZ", + "en-PL", + "en-PT", + "en-RO", + "en-SE", + "en-US", + "es-ES", + "es-US", + "fi-FI", + "fr-BE", + "fr-CA", + "fr-CH", + "fr-FR", + "it-CH", + "it-IT", + "nb-NO", + "nl-BE", + "nl-NL", + "pl-PL", + "pt-PT", + "ro-RO", + "sv-FI", + "sv-SE", + ] + ] + """ + Preferred language of the Klarna authorization page that the customer is redirected to + """ + setup_future_usage: NotRequired[ + Literal["none", "off_session", "on_session"] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + subscriptions: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription]" + ] + """ + Subscription details if setting up or charging a subscription. + """ + supplementary_purchase_data: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): + average_amount: NotRequired[int] + """ + Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + maximum_amount: NotRequired[int] + """ + The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + minimum_amount: NotRequired[int] + """ + The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + """ + Interval at which the customer is making purchases + """ + purchase_interval_count: NotRequired[int] + """ + The number of `purchase_interval` between charges + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Unit of time between subscription charges. + """ + interval_count: NotRequired[int] + """ + The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + """ + name: NotRequired[str] + """ + Name for subscription. + """ + next_billing: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" + ] + """ + Describes the upcoming charge for this subscription. + """ + reference: str + """ + A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( + TypedDict, +): + amount: int + """ + The amount of the next charge for the subscription. + """ + date: str """ - payto: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayto" + The date of the next charge for the subscription in YYYY-MM-DD format. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" ] """ - If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + Supplementary bus reservation details. """ - pix: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPix" + event_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" ] """ - If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + Supplementary event reservation details. """ - promptpay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPromptpay" + ferry_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" ] """ - If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + Supplementary ferry reservation details. """ - qris: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsQris" + insurances: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" ] """ - If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + Supplementary insurance details. """ - rechnung: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRechnung" + marketplace_sellers: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" ] """ - If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + Supplementary marketplace seller details. """ - revolut_pay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay" + round_trip_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" ] """ - If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + Supplementary round trip reservation details. """ - samsung_pay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay" + train_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" ] """ - If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + Supplementary train reservation details. """ - satispay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSatispay" + vouchers: NotRequired[ + "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" ] """ - If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + Voucher details, such as a gift card or discount code. """ - sepa_debit: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit" - ] + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + Name of associated or partner company for the service. """ - shopeepay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsShopeepay" + arrival: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" ] """ - If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + Arrival details. """ - sofort: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSofort" - ] + carrier_name: NotRequired[str] """ - If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + Name of transportation company. """ - stripe_balance: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance" - ] + currency: NotRequired[str] """ - If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + Currency. """ - swish: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSwish" + departure: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" ] """ - If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + Departure details. """ - twint: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsTwint" + insurances: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] ] """ - If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + List of insurances for this reservation. """ - us_bank_account: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount" + passengers: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] ] """ - If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + List of passengers that this reservation applies to. """ - wechat_pay: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsWechatPay" - ] + price: NotRequired[int] """ - If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + Price in cents. """ - zip: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsZip" + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + Ticket class. """ -class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions" +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" ] """ - Additional fields for Mandate creation + Address of the arrival location. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ - 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`. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] """ - target_date: NotRequired[str] + Address of the departure location. """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + departs_at: NotRequired[int] """ - verification_method: NotRequired[ - Literal["automatic", "instant", "microdeposits"] - ] + Timestamp of departure. """ - Bank account verification method. + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( TypedDict, ): - custom_mandate_url: NotRequired["Literal['']|str"] + city: NotRequired[str] """ - A URL for custom mandate text to render during confirmation step. - The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, - or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + The city or town. """ - interval_description: NotRequired[str] + country: NotRequired[str] """ - Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + The country in ISO 3166-1 alpha-2 format. """ - payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + postal_code: NotRequired[str] """ - Payment schedule for the mandate. + The postal code formatted according to country. """ - transaction_type: NotRequired[Literal["business", "personal"]] + region: NotRequired[str] """ - Transaction type of the mandate. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsAffirm(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - preferred_locale: NotRequired[str] + Insurance currency. """ - Preferred language of the Affirm authorization page that the customer is redirected to. + insurance_company_name: NotRequired[str] """ - setup_future_usage: NotRequired[Literal["none"]] + Name of the company providing the insurance. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - reference: NotRequired[str] + The family name of the person. """ - An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. - This field differs from the statement descriptor and item name. + given_name: NotRequired[str] """ - setup_future_usage: NotRequired[Literal["none"]] + The given name of the person. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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`. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsAlipay(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Address of the event. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsAlma(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + affiliate_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + ends_at: NotRequired[int] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + End timestamp of the event. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + event_company_name: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Company selling the ticket. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + event_name: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Name of the event. """ - target_date: NotRequired[str] + event_type: NotRequired[ + Literal[ + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", + ] + ] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Type of the event. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions" + insurances: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] ] """ - Additional fields for Mandate creation + List of insurances for this event. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + starts_at: NotRequired[int] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Start timestamp of the event. """ - target_date: NotRequired[str] + venue_name: NotRequired[str] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Name of the venue where the event takes place. """ -class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( TypedDict, ): - reference_prefix: NotRequired["Literal['']|str"] + city: NotRequired[str] """ - Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + The city or town. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsBancontact(TypedDict): - preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + country: NotRequired[str] """ - Preferred language of the Bancontact authorization page that the customer is redirected to. + The country in ISO 3166-1 alpha-2 format. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + region: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict): - code: NotRequired[str] + street_address: NotRequired[str] """ - The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + Line 1 of the street address. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + street_address2: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Line 2 of the street address. """ -class PaymentIntentModifyParamsPaymentMethodOptionsBoleto(TypedDict): - expires_after_days: NotRequired[int] - """ - The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + Insurance currency. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + insurance_company_name: NotRequired[str] """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Name of the company providing the insurance. """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - cvc_token: NotRequired[str] + Type of insurance. """ - A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + price: NotRequired[int] """ - installments: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments" - ] + Price of insurance in cents. """ - Installment configuration for payments attempted on this PaymentIntent. - For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - mandate_options: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" ] """ - Configuration options for setting up an eMandate for cards issued in India. + Arrival details. """ - moto: NotRequired[bool] + carrier_name: NotRequired[str] """ - When specified, this parameter indicates that a transaction will be marked - as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This - parameter can only be provided during confirmation. + Name of transportation company. """ - network: NotRequired[ - Literal[ - "amex", - "cartes_bancaires", - "diners", - "discover", - "eftpos_au", - "girocard", - "interac", - "jcb", - "link", - "mastercard", - "unionpay", - "unknown", - "visa", - ] - ] + currency: NotRequired[str] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Currency. """ - request_decremental_authorization: NotRequired[ - Literal["if_available", "never"] + departure: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" ] """ - Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + Departure details. """ - request_extended_authorization: NotRequired[ - Literal["if_available", "never"] + insurances: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] ] """ - Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + List of insurances for this reservation. """ - request_incremental_authorization: NotRequired[ - Literal["if_available", "never"] + passengers: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] ] """ - Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. - """ - request_multicapture: NotRequired[Literal["if_available", "never"]] - """ - Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + List of passengers that this reservation applies to. """ - request_overcapture: NotRequired[Literal["if_available", "never"]] + price: NotRequired[int] """ - Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + Price in cents. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - Request partial authorization on this PaymentIntent. + Ticket class. """ - request_three_d_secure: NotRequired[ - Literal["any", "automatic", "challenge"] + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" ] """ - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - """ - require_cvc_recollection: NotRequired[bool] + Address of the arrival location. """ - When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + arrival_location: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + Identifier name or reference for the arrival location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + The city or town. """ - statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + country: NotRequired[str] """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + The country in ISO 3166-1 alpha-2 format. """ - statement_details: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails" - ] + postal_code: NotRequired[str] """ - Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + The postal code formatted according to country. """ - three_d_secure: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure" - ] + region: NotRequired[str] """ - If 3D Secure authentication was performed with a third-party provider, - the authentication details to use for this payment. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments(TypedDict): - enabled: NotRequired[bool] + street_address: NotRequired[str] """ - Setting to true enables installments for this PaymentIntent. - This will cause the response to contain a list of available installment plans. - Setting to false will prevent any selected plan from applying to a charge. + Line 1 of the street address. """ - plan: NotRequired[ - "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan" - ] + street_address2: NotRequired[str] """ - The selected installment plan to use for this payment attempt. - This parameter can only be provided during confirmation. + Line 2 of the street address. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( TypedDict, ): - count: NotRequired[int] + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] """ - For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + Address of the departure location. """ - interval: NotRequired[Literal["month"]] + departs_at: NotRequired[int] """ - For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. - One of `month`. + Timestamp of departure. """ - type: Literal["bonus", "fixed_count", "revolving"] + departure_location: NotRequired[str] """ - Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + Identifier name or reference for the origin location. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( TypedDict, ): - amount: int + city: NotRequired[str] """ - Amount to be charged for future payments. + The city or town. """ - amount_type: Literal["fixed", "maximum"] + country: NotRequired[str] """ - One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + The country in ISO 3166-1 alpha-2 format. """ - description: NotRequired[str] + postal_code: NotRequired[str] """ - A description of the mandate or subscription that is meant to be displayed to the customer. + The postal code formatted according to country. """ - end_date: NotRequired[int] + region: NotRequired[str] """ - End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + The state, county, province, or region formatted according to country. """ - interval: Literal["day", "month", "sporadic", "week", "year"] + street_address: NotRequired[str] """ - Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + Line 1 of the street address. """ - interval_count: NotRequired[int] + street_address2: NotRequired[str] """ - The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + Line 2 of the street address. """ - reference: str + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - Unique identifier for the mandate or subscription. + Insurance currency. """ - start_date: int + insurance_company_name: NotRequired[str] """ - Start date of the mandate or subscription. Start date should not be lesser than yesterday. + Name of the company providing the insurance. """ - supported_types: NotRequired[List[Literal["india"]]] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Specifies the type of mandates supported. Possible values are `india`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( TypedDict, ): - address: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress" - ] + family_name: NotRequired[str] """ - Please pass in an address that is within your Stripe user account country + The family name of the person. """ - phone: NotRequired[str] + given_name: NotRequired[str] """ - Phone number (e.g., a toll-free number that customers can call) + The given name of the person. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( TypedDict, ): - city: NotRequired[str] + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] """ - City, district, suburb, town, or village. + Name of the company providing the insurance. """ - country: NotRequired[str] + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Type of insurance """ - line1: NotRequired[str] + price: NotRequired[int] """ - Address line 1, such as the street, PO Box, or company name. + Price of insurance in cents. """ - line2: NotRequired[str] + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, +): + line_item_references: NotRequired[List[str]] """ - Address line 2, such as the apartment, suite, unit, or building. + The references to line items for purchases with multiple associated sub-sellers. """ - postal_code: NotRequired[str] + marketplace_seller_address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] """ - ZIP or postal code. + The address of the selling or delivering merchant. """ - state: NotRequired[str] + marketplace_seller_name: NotRequired[str] """ - State, county, province, or region. + The name of the marketplace seller. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): - ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + marketplace_seller_reference: NotRequired[str] """ - The `transStatus` returned from the card Issuer's ACS in the ARes. + The unique identifier for the marketplace seller. """ - cryptogram: str + number_of_transactions: NotRequired[int] """ - The cryptogram, also known as the "authentication value" (AAV, CAVV or - AEVV). This value is 20 bytes, base64-encoded into a 28-character string. - (Most 3D Secure providers will return the base64-encoded version, which - is what you should specify here.) + The number of transactions the sub-seller completed in the last 12 months. """ - electronic_commerce_indicator: NotRequired[ - Literal["01", "02", "05", "06", "07"] + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] ] """ - The Electronic Commerce Indicator (ECI) is returned by your 3D Secure - provider and indicates what degree of authentication was performed. + The category of the product. """ - exemption_indicator: NotRequired[Literal["low_risk", "none"]] + seller_last_login_at: NotRequired[int] """ - The exemption requested via 3DS and accepted by the issuer at authentication time. + The date when the seller's account with the marketplace was last logged in. """ - network_options: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] ] """ - Network specific 3DS fields. Network specific arguments require an - explicit card brand choice. The parameter `payment_method_options.card.network`` - must be populated accordingly + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. """ - requestor_challenge_indicator: NotRequired[str] + seller_registered_at: NotRequired[int] """ - The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the - AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + The date when the seller's account with the marketplace was created. """ - transaction_id: str + seller_updated_at: NotRequired[int] """ - For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server - Transaction ID (dsTransID). + The date when the seller's account with the marketplace was last updated. """ - version: Literal["1.0.2", "2.1.0", "2.2.0"] + shipping_references: NotRequired[List[str]] """ - The version of 3D Secure that was performed. + The references to shipping addresses for purchases with multiple associated sub-sellers. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( - TypedDict, -): - cartes_bancaires: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" - ] + volume_of_transactions: NotRequired[int] """ - Cartes Bancaires-specific 3DS fields. + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( TypedDict, ): - cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] - """ - The cryptogram calculation algorithm used by the card Issuer's ACS - to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. - messageExtension: CB-AVALGO - """ - cb_exemption: NotRequired[str] + city: NotRequired[str] """ - The exemption indicator returned from Cartes Bancaires in the ARes. - message extension: CB-EXEMPTION; string (4 characters) - This is a 3 byte bitmap (low significant byte first and most significant - bit first) that has been Base64 encoded + The city or town. """ - cb_score: NotRequired[int] + country: NotRequired[str] """ - The risk score returned from Cartes Bancaires in the ARes. - message extension: CB-SCORE; numeric value 0-99 + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] + postal_code: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The postal code formatted according to country. """ - request_extended_authorization: NotRequired[bool] + region: NotRequired[str] """ - Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + The state, county, province, or region formatted according to country. """ - request_incremental_authorization_support: NotRequired[bool] + street_address: NotRequired[str] """ - Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + Line 1 of the street address. """ - routing: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting" - ] + street_address2: NotRequired[str] """ - Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + Line 2 of the street address. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( TypedDict, ): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority + affiliate_name: NotRequired[str] """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCashapp(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" + arrival: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCrypto(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] - """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Arrival details. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance(TypedDict): - bank_transfer: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer" - ] + carrier_name: NotRequired[str] """ - Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + Name of transportation company. """ - funding_type: NotRequired[Literal["bank_transfer"]] + currency: NotRequired[str] """ - The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + Currency. """ - setup_future_usage: NotRequired[Literal["none"]] + departure: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Departure details. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer( - TypedDict, -): - eu_bank_transfer: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + insurances: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] ] """ - Configuration for the eu_bank_transfer funding type. + List of insurances for this reservation. """ - requested_address_types: NotRequired[ + passengers: NotRequired[ List[ - Literal[ - "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" - ] + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" ] ] """ - List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. - - Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + List of passengers that this reservation applies to. """ - type: Literal[ - "eu_bank_transfer", - "gb_bank_transfer", - "jp_bank_transfer", - "mx_bank_transfer", - "us_bank_transfer", + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + Ticket class. """ -class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( TypedDict, ): - country: str + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + Address of the arrival location. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsEps(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + arrival_location: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Identifier name or reference for the arrival location. """ -class PaymentIntentModifyParamsPaymentMethodOptionsFpx(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The city or town. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsGiropay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + country: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsGopay(TypedDict): - setup_future_usage: NotRequired[Literal["none", "off_session"]] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsGrabpay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + region: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer(TypedDict): - expires_after: NotRequired[int] +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + Address of the departure location. """ - expires_at: NotRequired[int] + departs_at: NotRequired[int] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + Timestamp of departure. """ - setup_future_usage: NotRequired[Literal["none"]] + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentModifyParamsPaymentMethodOptionsIdeal(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent(TypedDict): - pass - - -class PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Arrival details. """ - - -class PaymentIntentModifyParamsPaymentMethodOptionsKlarna(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + carrier_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of transportation company. """ - on_demand: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand" + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" ] """ - On-demand details if setting up or charging an on-demand payment. + Departure details. """ - preferred_locale: NotRequired[ - Literal[ - "cs-CZ", - "da-DK", - "de-AT", - "de-CH", - "de-DE", - "el-GR", - "en-AT", - "en-AU", - "en-BE", - "en-CA", - "en-CH", - "en-CZ", - "en-DE", - "en-DK", - "en-ES", - "en-FI", - "en-FR", - "en-GB", - "en-GR", - "en-IE", - "en-IT", - "en-NL", - "en-NO", - "en-NZ", - "en-PL", - "en-PT", - "en-RO", - "en-SE", - "en-US", - "es-ES", - "es-US", - "fi-FI", - "fr-BE", - "fr-CA", - "fr-CH", - "fr-FR", - "it-CH", - "it-IT", - "nb-NO", - "nl-BE", - "nl-NL", - "pl-PL", - "pt-PT", - "ro-RO", - "sv-FI", - "sv-SE", + insurances: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" ] ] """ - Preferred language of the Klarna authorization page that the customer is redirected to + List of insurances for this reservation. """ - setup_future_usage: NotRequired[ - Literal["none", "off_session", "on_session"] + passengers: NotRequired[ + List[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ - 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`. +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - subscriptions: NotRequired[ - "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription]" + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" ] """ - Subscription details if setting up or charging a subscription. + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): - average_amount: NotRequired[int] +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] """ - Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + The city or town. """ - maximum_amount: NotRequired[int] + country: NotRequired[str] """ - The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The country in ISO 3166-1 alpha-2 format. """ - minimum_amount: NotRequired[int] + postal_code: NotRequired[str] """ - The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The postal code formatted according to country. """ - purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + region: NotRequired[str] """ - Interval at which the customer is making purchases + The state, county, province, or region formatted according to country. """ - purchase_interval_count: NotRequired[int] + street_address: NotRequired[str] """ - The number of `purchase_interval` between charges + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + currency: NotRequired[str] """ - Unit of time between subscription charges. + Insurance currency. """ - interval_count: NotRequired[int] + insurance_company_name: NotRequired[str] """ - The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + Name of the company providing the insurance. """ - name: NotRequired[str] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Name for subscription. + Type of insurance. """ - next_billing: NotRequired[ - "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" - ] + price: NotRequired[int] """ - Describes the upcoming charge for this subscription. + Price of insurance in cents. """ - reference: str + + +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ -class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( +class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( TypedDict, ): - amount: int + affiliate_name: NotRequired[str] """ - The amount of the next charge for the subscription. + Name of associated or partner company for this voucher. """ - date: str + ends_at: NotRequired[int] """ - The date of the next charge for the subscription in YYYY-MM-DD format. + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. """ @@ -3852,7 +6005,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -3871,7 +6024,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -3893,7 +6046,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index aba38a041..e14561510 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -389,6 +389,12 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict): """ Car rental details for this PaymentIntent. """ + car_rental_data: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum]" + ] + """ + Car rental data for this PaymentIntent. + """ customer_reference: NotRequired["Literal['']|str"] """ A unique value to identify the customer. This field is available only for card payments. @@ -405,10 +411,22 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict): """ Flight reservation details for this PaymentIntent """ + flight_data: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsFlightDatum]" + ] + """ + Flight data for this PaymentIntent. + """ lodging: NotRequired["PaymentIntentUpdateParamsPaymentDetailsLodging"] """ Lodging reservation details for this PaymentIntent """ + lodging_data: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsLodgingDatum]" + ] + """ + Lodging data for this PaymentIntent. + """ order_reference: NotRequired["Literal['']|str"] """ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. @@ -663,344 +681,483 @@ class PaymentIntentUpdateParamsPaymentDetailsCarRentalReturnAddress(TypedDict): """ -class PaymentIntentUpdateParamsPaymentDetailsEventDetails(TypedDict): - access_controlled_venue: NotRequired[bool] +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate" + ] """ - Indicates if the tickets are digitally checked when entering the venue. + Affiliate (such as travel agency) details for the rental. """ - address: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress" - ] + booking_number: NotRequired[str] """ - The event location's address. + Booking confirmation number for the car rental. """ - affiliate: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate" - ] + carrier_name: NotRequired[str] """ - Affiliate details for this purchase. + Name of the car rental company. """ - company: NotRequired[str] + customer_service_phone_number: NotRequired[str] """ - The name of the company + Customer service phone number for the car rental company. """ - delivery: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery" + days_rented: NotRequired[int] + """ + Number of days the car is being rented. + """ + distance: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance" ] """ - Delivery details for this purchase. + Distance details for the rental. """ - ends_at: NotRequired[int] + drivers: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver"] + ] """ - Event end time. Measured in seconds since the Unix epoch. + List of drivers for the rental. """ - genre: NotRequired[str] + drop_off: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff" """ - Type of the event entertainment (concert, sports event etc) + Drop-off location details. """ - name: str + insurances: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance"] + ] """ - The name of the event. + Insurance details for the rental. """ - starts_at: NotRequired[int] + no_show_indicator: NotRequired[bool] """ - Event start time. Measured in seconds since the Unix epoch. + Indicates if the customer was a no-show. """ - - -class PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress(TypedDict): - city: NotRequired[str] + pickup: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup" """ - City, district, suburb, town, or village. + Pickup location details. """ - country: NotRequired[str] + renter_name: NotRequired[str] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Name of the person renting the vehicle. """ - line1: NotRequired[str] + total: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal" """ - Address line 1, such as the street, PO Box, or company name. + Total cost breakdown for the rental. """ - line2: NotRequired[str] + vehicle: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle" + ] """ - Address line 2, such as the apartment, suite, unit, or building. + Vehicle details for the rental. """ - postal_code: NotRequired[str] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate( + TypedDict +): + code: NotRequired[str] """ - ZIP or postal code. + Affiliate partner code. """ - state: NotRequired[str] + name: NotRequired[str] """ - State, county, province, or region. + Name of affiliate partner. """ -class PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate(TypedDict): - name: str +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance(TypedDict): + amount: int """ - The name of the affiliate that originated the purchase. + Distance traveled. + """ + unit: Literal["kilometers", "miles"] + """ + Unit of measurement for the distance traveled. One of `miles` or `kilometers`. """ -class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver(TypedDict): + date_of_birth: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth" + ] """ - The delivery method for the payment + Driver's date of birth. """ - recipient: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient" - ] + driver_identification_number: NotRequired[str] """ - Details of the recipient. + Driver's identification number. + """ + driver_tax_number: NotRequired[str] + """ + Driver's tax number. + """ + name: str + """ + Driver's full name. """ -class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient( +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth( TypedDict, ): - email: NotRequired[str] + day: int """ - The email of the recipient the ticket is delivered to. + Day of birth (1-31). """ - name: NotRequired[str] + month: int """ - The name of the recipient the ticket is delivered to. + Month of birth (1-12). """ - phone: NotRequired[str] + year: int """ - The phone number of the recipient the ticket is delivered to. + Year of birth (must be greater than 1900). """ -class PaymentIntentUpdateParamsPaymentDetailsFlight(TypedDict): - affiliate: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate" - ] +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict): + address: ( + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress" + ) """ - Affiliate details for this purchase. + Address of the rental location. """ - agency_number: NotRequired[str] + location_name: NotRequired[str] """ - The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. + Location name. """ - carrier: NotRequired[str] + time: int """ - The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + Timestamp for the location. """ - delivery: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery" - ] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress( + TypedDict, +): + city: str """ - Delivery details for this purchase. + City, district, suburb, town, or village. """ - passenger_name: NotRequired[str] + country: str """ - The name of the person or entity on the reservation. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - passengers: NotRequired[ - List["PaymentIntentUpdateParamsPaymentDetailsFlightPassenger"] - ] + line1: str """ - The details of the passengers in the travel reservation. + Address line 1, such as the street, PO Box, or company name. """ - segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightSegment"] + line2: NotRequired[str] """ - The individual flight segments associated with the trip. + Address line 2, such as the apartment, suite, unit, or building. """ - ticket_number: NotRequired[str] + postal_code: str """ - The ticket number associated with the travel reservation. + ZIP or postal code. """ - - -class PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate(TypedDict): - name: str + state: NotRequired[str] """ - The name of the affiliate that originated the purchase. + State, county, province, or region. """ -class PaymentIntentUpdateParamsPaymentDetailsFlightDelivery(TypedDict): - mode: NotRequired[Literal["email", "phone", "pickup", "post"]] +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance( + TypedDict +): + amount: int """ - The delivery method for the payment + Amount of the insurance coverage in cents. """ - recipient: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient" + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "liability_supplement", + "loss_damage_waiver", + "other", + "partial_damage_waiver", + "personal_accident", + "personal_effects", ] """ - Details of the recipient. + Type of insurance coverage. """ -class PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient( - TypedDict -): - email: NotRequired[str] +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup(TypedDict): + address: ( + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress" + ) """ - The email of the recipient the ticket is delivered to. + Address of the rental location. """ - name: NotRequired[str] + location_name: NotRequired[str] """ - The name of the recipient the ticket is delivered to. + Location name. """ - phone: NotRequired[str] + time: int """ - The phone number of the recipient the ticket is delivered to. + Timestamp for the location. """ -class PaymentIntentUpdateParamsPaymentDetailsFlightPassenger(TypedDict): - name: str +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress( + TypedDict, +): + city: str """ - Full name of the person or entity on the flight reservation. + City, district, suburb, town, or village. """ - - -class PaymentIntentUpdateParamsPaymentDetailsFlightSegment(TypedDict): - amount: NotRequired[int] + country: str """ - The flight segment amount. + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). """ - arrival_airport: NotRequired[str] + line1: str """ - The International Air Transport Association (IATA) airport code for the arrival airport. + Address line 1, such as the street, PO Box, or company name. """ - arrives_at: NotRequired[int] + line2: NotRequired[str] """ - The arrival time for the flight segment. Measured in seconds since the Unix epoch. + Address line 2, such as the apartment, suite, unit, or building. """ - carrier: NotRequired[str] + postal_code: str """ - The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. + ZIP or postal code. """ - departs_at: int + state: NotRequired[str] """ - The departure time for the flight segment. Measured in seconds since the Unix epoch. + State, county, province, or region. """ - departure_airport: NotRequired[str] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal(TypedDict): + amount: int """ - The International Air Transport Association (IATA) airport code for the departure airport. + Total amount in cents. """ - flight_number: NotRequired[str] + currency: NotRequired[str] """ - The flight number associated with the segment + Currency of the amount. """ - service_class: NotRequired[ - Literal["business", "economy", "first", "premium_economy"] + discounts: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts" ] """ - The fare class for the segment. + Discount details for the rental. """ - - -class PaymentIntentUpdateParamsPaymentDetailsLodging(TypedDict): - address: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsLodgingAddress" + extra_charges: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge" + ] ] """ - The lodging location's address. + Additional charges for the rental. """ - adults: NotRequired[int] + rate_per_unit: NotRequired[int] """ - The number of adults on the booking + Rate per unit for the rental. """ - affiliate: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate" + rate_unit: NotRequired[ + Literal["days", "kilometers", "miles", "months", "weeks"] ] """ - Affiliate details for this purchase. + Unit of measurement for the rate. """ - booking_number: NotRequired[str] + tax: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax" + ] """ - The booking number associated with the lodging reservation. + Tax breakdown for the rental. """ - category: NotRequired[Literal["hotel", "vacation_rental"]] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - The lodging category + Corporate client discount code. """ - checkin_at: int + coupon: NotRequired[str] """ - Lodging check-in time. Measured in seconds since the Unix epoch. + Coupon code applied to the rental. """ - checkout_at: int + maximum_free_miles_or_kilometers: NotRequired[int] """ - Lodging check-out time. Measured in seconds since the Unix epoch. + Maximum number of free miles or kilometers included. """ - customer_service_phone_number: NotRequired[str] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge( + TypedDict, +): + amount: int """ - The customer service phone number of the lodging company. + Amount of the extra charge in cents. """ - daily_room_rate_amount: NotRequired[int] + type: Literal[ + "extra_mileage", + "gas", + "gps", + "late_charge", + "one_way_drop_off", + "other", + "parking", + "phone", + "regular_mileage", + "towing", + ] """ - The daily lodging room rate. + Type of extra charge. """ - delivery: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery" - ] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] """ - Delivery details for this purchase. + Indicates if the transaction is tax exempt. """ - extra_charges: NotRequired[ + taxes: NotRequired[ List[ - Literal[ - "gift_shop", - "laundry", - "mini_bar", - "other", - "restaurant", - "telephone", - ] + "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax" ] ] """ - List of additional charges being billed. + Array of tax details. """ - fire_safety_act_compliance: NotRequired[bool] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax( + TypedDict, +): + amount: NotRequired[int] """ - Indicates whether the lodging location is compliant with the Fire Safety Act. + Tax amount. """ - name: NotRequired[str] + rate: NotRequired[int] """ - The name of the lodging location. + Tax rate applied. """ - no_show: NotRequired[bool] + type: NotRequired[str] """ - Indicates if the customer did not keep their booking while failing to cancel the reservation. + Type of tax applied. """ - number_of_rooms: NotRequired[int] + + +class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict): + make: NotRequired[str] """ - The number of rooms on the booking + Make of the rental vehicle. """ - passengers: NotRequired[ - List["PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger"] + model: NotRequired[str] + """ + Model of the rental vehicle. + """ + odometer: NotRequired[int] + """ + Odometer reading at the time of rental. + """ + type: NotRequired[ + Literal[ + "cargo_van", + "compact", + "economy", + "exotic", + "exotic_suv", + "fifteen_passenger_van", + "four_wheel_drive", + "full_size", + "intermediate", + "large_suv", + "large_truck", + "luxury", + "medium_suv", + "midsize", + "mini", + "minivan", + "miscellaneous", + "moped", + "moving_van", + "premium", + "regular", + "small_medium_truck", + "small_suv", + "special", + "standard", + "stretch", + "subcompact", + "taxi", + "twelve_foot_truck", + "twelve_passenger_van", + "twenty_foot_truck", + "twenty_four_foot_truck", + "twenty_six_foot_truck", + "unique", + ] ] """ - The details of the passengers in the travel reservation + Type of the rental vehicle. """ - property_phone_number: NotRequired[str] + vehicle_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] """ - The phone number of the lodging location. + Class of the rental vehicle. """ - room_class: NotRequired[str] + vehicle_identification_number: NotRequired[str] """ - The room class for this purchase. + Vehicle identification number (VIN). """ - room_nights: NotRequired[int] + + +class PaymentIntentUpdateParamsPaymentDetailsEventDetails(TypedDict): + access_controlled_venue: NotRequired[bool] """ - The number of room nights + Indicates if the tickets are digitally checked when entering the venue. """ - total_room_tax_amount: NotRequired[int] + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress" + ] """ - The total tax amount associating with the room reservation. + The event location's address. """ - total_tax_amount: NotRequired[int] + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate" + ] """ - The total tax amount + Affiliate details for this purchase. + """ + company: NotRequired[str] + """ + The name of the company + """ + delivery: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery" + ] + """ + Delivery details for this purchase. + """ + ends_at: NotRequired[int] + """ + Event end time. Measured in seconds since the Unix epoch. + """ + genre: NotRequired[str] + """ + Type of the event entertainment (concert, sports event etc) + """ + name: str + """ + The name of the event. + """ + starts_at: NotRequired[int] + """ + Event start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentUpdateParamsPaymentDetailsLodgingAddress(TypedDict): +class PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1027,27 +1184,27 @@ class PaymentIntentUpdateParamsPaymentDetailsLodgingAddress(TypedDict): """ -class PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate(TypedDict): +class PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery(TypedDict): +class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery(TypedDict): mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ The delivery method for the payment """ recipient: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient" + "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient" ] """ Details of the recipient. """ -class PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient( +class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient( TypedDict, ): email: NotRequired[str] @@ -1064,515 +1221,531 @@ class PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient( """ -class PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger(TypedDict): - name: str - """ - Full name of the person or entity on the lodging reservation. - """ - - -class PaymentIntentUpdateParamsPaymentDetailsSubscription(TypedDict): +class PaymentIntentUpdateParamsPaymentDetailsFlight(TypedDict): affiliate: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate" + "PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate" ] """ Affiliate details for this purchase. """ - auto_renewal: NotRequired[bool] + agency_number: NotRequired[str] """ - Info whether the subscription will be auto renewed upon expiry. + The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. """ - billing_interval: NotRequired[ - "PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval" + carrier: NotRequired[str] + """ + The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. + """ + delivery: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery" ] """ - Subscription billing details for this purchase. + Delivery details for this purchase. """ - ends_at: NotRequired[int] + passenger_name: NotRequired[str] """ - Subscription end time. Measured in seconds since the Unix epoch. + The name of the person or entity on the reservation. """ - name: str + passengers: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsFlightPassenger"] + ] """ - Name of the product on subscription. e.g. Apple Music Subscription + The details of the passengers in the travel reservation. """ - starts_at: NotRequired[int] + segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightSegment"] """ - Subscription start time. Measured in seconds since the Unix epoch. + The individual flight segments associated with the trip. + """ + ticket_number: NotRequired[str] + """ + The ticket number associated with the travel reservation. """ -class PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): +class PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate(TypedDict): name: str """ The name of the affiliate that originated the purchase. """ -class PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval( - TypedDict, -): - count: int +class PaymentIntentUpdateParamsPaymentDetailsFlightDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. + The delivery method for the payment """ - interval: Literal["day", "month", "week", "year"] + recipient: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient" + ] """ - Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. + Details of the recipient. """ -class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): - acss_debit: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataAcssDebit" - ] +class PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient( + TypedDict +): + email: NotRequired[str] """ - If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. + The email of the recipient the ticket is delivered to. """ - affirm: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAffirm"] + name: NotRequired[str] """ - If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. + The name of the recipient the ticket is delivered to. """ - afterpay_clearpay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay" - ] + phone: NotRequired[str] """ - If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. + The phone number of the recipient the ticket is delivered to. """ - alipay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlipay"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightPassenger(TypedDict): + name: str """ - If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. + Full name of the person or entity on the flight reservation. """ - allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightSegment(TypedDict): + amount: NotRequired[int] """ - This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + The flight segment amount. """ - alma: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlma"] + arrival_airport: NotRequired[str] """ - If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + The International Air Transport Association (IATA) airport code for the arrival airport. """ - amazon_pay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay" - ] + arrives_at: NotRequired[int] """ - If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. + The arrival time for the flight segment. Measured in seconds since the Unix epoch. """ - au_becs_debit: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit" - ] + carrier: NotRequired[str] """ - If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. + The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. """ - bacs_debit: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit" - ] + departs_at: int """ - If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. + The departure time for the flight segment. Measured in seconds since the Unix epoch. """ - bancontact: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataBancontact" - ] + departure_airport: NotRequired[str] """ - If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. + The International Air Transport Association (IATA) airport code for the departure airport. """ - billie: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBillie"] + flight_number: NotRequired[str] """ - If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. + The flight number associated with the segment """ - billing_details: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataBillingDetails" + service_class: NotRequired[ + Literal["business", "economy", "first", "premium_economy"] ] """ - Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + The fare class for the segment. """ - blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatum(TypedDict): + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate" + ] """ - If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. + Affiliate details if applicable. """ - boleto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBoleto"] + booking_number: NotRequired[str] """ - If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. + Reservation reference. """ - cashapp: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCashapp"] + computerized_reservation_system: NotRequired[str] """ - If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. + Computerized reservation system used to make the reservation and purchase the ticket. """ - crypto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCrypto"] + endorsements_and_restrictions: NotRequired[str] """ - If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. + Ticket restrictions. """ - customer_balance: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance" + insurances: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance"] ] """ - If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. - """ - eps: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataEps"] - """ - If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. + List of insurances. """ - fpx: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataFpx"] + passengers: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger"] + ] """ - If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. + List of passengers. """ - giropay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGiropay"] + segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment"] """ - If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. + List of flight segments. """ - gopay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGopay"] + ticket_electronically_issued_indicator: NotRequired[bool] """ - If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. + Electronic ticket indicator. """ - grabpay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGrabpay"] + total: "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal" """ - If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. + Total cost breakdown. """ - id_bank_transfer: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer" + transaction_type: NotRequired[ + Literal[ + "exchange_ticket", "miscellaneous", "refund", "ticket_purchase" + ] ] """ - If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. + Type of flight transaction. """ - ideal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataIdeal"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate(TypedDict): + code: NotRequired[str] """ - If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. + Affiliate partner code. """ - interac_present: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataInteracPresent" - ] + name: NotRequired[str] """ - If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. + Name of affiliate partner. """ - kakao_pay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataKakaoPay" - ] + travel_authorization_code: NotRequired[str] """ - If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + Code provided by the company to a travel agent authorizing ticket issuance. """ - klarna: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarna"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance(TypedDict): + amount: int """ - If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. + Insurance cost. """ - konbini: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKonbini"] + currency: NotRequired[str] """ - If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. + Insurance currency. """ - kr_card: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKrCard"] + insurance_company_name: NotRequired[str] """ - If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + Insurance company name. """ - link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"] + insurance_type: Literal[ + "baggage", "bankruptcy", "cancelation", "emergency", "medical" + ] """ - If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + Type of insurance. """ - mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger(TypedDict): + name: str """ - If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + Passenger's full name. """ - metadata: NotRequired[Dict[str, str]] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment(TypedDict): + amount: NotRequired[int] """ - Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + Segment fare amount. """ - mobilepay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataMobilepay" - ] + arrival: "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival" """ - If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + Arrival details. """ - multibanco: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataMultibanco" - ] + carrier_code: str """ - If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. + Airline carrier code. """ - naver_pay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataNaverPay" - ] + carrier_name: NotRequired[str] """ - If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + Carrier name. """ - nz_bank_account: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount" - ] + currency: NotRequired[str] """ - If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. + Segment currency. """ - oxxo: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataOxxo"] + departure: ( + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture" + ) """ - If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + Departure details. """ - p24: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataP24"] + exchange_ticket_number: NotRequired[str] """ - If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + Exchange ticket number. """ - pay_by_bank: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataPayByBank" - ] + fare_basis_code: NotRequired[str] """ - If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. + Fare basis code. """ - payco: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayco"] + fees: NotRequired[int] """ - If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Additional fees. """ - paynow: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaynow"] + flight_number: NotRequired[str] """ - If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + Flight number. """ - paypal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypal"] + is_stop_over_indicator: NotRequired[bool] """ - If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + Stopover indicator. """ - paypay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypay"] + refundable: NotRequired[bool] """ - If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + Refundable ticket indicator. """ - payto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayto"] + service_class: Literal[ + "business", "economy", "first_class", "premium_economy" + ] """ - If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Class of service. """ - pix: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPix"] + tax_amount: NotRequired[int] """ - If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + Tax amount for segment. """ - promptpay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataPromptpay" - ] + ticket_number: NotRequired[str] """ - If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + Ticket number. """ - qris: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataQris"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival( + TypedDict, +): + airport: str """ - If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + Arrival airport IATA code. """ - radar_options: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataRadarOptions" - ] + arrives_at: NotRequired[int] """ - Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. + Arrival date/time. """ - rechnung: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataRechnung"] + city: NotRequired[str] """ - If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + Arrival city. """ - revolut_pay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataRevolutPay" - ] + country: NotRequired[str] """ - If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. + Arrival country. """ - samsung_pay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataSamsungPay" - ] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture( + TypedDict, +): + airport: str """ - If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + Departure airport IATA code. """ - satispay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSatispay"] + city: NotRequired[str] """ - If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + Departure city. """ - sepa_debit: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit" - ] + country: NotRequired[str] """ - If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. + Departure country. """ - shopeepay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataShopeepay" - ] + departs_at: int """ - If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + Departure date/time. """ - sofort: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSofort"] + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal(TypedDict): + amount: int """ - If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + Total flight amount. """ - stripe_balance: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataStripeBalance" + credit_reason: NotRequired[ + Literal[ + "other", + "partial_ticket_refund", + "passenger_transport_ancillary_cancellation", + "ticket_and_ancillary_cancellation", + "ticket_cancellation", + ] ] """ - This hash contains details about the Stripe balance payment method. - """ - swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"] - """ - If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + Reason for credit. """ - twint: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataTwint"] + currency: NotRequired[str] """ - If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + Total currency. """ - type: Literal[ - "acss_debit", - "affirm", - "afterpay_clearpay", - "alipay", - "alma", - "amazon_pay", - "au_becs_debit", - "bacs_debit", - "bancontact", - "billie", - "blik", - "boleto", - "cashapp", - "crypto", - "customer_balance", - "eps", - "fpx", - "giropay", - "gopay", - "grabpay", - "id_bank_transfer", - "ideal", - "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", - "swish", - "twint", - "us_bank_account", - "wechat_pay", - "zip", + discounts: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts" ] """ - 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. + Discount details. """ - us_bank_account: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount" + extra_charges: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge" + ] ] """ - If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + Additional charges. """ - wechat_pay: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodDataWechatPay" + tax: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax" ] """ - If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. - """ - zip: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataZip"] - """ - If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + Tax breakdown. """ -class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): - account_number: str +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] """ - Customer's bank account number. + Corporate client discount code. """ - institution_number: str + + +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] """ - Institution number of the customer's bank. + Amount of additional charges. """ - transit_number: str + type: NotRequired[ + Literal["additional_fees", "ancillary_service_charges", "exchange_fee"] + ] """ - Transit number of the customer's bank. + Type of additional charges. """ -class PaymentIntentUpdateParamsPaymentMethodDataAffirm(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataAlipay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataAlma(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataAmazonPay(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax(TypedDict): + taxes: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax"] + ] + """ + Array of tax details. + """ -class PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit(TypedDict): - account_number: str +class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict): + amount: NotRequired[int] """ - The account number for the bank account. + Tax amount. """ - bsb_number: str + rate: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Tax rate. + """ + type: NotRequired[str] + """ + Type of tax. """ -class PaymentIntentUpdateParamsPaymentMethodDataBacsDebit(TypedDict): - account_number: NotRequired[str] +class PaymentIntentUpdateParamsPaymentDetailsLodging(TypedDict): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingAddress" + ] """ - Account number of the bank account that the funds will be debited from. + The lodging location's address. """ - sort_code: NotRequired[str] + adults: NotRequired[int] """ - Sort code of the bank account. (e.g., `10-20-30`) + The number of adults on the booking """ - - -class PaymentIntentUpdateParamsPaymentMethodDataBancontact(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataBillie(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataBillingDetails(TypedDict): - address: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress" + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate" ] """ - Billing address. + Affiliate details for this purchase. """ - email: NotRequired["Literal['']|str"] + booking_number: NotRequired[str] """ - Email address. + The booking number associated with the lodging reservation. """ - name: NotRequired["Literal['']|str"] + category: NotRequired[Literal["hotel", "vacation_rental"]] """ - Full name. + The lodging category """ - phone: NotRequired["Literal['']|str"] + checkin_at: int """ - Billing phone number (including extension). + Lodging check-in time. Measured in seconds since the Unix epoch. """ - tax_id: NotRequired[str] + checkout_at: int """ - Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + Lodging check-out time. Measured in seconds since the Unix epoch. + """ + customer_service_phone_number: NotRequired[str] + """ + The customer service phone number of the lodging company. + """ + daily_room_rate_amount: NotRequired[int] + """ + The daily lodging room rate. + """ + delivery: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery" + ] + """ + Delivery details for this purchase. + """ + extra_charges: NotRequired[ + List[ + Literal[ + "gift_shop", + "laundry", + "mini_bar", + "other", + "restaurant", + "telephone", + ] + ] + ] + """ + List of additional charges being billed. + """ + fire_safety_act_compliance: NotRequired[bool] + """ + Indicates whether the lodging location is compliant with the Fire Safety Act. + """ + name: NotRequired[str] + """ + The name of the lodging location. + """ + no_show: NotRequired[bool] + """ + Indicates if the customer did not keep their booking while failing to cancel the reservation. + """ + number_of_rooms: NotRequired[int] + """ + The number of rooms on the booking + """ + passengers: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger"] + ] + """ + The details of the passengers in the travel reservation + """ + property_phone_number: NotRequired[str] + """ + The phone number of the lodging location. + """ + room_class: NotRequired[str] + """ + The room class for this purchase. + """ + room_nights: NotRequired[int] + """ + The number of room nights + """ + total_room_tax_amount: NotRequired[int] + """ + The total tax amount associating with the room reservation. + """ + total_tax_amount: NotRequired[int] + """ + The total tax amount """ -class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( - TypedDict, -): +class PaymentIntentUpdateParamsPaymentDetailsLodgingAddress(TypedDict): city: NotRequired[str] """ City, district, suburb, town, or village. @@ -1599,1841 +1772,3821 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( """ -class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate(TypedDict): + name: str + """ + The name of the affiliate that originated the purchase. + """ -class PaymentIntentUpdateParamsPaymentMethodDataBoleto(TypedDict): - tax_id: str +class PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery(TypedDict): + mode: NotRequired[Literal["email", "phone", "pickup", "post"]] """ - The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + The delivery method for the payment + """ + recipient: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient" + ] + """ + Details of the recipient. """ -class PaymentIntentUpdateParamsPaymentMethodDataCashapp(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient( + TypedDict, +): + email: NotRequired[str] + """ + The email of the recipient the ticket is delivered to. + """ + name: NotRequired[str] + """ + The name of the recipient the ticket is delivered to. + """ + phone: NotRequired[str] + """ + The phone number of the recipient the ticket is delivered to. + """ -class PaymentIntentUpdateParamsPaymentMethodDataCrypto(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger(TypedDict): + name: str + """ + Full name of the person or entity on the lodging reservation. + """ -class PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatum(TypedDict): + accommodation: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation" + ] + """ + Accommodation details for the lodging. + """ + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate" + ] + """ + Affiliate details if applicable. + """ + booking_number: NotRequired[str] + """ + Booking confirmation number for the lodging. + """ + checkin_at: int + """ + Check-in date. + """ + checkout_at: int + """ + Check-out date. + """ + customer_service_phone_number: NotRequired[str] + """ + Customer service phone number for the lodging company. + """ + fire_safety_act_compliance_indicator: NotRequired[bool] + """ + Whether the lodging is compliant with any hotel fire safety regulations. + """ + guests: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest"] + ] + """ + List of guests for the lodging. + """ + host: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost" + ] + """ + Host details for the lodging. + """ + insurances: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance"] + ] + """ + List of insurances for the lodging. + """ + no_show_indicator: NotRequired[bool] + """ + Whether the renter is a no-show. + """ + renter_id_number: NotRequired[str] + """ + Renter ID number for the lodging. + """ + renter_name: NotRequired[str] + """ + Renter name for the lodging. + """ + total: "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal" + """ + Total details for the lodging. + """ -class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict): - bank: NotRequired[ +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation( + TypedDict, +): + accommodation_type: NotRequired[ Literal[ - "arzte_und_apotheker_bank", - "austrian_anadi_bank_ag", - "bank_austria", - "bankhaus_carl_spangler", - "bankhaus_schelhammer_und_schattera_ag", - "bawag_psk_ag", - "bks_bank_ag", - "brull_kallmus_bank_ag", - "btv_vier_lander_bank", - "capital_bank_grawe_gruppe_ag", - "deutsche_bank_ag", - "dolomitenbank", - "easybank_ag", - "erste_bank_und_sparkassen", - "hypo_alpeadriabank_international_ag", - "hypo_bank_burgenland_aktiengesellschaft", - "hypo_noe_lb_fur_niederosterreich_u_wien", - "hypo_oberosterreich_salzburg_steiermark", - "hypo_tirol_bank_ag", - "hypo_vorarlberg_bank_ag", - "marchfelder_bank", - "oberbank_ag", - "raiffeisen_bankengruppe_osterreich", - "schoellerbank_ag", - "sparda_bank_wien", - "volksbank_gruppe", - "volkskreditbank_ag", - "vr_bank_braunau", + "apartment", + "cabana", + "house", + "penthouse", + "room", + "standard", + "suite", + "villa", ] ] """ - The customer's bank. + Type of accommodation. + """ + bed_type: NotRequired[str] + """ + Bed type. + """ + daily_rate_amount: NotRequired[int] + """ + Daily accommodation rate in cents. + """ + nights: NotRequired[int] + """ + Number of nights. + """ + number_of_rooms: NotRequired[int] + """ + Number of rooms, cabanas, apartments, and so on. + """ + rate_type: NotRequired[str] + """ + Rate type. + """ + smoking_indicator: NotRequired[bool] + """ + Whether smoking is allowed. """ -class PaymentIntentUpdateParamsPaymentMethodDataFpx(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict): + code: NotRequired[str] """ - Account holder type for FPX transaction + Affiliate partner code. """ - 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", - ] + name: NotRequired[str] """ - The customer's bank. + Affiliate partner name. """ -class PaymentIntentUpdateParamsPaymentMethodDataGiropay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataGopay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer(TypedDict): - bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest(TypedDict): + name: str """ - Bank where the account is held. + Guest's full name. """ -class PaymentIntentUpdateParamsPaymentMethodDataIdeal(TypedDict): - bank: NotRequired[ - Literal[ - "abn_amro", - "asn_bank", - "bunq", - "buut", - "handelsbanken", - "ing", - "knab", - "moneyou", - "n26", - "nn", - "rabobank", - "regiobank", - "revolut", - "sns_bank", - "triodos_bank", - "van_lanschot", - "yoursafe", - ] +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost(TypedDict): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress" ] """ - The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + Address of the host. """ - - -class PaymentIntentUpdateParamsPaymentMethodDataInteracPresent(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataKakaoPay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataKlarna(TypedDict): - dob: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob"] + country_of_domicile: NotRequired[str] """ - Customer's date of birth + Host's country of domicile. """ - - -class PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob(TypedDict): - day: int + host_reference: NotRequired[str] """ - The day of birth, between 1 and 31. + Reference number for the host. """ - month: int + host_type: NotRequired[ + Literal["hostel", "hotel", "owner", "rental_agency"] + ] """ - The month of birth, between 1 and 12. + Type of host. """ - year: int + name: NotRequired[str] """ - The four-digit year of birth. + Name of the lodging property or host. + """ + number_of_reservations: NotRequired[int] + """ + Total number of reservations for the host. + """ + property_phone_number: NotRequired[str] + """ + Property phone number. + """ + registered_at: NotRequired[int] + """ + Host's registration date. """ -class PaymentIntentUpdateParamsPaymentMethodDataKonbini(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataKrCard(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataLink(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataMbWay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataMobilepay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataMultibanco(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress( + TypedDict +): + city: str + """ + City, district, suburb, town, or village. + """ + country: str + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: str + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: str + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ -class PaymentIntentUpdateParamsPaymentMethodDataNaverPay(TypedDict): - funding: NotRequired[Literal["card", "points"]] +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance(TypedDict): + amount: int """ - Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Price of the insurance coverage in cents. + """ + currency: NotRequired[str] + """ + Currency of the insurance amount. + """ + insurance_company_name: NotRequired[str] + """ + Name of the insurance company. + """ + insurance_type: Literal[ + "bankruptcy", "cancelation", "emergency", "medical" + ] + """ + Type of insurance coverage. """ -class PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount(TypedDict): - account_holder_name: NotRequired[str] +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal(TypedDict): + amount: int """ - The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + Total price of the lodging reservation in cents. """ - account_number: str + cash_advances: NotRequired[int] """ - The account number for the bank account. + Cash advances in cents. """ - bank_code: str + currency: NotRequired[str] """ - The numeric code for the bank account's bank. + Currency of the total amount. """ - branch_code: str + discounts: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts" + ] """ - The numeric code for the bank account's bank branch. + Discount details for the lodging. """ - reference: NotRequired[str] - suffix: str + extra_charges: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge" + ] + ] """ - The suffix of the bank account number. + Additional charges for the lodging. + """ + prepaid_amount: NotRequired[int] + """ + Prepaid amount in cents. + """ + tax: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax" + ] + """ + Tax breakdown for the lodging reservation. """ -class PaymentIntentUpdateParamsPaymentMethodDataOxxo(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts( + TypedDict, +): + corporate_client_code: NotRequired[str] + """ + Corporate client discount code. + """ + coupon: NotRequired[str] + """ + Coupon code. + """ -class PaymentIntentUpdateParamsPaymentMethodDataP24(TypedDict): - bank: NotRequired[ +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge( + TypedDict, +): + amount: NotRequired[int] + """ + Amount of the extra charge in cents. + """ + type: NotRequired[ 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", + "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant" ] ] """ - The customer's bank. + Type of extra charge. """ -class PaymentIntentUpdateParamsPaymentMethodDataPayByBank(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataPayco(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataPaynow(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataPaypal(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataPaypay(TypedDict): - pass +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict): + tax_exempt_indicator: NotRequired[bool] + """ + Indicates whether the transaction is tax exempt. + """ + taxes: NotRequired[ + List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax"] + ] + """ + Tax details. + """ -class PaymentIntentUpdateParamsPaymentMethodDataPayto(TypedDict): - account_number: NotRequired[str] +class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax( + TypedDict +): + amount: NotRequired[int] """ - The account number for the bank account. + Tax amount in cents. """ - bsb_number: NotRequired[str] + rate: NotRequired[int] """ - Bank-State-Branch number of the bank account. + Tax rate. """ - pay_id: NotRequired[str] + type: NotRequired[str] """ - The PayID alias for the bank account. + Type of tax applied. """ -class PaymentIntentUpdateParamsPaymentMethodDataPix(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataPromptpay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataQris(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict): - session: NotRequired[str] - """ - A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. - """ - - -class PaymentIntentUpdateParamsPaymentMethodDataRechnung(TypedDict): - dob: "PaymentIntentUpdateParamsPaymentMethodDataRechnungDob" +class PaymentIntentUpdateParamsPaymentDetailsSubscription(TypedDict): + affiliate: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate" + ] """ - Customer's date of birth + Affiliate details for this purchase. """ - - -class PaymentIntentUpdateParamsPaymentMethodDataRechnungDob(TypedDict): - day: int + auto_renewal: NotRequired[bool] """ - The day of birth, between 1 and 31. + Info whether the subscription will be auto renewed upon expiry. """ - month: int + billing_interval: NotRequired[ + "PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval" + ] """ - The month of birth, between 1 and 12. + Subscription billing details for this purchase. """ - year: int + ends_at: NotRequired[int] """ - The four-digit year of birth. + Subscription end time. Measured in seconds since the Unix epoch. """ - - -class PaymentIntentUpdateParamsPaymentMethodDataRevolutPay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataSamsungPay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): - iban: str + name: str """ - IBAN of the bank account. + Name of the product on subscription. e.g. Apple Music Subscription """ - - -class PaymentIntentUpdateParamsPaymentMethodDataShopeepay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataSofort(TypedDict): - country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + starts_at: NotRequired[int] """ - Two-letter ISO code representing the country the bank account is located in. + Subscription start time. Measured in seconds since the Unix epoch. """ -class PaymentIntentUpdateParamsPaymentMethodDataStripeBalance(TypedDict): - account: NotRequired[str] - """ - The connected account ID whose Stripe balance to use as the source of payment - """ - source_type: NotRequired[Literal["bank_account", "card", "fpx"]] +class PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict): + name: str """ - The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + The name of the affiliate that originated the purchase. """ -class PaymentIntentUpdateParamsPaymentMethodDataSwish(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataTwint(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount(TypedDict): - account_holder_type: NotRequired[Literal["company", "individual"]] - """ - Account holder type: individual or company. - """ - account_number: NotRequired[str] - """ - Account number of the bank account. - """ - account_type: NotRequired[Literal["checking", "savings"]] - """ - Account type: checkings or savings. Defaults to checking if omitted. - """ - financial_connections_account: NotRequired[str] +class PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval( + TypedDict, +): + count: int """ - The ID of a Financial Connections Account to use as a payment method. + The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration. """ - routing_number: NotRequired[str] + interval: Literal["day", "month", "week", "year"] """ - Routing number of the bank account. + Specifies a type of interval unit. Either `day`, `week`, `month` or `year`. """ -class PaymentIntentUpdateParamsPaymentMethodDataWechatPay(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodDataZip(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): +class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): acss_debit: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit" + "PaymentIntentUpdateParamsPaymentMethodDataAcssDebit" ] """ - If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ - affirm: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAffirm" - ] + affirm: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAffirm"] """ - If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. """ afterpay_clearpay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay" + "PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay" ] """ - If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method. """ - alipay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlipay" - ] + alipay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlipay"] """ - If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. """ - alma: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlma" - ] + allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] """ - If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + """ + alma: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlma"] + """ + If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. """ amazon_pay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay" + "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay" ] """ - If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. """ au_becs_debit: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit" + "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit" ] """ - If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ bacs_debit: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit" + "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit" ] """ - If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. """ bancontact: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBancontact" - ] - """ - If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. - """ - billie: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBillie" + "PaymentIntentUpdateParamsPaymentMethodDataBancontact" ] """ - If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method. """ - blik: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik" - ] + billie: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBillie"] """ - If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method. """ - boleto: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBoleto" + billing_details: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataBillingDetails" ] """ - If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. """ - card: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCard" - ] + blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"] """ - Configuration for any card payments attempted on this PaymentIntent. + If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. """ - card_present: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent" - ] + boleto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBoleto"] """ - If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ - cashapp: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCashapp" - ] + cashapp: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCashapp"] """ - If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. """ - crypto: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCrypto" - ] + crypto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCrypto"] """ - If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. """ customer_balance: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance" + "PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance" ] """ - If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ - eps: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsEps" - ] + eps: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataEps"] """ - If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. """ - fpx: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsFpx" - ] + fpx: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataFpx"] """ - If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ - giropay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiropay" - ] + giropay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGiropay"] """ - If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method. """ - gopay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGopay" - ] + gopay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGopay"] """ - If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. """ - grabpay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay" - ] + grabpay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGrabpay"] """ - If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method. """ id_bank_transfer: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer" + "PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer" ] """ - If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method. """ - ideal: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdeal" - ] + ideal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataIdeal"] """ - If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. """ interac_present: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent" + "PaymentIntentUpdateParamsPaymentMethodDataInteracPresent" ] """ - If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. """ kakao_pay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay" + "PaymentIntentUpdateParamsPaymentMethodDataKakaoPay" ] """ - If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. """ - klarna: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKlarna" - ] + klarna: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarna"] """ - If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. """ - konbini: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKonbini" - ] + konbini: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKonbini"] """ - If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. """ - kr_card: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKrCard" - ] + kr_card: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKrCard"] """ - If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. """ - link: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink" - ] + link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"] """ - If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. """ - mb_way: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay" - ] + mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"] """ - If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + """ + metadata: NotRequired[Dict[str, 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ mobilepay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMobilepay" + "PaymentIntentUpdateParamsPaymentMethodDataMobilepay" ] """ - If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. """ multibanco: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMultibanco" + "PaymentIntentUpdateParamsPaymentMethodDataMultibanco" ] """ - If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. """ naver_pay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNaverPay" + "PaymentIntentUpdateParamsPaymentMethodDataNaverPay" ] """ - If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. """ nz_bank_account: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNzBankAccount" + "PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount" ] """ - If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. """ - oxxo: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsOxxo" + oxxo: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataOxxo"] + """ + If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + """ + p24: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataP24"] + """ + If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. + """ + pay_by_bank: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataPayByBank" ] """ - If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method. """ - p24: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsP24" + payco: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayco"] + """ + If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + """ + paynow: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaynow"] + """ + If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + """ + paypal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypal"] + """ + If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. + """ + paypay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypay"] + """ + If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method. + """ + payto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayto"] + """ + If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + """ + pix: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPix"] + """ + If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. + """ + promptpay: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataPromptpay" ] """ - If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. """ - pay_by_bank: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayByBank" + qris: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataQris"] + """ + If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method. + """ + radar_options: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataRadarOptions" ] """ - If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. """ - payco: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayco" + rechnung: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataRechnung"] + """ + If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. + """ + revolut_pay: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataRevolutPay" ] """ - If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. """ - paynow: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaynow" + samsung_pay: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataSamsungPay" ] """ - If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. """ - paypal: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypal" + satispay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSatispay"] + """ + If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. + """ + sepa_debit: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit" ] """ - If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. """ - paypay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypay" + shopeepay: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataShopeepay" + ] + """ + If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. + """ + sofort: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSofort"] + """ + If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. + """ + stripe_balance: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataStripeBalance" + ] + """ + This hash contains details about the Stripe balance payment method. + """ + swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"] + """ + If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. + """ + twint: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataTwint"] + """ + If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. + """ + type: Literal[ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "gopay", + "grabpay", + "id_bank_transfer", + "ideal", + "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", + "swish", + "twint", + "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. + """ + us_bank_account: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount" ] """ - If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + """ + wechat_pay: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataWechatPay" + ] + """ + If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. + """ + zip: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataZip"] + """ + If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): + account_number: str + """ + Customer's bank account number. + """ + institution_number: str + """ + Institution number of the customer's bank. + """ + transit_number: str + """ + Transit number of the customer's bank. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataAffirm(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataAlipay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataAlma(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataAmazonPay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit(TypedDict): + account_number: str + """ + The account number for the bank account. + """ + bsb_number: str + """ + Bank-State-Branch number of the bank account. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataBacsDebit(TypedDict): + account_number: NotRequired[str] + """ + Account number of the bank account that the funds will be debited from. + """ + sort_code: NotRequired[str] + """ + Sort code of the bank account. (e.g., `10-20-30`) + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataBancontact(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataBillie(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataBillingDetails(TypedDict): + address: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress" + ] + """ + Billing address. + """ + email: NotRequired["Literal['']|str"] + """ + Email address. + """ + name: NotRequired["Literal['']|str"] + """ + Full name. + """ + phone: NotRequired["Literal['']|str"] + """ + Billing phone number (including extension). + """ + tax_id: NotRequired[str] + """ + Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataBoleto(TypedDict): + tax_id: str + """ + The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataCashapp(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataCrypto(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict): + bank: NotRequired[ + Literal[ + "arzte_und_apotheker_bank", + "austrian_anadi_bank_ag", + "bank_austria", + "bankhaus_carl_spangler", + "bankhaus_schelhammer_und_schattera_ag", + "bawag_psk_ag", + "bks_bank_ag", + "brull_kallmus_bank_ag", + "btv_vier_lander_bank", + "capital_bank_grawe_gruppe_ag", + "deutsche_bank_ag", + "dolomitenbank", + "easybank_ag", + "erste_bank_und_sparkassen", + "hypo_alpeadriabank_international_ag", + "hypo_bank_burgenland_aktiengesellschaft", + "hypo_noe_lb_fur_niederosterreich_u_wien", + "hypo_oberosterreich_salzburg_steiermark", + "hypo_tirol_bank_ag", + "hypo_vorarlberg_bank_ag", + "marchfelder_bank", + "oberbank_ag", + "raiffeisen_bankengruppe_osterreich", + "schoellerbank_ag", + "sparda_bank_wien", + "volksbank_gruppe", + "volkskreditbank_ag", + "vr_bank_braunau", + ] + ] + """ + The customer's bank. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataFpx(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type for FPX transaction + """ + 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. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataGiropay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataGopay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer(TypedDict): + bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]] + """ + Bank where the account is held. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataIdeal(TypedDict): + bank: NotRequired[ + Literal[ + "abn_amro", + "asn_bank", + "bunq", + "buut", + "finom", + "handelsbanken", + "ing", + "knab", + "moneyou", + "n26", + "nn", + "rabobank", + "regiobank", + "revolut", + "sns_bank", + "triodos_bank", + "van_lanschot", + "yoursafe", + ] + ] + """ + The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataInteracPresent(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataKakaoPay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataKlarna(TypedDict): + dob: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob"] + """ + Customer's date of birth + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob(TypedDict): + 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. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataKonbini(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataKrCard(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataLink(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataMbWay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataMobilepay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataMultibanco(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataNaverPay(TypedDict): + funding: NotRequired[Literal["card", "points"]] + """ + Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount(TypedDict): + account_holder_name: NotRequired[str] + """ + The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + """ + account_number: str + """ + The account number for the bank account. + """ + bank_code: str + """ + The numeric code for the bank account's bank. + """ + branch_code: str + """ + The numeric code for the bank account's bank branch. + """ + reference: NotRequired[str] + suffix: str + """ + The suffix of the bank account number. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataOxxo(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataP24(TypedDict): + bank: NotRequired[ + 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. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataPayByBank(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataPayco(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataPaynow(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataPaypal(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataPaypay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataPayto(TypedDict): + account_number: NotRequired[str] + """ + The account number for the bank account. + """ + bsb_number: NotRequired[str] + """ + Bank-State-Branch number of the bank account. + """ + pay_id: NotRequired[str] + """ + The PayID alias for the bank account. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataPix(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataPromptpay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataQris(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict): + session: NotRequired[str] + """ + A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataRechnung(TypedDict): + dob: "PaymentIntentUpdateParamsPaymentMethodDataRechnungDob" + """ + Customer's date of birth + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataRechnungDob(TypedDict): + 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. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataRevolutPay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataSamsungPay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict): + iban: str + """ + IBAN of the bank account. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataShopeepay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataSofort(TypedDict): + country: Literal["AT", "BE", "DE", "ES", "IT", "NL"] + """ + Two-letter ISO code representing the country the bank account is located in. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataStripeBalance(TypedDict): + account: NotRequired[str] + """ + The connected account ID whose Stripe balance to use as the source of payment + """ + source_type: NotRequired[Literal["bank_account", "card", "fpx"]] + """ + The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataSwish(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataTwint(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount(TypedDict): + account_holder_type: NotRequired[Literal["company", "individual"]] + """ + Account holder type: individual or company. + """ + account_number: NotRequired[str] + """ + Account number of the bank account. + """ + account_type: NotRequired[Literal["checking", "savings"]] + """ + Account type: checkings or savings. Defaults to checking if omitted. + """ + financial_connections_account: NotRequired[str] + """ + The ID of a Financial Connections Account to use as a payment method. + """ + routing_number: NotRequired[str] + """ + Routing number of the bank account. + """ + + +class PaymentIntentUpdateParamsPaymentMethodDataWechatPay(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodDataZip(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): + acss_debit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit" + ] + """ + If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options. + """ + affirm: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAffirm" + ] + """ + If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options. + """ + afterpay_clearpay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay" + ] + """ + If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options. + """ + alipay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlipay" + ] + """ + If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. + """ + alma: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlma" + ] + """ + If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + """ + amazon_pay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay" + ] + """ + If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. + """ + au_becs_debit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit" + ] + """ + If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. + """ + bacs_debit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit" + ] + """ + If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options. + """ + bancontact: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBancontact" + ] + """ + If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options. + """ + billie: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBillie" + ] + """ + If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. + """ + blik: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik" + ] + """ + If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. + """ + boleto: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBoleto" + ] + """ + If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. + """ + card: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCard" + ] + """ + Configuration for any card payments attempted on this PaymentIntent. + """ + card_present: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent" + ] + """ + If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + cashapp: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCashapp" + ] + """ + If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. + """ + crypto: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCrypto" + ] + """ + If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options. + """ + customer_balance: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance" + ] + """ + If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options. + """ + eps: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsEps" + ] + """ + If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options. + """ + fpx: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsFpx" + ] + """ + If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. + """ + giropay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiropay" + ] + """ + If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options. + """ + gopay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGopay" + ] + """ + If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options. + """ + grabpay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay" + ] + """ + If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options. + """ + id_bank_transfer: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer" + ] + """ + If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options. + """ + ideal: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdeal" + ] + """ + If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options. + """ + interac_present: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent" + ] + """ + If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. + """ + kakao_pay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay" + ] + """ + If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + """ + klarna: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKlarna" + ] + """ + If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. + """ + konbini: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKonbini" + ] + """ + If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. + """ + kr_card: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKrCard" + ] + """ + If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + """ + link: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink" + ] + """ + If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + """ + mb_way: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay" + ] + """ + If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. + """ + mobilepay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMobilepay" + ] + """ + If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + """ + multibanco: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMultibanco" + ] + """ + If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. + """ + naver_pay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNaverPay" + ] + """ + If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + """ + nz_bank_account: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNzBankAccount" + ] + """ + If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options. + """ + oxxo: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsOxxo" + ] + """ + If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + """ + p24: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsP24" + ] + """ + If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. + """ + pay_by_bank: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayByBank" + ] + """ + If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options. + """ + payco: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayco" + ] + """ + If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + """ + paynow: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaynow" + ] + """ + If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + """ + paypal: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypal" + ] + """ + If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. + """ + paypay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypay" + ] + """ + If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options. + """ + payto: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayto" + ] + """ + If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + """ + pix: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPix" + ] + """ + If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + """ + promptpay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay" + ] + """ + If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + """ + qris: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsQris" + ] + """ + If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + """ + rechnung: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRechnung" + ] + """ + If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + """ + revolut_pay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay" + ] + """ + If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + """ + samsung_pay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay" + ] + """ + If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + """ + satispay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSatispay" + ] + """ + If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + """ + sepa_debit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit" + ] + """ + If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + """ + shopeepay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay" + ] + """ + If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + """ + sofort: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSofort" + ] + """ + If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + """ + stripe_balance: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance" + ] + """ + If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + """ + swish: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSwish" + ] + """ + If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + """ + twint: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsTwint" + ] + """ + If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + """ + us_bank_account: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount" + ] + """ + If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + """ + wechat_pay: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay" + ] + """ + If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + """ + zip: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsZip" + ] + """ + If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + verification_method: NotRequired[ + Literal["automatic", "instant", "microdeposits"] + ] + """ + Bank account verification method. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions( + TypedDict, +): + custom_mandate_url: NotRequired["Literal['']|str"] + """ + A URL for custom mandate text to render during confirmation step. + The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, + or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + """ + interval_description: NotRequired[str] + """ + Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + """ + payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + """ + Payment schedule for the mandate. + """ + transaction_type: NotRequired[Literal["business", "personal"]] + """ + Transaction type of the mandate. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAffirm(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + preferred_locale: NotRequired[str] + """ + Preferred language of the Affirm authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + reference: NotRequired[str] + """ + An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. + This field differs from the statement descriptor and item name. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAlipay(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAlma(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): + mandate_options: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions" + ] + """ + Additional fields for Mandate creation + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions( + TypedDict, +): + reference_prefix: NotRequired["Literal['']|str"] + """ + Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBancontact(TypedDict): + preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + """ + Preferred language of the Bancontact authorization page that the customer is redirected to. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): + code: NotRequired[str] + """ + The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + """ + setup_future_usage: NotRequired["Literal['']|Literal['none']"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsBoleto(TypedDict): + expires_after_days: NotRequired[int] + """ + The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + cvc_token: NotRequired[str] + """ + A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + """ + installments: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments" + ] + """ + Installment configuration for payments attempted on this PaymentIntent. + + For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + """ + mandate_options: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions" + ] + """ + Configuration options for setting up an eMandate for cards issued in India. + """ + moto: NotRequired[bool] + """ + When specified, this parameter indicates that a transaction will be marked + as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This + parameter can only be provided during confirmation. + """ + network: NotRequired[ + Literal[ + "amex", + "cartes_bancaires", + "diners", + "discover", + "eftpos_au", + "girocard", + "interac", + "jcb", + "link", + "mastercard", + "unionpay", + "unknown", + "visa", + ] + ] + """ + Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + """ + request_decremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + """ + request_extended_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + """ + request_incremental_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. + """ + request_multicapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + """ + request_overcapture: NotRequired[Literal["if_available", "never"]] + """ + Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + request_three_d_secure: NotRequired[ + Literal["any", "automatic", "challenge"] + ] + """ + We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + """ + require_cvc_recollection: NotRequired[bool] + """ + When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + """ + statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + """ + Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + """ + statement_details: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails" + ] + """ + Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + """ + three_d_secure: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure" + ] + """ + If 3D Secure authentication was performed with a third-party provider, + the authentication details to use for this payment. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments(TypedDict): + enabled: NotRequired[bool] + """ + Setting to true enables installments for this PaymentIntent. + This will cause the response to contain a list of available installment plans. + Setting to false will prevent any selected plan from applying to a charge. + """ + plan: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan" + ] + """ + The selected installment plan to use for this payment attempt. + This parameter can only be provided during confirmation. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan( + TypedDict, +): + count: NotRequired[int] + """ + For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + """ + interval: NotRequired[Literal["month"]] + """ + For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. + One of `month`. + """ + type: Literal["bonus", "fixed_count", "revolving"] + """ + Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions( + TypedDict, +): + amount: int + """ + Amount to be charged for future payments. + """ + amount_type: Literal["fixed", "maximum"] + """ + One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + """ + description: NotRequired[str] + """ + A description of the mandate or subscription that is meant to be displayed to the customer. + """ + end_date: NotRequired[int] + """ + End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + """ + interval: Literal["day", "month", "sporadic", "week", "year"] + """ + Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + """ + interval_count: NotRequired[int] + """ + The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + """ + reference: str + """ + Unique identifier for the mandate or subscription. + """ + start_date: int + """ + Start date of the mandate or subscription. Start date should not be lesser than yesterday. + """ + supported_types: NotRequired[List[Literal["india"]]] + """ + Specifies the type of mandates supported. Possible values are `india`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress" + ] + """ + Please pass in an address that is within your Stripe user account country + """ + phone: NotRequired[str] + """ + Phone number (e.g., a toll-free number that customers can call) + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1, such as the street, PO Box, or company name. + """ + line2: NotRequired[str] + """ + Address line 2, such as the apartment, suite, unit, or building. + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): + ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + """ + The `transStatus` returned from the card Issuer's ACS in the ARes. + """ + cryptogram: str + """ + The cryptogram, also known as the "authentication value" (AAV, CAVV or + AEVV). This value is 20 bytes, base64-encoded into a 28-character string. + (Most 3D Secure providers will return the base64-encoded version, which + is what you should specify here.) + """ + electronic_commerce_indicator: NotRequired[ + Literal["01", "02", "05", "06", "07"] + ] + """ + The Electronic Commerce Indicator (ECI) is returned by your 3D Secure + provider and indicates what degree of authentication was performed. + """ + exemption_indicator: NotRequired[Literal["low_risk", "none"]] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + network_options: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + ] + """ + Network specific 3DS fields. Network specific arguments require an + explicit card brand choice. The parameter `payment_method_options.card.network`` + must be populated accordingly + """ + requestor_challenge_indicator: NotRequired[str] + """ + The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the + AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + """ + transaction_id: str + """ + For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server + Transaction ID (dsTransID). + """ + version: Literal["1.0.2", "2.1.0", "2.2.0"] + """ + The version of 3D Secure that was performed. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( + TypedDict, +): + cartes_bancaires: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" + ] + """ + Cartes Bancaires-specific 3DS fields. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( + TypedDict, +): + cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] + """ + The cryptogram calculation algorithm used by the card Issuer's ACS + to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. + messageExtension: CB-AVALGO + """ + cb_exemption: NotRequired[str] + """ + The exemption indicator returned from Cartes Bancaires in the ARes. + message extension: CB-EXEMPTION; string (4 characters) + This is a 3 byte bitmap (low significant byte first and most significant + bit first) that has been Base64 encoded + """ + cb_score: NotRequired[int] + """ + The risk score returned from Cartes Bancaires in the ARes. + message extension: CB-SCORE; numeric value 0-99 + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): + capture_method: NotRequired[Literal["manual", "manual_preferred"]] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + request_extended_authorization: NotRequired[bool] + """ + Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + """ + request_incremental_authorization_support: NotRequired[bool] + """ + Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + """ + routing: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting" + ] + """ + Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting( + TypedDict, +): + requested_priority: NotRequired[Literal["domestic", "international"]] + """ + Routing requested priority + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCashapp(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCrypto(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance(TypedDict): + bank_transfer: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer" + ] + """ + Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + """ + funding_type: NotRequired[Literal["bank_transfer"]] + """ + The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer( + TypedDict, +): + eu_bank_transfer: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + ] + """ + Configuration for the eu_bank_transfer funding type. + """ + requested_address_types: NotRequired[ + List[ + Literal[ + "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" + ] + ] + ] + """ + List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. + + Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + """ + type: Literal[ + "eu_bank_transfer", + "gb_bank_transfer", + "jp_bank_transfer", + "mx_bank_transfer", + "us_bank_transfer", + ] + """ + The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( + TypedDict, +): + country: str + """ + The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsEps(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsFpx(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsGiropay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsGopay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay(TypedDict): + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer(TypedDict): + expires_after: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + """ + expires_at: NotRequired[int] + """ + The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + """ + setup_future_usage: NotRequired[Literal["none"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsIdeal(TypedDict): + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent(TypedDict): + pass + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session']" + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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). + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarna(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + on_demand: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand" + ] + """ + On-demand details if setting up or charging an on-demand payment. + """ + preferred_locale: NotRequired[ + Literal[ + "cs-CZ", + "da-DK", + "de-AT", + "de-CH", + "de-DE", + "el-GR", + "en-AT", + "en-AU", + "en-BE", + "en-CA", + "en-CH", + "en-CZ", + "en-DE", + "en-DK", + "en-ES", + "en-FI", + "en-FR", + "en-GB", + "en-GR", + "en-IE", + "en-IT", + "en-NL", + "en-NO", + "en-NZ", + "en-PL", + "en-PT", + "en-RO", + "en-SE", + "en-US", + "es-ES", + "es-US", + "fi-FI", + "fr-BE", + "fr-CA", + "fr-CH", + "fr-FR", + "it-CH", + "it-IT", + "nb-NO", + "nl-BE", + "nl-NL", + "pl-PL", + "pt-PT", + "ro-RO", + "sv-FI", + "sv-SE", + ] + ] + """ + Preferred language of the Klarna authorization page that the customer is redirected to + """ + setup_future_usage: NotRequired[ + Literal["none", "off_session", "on_session"] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + 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`. + """ + subscriptions: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription]" + ] + """ + Subscription details if setting up or charging a subscription. + """ + supplementary_purchase_data: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData" + ] + """ + Supplementary Purchase Data for the corresponding Klarna payment + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): + average_amount: NotRequired[int] + """ + Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + maximum_amount: NotRequired[int] + """ + The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + minimum_amount: NotRequired[int] + """ + The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + """ + purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + """ + Interval at which the customer is making purchases + """ + purchase_interval_count: NotRequired[int] + """ + The number of `purchase_interval` between charges + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription( + TypedDict, +): + interval: Literal["day", "month", "week", "year"] + """ + Unit of time between subscription charges. + """ + interval_count: NotRequired[int] + """ + The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + """ + name: NotRequired[str] + """ + Name for subscription. + """ + next_billing: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" + ] + """ + Describes the upcoming charge for this subscription. + """ + reference: str + """ + A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( + TypedDict, +): + amount: int + """ + The amount of the next charge for the subscription. + """ + date: str """ - payto: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayto" + The date of the next charge for the subscription in YYYY-MM-DD format. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData( + TypedDict, +): + bus_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]" ] """ - If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + Supplementary bus reservation details. """ - pix: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPix" + event_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]" ] """ - If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. + Supplementary event reservation details. """ - promptpay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay" + ferry_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]" ] """ - If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + Supplementary ferry reservation details. """ - qris: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsQris" + insurances: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]" ] """ - If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options. + Supplementary insurance details. """ - rechnung: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRechnung" + marketplace_sellers: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]" ] """ - If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options. + Supplementary marketplace seller details. """ - revolut_pay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay" + round_trip_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]" ] """ - If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. + Supplementary round trip reservation details. """ - samsung_pay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay" + train_reservation_details: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]" ] """ - If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + Supplementary train reservation details. """ - satispay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSatispay" + vouchers: NotRequired[ + "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]" ] """ - If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. + Voucher details, such as a gift card or discount code. """ - sepa_debit: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit" - ] + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. + Name of associated or partner company for the service. """ - shopeepay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay" + arrival: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival" ] """ - If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options. + Arrival details. """ - sofort: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSofort" - ] + carrier_name: NotRequired[str] """ - If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. + Name of transportation company. """ - stripe_balance: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance" - ] + currency: NotRequired[str] """ - If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options. + Currency. """ - swish: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSwish" + departure: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture" ] """ - If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. + Departure details. """ - twint: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsTwint" + insurances: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance" + ] ] """ - If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. + List of insurances for this reservation. """ - us_bank_account: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount" + passengers: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger" + ] ] """ - If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + List of passengers that this reservation applies to. """ - wechat_pay: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay" - ] + price: NotRequired[int] """ - If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. + Price in cents. """ - zip: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsZip" + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options. + Ticket class. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions" +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress" ] """ - Additional fields for Mandate creation + Address of the arrival location. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ - 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`. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress" + ] """ - target_date: NotRequired[str] + Address of the departure location. """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + departs_at: NotRequired[int] """ - verification_method: NotRequired[ - Literal["automatic", "instant", "microdeposits"] - ] + Timestamp of departure. """ - Bank account verification method. + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress( TypedDict, ): - custom_mandate_url: NotRequired["Literal['']|str"] + city: NotRequired[str] """ - A URL for custom mandate text to render during confirmation step. - The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, - or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. + The city or town. """ - interval_description: NotRequired[str] + country: NotRequired[str] """ - Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. + The country in ISO 3166-1 alpha-2 format. """ - payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]] + postal_code: NotRequired[str] """ - Payment schedule for the mandate. + The postal code formatted according to country. """ - transaction_type: NotRequired[Literal["business", "personal"]] + region: NotRequired[str] """ - Transaction type of the mandate. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsAffirm(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - preferred_locale: NotRequired[str] + Insurance currency. """ - Preferred language of the Affirm authorization page that the customer is redirected to. + insurance_company_name: NotRequired[str] """ - setup_future_usage: NotRequired[Literal["none"]] + Name of the company providing the insurance. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - reference: NotRequired[str] + The family name of the person. """ - An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. - This field differs from the statement descriptor and item name. + given_name: NotRequired[str] """ - setup_future_usage: NotRequired[Literal["none"]] + The given name of the person. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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`. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail( + TypedDict, +): + access_controlled_venue: NotRequired[bool] """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsAlipay(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Indicates if the tickets are digitally checked when entering the venue. + """ + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Address of the event. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsAlma(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + affiliate_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + ends_at: NotRequired[int] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + End timestamp of the event. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + event_company_name: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Company selling the ticket. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + event_name: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Name of the event. """ - target_date: NotRequired[str] + event_type: NotRequired[ + Literal[ + "concert", + "conference", + "digital_education", + "expo", + "festival", + "in_person_education", + "sport", + "tour", + ] + ] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Type of the event. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): - mandate_options: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions" + insurances: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance" + ] ] """ - Additional fields for Mandate creation + List of insurances for this event. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + starts_at: NotRequired[int] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Start timestamp of the event. """ - target_date: NotRequired[str] + venue_name: NotRequired[str] """ - Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + Name of the venue where the event takes place. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress( TypedDict, ): - reference_prefix: NotRequired["Literal['']|str"] + city: NotRequired[str] """ - Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + The city or town. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsBancontact(TypedDict): - preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]] + country: NotRequired[str] """ - Preferred language of the Bancontact authorization page that the customer is redirected to. + The country in ISO 3166-1 alpha-2 format. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" - ] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + region: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict): - code: NotRequired[str] + street_address: NotRequired[str] """ - The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. + Line 1 of the street address. """ - setup_future_usage: NotRequired["Literal['']|Literal['none']"] + street_address2: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Line 2 of the street address. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsBoleto(TypedDict): - expires_after_days: NotRequired[int] - """ - The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + Insurance currency. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + insurance_company_name: NotRequired[str] """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + Name of the company providing the insurance. """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - cvc_token: NotRequired[str] + Type of insurance. """ - A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. + price: NotRequired[int] """ - installments: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments" - ] + Price of insurance in cents. """ - Installment configuration for payments attempted on this PaymentIntent. - For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - mandate_options: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival" ] """ - Configuration options for setting up an eMandate for cards issued in India. + Arrival details. """ - moto: NotRequired[bool] + carrier_name: NotRequired[str] """ - When specified, this parameter indicates that a transaction will be marked - as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This - parameter can only be provided during confirmation. + Name of transportation company. """ - network: NotRequired[ - Literal[ - "amex", - "cartes_bancaires", - "diners", - "discover", - "eftpos_au", - "girocard", - "interac", - "jcb", - "link", - "mastercard", - "unionpay", - "unknown", - "visa", - ] - ] + currency: NotRequired[str] """ - Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + Currency. """ - request_decremental_authorization: NotRequired[ - Literal["if_available", "never"] + departure: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture" ] """ - Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent. + Departure details. """ - request_extended_authorization: NotRequired[ - Literal["if_available", "never"] + insurances: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance" + ] ] """ - Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent. + List of insurances for this reservation. """ - request_incremental_authorization: NotRequired[ - Literal["if_available", "never"] + passengers: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger" + ] ] """ - Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent. - """ - request_multicapture: NotRequired[Literal["if_available", "never"]] - """ - Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent. + List of passengers that this reservation applies to. """ - request_overcapture: NotRequired[Literal["if_available", "never"]] + price: NotRequired[int] """ - Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. + Price in cents. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - Request partial authorization on this PaymentIntent. + Ticket class. """ - request_three_d_secure: NotRequired[ - Literal["any", "automatic", "challenge"] + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress" ] """ - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - """ - require_cvc_recollection: NotRequired[bool] + Address of the arrival location. """ - When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + arrival_location: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" - ] + Identifier name or reference for the arrival location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - statement_descriptor_suffix_kana: NotRequired["Literal['']|str"] +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + The city or town. """ - statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"] + country: NotRequired[str] """ - Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + The country in ISO 3166-1 alpha-2 format. """ - statement_details: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails" - ] + postal_code: NotRequired[str] """ - Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements. + The postal code formatted according to country. """ - three_d_secure: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure" - ] + region: NotRequired[str] """ - If 3D Secure authentication was performed with a third-party provider, - the authentication details to use for this payment. + The state, county, province, or region formatted according to country. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments(TypedDict): - enabled: NotRequired[bool] + street_address: NotRequired[str] """ - Setting to true enables installments for this PaymentIntent. - This will cause the response to contain a list of available installment plans. - Setting to false will prevent any selected plan from applying to a charge. + Line 1 of the street address. """ - plan: NotRequired[ - "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan" - ] + street_address2: NotRequired[str] """ - The selected installment plan to use for this payment attempt. - This parameter can only be provided during confirmation. + Line 2 of the street address. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture( TypedDict, ): - count: NotRequired[int] + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress" + ] """ - For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. + Address of the departure location. """ - interval: NotRequired[Literal["month"]] + departs_at: NotRequired[int] """ - For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. - One of `month`. + Timestamp of departure. """ - type: Literal["bonus", "fixed_count", "revolving"] + departure_location: NotRequired[str] """ - Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. + Identifier name or reference for the origin location. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress( TypedDict, ): - amount: int + city: NotRequired[str] """ - Amount to be charged for future payments. + The city or town. """ - amount_type: Literal["fixed", "maximum"] + country: NotRequired[str] """ - One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + The country in ISO 3166-1 alpha-2 format. """ - description: NotRequired[str] + postal_code: NotRequired[str] """ - A description of the mandate or subscription that is meant to be displayed to the customer. + The postal code formatted according to country. """ - end_date: NotRequired[int] + region: NotRequired[str] """ - End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. + The state, county, province, or region formatted according to country. """ - interval: Literal["day", "month", "sporadic", "week", "year"] + street_address: NotRequired[str] """ - Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. + Line 1 of the street address. """ - interval_count: NotRequired[int] + street_address2: NotRequired[str] """ - The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`. + Line 2 of the street address. """ - reference: str + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] """ - Unique identifier for the mandate or subscription. + Insurance currency. """ - start_date: int + insurance_company_name: NotRequired[str] """ - Start date of the mandate or subscription. Start date should not be lesser than yesterday. + Name of the company providing the insurance. """ - supported_types: NotRequired[List[Literal["india"]]] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Specifies the type of mandates supported. Possible values are `india`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger( TypedDict, ): - address: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress" - ] + family_name: NotRequired[str] """ - Please pass in an address that is within your Stripe user account country + The family name of the person. """ - phone: NotRequired[str] + given_name: NotRequired[str] """ - Phone number (e.g., a toll-free number that customers can call) + The given name of the person. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance( TypedDict, ): - city: NotRequired[str] + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] """ - City, district, suburb, town, or village. + Name of the company providing the insurance. """ - country: NotRequired[str] + insurance_type: NotRequired[ + Literal["bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + Type of insurance """ - line1: NotRequired[str] + price: NotRequired[int] """ - Address line 1, such as the street, PO Box, or company name. + Price of insurance in cents. """ - line2: NotRequired[str] + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller( + TypedDict, +): + line_item_references: NotRequired[List[str]] """ - Address line 2, such as the apartment, suite, unit, or building. + The references to line items for purchases with multiple associated sub-sellers. """ - postal_code: NotRequired[str] + marketplace_seller_address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress" + ] """ - ZIP or postal code. + The address of the selling or delivering merchant. """ - state: NotRequired[str] + marketplace_seller_name: NotRequired[str] """ - State, county, province, or region. + The name of the marketplace seller. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict): - ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]] + marketplace_seller_reference: NotRequired[str] """ - The `transStatus` returned from the card Issuer's ACS in the ARes. + The unique identifier for the marketplace seller. """ - cryptogram: str + number_of_transactions: NotRequired[int] """ - The cryptogram, also known as the "authentication value" (AAV, CAVV or - AEVV). This value is 20 bytes, base64-encoded into a 28-character string. - (Most 3D Secure providers will return the base64-encoded version, which - is what you should specify here.) + The number of transactions the sub-seller completed in the last 12 months. """ - electronic_commerce_indicator: NotRequired[ - Literal["01", "02", "05", "06", "07"] + product_category: NotRequired[ + Literal[ + "accessories", + "appliances", + "apps_and_games", + "arts_crafts_and_sewing", + "automotive", + "baby", + "baby_clothing", + "bags_and_purses", + "beauty", + "books", + "cds_and_vinyl", + "cell_phones_and_accessories", + "collectibles_and_fine_arts", + "digital_music", + "electronics", + "grocery_and_gourmet_food", + "handmade", + "health_and_personal_care", + "home_and_kitchen", + "industrial_and_scientific", + "luggage_and_travel_gear", + "magazine_subscriptions", + "men_clothing", + "musical_instruments", + "office_products", + "patio_lawn_and_garden", + "pet_supplies", + "shoes", + "software", + "sports_and_outdoors", + "tools_and_home_improvement", + "toys_and_games", + "video_games", + "women_clothing", + ] ] """ - The Electronic Commerce Indicator (ECI) is returned by your 3D Secure - provider and indicates what degree of authentication was performed. + The category of the product. """ - exemption_indicator: NotRequired[Literal["low_risk", "none"]] + seller_last_login_at: NotRequired[int] """ - The exemption requested via 3DS and accepted by the issuer at authentication time. + The date when the seller's account with the marketplace was last logged in. """ - network_options: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions" + seller_rating: NotRequired[ + Literal["high", "low", "medium", "very_high", "very_low"] ] """ - Network specific 3DS fields. Network specific arguments require an - explicit card brand choice. The parameter `payment_method_options.card.network`` - must be populated accordingly + The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values. """ - requestor_challenge_indicator: NotRequired[str] + seller_registered_at: NotRequired[int] """ - The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the - AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99. + The date when the seller's account with the marketplace was created. """ - transaction_id: str + seller_updated_at: NotRequired[int] """ - For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server - Transaction ID (dsTransID). + The date when the seller's account with the marketplace was last updated. """ - version: Literal["1.0.2", "2.1.0", "2.2.0"] + shipping_references: NotRequired[List[str]] """ - The version of 3D Secure that was performed. + The references to shipping addresses for purchases with multiple associated sub-sellers. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions( - TypedDict, -): - cartes_bancaires: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires" - ] + volume_of_transactions: NotRequired[int] """ - Cartes Bancaires-specific 3DS fields. + The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress( TypedDict, ): - cb_avalgo: Literal["0", "1", "2", "3", "4", "A"] - """ - The cryptogram calculation algorithm used by the card Issuer's ACS - to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. - messageExtension: CB-AVALGO - """ - cb_exemption: NotRequired[str] + city: NotRequired[str] """ - The exemption indicator returned from Cartes Bancaires in the ARes. - message extension: CB-EXEMPTION; string (4 characters) - This is a 3 byte bitmap (low significant byte first and most significant - bit first) that has been Base64 encoded + The city or town. """ - cb_score: NotRequired[int] + country: NotRequired[str] """ - The risk score returned from Cartes Bancaires in the ARes. - message extension: CB-SCORE; numeric value 0-99 + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): - capture_method: NotRequired[Literal["manual", "manual_preferred"]] + postal_code: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + The postal code formatted according to country. """ - request_extended_authorization: NotRequired[bool] + region: NotRequired[str] """ - Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) + The state, county, province, or region formatted according to country. """ - request_incremental_authorization_support: NotRequired[bool] + street_address: NotRequired[str] """ - Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. + Line 1 of the street address. """ - routing: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting" - ] + street_address2: NotRequired[str] """ - Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + Line 2 of the street address. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail( TypedDict, ): - requested_priority: NotRequired[Literal["domestic", "international"]] - """ - Routing requested priority + affiliate_name: NotRequired[str] """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCashapp(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] - """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of associated or partner company for the service. """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']" + arrival: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. - """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCrypto(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] - """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Arrival details. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance(TypedDict): - bank_transfer: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer" - ] + carrier_name: NotRequired[str] """ - Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + Name of transportation company. """ - funding_type: NotRequired[Literal["bank_transfer"]] + currency: NotRequired[str] """ - The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + Currency. """ - setup_future_usage: NotRequired[Literal["none"]] + departure: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture" + ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Departure details. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer( - TypedDict, -): - eu_bank_transfer: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer" + insurances: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance" + ] ] """ - Configuration for the eu_bank_transfer funding type. + List of insurances for this reservation. """ - requested_address_types: NotRequired[ + passengers: NotRequired[ List[ - Literal[ - "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin" - ] + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger" ] ] """ - List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. - - Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + List of passengers that this reservation applies to. """ - type: Literal[ - "eu_bank_transfer", - "gb_bank_transfer", - "jp_bank_transfer", - "mx_bank_transfer", - "us_bank_transfer", + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] ] """ - The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. + Ticket class. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival( TypedDict, ): - country: str + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress" + ] """ - The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. + Address of the arrival location. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsEps(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + arrival_location: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Identifier name or reference for the arrival location. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsFpx(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The city or town. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsGiropay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + country: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The country in ISO 3166-1 alpha-2 format. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsGopay(TypedDict): - setup_future_usage: NotRequired[Literal["none", "off_session"]] + postal_code: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The postal code formatted according to country. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay(TypedDict): - setup_future_usage: NotRequired[Literal["none"]] + region: NotRequired[str] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer(TypedDict): - expires_after: NotRequired[int] +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress" + ] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now. + Address of the departure location. """ - expires_at: NotRequired[int] + departs_at: NotRequired[int] """ - The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now. + Timestamp of departure. """ - setup_future_usage: NotRequired[Literal["none"]] + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] + """ + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsIdeal(TypedDict): - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance( + TypedDict, +): + currency: NotRequired[str] + """ + Insurance currency. + """ + insurance_company_name: NotRequired[str] + """ + Name of the company providing the insurance. + """ + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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`. + Type of insurance. + """ + price: NotRequired[int] + """ + Price of insurance in cents. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent(TypedDict): - pass - - -class PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] + """ + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ - Controls when the funds are captured from the customer's account. - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail( + TypedDict, +): + affiliate_name: NotRequired[str] """ - setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session']" + Name of associated or partner company for the service. + """ + arrival: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival" ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. - - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - - 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). + Arrival details. """ - - -class PaymentIntentUpdateParamsPaymentMethodOptionsKlarna(TypedDict): - capture_method: NotRequired["Literal['']|Literal['manual']"] + carrier_name: NotRequired[str] """ - Controls when the funds are captured from the customer's account. - - If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. - - If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + Name of transportation company. """ - on_demand: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand" + currency: NotRequired[str] + """ + Currency. + """ + departure: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture" ] """ - On-demand details if setting up or charging an on-demand payment. + Departure details. """ - preferred_locale: NotRequired[ - Literal[ - "cs-CZ", - "da-DK", - "de-AT", - "de-CH", - "de-DE", - "el-GR", - "en-AT", - "en-AU", - "en-BE", - "en-CA", - "en-CH", - "en-CZ", - "en-DE", - "en-DK", - "en-ES", - "en-FI", - "en-FR", - "en-GB", - "en-GR", - "en-IE", - "en-IT", - "en-NL", - "en-NO", - "en-NZ", - "en-PL", - "en-PT", - "en-RO", - "en-SE", - "en-US", - "es-ES", - "es-US", - "fi-FI", - "fr-BE", - "fr-CA", - "fr-CH", - "fr-FR", - "it-CH", - "it-IT", - "nb-NO", - "nl-BE", - "nl-NL", - "pl-PL", - "pt-PT", - "ro-RO", - "sv-FI", - "sv-SE", + insurances: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance" ] ] """ - Preferred language of the Klarna authorization page that the customer is redirected to + List of insurances for this reservation. """ - setup_future_usage: NotRequired[ - Literal["none", "off_session", "on_session"] + passengers: NotRequired[ + List[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger" + ] ] """ - Indicates that you intend to make future payments with this PaymentIntent's payment method. + List of passengers that this reservation applies to. + """ + price: NotRequired[int] + """ + Price in cents. + """ + ticket_class: NotRequired[ + Literal["business", "economy", "first_class", "premium_economy"] + ] + """ + Ticket class. + """ - If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - 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. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress" + ] + """ + Address of the arrival location. + """ + arrival_location: NotRequired[str] + """ + Identifier name or reference for the arrival location. + """ - 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`. +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress( + TypedDict, +): + city: NotRequired[str] """ - subscriptions: NotRequired[ - "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription]" + The city or town. + """ + country: NotRequired[str] + """ + The country in ISO 3166-1 alpha-2 format. + """ + postal_code: NotRequired[str] + """ + The postal code formatted according to country. + """ + region: NotRequired[str] + """ + The state, county, province, or region formatted according to country. + """ + street_address: NotRequired[str] + """ + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. + """ + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture( + TypedDict, +): + address: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress" ] """ - Subscription details if setting up or charging a subscription. + Address of the departure location. + """ + departs_at: NotRequired[int] + """ + Timestamp of departure. + """ + departure_location: NotRequired[str] + """ + Identifier name or reference for the origin location. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict): - average_amount: NotRequired[int] +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress( + TypedDict, +): + city: NotRequired[str] """ - Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. + The city or town. """ - maximum_amount: NotRequired[int] + country: NotRequired[str] """ - The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The country in ISO 3166-1 alpha-2 format. """ - minimum_amount: NotRequired[int] + postal_code: NotRequired[str] """ - The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. + The postal code formatted according to country. """ - purchase_interval: NotRequired[Literal["day", "month", "week", "year"]] + region: NotRequired[str] """ - Interval at which the customer is making purchases + The state, county, province, or region formatted according to country. """ - purchase_interval_count: NotRequired[int] + street_address: NotRequired[str] """ - The number of `purchase_interval` between charges + Line 1 of the street address. + """ + street_address2: NotRequired[str] + """ + Line 2 of the street address. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + currency: NotRequired[str] """ - Unit of time between subscription charges. + Insurance currency. """ - interval_count: NotRequired[int] + insurance_company_name: NotRequired[str] """ - The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months. + Name of the company providing the insurance. """ - name: NotRequired[str] + insurance_type: NotRequired[ + Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"] + ] """ - Name for subscription. + Type of insurance. """ - next_billing: NotRequired[ - "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling" - ] + price: NotRequired[int] """ - Describes the upcoming charge for this subscription. + Price of insurance in cents. """ - reference: str + + +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger( + TypedDict, +): + family_name: NotRequired[str] """ - A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges. + The family name of the person. + """ + given_name: NotRequired[str] + """ + The given name of the person. """ -class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling( +class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher( TypedDict, ): - amount: int + affiliate_name: NotRequired[str] """ - The amount of the next charge for the subscription. + Name of associated or partner company for this voucher. """ - date: str + ends_at: NotRequired[int] """ - The date of the next charge for the subscription in YYYY-MM-DD format. + The voucher validity end time. + """ + starts_at: NotRequired[int] + """ + The voucher validity start time. + """ + voucher_company: NotRequired[str] + """ + The issuer or provider of this voucher. + """ + voucher_name: NotRequired[str] + """ + The name or reference to identify the voucher. + """ + voucher_type: NotRequired[ + Literal[ + "digital_product", + "discount", + "gift_card", + "physical_product", + "services", + ] + ] + """ + The type of this voucher. """ @@ -3851,7 +6004,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -3870,7 +6023,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -3892,7 +6045,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 6d0f80739..176861204 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -616,6 +616,7 @@ class PaymentMethodCreateParamsIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index 6894f0f8b..50d1608d0 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -6,10 +6,18 @@ class PaymentMethodListParams(RequestOptions): + allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] + """ + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. + """ customer: NotRequired[str] """ The ID of the customer whose PaymentMethods will be retrieved. """ + customer_account: NotRequired[str] + """ + The ID of the Account whose PaymentMethods will be retrieved. + """ ending_before: NotRequired[str] """ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index feaaf5e11..8273204f2 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -689,6 +689,7 @@ class SetupIntentConfirmParamsPaymentMethodDataIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -1465,7 +1466,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -1484,7 +1485,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -1506,7 +1507,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: NotRequired[str] """ diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index eac17bbd8..12f13cceb 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -820,6 +820,7 @@ class SetupIntentCreateParamsPaymentMethodDataIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -1592,7 +1593,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -1611,7 +1612,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -1633,7 +1634,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: NotRequired[str] """ diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 87975019e..d8044f92f 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -661,6 +661,7 @@ class SetupIntentModifyParamsPaymentMethodDataIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -1433,7 +1434,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -1452,7 +1453,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -1474,7 +1475,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: NotRequired[str] """ diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 71240804b..b494c1af7 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -660,6 +660,7 @@ class SetupIntentUpdateParamsPaymentMethodDataIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", @@ -1432,7 +1433,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions( """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -1451,7 +1452,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -1473,7 +1474,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions( ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: NotRequired[str] """ diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 5a31d105c..9af48e104 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -125,6 +125,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2025-08-27.basil", "2025-09-30.clover", "2025-10-29.clover", + "2025-11-17.clover", ] ] """ @@ -160,6 +161,7 @@ class WebhookEndpointCreateParams(RequestOptions): "billing_portal.session.created", "capability.updated", "capital.financing_offer.accepted", + "capital.financing_offer.accepted_other_offer", "capital.financing_offer.canceled", "capital.financing_offer.created", "capital.financing_offer.expired", @@ -227,6 +229,7 @@ class WebhookEndpointCreateParams(RequestOptions): "customer_cash_balance_transaction.created", "entitlements.active_entitlement_summary.updated", "file.created", + "financial_connections.account.account_numbers_updated", "financial_connections.account.created", "financial_connections.account.deactivated", "financial_connections.account.disconnected", @@ -235,6 +238,7 @@ class WebhookEndpointCreateParams(RequestOptions): "financial_connections.account.refreshed_inferred_balances", "financial_connections.account.refreshed_ownership", "financial_connections.account.refreshed_transactions", + "financial_connections.account.upcoming_account_number_expiry", "financial_connections.session.updated", "fx_quote.expired", "identity.verification_session.canceled", diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index 4ad000b7e..1d9885c35 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -37,6 +37,7 @@ class WebhookEndpointModifyParams(RequestOptions): "billing_portal.session.created", "capability.updated", "capital.financing_offer.accepted", + "capital.financing_offer.accepted_other_offer", "capital.financing_offer.canceled", "capital.financing_offer.created", "capital.financing_offer.expired", @@ -104,6 +105,7 @@ class WebhookEndpointModifyParams(RequestOptions): "customer_cash_balance_transaction.created", "entitlements.active_entitlement_summary.updated", "file.created", + "financial_connections.account.account_numbers_updated", "financial_connections.account.created", "financial_connections.account.deactivated", "financial_connections.account.disconnected", @@ -112,6 +114,7 @@ class WebhookEndpointModifyParams(RequestOptions): "financial_connections.account.refreshed_inferred_balances", "financial_connections.account.refreshed_ownership", "financial_connections.account.refreshed_transactions", + "financial_connections.account.upcoming_account_number_expiry", "financial_connections.session.updated", "fx_quote.expired", "identity.verification_session.canceled", diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index aba2f6d80..b1a10dd74 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -36,6 +36,7 @@ class WebhookEndpointUpdateParams(TypedDict): "billing_portal.session.created", "capability.updated", "capital.financing_offer.accepted", + "capital.financing_offer.accepted_other_offer", "capital.financing_offer.canceled", "capital.financing_offer.created", "capital.financing_offer.expired", @@ -103,6 +104,7 @@ class WebhookEndpointUpdateParams(TypedDict): "customer_cash_balance_transaction.created", "entitlements.active_entitlement_summary.updated", "file.created", + "financial_connections.account.account_numbers_updated", "financial_connections.account.created", "financial_connections.account.deactivated", "financial_connections.account.disconnected", @@ -111,6 +113,7 @@ class WebhookEndpointUpdateParams(TypedDict): "financial_connections.account.refreshed_inferred_balances", "financial_connections.account.refreshed_ownership", "financial_connections.account.refreshed_transactions", + "financial_connections.account.upcoming_account_number_expiry", "financial_connections.session.updated", "fx_quote.expired", "identity.verification_session.canceled", diff --git a/stripe/params/billing/analytics/_meter_usage_retrieve_params.py b/stripe/params/billing/analytics/_meter_usage_retrieve_params.py index 74aae66e9..cf6abd874 100644 --- a/stripe/params/billing/analytics/_meter_usage_retrieve_params.py +++ b/stripe/params/billing/analytics/_meter_usage_retrieve_params.py @@ -639,9 +639,9 @@ class MeterUsageRetrieveParams(RequestOptions): class MeterUsageRetrieveParamsMeter(TypedDict): - dimension_filters: NotRequired[Dict[str, str]] + dimension_filters: NotRequired[Dict[str, List[str]]] """ - Key-value pairs used to filter usage events by meter dimension values. If specified, usage will be filtered for matching usage events. + Key-value pairs used to filter usage events by meter dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events. """ dimension_group_by_keys: NotRequired[List[str]] """ @@ -651,7 +651,7 @@ class MeterUsageRetrieveParamsMeter(TypedDict): """ Meter id to query usage for. """ - tenant_filters: NotRequired[Dict[str, str]] + tenant_filters: NotRequired[Dict[str, List[str]]] """ - Key-value pairs used to filter usage events by high cardinality tenant dimension values. If specified, usage will be filtered for matching usage events. + Key-value pairs used to filter usage events by high cardinality tenant dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events. """ diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 2017e84a2..0d1b226e6 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -2217,7 +2217,7 @@ class SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions(TypedDict): """ amount_type: NotRequired[Literal["fixed", "maximum"]] """ - The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. """ end_date: NotRequired[str] """ @@ -2236,7 +2236,7 @@ class SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions(TypedDict): ] ] """ - The periodicity at which payments will be collected. + The periodicity at which payments will be collected. Defaults to `adhoc`. """ payments_per_period: NotRequired[int] """ @@ -2258,7 +2258,7 @@ class SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions(TypedDict): ] ] """ - The purpose for which payments are made. Defaults to retail. + The purpose for which payments are made. Has a default value based on your merchant category code. """ start_date: NotRequired[str] """ diff --git a/stripe/params/issuing/__init__.py b/stripe/params/issuing/__init__.py index a54258606..c1c613c49 100644 --- a/stripe/params/issuing/__init__.py +++ b/stripe/params/issuing/__init__.py @@ -36,6 +36,7 @@ AuthorizationCreateParamsNetworkData as AuthorizationCreateParamsNetworkData, AuthorizationCreateParamsRiskAssessment as AuthorizationCreateParamsRiskAssessment, AuthorizationCreateParamsRiskAssessmentCardTestingRisk as AuthorizationCreateParamsRiskAssessmentCardTestingRisk, + AuthorizationCreateParamsRiskAssessmentFraudRisk as AuthorizationCreateParamsRiskAssessmentFraudRisk, AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk as AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk, AuthorizationCreateParamsVerificationData as AuthorizationCreateParamsVerificationData, AuthorizationCreateParamsVerificationDataAuthenticationExemption as AuthorizationCreateParamsVerificationDataAuthenticationExemption, @@ -488,6 +489,10 @@ "stripe.params.issuing._authorization_create_params", False, ), + "AuthorizationCreateParamsRiskAssessmentFraudRisk": ( + "stripe.params.issuing._authorization_create_params", + False, + ), "AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk": ( "stripe.params.issuing._authorization_create_params", False, diff --git a/stripe/params/issuing/_authorization_create_params.py b/stripe/params/issuing/_authorization_create_params.py index c5831f78c..606a10552 100644 --- a/stripe/params/issuing/_authorization_create_params.py +++ b/stripe/params/issuing/_authorization_create_params.py @@ -577,6 +577,10 @@ class AuthorizationCreateParamsRiskAssessment(TypedDict): """ Stripe's assessment of this authorization's likelihood of being card testing activity. """ + fraud_risk: NotRequired["AuthorizationCreateParamsRiskAssessmentFraudRisk"] + """ + Stripe's assessment of this authorization's likelihood to be fraudulent. + """ merchant_dispute_risk: NotRequired[ "AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk" ] @@ -602,6 +606,19 @@ class AuthorizationCreateParamsRiskAssessmentCardTestingRisk(TypedDict): """ +class AuthorizationCreateParamsRiskAssessmentFraudRisk(TypedDict): + level: Literal[ + "elevated", "highest", "low", "normal", "not_assessed", "unknown" + ] + """ + Stripe's assessment of the likelihood of fraud on an authorization. + """ + score: NotRequired[float] + """ + Stripe's numerical model score assessing the likelihood of fraudulent activity. A higher score means a higher likelihood of fraudulent activity, and anything above 25 is considered high risk. + """ + + class AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk(TypedDict): dispute_rate: NotRequired[int] """ diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py index cca7d5c29..01e660e14 100644 --- a/stripe/params/tax/_registration_create_params.py +++ b/stripe/params/tax/_registration_create_params.py @@ -1784,7 +1784,7 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): 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: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park). + A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `02154` (Arlington Heights), `06613` (Bloomington), `10906` (Campton Hills), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park). """ diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 8686a1915..e962360bb 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -655,6 +655,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict): "asn_bank", "bunq", "buut", + "finom", "handelsbanken", "ing", "knab", diff --git a/stripe/params/test_helpers/issuing/__init__.py b/stripe/params/test_helpers/issuing/__init__.py index 2fb6b3522..2c5e6d2d3 100644 --- a/stripe/params/test_helpers/issuing/__init__.py +++ b/stripe/params/test_helpers/issuing/__init__.py @@ -33,6 +33,7 @@ AuthorizationCreateParamsNetworkData as AuthorizationCreateParamsNetworkData, AuthorizationCreateParamsRiskAssessment as AuthorizationCreateParamsRiskAssessment, AuthorizationCreateParamsRiskAssessmentCardTestingRisk as AuthorizationCreateParamsRiskAssessmentCardTestingRisk, + AuthorizationCreateParamsRiskAssessmentFraudRisk as AuthorizationCreateParamsRiskAssessmentFraudRisk, AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk as AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk, AuthorizationCreateParamsVerificationData as AuthorizationCreateParamsVerificationData, AuthorizationCreateParamsVerificationDataAuthenticationExemption as AuthorizationCreateParamsVerificationDataAuthenticationExemption, @@ -227,6 +228,10 @@ "stripe.params.test_helpers.issuing._authorization_create_params", False, ), + "AuthorizationCreateParamsRiskAssessmentFraudRisk": ( + "stripe.params.test_helpers.issuing._authorization_create_params", + False, + ), "AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk": ( "stripe.params.test_helpers.issuing._authorization_create_params", False, diff --git a/stripe/params/test_helpers/issuing/_authorization_create_params.py b/stripe/params/test_helpers/issuing/_authorization_create_params.py index 42e6321a2..af7c512c9 100644 --- a/stripe/params/test_helpers/issuing/_authorization_create_params.py +++ b/stripe/params/test_helpers/issuing/_authorization_create_params.py @@ -576,6 +576,10 @@ class AuthorizationCreateParamsRiskAssessment(TypedDict): """ Stripe's assessment of this authorization's likelihood of being card testing activity. """ + fraud_risk: NotRequired["AuthorizationCreateParamsRiskAssessmentFraudRisk"] + """ + Stripe's assessment of this authorization's likelihood to be fraudulent. + """ merchant_dispute_risk: NotRequired[ "AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk" ] @@ -601,6 +605,19 @@ class AuthorizationCreateParamsRiskAssessmentCardTestingRisk(TypedDict): """ +class AuthorizationCreateParamsRiskAssessmentFraudRisk(TypedDict): + level: Literal[ + "elevated", "highest", "low", "normal", "not_assessed", "unknown" + ] + """ + Stripe's assessment of the likelihood of fraud on an authorization. + """ + score: NotRequired[float] + """ + Stripe's numerical model score assessing the likelihood of fraudulent activity. A higher score means a higher likelihood of fraudulent activity, and anything above 25 is considered high risk. + """ + + class AuthorizationCreateParamsRiskAssessmentMerchantDisputeRisk(TypedDict): dispute_rate: NotRequired[int] """ diff --git a/stripe/params/v2/__init__.py b/stripe/params/v2/__init__.py index 56e087de2..e7d4a7938 100644 --- a/stripe/params/v2/__init__.py +++ b/stripe/params/v2/__init__.py @@ -8,7 +8,6 @@ billing as billing, core as core, money_management as money_management, - payments as payments, test_helpers as test_helpers, ) @@ -17,7 +16,6 @@ "billing": ("stripe.params.v2.billing", True), "core": ("stripe.params.v2.core", True), "money_management": ("stripe.params.v2.money_management", True), - "payments": ("stripe.params.v2.payments", True), "test_helpers": ("stripe.params.v2.test_helpers", True), } if not TYPE_CHECKING: diff --git a/stripe/params/v2/billing/_collection_setting_create_params.py b/stripe/params/v2/billing/_collection_setting_create_params.py index ed39245df..f7d19546a 100644 --- a/stripe/params/v2/billing/_collection_setting_create_params.py +++ b/stripe/params/v2/billing/_collection_setting_create_params.py @@ -144,9 +144,9 @@ class CollectionSettingCreateParamsPaymentMethodOptionsCard(TypedDict): ] """ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ diff --git a/stripe/params/v2/billing/_collection_setting_update_params.py b/stripe/params/v2/billing/_collection_setting_update_params.py index 5faa7ad6e..5478565c5 100644 --- a/stripe/params/v2/billing/_collection_setting_update_params.py +++ b/stripe/params/v2/billing/_collection_setting_update_params.py @@ -150,9 +150,9 @@ class CollectionSettingUpdateParamsPaymentMethodOptionsCard(TypedDict): ] """ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index 3a09bfe56..380fe6d01 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -71,6 +71,12 @@ AccountCreateParamsConfigurationMerchantCapabilitiesZipPayments as AccountCreateParamsConfigurationMerchantCapabilitiesZipPayments, AccountCreateParamsConfigurationMerchantCardPayments as AccountCreateParamsConfigurationMerchantCardPayments, AccountCreateParamsConfigurationMerchantCardPaymentsDeclineOn as AccountCreateParamsConfigurationMerchantCardPaymentsDeclineOn, + AccountCreateParamsConfigurationMerchantKonbiniPayments as AccountCreateParamsConfigurationMerchantKonbiniPayments, + AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport as AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport, + AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours as AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours, + AccountCreateParamsConfigurationMerchantScriptStatementDescriptor as AccountCreateParamsConfigurationMerchantScriptStatementDescriptor, + AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana as AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana, + AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji as AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji, AccountCreateParamsConfigurationMerchantStatementDescriptor as AccountCreateParamsConfigurationMerchantStatementDescriptor, AccountCreateParamsConfigurationMerchantSupport as AccountCreateParamsConfigurationMerchantSupport, AccountCreateParamsConfigurationMerchantSupportAddress as AccountCreateParamsConfigurationMerchantSupportAddress, @@ -87,6 +93,7 @@ AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses as AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses, AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts, AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies, + AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur, AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp, AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd, AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers as AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers, @@ -169,6 +176,65 @@ from stripe.params.v2.core._account_retrieve_params import ( AccountRetrieveParams as AccountRetrieveParams, ) + from stripe.params.v2.core._account_token_create_params import ( + AccountTokenCreateParams as AccountTokenCreateParams, + AccountTokenCreateParamsIdentity as AccountTokenCreateParamsIdentity, + AccountTokenCreateParamsIdentityAttestations as AccountTokenCreateParamsIdentityAttestations, + AccountTokenCreateParamsIdentityAttestationsDirectorshipDeclaration as AccountTokenCreateParamsIdentityAttestationsDirectorshipDeclaration, + AccountTokenCreateParamsIdentityAttestationsOwnershipDeclaration as AccountTokenCreateParamsIdentityAttestationsOwnershipDeclaration, + AccountTokenCreateParamsIdentityAttestationsPersonsProvided as AccountTokenCreateParamsIdentityAttestationsPersonsProvided, + AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration as AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration, + AccountTokenCreateParamsIdentityAttestationsTermsOfService as AccountTokenCreateParamsIdentityAttestationsTermsOfService, + AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount, + AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer, + AccountTokenCreateParamsIdentityBusinessDetails as AccountTokenCreateParamsIdentityBusinessDetails, + AccountTokenCreateParamsIdentityBusinessDetailsAddress as AccountTokenCreateParamsIdentityBusinessDetailsAddress, + AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue, + AccountTokenCreateParamsIdentityBusinessDetailsDocuments as AccountTokenCreateParamsIdentityBusinessDetailsDocuments, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecree as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecree, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVerification, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerification, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration, + AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership as AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership, + AccountTokenCreateParamsIdentityBusinessDetailsIdNumber as AccountTokenCreateParamsIdentityBusinessDetailsIdNumber, + AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue as AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue, + AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses, + AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana, + AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKanji as AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKanji, + AccountTokenCreateParamsIdentityBusinessDetailsScriptNames as AccountTokenCreateParamsIdentityBusinessDetailsScriptNames, + AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKana as AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKana, + AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKanji as AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKanji, + AccountTokenCreateParamsIdentityIndividual as AccountTokenCreateParamsIdentityIndividual, + AccountTokenCreateParamsIdentityIndividualAdditionalAddress as AccountTokenCreateParamsIdentityIndividualAdditionalAddress, + AccountTokenCreateParamsIdentityIndividualAdditionalName as AccountTokenCreateParamsIdentityIndividualAdditionalName, + AccountTokenCreateParamsIdentityIndividualAddress as AccountTokenCreateParamsIdentityIndividualAddress, + AccountTokenCreateParamsIdentityIndividualDateOfBirth as AccountTokenCreateParamsIdentityIndividualDateOfBirth, + AccountTokenCreateParamsIdentityIndividualDocuments as AccountTokenCreateParamsIdentityIndividualDocuments, + AccountTokenCreateParamsIdentityIndividualDocumentsCompanyAuthorization as AccountTokenCreateParamsIdentityIndividualDocumentsCompanyAuthorization, + AccountTokenCreateParamsIdentityIndividualDocumentsPassport as AccountTokenCreateParamsIdentityIndividualDocumentsPassport, + AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerification as AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerification, + AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerificationFrontBack as AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerificationFrontBack, + AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerification as AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerification, + AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerificationFrontBack as AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerificationFrontBack, + AccountTokenCreateParamsIdentityIndividualDocumentsVisa as AccountTokenCreateParamsIdentityIndividualDocumentsVisa, + AccountTokenCreateParamsIdentityIndividualIdNumber as AccountTokenCreateParamsIdentityIndividualIdNumber, + AccountTokenCreateParamsIdentityIndividualRelationship as AccountTokenCreateParamsIdentityIndividualRelationship, + AccountTokenCreateParamsIdentityIndividualScriptAddresses as AccountTokenCreateParamsIdentityIndividualScriptAddresses, + AccountTokenCreateParamsIdentityIndividualScriptAddressesKana as AccountTokenCreateParamsIdentityIndividualScriptAddressesKana, + AccountTokenCreateParamsIdentityIndividualScriptAddressesKanji as AccountTokenCreateParamsIdentityIndividualScriptAddressesKanji, + AccountTokenCreateParamsIdentityIndividualScriptNames as AccountTokenCreateParamsIdentityIndividualScriptNames, + AccountTokenCreateParamsIdentityIndividualScriptNamesKana as AccountTokenCreateParamsIdentityIndividualScriptNamesKana, + AccountTokenCreateParamsIdentityIndividualScriptNamesKanji as AccountTokenCreateParamsIdentityIndividualScriptNamesKanji, + ) + from stripe.params.v2.core._account_token_retrieve_params import ( + AccountTokenRetrieveParams as AccountTokenRetrieveParams, + ) from stripe.params.v2.core._account_update_params import ( AccountUpdateParams as AccountUpdateParams, AccountUpdateParamsConfiguration as AccountUpdateParamsConfiguration, @@ -232,6 +298,12 @@ AccountUpdateParamsConfigurationMerchantCapabilitiesZipPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesZipPayments, AccountUpdateParamsConfigurationMerchantCardPayments as AccountUpdateParamsConfigurationMerchantCardPayments, AccountUpdateParamsConfigurationMerchantCardPaymentsDeclineOn as AccountUpdateParamsConfigurationMerchantCardPaymentsDeclineOn, + AccountUpdateParamsConfigurationMerchantKonbiniPayments as AccountUpdateParamsConfigurationMerchantKonbiniPayments, + AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport as AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport, + AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours as AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours, + AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor as AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor, + AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana as AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana, + AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji as AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji, AccountUpdateParamsConfigurationMerchantStatementDescriptor as AccountUpdateParamsConfigurationMerchantStatementDescriptor, AccountUpdateParamsConfigurationMerchantSupport as AccountUpdateParamsConfigurationMerchantSupport, AccountUpdateParamsConfigurationMerchantSupportAddress as AccountUpdateParamsConfigurationMerchantSupportAddress, @@ -248,6 +320,7 @@ AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses as AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses, AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts, AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies, + AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur, AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp, AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd, AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers as AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers, @@ -346,6 +419,7 @@ ) from stripe.params.v2.core._event_list_params import ( EventListParams as EventListParams, + EventListParamsCreated as EventListParamsCreated, ) from stripe.params.v2.core._event_retrieve_params import ( EventRetrieveParams as EventRetrieveParams, @@ -607,6 +681,30 @@ "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsConfigurationMerchantKonbiniPayments": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMerchantScriptStatementDescriptor": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana": ( + "stripe.params.v2.core._account_create_params", + False, + ), + "AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsConfigurationMerchantStatementDescriptor": ( "stripe.params.v2.core._account_create_params", False, @@ -671,6 +769,10 @@ "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp": ( "stripe.params.v2.core._account_create_params", False, @@ -968,6 +1070,226 @@ "stripe.params.v2.core._account_retrieve_params", False, ), + "AccountTokenCreateParams": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentity": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestations": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsDirectorshipDeclaration": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsOwnershipDeclaration": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsPersonsProvided": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsTermsOfService": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetails": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsAddress": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocuments": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecree": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVerification": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerification": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsIdNumber": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKanji": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsScriptNames": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKana": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKanji": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividual": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualAdditionalAddress": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualAdditionalName": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualAddress": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDateOfBirth": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocuments": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsCompanyAuthorization": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsPassport": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerification": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerificationFrontBack": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerification": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerificationFrontBack": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualDocumentsVisa": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualIdNumber": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualRelationship": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualScriptAddresses": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualScriptAddressesKana": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualScriptAddressesKanji": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualScriptNames": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualScriptNamesKana": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenCreateParamsIdentityIndividualScriptNamesKanji": ( + "stripe.params.v2.core._account_token_create_params", + False, + ), + "AccountTokenRetrieveParams": ( + "stripe.params.v2.core._account_token_retrieve_params", + False, + ), "AccountUpdateParams": ( "stripe.params.v2.core._account_update_params", False, @@ -1216,6 +1538,30 @@ "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsConfigurationMerchantKonbiniPayments": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana": ( + "stripe.params.v2.core._account_update_params", + False, + ), + "AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsConfigurationMerchantStatementDescriptor": ( "stripe.params.v2.core._account_update_params", False, @@ -1280,6 +1626,10 @@ "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp": ( "stripe.params.v2.core._account_update_params", False, @@ -1597,6 +1947,10 @@ False, ), "EventListParams": ("stripe.params.v2.core._event_list_params", False), + "EventListParamsCreated": ( + "stripe.params.v2.core._event_list_params", + False, + ), "EventRetrieveParams": ( "stripe.params.v2.core._event_retrieve_params", False, diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index 810e226b9..eb2149fcb 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -6,6 +6,10 @@ class AccountCreateParams(TypedDict): + account_token: NotRequired[str] + """ + The account token generated by the account token api. + """ configuration: NotRequired["AccountCreateParamsConfiguration"] """ An Account Configuration which allows the Account to take on a key persona across Stripe products. @@ -38,6 +42,7 @@ class AccountCreateParams(TypedDict): "configuration.recipient", "configuration.storer", "defaults", + "future_requirements", "identity", "requirements", ] @@ -116,7 +121,7 @@ class AccountCreateParamsConfigurationCustomerAutomaticIndirectTax(TypedDict): ] ] """ - The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. """ @@ -191,7 +196,7 @@ class AccountCreateParamsConfigurationCustomerCapabilities(TypedDict): "AccountCreateParamsConfigurationCustomerCapabilitiesAutomaticIndirectTax" ] """ - Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field. + Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. """ @@ -271,10 +276,22 @@ class AccountCreateParamsConfigurationMerchant(TypedDict): """ Card payments settings. """ + konbini_payments: NotRequired[ + "AccountCreateParamsConfigurationMerchantKonbiniPayments" + ] + """ + Settings specific to Konbini payments on the account. + """ mcc: NotRequired[str] """ The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide. """ + script_statement_descriptor: NotRequired[ + "AccountCreateParamsConfigurationMerchantScriptStatementDescriptor" + ] + """ + Settings for the default text that appears on statements for language variations. + """ statement_descriptor: NotRequired[ "AccountCreateParamsConfigurationMerchantStatementDescriptor" ] @@ -996,6 +1013,90 @@ class AccountCreateParamsConfigurationMerchantCardPaymentsDeclineOn(TypedDict): """ +class AccountCreateParamsConfigurationMerchantKonbiniPayments(TypedDict): + support: NotRequired[ + "AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport" + ] + """ + Support for Konbini payments. + """ + + +class AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupport( + TypedDict +): + email: NotRequired[str] + """ + Support email address for Konbini payments. + """ + hours: NotRequired[ + "AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours" + ] + """ + Support hours for Konbini payments. + """ + phone: NotRequired[str] + """ + Support phone number for Konbini payments. + """ + + +class AccountCreateParamsConfigurationMerchantKonbiniPaymentsSupportHours( + TypedDict, +): + end_time: NotRequired[str] + """ + Support hours end time (JST time of day) for in `HH:MM` format. + """ + start_time: NotRequired[str] + """ + Support hours start time (JST time of day) for in `HH:MM` format. + """ + + +class AccountCreateParamsConfigurationMerchantScriptStatementDescriptor( + TypedDict, +): + kana: NotRequired[ + "AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana" + ] + """ + The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + """ + kanji: NotRequired[ + "AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji" + ] + """ + The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + """ + + +class AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKana( + TypedDict, +): + descriptor: NotRequired[str] + """ + The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + prefix: NotRequired[str] + """ + Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + + +class AccountCreateParamsConfigurationMerchantScriptStatementDescriptorKanji( + TypedDict, +): + descriptor: NotRequired[str] + """ + The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + prefix: NotRequired[str] + """ + Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + + class AccountCreateParamsConfigurationMerchantStatementDescriptor(TypedDict): descriptor: NotRequired[str] """ @@ -1216,6 +1317,12 @@ class AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAc class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies( TypedDict, ): + eur: NotRequired[ + "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur" + ] + """ + Can hold storage-type funds on Stripe in EUR. + """ gbp: NotRequired[ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp" ] @@ -1230,6 +1337,15 @@ class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies( """ +class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp( TypedDict, ): @@ -2013,6 +2129,7 @@ class AccountCreateParamsIdentityBusinessDetailsIdNumber(TypedDict): "ae_crn", "ae_vat", "ao_nif", + "ar_cuit", "at_fn", "au_abn", "au_acn", @@ -2516,6 +2633,7 @@ class AccountCreateParamsIdentityIndividualIdNumber(TypedDict): type: Literal[ "ae_eid", "ao_nif", + "ar_dni", "az_tin", "bd_brc", "bd_etin", diff --git a/stripe/params/v2/core/_account_retrieve_params.py b/stripe/params/v2/core/_account_retrieve_params.py index ccbfd208b..69080103a 100644 --- a/stripe/params/v2/core/_account_retrieve_params.py +++ b/stripe/params/v2/core/_account_retrieve_params.py @@ -13,6 +13,7 @@ class AccountRetrieveParams(TypedDict): "configuration.recipient", "configuration.storer", "defaults", + "future_requirements", "identity", "requirements", ] diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py new file mode 100644 index 000000000..586837dca --- /dev/null +++ b/stripe/params/v2/core/_account_token_create_params.py @@ -0,0 +1,1203 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe.v2._amount import AmountParam +from typing import Dict, List, Optional +from typing_extensions import Literal, NotRequired, TypedDict + + +class AccountTokenCreateParams(TypedDict): + contact_email: NotRequired[str] + """ + The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + """ + display_name: NotRequired[str] + """ + A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. + """ + identity: "AccountTokenCreateParamsIdentity" + """ + Information about the company, individual, and business represented by the Account. + """ + + +class AccountTokenCreateParamsIdentity(TypedDict): + attestations: NotRequired["AccountTokenCreateParamsIdentityAttestations"] + """ + Attestations from the identity's key people, e.g. owners, executives, directors, representatives. + """ + business_details: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetails" + ] + """ + Information about the company or business. + """ + entity_type: NotRequired[ + Literal["company", "government_entity", "individual", "non_profit"] + ] + """ + The entity type. + """ + individual: NotRequired["AccountTokenCreateParamsIdentityIndividual"] + """ + Information about the person represented by the account. + """ + + +class AccountTokenCreateParamsIdentityAttestations(TypedDict): + directorship_declaration: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsDirectorshipDeclaration" + ] + """ + This hash is used to attest that the directors information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe. + """ + ownership_declaration: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsOwnershipDeclaration" + ] + """ + This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe. + """ + persons_provided: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsPersonsProvided" + ] + """ + Attestation that all Persons with a specific Relationship value have been provided. + """ + representative_declaration: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration" + ] + """ + This hash is used to attest that the representative is authorized to act as the representative of their legal entity; IP, date, and User Agent are expanded by Stripe. + """ + terms_of_service: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsTermsOfService" + ] + """ + Attestations of accepted terms of service agreements. + """ + + +class AccountTokenCreateParamsIdentityAttestationsDirectorshipDeclaration( + TypedDict, +): + attested: NotRequired[bool] + """ + A boolean indicating if the directors information has been attested. + """ + + +class AccountTokenCreateParamsIdentityAttestationsOwnershipDeclaration( + TypedDict, +): + attested: NotRequired[bool] + """ + A boolean indicating if the beneficial owner information has been attested. + """ + + +class AccountTokenCreateParamsIdentityAttestationsPersonsProvided(TypedDict): + directors: NotRequired[bool] + """ + Whether the company's directors have been provided. Set this Boolean to true after creating all the company's directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + """ + executives: NotRequired[bool] + """ + Whether the company's executives have been provided. Set this Boolean to true after creating all the company's executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + """ + owners: NotRequired[bool] + """ + Whether the company's owners have been provided. Set this Boolean to true after creating all the company's owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + """ + ownership_exemption_reason: NotRequired[ + Literal[ + "qualified_entity_exceeds_ownership_threshold", + "qualifies_as_financial_institution", + ] + ] + """ + Reason for why the company is exempt from providing ownership information. + """ + + +class AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration( + TypedDict, +): + attested: NotRequired[bool] + """ + A boolean indicating if the representative is authorized to act as the representative of their legal entity. + """ + + +class AccountTokenCreateParamsIdentityAttestationsTermsOfService(TypedDict): + account: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount" + ] + """ + Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + """ + storer: NotRequired[ + "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer" + ] + """ + Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe. + """ + + +class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount( + TypedDict, +): + shown_and_accepted: NotRequired[bool] + """ + The boolean value indicating if the terms of service have been accepted. + """ + + +class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer( + TypedDict, +): + shown_and_accepted: NotRequired[bool] + """ + The boolean value indicating if the terms of service have been accepted. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetails(TypedDict): + address: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsAddress" + ] + """ + The business registration address of the business entity. + """ + annual_revenue: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue" + ] + """ + The business gross annual revenue for its preceding fiscal year. + """ + documents: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocuments" + ] + """ + A document verifying the business. + """ + estimated_worker_count: NotRequired[int] + """ + An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. + """ + id_numbers: NotRequired[ + List["AccountTokenCreateParamsIdentityBusinessDetailsIdNumber"] + ] + """ + The ID numbers of a business entity. + """ + monthly_estimated_revenue: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue" + ] + """ + An estimate of the monthly revenue of the business. + """ + phone: NotRequired[str] + """ + The phone number of the Business Entity. + """ + registered_name: NotRequired[str] + """ + The business legal name. + """ + script_addresses: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses" + ] + """ + The business registration address of the business entity in non latin script. + """ + script_names: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsScriptNames" + ] + """ + The business legal name in non latin script. + """ + structure: NotRequired[ + Literal[ + "cooperative", + "free_zone_establishment", + "free_zone_llc", + "governmental_unit", + "government_instrumentality", + "incorporated_association", + "incorporated_non_profit", + "incorporated_partnership", + "limited_liability_partnership", + "llc", + "multi_member_llc", + "private_company", + "private_corporation", + "private_partnership", + "public_company", + "public_corporation", + "public_listed_corporation", + "public_partnership", + "registered_charity", + "single_member_llc", + "sole_establishment", + "sole_proprietorship", + "tax_exempt_government_instrumentality", + "trust", + "unincorporated_association", + "unincorporated_non_profit", + "unincorporated_partnership", + ] + ] + """ + The category identifying the legal structure of the business. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsAddress(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue(TypedDict): + amount: NotRequired[AmountParam] + """ + A non-negative integer representing the amount in the smallest currency unit. + """ + fiscal_year_end: NotRequired[str] + """ + The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocuments(TypedDict): + bank_account_ownership_verification: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification" + ] + """ + One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check. + """ + company_license: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense" + ] + """ + One or more documents that demonstrate proof of a company's license to operate. + """ + company_memorandum_of_association: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation" + ] + """ + One or more documents showing the company's Memorandum of Association. + """ + company_ministerial_decree: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecree" + ] + """ + Certain countries only: One or more documents showing the ministerial decree legalizing the company's establishment. + """ + company_registration_verification: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVerification" + ] + """ + One or more documents that demonstrate proof of a company's registration with the appropriate local authorities. + """ + company_tax_id_verification: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerification" + ] + """ + One or more documents that demonstrate proof of a company's tax ID. + """ + primary_verification: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification" + ] + """ + A document verifying the business. + """ + proof_of_address: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress" + ] + """ + One or more documents that demonstrate proof of address. + """ + proof_of_registration: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration" + ] + """ + One or more documents showing the company's proof of registration with the national business registry. + """ + proof_of_ultimate_beneficial_ownership: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership" + ] + """ + One or more documents that demonstrate proof of ultimate beneficial ownership. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsBankAccountOwnershipVerification( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyLicense( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMemorandumOfAssociation( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyMinisterialDecree( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyRegistrationVerification( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsCompanyTaxIdVerification( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerification( + TypedDict, +): + front_back: "AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack" + """ + The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + """ + type: Literal["front_back"] + """ + The format of the verification document. Currently supports `front_back` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsPrimaryVerificationFrontBack( + TypedDict, +): + back: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + front: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfAddress( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfRegistration( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnership( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsIdNumber(TypedDict): + registrar: NotRequired[str] + """ + The registrar of the ID number (Only valid for DE ID number types). + """ + type: Literal[ + "ae_crn", + "ae_vat", + "ao_nif", + "ar_cuit", + "at_fn", + "au_abn", + "au_acn", + "au_in", + "az_tin", + "bd_etin", + "be_cbe", + "bg_uic", + "br_cnpj", + "ca_cn", + "ca_crarr", + "ca_neq", + "ca_rid", + "ch_chid", + "ch_uid", + "cr_cpj", + "cr_nite", + "cy_tic", + "cz_ico", + "de_hrn", + "de_vat", + "dk_cvr", + "do_rcn", + "ee_rk", + "es_cif", + "fi_yt", + "fr_siren", + "fr_vat", + "gb_crn", + "gi_crn", + "gr_gemi", + "gt_nit", + "hk_br", + "hk_cr", + "hk_mbs", + "hu_cjs", + "ie_crn", + "it_rea", + "it_vat", + "jp_cn", + "kz_bin", + "li_uid", + "lt_ccrn", + "lu_rcs", + "lv_urn", + "mt_crn", + "mx_rfc", + "my_brn", + "my_coid", + "my_sst", + "mz_nuit", + "nl_kvk", + "no_orgnr", + "nz_bn", + "pe_ruc", + "pk_ntn", + "pl_regon", + "pt_vat", + "ro_cui", + "sa_crn", + "sa_tin", + "se_orgnr", + "sg_uen", + "si_msp", + "sk_ico", + "th_crn", + "th_prn", + "th_tin", + "us_ein", + ] + """ + Open Enum. The ID number type of a business entity. + """ + value: str + """ + The value of the ID number. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsMonthlyEstimatedRevenue( + TypedDict, +): + amount: NotRequired[AmountParam] + """ + A non-negative integer representing the amount in the smallest currency unit. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsScriptAddresses( + TypedDict +): + kana: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana" + ] + """ + Kana Address. + """ + kanji: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKanji" + ] + """ + Kanji Address. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKana( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsScriptAddressesKanji( + TypedDict, +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsScriptNames(TypedDict): + kana: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKana" + ] + """ + Kana name. + """ + kanji: NotRequired[ + "AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKanji" + ] + """ + Kanji name. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKana( + TypedDict +): + registered_name: NotRequired[str] + """ + Registered name of the business. + """ + + +class AccountTokenCreateParamsIdentityBusinessDetailsScriptNamesKanji( + TypedDict, +): + registered_name: NotRequired[str] + """ + Registered name of the business. + """ + + +class AccountTokenCreateParamsIdentityIndividual(TypedDict): + additional_addresses: NotRequired[ + List["AccountTokenCreateParamsIdentityIndividualAdditionalAddress"] + ] + """ + Additional addresses associated with the individual. + """ + additional_names: NotRequired[ + List["AccountTokenCreateParamsIdentityIndividualAdditionalName"] + ] + """ + Additional names (e.g. aliases) associated with the individual. + """ + address: NotRequired["AccountTokenCreateParamsIdentityIndividualAddress"] + """ + The individual's residential address. + """ + date_of_birth: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDateOfBirth" + ] + """ + The individual's date of birth. + """ + documents: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDocuments" + ] + """ + Documents that may be submitted to satisfy various informational requests. + """ + email: NotRequired[str] + """ + The individual's email address. + """ + given_name: NotRequired[str] + """ + The individual's first name. + """ + id_numbers: NotRequired[ + List["AccountTokenCreateParamsIdentityIndividualIdNumber"] + ] + """ + The identification numbers (e.g., SSN) associated with the individual. + """ + legal_gender: NotRequired[Literal["female", "male"]] + """ + The individual's gender (International regulations require either "male" or "female"). + """ + metadata: NotRequired[Dict[str, Optional[str]]] + """ + Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + nationalities: NotRequired[List[str]] + """ + The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + phone: NotRequired[str] + """ + The individual's phone number. + """ + political_exposure: NotRequired[Literal["existing", "none"]] + """ + The individual's political exposure. + """ + relationship: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualRelationship" + ] + """ + The relationship that this individual has with the account's identity. + """ + script_addresses: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualScriptAddresses" + ] + """ + The script addresses (e.g., non-Latin characters) associated with the individual. + """ + script_names: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualScriptNames" + ] + """ + The individuals primary name in non latin script. + """ + surname: NotRequired[str] + """ + The individual's last name. + """ + + +class AccountTokenCreateParamsIdentityIndividualAdditionalAddress(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + purpose: Literal["registered"] + """ + Purpose of additional address. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityIndividualAdditionalName(TypedDict): + full_name: NotRequired[str] + """ + The person's full name. + """ + given_name: NotRequired[str] + """ + The person's first or given name. + """ + purpose: Literal["alias", "maiden"] + """ + The purpose or type of the additional name. + """ + surname: NotRequired[str] + """ + The person's last or family name. + """ + + +class AccountTokenCreateParamsIdentityIndividualAddress(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityIndividualDateOfBirth(TypedDict): + day: int + """ + The day of the birth. + """ + month: int + """ + The month of birth. + """ + year: int + """ + The year of birth. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocuments(TypedDict): + company_authorization: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDocumentsCompanyAuthorization" + ] + """ + One or more documents that demonstrate proof that this person is authorized to represent the company. + """ + passport: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDocumentsPassport" + ] + """ + One or more documents showing the person's passport page with photo and personal data. + """ + primary_verification: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerification" + ] + """ + An identifying document showing the person's name, either a passport or local ID card. + """ + secondary_verification: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerification" + ] + """ + A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + """ + visa: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualDocumentsVisa" + ] + """ + One or more documents showing the person's visa required for living in the country where they are residing. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsCompanyAuthorization( + TypedDict, +): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsPassport(TypedDict): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerification( + TypedDict, +): + front_back: "AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerificationFrontBack" + """ + The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + """ + type: Literal["front_back"] + """ + The format of the verification document. Currently supports `front_back` only. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsPrimaryVerificationFrontBack( + TypedDict, +): + back: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + front: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerification( + TypedDict, +): + front_back: "AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerificationFrontBack" + """ + The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + """ + type: Literal["front_back"] + """ + The format of the verification document. Currently supports `front_back` only. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsSecondaryVerificationFrontBack( + TypedDict, +): + back: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + front: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + + +class AccountTokenCreateParamsIdentityIndividualDocumentsVisa(TypedDict): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class AccountTokenCreateParamsIdentityIndividualIdNumber(TypedDict): + type: Literal[ + "ae_eid", + "ao_nif", + "ar_dni", + "az_tin", + "bd_brc", + "bd_etin", + "bd_nid", + "br_cpf", + "cr_cpf", + "cr_dimex", + "cr_nite", + "de_stn", + "do_rcn", + "gt_nit", + "hk_id", + "kz_iin", + "mx_rfc", + "my_nric", + "mz_nuit", + "nl_bsn", + "pe_dni", + "pk_cnic", + "pk_snic", + "sa_tin", + "sg_fin", + "sg_nric", + "th_lc", + "th_pin", + "us_itin", + "us_itin_last_4", + "us_ssn", + "us_ssn_last_4", + ] + """ + The ID number type of an individual. + """ + value: str + """ + The value of the ID number. + """ + + +class AccountTokenCreateParamsIdentityIndividualRelationship(TypedDict): + director: NotRequired[bool] + """ + Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. + """ + executive: NotRequired[bool] + """ + Whether the person has significant responsibility to control, manage, or direct the organization. + """ + owner: NotRequired[bool] + """ + Whether the person is an owner of the account's identity. + """ + percent_ownership: NotRequired[str] + """ + The percent owned by the person of the account's legal entity. + """ + title: NotRequired[str] + """ + The person's title (e.g., CEO, Support Engineer). + """ + + +class AccountTokenCreateParamsIdentityIndividualScriptAddresses(TypedDict): + kana: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualScriptAddressesKana" + ] + """ + Kana Address. + """ + kanji: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualScriptAddressesKanji" + ] + """ + Kanji Address. + """ + + +class AccountTokenCreateParamsIdentityIndividualScriptAddressesKana(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityIndividualScriptAddressesKanji( + TypedDict +): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class AccountTokenCreateParamsIdentityIndividualScriptNames(TypedDict): + kana: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualScriptNamesKana" + ] + """ + Persons name in kana script. + """ + kanji: NotRequired[ + "AccountTokenCreateParamsIdentityIndividualScriptNamesKanji" + ] + """ + Persons name in kanji script. + """ + + +class AccountTokenCreateParamsIdentityIndividualScriptNamesKana(TypedDict): + given_name: NotRequired[str] + """ + The person's first or given name. + """ + surname: NotRequired[str] + """ + The person's last or family name. + """ + + +class AccountTokenCreateParamsIdentityIndividualScriptNamesKanji(TypedDict): + given_name: NotRequired[str] + """ + The person's first or given name. + """ + surname: NotRequired[str] + """ + The person's last or family name. + """ diff --git a/stripe/params/v2/payments/_off_session_payment_cancel_params.py b/stripe/params/v2/core/_account_token_retrieve_params.py similarity index 70% rename from stripe/params/v2/payments/_off_session_payment_cancel_params.py rename to stripe/params/v2/core/_account_token_retrieve_params.py index 0d2f87851..0fd39f322 100644 --- a/stripe/params/v2/payments/_off_session_payment_cancel_params.py +++ b/stripe/params/v2/core/_account_token_retrieve_params.py @@ -3,5 +3,5 @@ from typing_extensions import TypedDict -class OffSessionPaymentCancelParams(TypedDict): +class AccountTokenRetrieveParams(TypedDict): pass diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index 342e072cb..8e261853c 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -6,6 +6,10 @@ class AccountUpdateParams(TypedDict): + account_token: NotRequired[str] + """ + The account token generated by the account token api. + """ configuration: NotRequired["AccountUpdateParamsConfiguration"] """ An Account Configuration which allows the Account to take on a key persona across Stripe products. @@ -38,6 +42,7 @@ class AccountUpdateParams(TypedDict): "configuration.recipient", "configuration.storer", "defaults", + "future_requirements", "identity", "requirements", ] @@ -120,7 +125,7 @@ class AccountUpdateParamsConfigurationCustomerAutomaticIndirectTax(TypedDict): ] ] """ - The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users. """ validate_location: NotRequired[Literal["auto", "deferred", "immediately"]] """ @@ -203,7 +208,7 @@ class AccountUpdateParamsConfigurationCustomerCapabilities(TypedDict): "AccountUpdateParamsConfigurationCustomerCapabilitiesAutomaticIndirectTax" ] """ - Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field. + Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. """ @@ -287,10 +292,22 @@ class AccountUpdateParamsConfigurationMerchant(TypedDict): """ Card payments settings. """ + konbini_payments: NotRequired[ + "AccountUpdateParamsConfigurationMerchantKonbiniPayments" + ] + """ + Settings specific to Konbini payments on the account. + """ mcc: NotRequired[str] """ The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. """ + script_statement_descriptor: NotRequired[ + "AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor" + ] + """ + Settings for the default text that appears on statements for language variations. + """ statement_descriptor: NotRequired[ "AccountUpdateParamsConfigurationMerchantStatementDescriptor" ] @@ -1012,6 +1029,90 @@ class AccountUpdateParamsConfigurationMerchantCardPaymentsDeclineOn(TypedDict): """ +class AccountUpdateParamsConfigurationMerchantKonbiniPayments(TypedDict): + support: NotRequired[ + "AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport" + ] + """ + Support for Konbini payments. + """ + + +class AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupport( + TypedDict +): + email: NotRequired[str] + """ + Support email address for Konbini payments. + """ + hours: NotRequired[ + "AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours" + ] + """ + Support hours for Konbini payments. + """ + phone: NotRequired[str] + """ + Support phone number for Konbini payments. + """ + + +class AccountUpdateParamsConfigurationMerchantKonbiniPaymentsSupportHours( + TypedDict, +): + end_time: NotRequired[str] + """ + Support hours end time (JST time of day) for in `HH:MM` format. + """ + start_time: NotRequired[str] + """ + Support hours start time (JST time of day) for in `HH:MM` format. + """ + + +class AccountUpdateParamsConfigurationMerchantScriptStatementDescriptor( + TypedDict, +): + kana: NotRequired[ + "AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana" + ] + """ + The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + """ + kanji: NotRequired[ + "AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji" + ] + """ + The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + """ + + +class AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKana( + TypedDict, +): + descriptor: NotRequired[str] + """ + The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + prefix: NotRequired[str] + """ + Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + + +class AccountUpdateParamsConfigurationMerchantScriptStatementDescriptorKanji( + TypedDict, +): + descriptor: NotRequired[str] + """ + The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + prefix: NotRequired[str] + """ + Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + + class AccountUpdateParamsConfigurationMerchantStatementDescriptor(TypedDict): descriptor: NotRequired[str] """ @@ -1088,7 +1189,7 @@ class AccountUpdateParamsConfigurationRecipient(TypedDict): """ default_outbound_destination: NotRequired[str] """ - The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.corp.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). + The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details). """ @@ -1244,6 +1345,12 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAc class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies( TypedDict, ): + eur: NotRequired[ + "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur" + ] + """ + Can hold storage-type funds on Stripe in EUR. + """ gbp: NotRequired[ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp" ] @@ -1258,6 +1365,15 @@ class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies( """ +class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp( TypedDict, ): @@ -2064,6 +2180,7 @@ class AccountUpdateParamsIdentityBusinessDetailsIdNumber(TypedDict): "ae_crn", "ae_vat", "ao_nif", + "ar_cuit", "at_fn", "au_abn", "au_acn", @@ -2567,6 +2684,7 @@ class AccountUpdateParamsIdentityIndividualIdNumber(TypedDict): type: Literal[ "ae_eid", "ao_nif", + "ar_dni", "az_tin", "bd_brc", "bd_etin", diff --git a/stripe/params/v2/core/_event_list_params.py b/stripe/params/v2/core/_event_list_params.py index da7f96049..f143ef764 100644 --- a/stripe/params/v2/core/_event_list_params.py +++ b/stripe/params/v2/core/_event_list_params.py @@ -5,6 +5,25 @@ class EventListParams(TypedDict): + created: NotRequired["EventListParamsCreated"] + """ + Set of filters to query events within a range of `created` timestamps. + """ + limit: NotRequired[int] + """ + The page size. + """ + object_id: NotRequired[str] + """ + Primary object ID used to retrieve related events. + """ + types: NotRequired[List[str]] + """ + An array of up to 20 strings containing specific event names. + """ + + +class EventListParamsCreated(TypedDict): gt: NotRequired[str] """ Filter for events created after the specified timestamp. @@ -13,10 +32,6 @@ class EventListParams(TypedDict): """ Filter for events created at or after the specified timestamp. """ - limit: NotRequired[int] - """ - The page size. - """ lt: NotRequired[str] """ Filter for events created before the specified timestamp. @@ -25,11 +40,3 @@ class EventListParams(TypedDict): """ Filter for events created at or before the specified timestamp. """ - object_id: NotRequired[str] - """ - Primary object ID used to retrieve related events. - """ - types: NotRequired[List[str]] - """ - An array of up to 20 strings containing specific event names. - """ diff --git a/stripe/params/v2/core/accounts/__init__.py b/stripe/params/v2/core/accounts/__init__.py index 8223e6ff4..867be9766 100644 --- a/stripe/params/v2/core/accounts/__init__.py +++ b/stripe/params/v2/core/accounts/__init__.py @@ -38,6 +38,34 @@ from stripe.params.v2.core.accounts._person_retrieve_params import ( PersonRetrieveParams as PersonRetrieveParams, ) + from stripe.params.v2.core.accounts._person_token_create_params import ( + PersonTokenCreateParams as PersonTokenCreateParams, + PersonTokenCreateParamsAdditionalAddress as PersonTokenCreateParamsAdditionalAddress, + PersonTokenCreateParamsAdditionalName as PersonTokenCreateParamsAdditionalName, + PersonTokenCreateParamsAdditionalTermsOfService as PersonTokenCreateParamsAdditionalTermsOfService, + PersonTokenCreateParamsAdditionalTermsOfServiceAccount as PersonTokenCreateParamsAdditionalTermsOfServiceAccount, + PersonTokenCreateParamsAddress as PersonTokenCreateParamsAddress, + PersonTokenCreateParamsDateOfBirth as PersonTokenCreateParamsDateOfBirth, + PersonTokenCreateParamsDocuments as PersonTokenCreateParamsDocuments, + PersonTokenCreateParamsDocumentsCompanyAuthorization as PersonTokenCreateParamsDocumentsCompanyAuthorization, + PersonTokenCreateParamsDocumentsPassport as PersonTokenCreateParamsDocumentsPassport, + PersonTokenCreateParamsDocumentsPrimaryVerification as PersonTokenCreateParamsDocumentsPrimaryVerification, + PersonTokenCreateParamsDocumentsPrimaryVerificationFrontBack as PersonTokenCreateParamsDocumentsPrimaryVerificationFrontBack, + PersonTokenCreateParamsDocumentsSecondaryVerification as PersonTokenCreateParamsDocumentsSecondaryVerification, + PersonTokenCreateParamsDocumentsSecondaryVerificationFrontBack as PersonTokenCreateParamsDocumentsSecondaryVerificationFrontBack, + PersonTokenCreateParamsDocumentsVisa as PersonTokenCreateParamsDocumentsVisa, + PersonTokenCreateParamsIdNumber as PersonTokenCreateParamsIdNumber, + PersonTokenCreateParamsRelationship as PersonTokenCreateParamsRelationship, + PersonTokenCreateParamsScriptAddresses as PersonTokenCreateParamsScriptAddresses, + PersonTokenCreateParamsScriptAddressesKana as PersonTokenCreateParamsScriptAddressesKana, + PersonTokenCreateParamsScriptAddressesKanji as PersonTokenCreateParamsScriptAddressesKanji, + PersonTokenCreateParamsScriptNames as PersonTokenCreateParamsScriptNames, + PersonTokenCreateParamsScriptNamesKana as PersonTokenCreateParamsScriptNamesKana, + PersonTokenCreateParamsScriptNamesKanji as PersonTokenCreateParamsScriptNamesKanji, + ) + from stripe.params.v2.core.accounts._person_token_retrieve_params import ( + PersonTokenRetrieveParams as PersonTokenRetrieveParams, + ) from stripe.params.v2.core.accounts._person_update_params import ( PersonUpdateParams as PersonUpdateParams, PersonUpdateParamsAdditionalAddress as PersonUpdateParamsAdditionalAddress, @@ -170,6 +198,102 @@ "stripe.params.v2.core.accounts._person_retrieve_params", False, ), + "PersonTokenCreateParams": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsAdditionalAddress": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsAdditionalName": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsAdditionalTermsOfService": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsAdditionalTermsOfServiceAccount": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsAddress": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDateOfBirth": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocuments": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsCompanyAuthorization": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsPassport": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsPrimaryVerification": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsPrimaryVerificationFrontBack": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsSecondaryVerification": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsSecondaryVerificationFrontBack": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsDocumentsVisa": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsIdNumber": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsRelationship": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsScriptAddresses": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsScriptAddressesKana": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsScriptAddressesKanji": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsScriptNames": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsScriptNamesKana": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenCreateParamsScriptNamesKanji": ( + "stripe.params.v2.core.accounts._person_token_create_params", + False, + ), + "PersonTokenRetrieveParams": ( + "stripe.params.v2.core.accounts._person_token_retrieve_params", + False, + ), "PersonUpdateParams": ( "stripe.params.v2.core.accounts._person_update_params", False, diff --git a/stripe/params/v2/core/accounts/_person_create_params.py b/stripe/params/v2/core/accounts/_person_create_params.py index 0429995d7..74bdd6bc6 100644 --- a/stripe/params/v2/core/accounts/_person_create_params.py +++ b/stripe/params/v2/core/accounts/_person_create_params.py @@ -57,6 +57,10 @@ class PersonCreateParams(TypedDict): """ The nationalities (countries) this person is associated with. """ + person_token: NotRequired[str] + """ + The person token generated by the person token api. + """ phone: NotRequired[str] """ The phone number for this person. @@ -315,6 +319,7 @@ class PersonCreateParamsIdNumber(TypedDict): type: Literal[ "ae_eid", "ao_nif", + "ar_dni", "az_tin", "bd_brc", "bd_etin", diff --git a/stripe/params/v2/core/accounts/_person_token_create_params.py b/stripe/params/v2/core/accounts/_person_token_create_params.py new file mode 100644 index 000000000..75d4fc894 --- /dev/null +++ b/stripe/params/v2/core/accounts/_person_token_create_params.py @@ -0,0 +1,496 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing import Dict, List, Optional +from typing_extensions import Literal, NotRequired, TypedDict + + +class PersonTokenCreateParams(TypedDict): + additional_addresses: NotRequired[ + List["PersonTokenCreateParamsAdditionalAddress"] + ] + """ + Additional addresses associated with the person. + """ + additional_names: NotRequired[ + List["PersonTokenCreateParamsAdditionalName"] + ] + """ + Additional names (e.g. aliases) associated with the person. + """ + additional_terms_of_service: NotRequired[ + "PersonTokenCreateParamsAdditionalTermsOfService" + ] + """ + Attestations of accepted terms of service agreements. + """ + address: NotRequired["PersonTokenCreateParamsAddress"] + """ + The person's residential address. + """ + date_of_birth: NotRequired["PersonTokenCreateParamsDateOfBirth"] + """ + The person's date of birth. + """ + documents: NotRequired["PersonTokenCreateParamsDocuments"] + """ + Documents that may be submitted to satisfy various informational requests. + """ + email: NotRequired[str] + """ + Email. + """ + given_name: NotRequired[str] + """ + The person's first name. + """ + id_numbers: NotRequired[List["PersonTokenCreateParamsIdNumber"]] + """ + The identification numbers (e.g., SSN) associated with the person. + """ + legal_gender: NotRequired[Literal["female", "male"]] + """ + The person's gender (International regulations require either "male" or "female"). + """ + metadata: NotRequired[Dict[str, Optional[str]]] + """ + Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + nationalities: NotRequired[List[str]] + """ + The nationalities (countries) this person is associated with. + """ + phone: NotRequired[str] + """ + The phone number for this person. + """ + political_exposure: NotRequired[Literal["existing", "none"]] + """ + The person's political exposure. + """ + relationship: NotRequired["PersonTokenCreateParamsRelationship"] + """ + The relationship that this person has with the Account's business or legal entity. + """ + script_addresses: NotRequired["PersonTokenCreateParamsScriptAddresses"] + """ + The script addresses (e.g., non-Latin characters) associated with the person. + """ + script_names: NotRequired["PersonTokenCreateParamsScriptNames"] + """ + The script names (e.g. non-Latin characters) associated with the person. + """ + surname: NotRequired[str] + """ + The person's last name. + """ + + +class PersonTokenCreateParamsAdditionalAddress(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + purpose: Literal["registered"] + """ + Purpose of additional address. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class PersonTokenCreateParamsAdditionalName(TypedDict): + full_name: NotRequired[str] + """ + The person's full name. + """ + given_name: NotRequired[str] + """ + The person's first or given name. + """ + purpose: Literal["alias", "maiden"] + """ + The purpose or type of the additional name. + """ + surname: NotRequired[str] + """ + The person's last or family name. + """ + + +class PersonTokenCreateParamsAdditionalTermsOfService(TypedDict): + account: NotRequired[ + "PersonTokenCreateParamsAdditionalTermsOfServiceAccount" + ] + """ + Details on the Person's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe. + """ + + +class PersonTokenCreateParamsAdditionalTermsOfServiceAccount(TypedDict): + shown_and_accepted: NotRequired[bool] + """ + The boolean value indicating if the terms of service have been accepted. + """ + + +class PersonTokenCreateParamsAddress(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class PersonTokenCreateParamsDateOfBirth(TypedDict): + day: int + """ + The day of the birth. + """ + month: int + """ + The month of birth. + """ + year: int + """ + The year of birth. + """ + + +class PersonTokenCreateParamsDocuments(TypedDict): + company_authorization: NotRequired[ + "PersonTokenCreateParamsDocumentsCompanyAuthorization" + ] + """ + One or more documents that demonstrate proof that this person is authorized to represent the company. + """ + passport: NotRequired["PersonTokenCreateParamsDocumentsPassport"] + """ + One or more documents showing the person's passport page with photo and personal data. + """ + primary_verification: NotRequired[ + "PersonTokenCreateParamsDocumentsPrimaryVerification" + ] + """ + An identifying document showing the person's name, either a passport or local ID card. + """ + secondary_verification: NotRequired[ + "PersonTokenCreateParamsDocumentsSecondaryVerification" + ] + """ + A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + """ + visa: NotRequired["PersonTokenCreateParamsDocumentsVisa"] + """ + One or more documents showing the person's visa required for living in the country where they are residing. + """ + + +class PersonTokenCreateParamsDocumentsCompanyAuthorization(TypedDict): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class PersonTokenCreateParamsDocumentsPassport(TypedDict): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class PersonTokenCreateParamsDocumentsPrimaryVerification(TypedDict): + front_back: "PersonTokenCreateParamsDocumentsPrimaryVerificationFrontBack" + """ + The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + """ + type: Literal["front_back"] + """ + The format of the verification document. Currently supports `front_back` only. + """ + + +class PersonTokenCreateParamsDocumentsPrimaryVerificationFrontBack(TypedDict): + back: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + front: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + + +class PersonTokenCreateParamsDocumentsSecondaryVerification(TypedDict): + front_back: ( + "PersonTokenCreateParamsDocumentsSecondaryVerificationFrontBack" + ) + """ + The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document. + """ + type: Literal["front_back"] + """ + The format of the verification document. Currently supports `front_back` only. + """ + + +class PersonTokenCreateParamsDocumentsSecondaryVerificationFrontBack( + TypedDict +): + back: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + front: NotRequired[str] + """ + A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. + """ + + +class PersonTokenCreateParamsDocumentsVisa(TypedDict): + files: List[str] + """ + One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + """ + type: Literal["files"] + """ + The format of the document. Currently supports `files` only. + """ + + +class PersonTokenCreateParamsIdNumber(TypedDict): + type: Literal[ + "ae_eid", + "ao_nif", + "ar_dni", + "az_tin", + "bd_brc", + "bd_etin", + "bd_nid", + "br_cpf", + "cr_cpf", + "cr_dimex", + "cr_nite", + "de_stn", + "do_rcn", + "gt_nit", + "hk_id", + "kz_iin", + "mx_rfc", + "my_nric", + "mz_nuit", + "nl_bsn", + "pe_dni", + "pk_cnic", + "pk_snic", + "sa_tin", + "sg_fin", + "sg_nric", + "th_lc", + "th_pin", + "us_itin", + "us_itin_last_4", + "us_ssn", + "us_ssn_last_4", + ] + """ + The ID number type of an individual. + """ + value: str + """ + The value of the ID number. + """ + + +class PersonTokenCreateParamsRelationship(TypedDict): + authorizer: NotRequired[bool] + """ + Whether the individual is an authorizer of the Account's legal entity. + """ + director: NotRequired[bool] + """ + Indicates whether the person is a director of the associated legal entity. + """ + executive: NotRequired[bool] + """ + Indicates whether the person is an executive of the associated legal entity. + """ + legal_guardian: NotRequired[bool] + """ + Indicates whether the person is a legal guardian of the associated legal entity. + """ + owner: NotRequired[bool] + """ + Indicates whether the person is an owner of the associated legal entity. + """ + percent_ownership: NotRequired[str] + """ + The percentage of ownership the person has in the associated legal entity. + """ + representative: NotRequired[bool] + """ + Indicates whether the person is a representative of the associated legal entity. + """ + title: NotRequired[str] + """ + The title or position the person holds in the associated legal entity. + """ + + +class PersonTokenCreateParamsScriptAddresses(TypedDict): + kana: NotRequired["PersonTokenCreateParamsScriptAddressesKana"] + """ + Kana Address. + """ + kanji: NotRequired["PersonTokenCreateParamsScriptAddressesKanji"] + """ + Kanji Address. + """ + + +class PersonTokenCreateParamsScriptAddressesKana(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class PersonTokenCreateParamsScriptAddressesKanji(TypedDict): + city: NotRequired[str] + """ + City, district, suburb, town, or village. + """ + country: NotRequired[str] + """ + Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + """ + line1: NotRequired[str] + """ + Address line 1 (e.g., street, PO Box, or company name). + """ + line2: NotRequired[str] + """ + Address line 2 (e.g., apartment, suite, unit, or building). + """ + postal_code: NotRequired[str] + """ + ZIP or postal code. + """ + state: NotRequired[str] + """ + State, county, province, or region. + """ + town: NotRequired[str] + """ + Town or cho-me. + """ + + +class PersonTokenCreateParamsScriptNames(TypedDict): + kana: NotRequired["PersonTokenCreateParamsScriptNamesKana"] + """ + Persons name in kana script. + """ + kanji: NotRequired["PersonTokenCreateParamsScriptNamesKanji"] + """ + Persons name in kanji script. + """ + + +class PersonTokenCreateParamsScriptNamesKana(TypedDict): + given_name: NotRequired[str] + """ + The person's first or given name. + """ + surname: NotRequired[str] + """ + The person's last or family name. + """ + + +class PersonTokenCreateParamsScriptNamesKanji(TypedDict): + given_name: NotRequired[str] + """ + The person's first or given name. + """ + surname: NotRequired[str] + """ + The person's last or family name. + """ diff --git a/stripe/params/v2/payments/_off_session_payment_retrieve_params.py b/stripe/params/v2/core/accounts/_person_token_retrieve_params.py similarity index 69% rename from stripe/params/v2/payments/_off_session_payment_retrieve_params.py rename to stripe/params/v2/core/accounts/_person_token_retrieve_params.py index eed6abfff..3ea625655 100644 --- a/stripe/params/v2/payments/_off_session_payment_retrieve_params.py +++ b/stripe/params/v2/core/accounts/_person_token_retrieve_params.py @@ -3,5 +3,5 @@ from typing_extensions import TypedDict -class OffSessionPaymentRetrieveParams(TypedDict): +class PersonTokenRetrieveParams(TypedDict): pass diff --git a/stripe/params/v2/core/accounts/_person_update_params.py b/stripe/params/v2/core/accounts/_person_update_params.py index bca73555c..f6a08b422 100644 --- a/stripe/params/v2/core/accounts/_person_update_params.py +++ b/stripe/params/v2/core/accounts/_person_update_params.py @@ -57,6 +57,10 @@ class PersonUpdateParams(TypedDict): """ The nationalities (countries) this person is associated with. """ + person_token: NotRequired[str] + """ + The person token generated by the person token api. + """ phone: NotRequired[str] """ The phone number for this person. @@ -315,6 +319,7 @@ class PersonUpdateParamsIdNumber(TypedDict): type: Literal[ "ae_eid", "ao_nif", + "ar_dni", "az_tin", "bd_brc", "bd_etin", diff --git a/stripe/params/v2/money_management/_financial_address_create_params.py b/stripe/params/v2/money_management/_financial_address_create_params.py index a79407239..fa39e9da2 100644 --- a/stripe/params/v2/money_management/_financial_address_create_params.py +++ b/stripe/params/v2/money_management/_financial_address_create_params.py @@ -8,7 +8,7 @@ class FinancialAddressCreateParams(TypedDict): """ The ID of the FinancialAccount the new FinancialAddress should be associated with. """ - type: Literal["gb_bank_account", "sepa_bank_account", "us_bank_account"] + type: Literal["gb_bank_account", "us_bank_account"] """ The type of FinancialAddress details to provision. """ diff --git a/stripe/params/v2/payments/__init__.py b/stripe/params/v2/payments/__init__.py deleted file mode 100644 index f31eb30fd..000000000 --- a/stripe/params/v2/payments/__init__.py +++ /dev/null @@ -1,120 +0,0 @@ -# -*- 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.v2.payments._off_session_payment_cancel_params import ( - OffSessionPaymentCancelParams as OffSessionPaymentCancelParams, - ) - from stripe.params.v2.payments._off_session_payment_capture_params import ( - OffSessionPaymentCaptureParams as OffSessionPaymentCaptureParams, - OffSessionPaymentCaptureParamsTransferData as OffSessionPaymentCaptureParamsTransferData, - ) - from stripe.params.v2.payments._off_session_payment_create_params import ( - OffSessionPaymentCreateParams as OffSessionPaymentCreateParams, - OffSessionPaymentCreateParamsAmountDetails as OffSessionPaymentCreateParamsAmountDetails, - OffSessionPaymentCreateParamsAmountDetailsLineItem as OffSessionPaymentCreateParamsAmountDetailsLineItem, - OffSessionPaymentCreateParamsAmountDetailsLineItemTax as OffSessionPaymentCreateParamsAmountDetailsLineItemTax, - OffSessionPaymentCreateParamsAmountDetailsShipping as OffSessionPaymentCreateParamsAmountDetailsShipping, - OffSessionPaymentCreateParamsAmountDetailsTax as OffSessionPaymentCreateParamsAmountDetailsTax, - OffSessionPaymentCreateParamsCapture as OffSessionPaymentCreateParamsCapture, - OffSessionPaymentCreateParamsPaymentMethodOptions as OffSessionPaymentCreateParamsPaymentMethodOptions, - OffSessionPaymentCreateParamsPaymentMethodOptionsCard as OffSessionPaymentCreateParamsPaymentMethodOptionsCard, - OffSessionPaymentCreateParamsPaymentsOrchestration as OffSessionPaymentCreateParamsPaymentsOrchestration, - OffSessionPaymentCreateParamsRetryDetails as OffSessionPaymentCreateParamsRetryDetails, - OffSessionPaymentCreateParamsTransferData as OffSessionPaymentCreateParamsTransferData, - ) - from stripe.params.v2.payments._off_session_payment_list_params import ( - OffSessionPaymentListParams as OffSessionPaymentListParams, - ) - from stripe.params.v2.payments._off_session_payment_retrieve_params import ( - OffSessionPaymentRetrieveParams as OffSessionPaymentRetrieveParams, - ) - -# name -> (import_target, is_submodule) -_import_map = { - "OffSessionPaymentCancelParams": ( - "stripe.params.v2.payments._off_session_payment_cancel_params", - False, - ), - "OffSessionPaymentCaptureParams": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsTransferData": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCreateParams": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsAmountDetails": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsAmountDetailsLineItem": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsAmountDetailsLineItemTax": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsAmountDetailsShipping": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsAmountDetailsTax": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsCapture": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsPaymentMethodOptions": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsPaymentMethodOptionsCard": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsPaymentsOrchestration": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsRetryDetails": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentCreateParamsTransferData": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), - "OffSessionPaymentListParams": ( - "stripe.params.v2.payments._off_session_payment_list_params", - False, - ), - "OffSessionPaymentRetrieveParams": ( - "stripe.params.v2.payments._off_session_payment_retrieve_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/v2/payments/_off_session_payment_capture_params.py b/stripe/params/v2/payments/_off_session_payment_capture_params.py deleted file mode 100644 index b89bffd41..000000000 --- a/stripe/params/v2/payments/_off_session_payment_capture_params.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing import Dict -from typing_extensions import NotRequired, TypedDict - - -class OffSessionPaymentCaptureParams(TypedDict): - amount_to_capture: int - """ - The amount to capture. - """ - metadata: Dict[str, str] - """ - Set of [key-value pairs](https://docs.corp.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. Learn more about - [storing information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). - """ - statement_descriptor: NotRequired[str] - """ - Text that appears on the customer's statement as the statement descriptor for a - non-card charge. This value overrides the account's default statement descriptor. - For information about requirements, including the 22-character limit, see the - [Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). - """ - statement_descriptor_suffix: NotRequired[str] - """ - Provides information about a card charge. Concatenated to the account's - [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) - to form the complete statement descriptor that appears on the customer's statement. - """ - transfer_data: NotRequired["OffSessionPaymentCaptureParamsTransferData"] - """ - The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). - """ - - -class OffSessionPaymentCaptureParamsTransferData(TypedDict): - amount: NotRequired[int] - """ - The amount transferred to the destination account. This transfer will occur - automatically after the payment succeeds. If no amount is specified, by default - the entire payment amount is transferred to the destination account. The amount - must be less than or equal to the - [amount_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), - and must be a positive integer representing how much to transfer in the smallest - currency unit (e.g., 100 cents to charge $1.00). - """ - destination: str - """ - The account (if any) that the payment is attributed to for tax reporting, and - where funds from the payment are transferred to after payment success. - """ diff --git a/stripe/params/v2/payments/_off_session_payment_create_params.py b/stripe/params/v2/payments/_off_session_payment_create_params.py deleted file mode 100644 index 575e13832..000000000 --- a/stripe/params/v2/payments/_off_session_payment_create_params.py +++ /dev/null @@ -1,221 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe.v2._amount import AmountParam -from typing import Dict, List -from typing_extensions import Literal, NotRequired, TypedDict - - -class OffSessionPaymentCreateParams(TypedDict): - amount: AmountParam - """ - The “presentment amount” to be collected from the customer. - """ - amount_details: NotRequired["OffSessionPaymentCreateParamsAmountDetails"] - """ - Provides industry-specific information about the amount. - """ - cadence: Literal["recurring", "unscheduled"] - """ - The frequency of the underlying payment. - """ - capture: NotRequired["OffSessionPaymentCreateParamsCapture"] - """ - Details about the capture configuration for the OffSessionPayment. - """ - capture_method: NotRequired[Literal["automatic", "manual"]] - """ - Whether the OffSessionPayment should be captured automatically or manually. - """ - customer: str - """ - ID of the Customer to which this OffSessionPayment belongs. - """ - metadata: Dict[str, str] - """ - Set of [key-value pairs](https://docs.corp.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. Learn more about - [storing information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). - """ - on_behalf_of: NotRequired[str] - """ - The account (if any) for which the funds of the OffSessionPayment are intended. - """ - payment_method: str - """ - ID of the payment method used in this OffSessionPayment. - """ - payment_method_options: NotRequired[ - "OffSessionPaymentCreateParamsPaymentMethodOptions" - ] - """ - Payment method options for the off-session payment. - """ - payments_orchestration: NotRequired[ - "OffSessionPaymentCreateParamsPaymentsOrchestration" - ] - """ - Details about the payments orchestration configuration. - """ - retry_details: NotRequired["OffSessionPaymentCreateParamsRetryDetails"] - """ - Details about the OffSessionPayment retries. - """ - statement_descriptor: NotRequired[str] - """ - Text that appears on the customer's statement as the statement descriptor for a - non-card charge. This value overrides the account's default statement descriptor. - For information about requirements, including the 22-character limit, see the - [Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). - """ - statement_descriptor_suffix: NotRequired[str] - """ - Provides information about a card charge. Concatenated to the account's - [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) - to form the complete statement descriptor that appears on the customer's statement. - """ - test_clock: NotRequired[str] - """ - Test clock that can be used to advance the retry attempts in a sandbox. - """ - transfer_data: NotRequired["OffSessionPaymentCreateParamsTransferData"] - """ - The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). - """ - - -class OffSessionPaymentCreateParamsAmountDetails(TypedDict): - discount_amount: NotRequired[int] - """ - The amount the total transaction was discounted for. - """ - line_items: List["OffSessionPaymentCreateParamsAmountDetailsLineItem"] - """ - A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - """ - shipping: NotRequired["OffSessionPaymentCreateParamsAmountDetailsShipping"] - """ - Contains information about the shipping portion of the amount. - """ - tax: NotRequired["OffSessionPaymentCreateParamsAmountDetailsTax"] - """ - Contains information about the tax portion of the amount. - """ - - -class OffSessionPaymentCreateParamsAmountDetailsLineItem(TypedDict): - discount_amount: NotRequired[int] - """ - The amount an item was discounted for. Positive integer. - """ - product_code: NotRequired[str] - """ - Unique identifier of the product. At most 12 characters long. - """ - product_name: str - """ - Name of the product. At most 100 characters long. - """ - quantity: int - """ - Number of items of the product. Positive integer. - """ - tax: NotRequired["OffSessionPaymentCreateParamsAmountDetailsLineItemTax"] - """ - Contains information about the tax on the item. - """ - unit_cost: int - """ - Cost of the product. Non-negative integer. - """ - - -class OffSessionPaymentCreateParamsAmountDetailsLineItemTax(TypedDict): - total_tax_amount: NotRequired[int] - """ - Total portion of the amount that is for tax. - """ - - -class OffSessionPaymentCreateParamsAmountDetailsShipping(TypedDict): - amount: NotRequired[int] - """ - Portion of the amount that is for shipping. - """ - from_postal_code: NotRequired[str] - """ - The postal code that represents the shipping source. - """ - to_postal_code: NotRequired[str] - """ - The postal code that represents the shipping destination. - """ - - -class OffSessionPaymentCreateParamsAmountDetailsTax(TypedDict): - total_tax_amount: NotRequired[int] - """ - Total portion of the amount that is for tax. - """ - - -class OffSessionPaymentCreateParamsCapture(TypedDict): - capture_method: Literal["automatic", "manual"] - """ - The method to use to capture the payment. - """ - - -class OffSessionPaymentCreateParamsPaymentMethodOptions(TypedDict): - card: NotRequired["OffSessionPaymentCreateParamsPaymentMethodOptionsCard"] - """ - Payment method options for the card payment type. - """ - - -class OffSessionPaymentCreateParamsPaymentMethodOptionsCard(TypedDict): - network_transaction_id: str - """ - If you are making a Credential On File transaction with a previously saved card, you should pass the Network Transaction ID - from a prior initial authorization on Stripe (from a successful SetupIntent or a PaymentIntent with `setup_future_usage` set), - or one that you have obtained from another payment processor. This is a token from the network which uniquely identifies the transaction. - Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. - Note that you should pass in a Network Transaction ID if you have one, regardless of whether this is a - Customer-Initiated Transaction (CIT) or a Merchant-Initiated Transaction (MIT). - """ - - -class OffSessionPaymentCreateParamsPaymentsOrchestration(TypedDict): - enabled: bool - """ - True when you want to enable payments orchestration for this off-session payment. False otherwise. - """ - - -class OffSessionPaymentCreateParamsRetryDetails(TypedDict): - retry_policy: NotRequired[str] - """ - The pre-configured retry policy to use for the payment. - """ - retry_strategy: Literal["heuristic", "none", "scheduled", "smart"] - """ - Indicates the strategy for how you want Stripe to retry the payment. - """ - - -class OffSessionPaymentCreateParamsTransferData(TypedDict): - amount: NotRequired[int] - """ - The amount transferred to the destination account. This transfer will occur - automatically after the payment succeeds. If no amount is specified, by default - the entire payment amount is transferred to the destination account. The amount - must be less than or equal to the - [amount_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), - and must be a positive integer representing how much to transfer in the smallest - currency unit (e.g., 100 cents to charge $1.00). - """ - destination: str - """ - The account (if any) that the payment is attributed to for tax reporting, and - where funds from the payment are transferred to after payment success. - """ diff --git a/stripe/params/v2/payments/_off_session_payment_list_params.py b/stripe/params/v2/payments/_off_session_payment_list_params.py deleted file mode 100644 index 101b2f87c..000000000 --- a/stripe/params/v2/payments/_off_session_payment_list_params.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from typing_extensions import NotRequired, TypedDict - - -class OffSessionPaymentListParams(TypedDict): - limit: NotRequired[int] - """ - The page size limit. If not provided, the default is 20. - """ diff --git a/stripe/v2/__init__.py b/stripe/v2/__init__.py index a8f7518cc..7db5e2fda 100644 --- a/stripe/v2/__init__.py +++ b/stripe/v2/__init__.py @@ -11,7 +11,6 @@ billing as billing, core as core, money_management as money_management, - payments as payments, test_helpers as test_helpers, ) from stripe.v2._billing_service import BillingService as BillingService @@ -26,7 +25,6 @@ from stripe.v2._money_management_service import ( MoneyManagementService as MoneyManagementService, ) - from stripe.v2._payment_service import PaymentService as PaymentService from stripe.v2._test_helper_service import ( TestHelperService as TestHelperService, ) @@ -36,7 +34,6 @@ "billing": ("stripe.v2.billing", True), "core": ("stripe.v2.core", True), "money_management": ("stripe.v2.money_management", True), - "payments": ("stripe.v2.payments", True), "test_helpers": ("stripe.v2.test_helpers", True), "BillingService": ("stripe.v2._billing_service", False), "CoreService": ("stripe.v2._core_service", False), @@ -50,7 +47,6 @@ False, ), "MoneyManagementService": ("stripe.v2._money_management_service", False), - "PaymentService": ("stripe.v2._payment_service", False), "TestHelperService": ("stripe.v2._test_helper_service", False), } if not TYPE_CHECKING: diff --git a/stripe/v2/_core_service.py b/stripe/v2/_core_service.py index 5edcb14ac..35a600637 100644 --- a/stripe/v2/_core_service.py +++ b/stripe/v2/_core_service.py @@ -7,6 +7,7 @@ if TYPE_CHECKING: from stripe.v2.core._account_link_service import AccountLinkService from stripe.v2.core._account_service import AccountService + from stripe.v2.core._account_token_service import AccountTokenService from stripe.v2.core._event_destination_service import ( EventDestinationService, ) @@ -19,6 +20,10 @@ "stripe.v2.core._account_link_service", "AccountLinkService", ], + "account_tokens": [ + "stripe.v2.core._account_token_service", + "AccountTokenService", + ], "events": ["stripe.v2.core._event_service", "EventService"], "event_destinations": [ "stripe.v2.core._event_destination_service", @@ -31,6 +36,7 @@ class CoreService(StripeService): accounts: "AccountService" account_links: "AccountLinkService" + account_tokens: "AccountTokenService" events: "EventService" event_destinations: "EventDestinationService" vault: "VaultService" diff --git a/stripe/v2/_payment_service.py b/stripe/v2/_payment_service.py deleted file mode 100644 index e02bb2d15..000000000 --- a/stripe/v2/_payment_service.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- 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.v2.payments._off_session_payment_service import ( - OffSessionPaymentService, - ) - -_subservices = { - "off_session_payments": [ - "stripe.v2.payments._off_session_payment_service", - "OffSessionPaymentService", - ], -} - - -class PaymentService(StripeService): - off_session_payments: "OffSessionPaymentService" - - 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/v2/billing/_cadence.py b/stripe/v2/billing/_cadence.py index e3872b00d..a3b49e83c 100644 --- a/stripe/v2/billing/_cadence.py +++ b/stripe/v2/billing/_cadence.py @@ -340,9 +340,9 @@ class MandateOptions(StripeObject): ] """ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ _inner_class_types = {"mandate_options": MandateOptions} diff --git a/stripe/v2/billing/_collection_setting.py b/stripe/v2/billing/_collection_setting.py index 1538d6dfd..dba839329 100644 --- a/stripe/v2/billing/_collection_setting.py +++ b/stripe/v2/billing/_collection_setting.py @@ -88,9 +88,9 @@ class MandateOptions(StripeObject): ] """ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ _inner_class_types = {"mandate_options": MandateOptions} diff --git a/stripe/v2/billing/_collection_setting_version.py b/stripe/v2/billing/_collection_setting_version.py index 8a2131009..0827e5e2a 100644 --- a/stripe/v2/billing/_collection_setting_version.py +++ b/stripe/v2/billing/_collection_setting_version.py @@ -84,9 +84,9 @@ class MandateOptions(StripeObject): ] """ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - for authentication based on risk level and [other requirements](https://docs.corp.stripe.com/strong-customer-authentication). + for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. """ _inner_class_types = {"mandate_options": MandateOptions} diff --git a/stripe/v2/core/__init__.py b/stripe/v2/core/__init__.py index 3e0bd41ce..3ca3fb1cf 100644 --- a/stripe/v2/core/__init__.py +++ b/stripe/v2/core/__init__.py @@ -19,9 +19,16 @@ AccountLinkService as AccountLinkService, ) from stripe.v2.core._account_person import AccountPerson as AccountPerson + from stripe.v2.core._account_person_token import ( + AccountPersonToken as AccountPersonToken, + ) from stripe.v2.core._account_service import ( AccountService as AccountService, ) + from stripe.v2.core._account_token import AccountToken as AccountToken + from stripe.v2.core._account_token_service import ( + AccountTokenService as AccountTokenService, + ) from stripe.v2.core._event import Event as Event from stripe.v2.core._event_destination import ( EventDestination as EventDestination, @@ -40,7 +47,10 @@ "AccountLink": ("stripe.v2.core._account_link", False), "AccountLinkService": ("stripe.v2.core._account_link_service", False), "AccountPerson": ("stripe.v2.core._account_person", False), + "AccountPersonToken": ("stripe.v2.core._account_person_token", False), "AccountService": ("stripe.v2.core._account_service", False), + "AccountToken": ("stripe.v2.core._account_token", False), + "AccountTokenService": ("stripe.v2.core._account_token_service", False), "Event": ("stripe.v2.core._event", False), "EventDestination": ("stripe.v2.core._event_destination", False), "EventDestinationService": ( diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index bafb9b8be..84f71be1c 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -36,7 +36,7 @@ class Location(StripeObject): """ location: Optional[Location] """ - The customer's identified tax location - uses `location_source`. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. + The [identified](https://docs.stripe.com/tax/customer-locations#address-hierarchy-other) tax location of the customer. Will only be rendered if the `automatic_indirect_tax` feature is requested and `active`. """ location_source: Optional[ Literal[ @@ -47,7 +47,7 @@ class Location(StripeObject): ] ] """ - The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. + The data source used to identify the customer's tax location. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. """ _inner_class_types = {"location": Location} @@ -150,7 +150,7 @@ class StatusDetail(StripeObject): automatic_indirect_tax: Optional[AutomaticIndirectTax] """ - Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field. + Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. """ _inner_class_types = { "automatic_indirect_tax": AutomaticIndirectTax, @@ -2177,6 +2177,69 @@ class DeclineOn(StripeObject): """ _inner_class_types = {"decline_on": DeclineOn} + class KonbiniPayments(StripeObject): + class Support(StripeObject): + class Hours(StripeObject): + end_time: Optional[str] + """ + Support hours end time (JST time of day) for in `HH:MM` format. + """ + start_time: Optional[str] + """ + Support hours start time (JST time of day) for in `HH:MM` format. + """ + + email: Optional[str] + """ + Support email address for Konbini payments. + """ + hours: Optional[Hours] + """ + Support hours for Konbini payments. + """ + phone: Optional[str] + """ + Support phone number for Konbini payments. + """ + _inner_class_types = {"hours": Hours} + + support: Optional[Support] + """ + Support for Konbini payments. + """ + _inner_class_types = {"support": Support} + + class ScriptStatementDescriptor(StripeObject): + class Kana(StripeObject): + descriptor: Optional[str] + """ + The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + prefix: Optional[str] + """ + Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + + class Kanji(StripeObject): + descriptor: Optional[str] + """ + The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + prefix: Optional[str] + """ + Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + """ + + kana: Optional[Kana] + """ + The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + """ + kanji: Optional[Kanji] + """ + The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + """ + _inner_class_types = {"kana": Kana, "kanji": Kanji} + class SepaDebitPayments(StripeObject): creditor_id: Optional[str] """ @@ -2262,10 +2325,18 @@ class Address(StripeObject): """ Card payments settings. """ + konbini_payments: Optional[KonbiniPayments] + """ + Settings specific to Konbini payments on the account. + """ mcc: Optional[str] """ The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide. """ + script_statement_descriptor: Optional[ScriptStatementDescriptor] + """ + Settings for the default text that appears on statements for language variations. + """ sepa_debit_payments: Optional[SepaDebitPayments] """ Settings used for SEPA debit payments. @@ -2283,6 +2354,8 @@ class Address(StripeObject): "branding": Branding, "capabilities": Capabilities, "card_payments": CardPayments, + "konbini_payments": KonbiniPayments, + "script_statement_descriptor": ScriptStatementDescriptor, "sepa_debit_payments": SepaDebitPayments, "statement_descriptor": StatementDescriptor, "support": Support, @@ -2664,6 +2737,45 @@ class StatusDetail(StripeObject): _inner_class_types = {"bank_accounts": BankAccounts} class HoldsCurrencies(StripeObject): + class Eur(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", + "no_resolution", + "provide_info", + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + requested: bool + """ + Whether the Capability has been requested. + """ + status: Literal[ + "active", "pending", "restricted", "unsupported" + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + """ + _inner_class_types = {"status_details": StatusDetail} + class Gbp(StripeObject): class StatusDetail(StripeObject): code: Literal[ @@ -2742,6 +2854,10 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"status_details": StatusDetail} + eur: Optional[Eur] + """ + Can hold storage-type funds on Stripe in EUR. + """ gbp: Optional[Gbp] """ Can hold storage-type funds on Stripe in GBP. @@ -2750,7 +2866,7 @@ class StatusDetail(StripeObject): """ Can hold storage-type funds on Stripe in USD. """ - _inner_class_types = {"gbp": Gbp, "usd": Usd} + _inner_class_types = {"eur": Eur, "gbp": Gbp, "usd": Usd} class InboundTransfers(StripeObject): class BankAccounts(StripeObject): @@ -3116,6 +3232,10 @@ class Responsibilities(StripeObject): """ A value indicating who is responsible for losses when this Account can't pay back negative balances from payments. """ + requirements_collector: Literal["application", "stripe"] + """ + A value indicating responsibility for collecting requirements on this account. + """ currency: Optional[str] """ @@ -3227,6 +3347,304 @@ class Responsibilities(StripeObject): "responsibilities": Responsibilities, } + class FutureRequirements(StripeObject): + class Entry(StripeObject): + class Error(StripeObject): + code: Literal[ + "invalid_address_city_state_postal_code", + "invalid_address_highway_contract_box", + "invalid_address_private_mailbox", + "invalid_business_profile_name", + "invalid_business_profile_name_denylisted", + "invalid_company_name_denylisted", + "invalid_dob_age_over_maximum", + "invalid_dob_age_under_18", + "invalid_dob_age_under_minimum", + "invalid_product_description_length", + "invalid_product_description_url_match", + "invalid_representative_country", + "invalid_statement_descriptor_business_mismatch", + "invalid_statement_descriptor_denylisted", + "invalid_statement_descriptor_length", + "invalid_statement_descriptor_prefix_denylisted", + "invalid_statement_descriptor_prefix_mismatch", + "invalid_street_address", + "invalid_tax_id", + "invalid_tax_id_format", + "invalid_tos_acceptance", + "invalid_url_denylisted", + "invalid_url_format", + "invalid_url_website_business_information_mismatch", + "invalid_url_website_empty", + "invalid_url_website_inaccessible", + "invalid_url_website_inaccessible_geoblocked", + "invalid_url_website_inaccessible_password_protected", + "invalid_url_website_incomplete", + "invalid_url_website_incomplete_cancellation_policy", + "invalid_url_website_incomplete_customer_service_details", + "invalid_url_website_incomplete_legal_restrictions", + "invalid_url_website_incomplete_refund_policy", + "invalid_url_website_incomplete_return_policy", + "invalid_url_website_incomplete_terms_and_conditions", + "invalid_url_website_incomplete_under_construction", + "invalid_url_website_other", + "invalid_url_web_presence_detected", + "invalid_value_other", + "unresolvable_ip_address", + "unresolvable_postal_code", + "verification_directors_mismatch", + "verification_document_address_mismatch", + "verification_document_address_missing", + "verification_document_corrupt", + "verification_document_country_not_supported", + "verification_document_directors_mismatch", + "verification_document_dob_mismatch", + "verification_document_duplicate_type", + "verification_document_expired", + "verification_document_failed_copy", + "verification_document_failed_greyscale", + "verification_document_failed_other", + "verification_document_failed_test_mode", + "verification_document_fraudulent", + "verification_document_id_number_mismatch", + "verification_document_id_number_missing", + "verification_document_incomplete", + "verification_document_invalid", + "verification_document_issue_or_expiry_date_missing", + "verification_document_manipulated", + "verification_document_missing_back", + "verification_document_missing_front", + "verification_document_name_mismatch", + "verification_document_name_missing", + "verification_document_nationality_mismatch", + "verification_document_not_readable", + "verification_document_not_signed", + "verification_document_not_uploaded", + "verification_document_photo_mismatch", + "verification_document_too_large", + "verification_document_type_not_supported", + "verification_extraneous_directors", + "verification_failed_address_match", + "verification_failed_business_iec_number", + "verification_failed_document_match", + "verification_failed_id_number_match", + "verification_failed_keyed_identity", + "verification_failed_keyed_match", + "verification_failed_name_match", + "verification_failed_other", + "verification_failed_representative_authority", + "verification_failed_residential_address", + "verification_failed_tax_id_match", + "verification_failed_tax_id_not_issued", + "verification_missing_directors", + "verification_missing_executives", + "verification_missing_owners", + "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", + "verification_selfie_document_missing_photo", + "verification_selfie_face_mismatch", + "verification_selfie_manipulated", + "verification_selfie_unverified_other", + "verification_supportability", + "verification_token_stale", + ] + """ + Machine-readable code describing the error. + """ + description: str + """ + Human-readable description of the error. + """ + + class Impact(StripeObject): + class RestrictsCapability(StripeObject): + class Deadline(StripeObject): + status: Literal[ + "currently_due", "eventually_due", "past_due" + ] + """ + The current status of the requirement's impact. + """ + + capability: Literal[ + "ach_debit_payments", + "acss_debit_payments", + "affirm_payments", + "afterpay_clearpay_payments", + "alma_payments", + "amazon_pay_payments", + "automatic_indirect_tax", + "au_becs_debit_payments", + "bacs_debit_payments", + "bancontact_payments", + "bank_accounts.local", + "bank_accounts.wire", + "blik_payments", + "boleto_payments", + "cards", + "card_payments", + "cartes_bancaires_payments", + "cashapp_payments", + "eps_payments", + "financial_addresses.bank_accounts", + "fpx_payments", + "gb_bank_transfer_payments", + "grabpay_payments", + "holds_currencies.eur", + "holds_currencies.gbp", + "holds_currencies.usd", + "ideal_payments", + "inbound_transfers.financial_accounts", + "jcb_payments", + "jp_bank_transfer_payments", + "kakao_pay_payments", + "klarna_payments", + "konbini_payments", + "kr_card_payments", + "link_payments", + "mobilepay_payments", + "multibanco_payments", + "mx_bank_transfer_payments", + "naver_pay_payments", + "outbound_payments.bank_accounts", + "outbound_payments.cards", + "outbound_payments.financial_accounts", + "outbound_transfers.bank_accounts", + "outbound_transfers.financial_accounts", + "oxxo_payments", + "p24_payments", + "payco_payments", + "paynow_payments", + "pay_by_bank_payments", + "promptpay_payments", + "revolut_pay_payments", + "samsung_pay_payments", + "sepa_bank_transfer_payments", + "sepa_debit_payments", + "stripe_balance.payouts", + "stripe_balance.stripe_transfers", + "swish_payments", + "twint_payments", + "us_bank_transfer_payments", + "zip_payments", + ] + """ + The name of the Capability which will be restricted. + """ + configuration: Literal[ + "customer", "merchant", "recipient", "storer" + ] + """ + The configuration which specifies the Capability which will be restricted. + """ + deadline: Deadline + """ + Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. + """ + _inner_class_types = {"deadline": Deadline} + + restricts_capabilities: Optional[List[RestrictsCapability]] + """ + The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + """ + _inner_class_types = { + "restricts_capabilities": RestrictsCapability, + } + + class MinimumDeadline(StripeObject): + status: Literal["currently_due", "eventually_due", "past_due"] + """ + The current status of the requirement's impact. + """ + + class Reference(StripeObject): + inquiry: Optional[str] + """ + If `inquiry` is the type, the inquiry token. + """ + resource: Optional[str] + """ + If `resource` is the type, the resource token. + """ + type: Literal["inquiry", "payment_method", "person"] + """ + The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field. + Otherwise the type is an API resource, the token for which can be found in the "resource" field. + """ + + class RequestedReason(StripeObject): + code: Literal["routine_onboarding", "routine_verification"] + """ + Machine-readable description of Stripe's reason for collecting the requirement. + """ + + awaiting_action_from: Literal["stripe", "user"] + """ + Whether the responsibility is with the integrator or with Stripe (to review info, to wait for some condition, etc.) to action the requirement. + """ + description: str + """ + Machine-readable string describing the requirement. + """ + errors: List[Error] + """ + Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + """ + impact: Impact + """ + A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + """ + minimum_deadline: MinimumDeadline + """ + The soonest point when the account will be impacted by not providing the requirement. + """ + reference: Optional[Reference] + """ + A reference to the location of the requirement. + """ + requested_reasons: List[RequestedReason] + """ + A list of reasons why Stripe is collecting the requirement. + """ + _inner_class_types = { + "errors": Error, + "impact": Impact, + "minimum_deadline": MinimumDeadline, + "reference": Reference, + "requested_reasons": RequestedReason, + } + + class Summary(StripeObject): + class MinimumDeadline(StripeObject): + status: Literal["currently_due", "eventually_due", "past_due"] + """ + The current strictest status of all requirements on the Account. + """ + time: Optional[str] + """ + The soonest RFC3339 date & time UTC value a requirement can impact the Account. + """ + + minimum_deadline: Optional[MinimumDeadline] + """ + The soonest date and time a requirement on the Account will become `past due`. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + """ + _inner_class_types = {"minimum_deadline": MinimumDeadline} + + entries: Optional[List[Entry]] + """ + A list of requirements for the Account. + """ + minimum_transition_date: Optional[str] + """ + The time at which the future requirements become effective. + """ + summary: Optional[Summary] + """ + An object containing an overview of requirements for the Account. + """ + _inner_class_types = {"entries": Entry, "summary": Summary} + class Identity(StripeObject): class Attestations(StripeObject): class DirectorshipDeclaration(StripeObject): @@ -3584,6 +4002,7 @@ class IdNumber(StripeObject): "ae_crn", "ae_vat", "ao_nif", + "ar_cuit", "at_fn", "au_abn", "au_acn", @@ -4065,6 +4484,7 @@ class IdNumber(StripeObject): type: Literal[ "ae_eid", "ao_nif", + "ar_dni", "az_tin", "bd_brc", "bd_etin", @@ -4511,6 +4931,7 @@ class Deadline(StripeObject): "fpx_payments", "gb_bank_transfer_payments", "grabpay_payments", + "holds_currencies.eur", "holds_currencies.gbp", "holds_currencies.usd", "ideal_payments", @@ -4586,17 +5007,14 @@ class Reference(StripeObject): """ If `resource` is the type, the resource token. """ - type: Literal["inquiry", "resource"] + type: Literal["inquiry", "payment_method", "person"] """ - The type of the reference. An additional hash is included with a name matching the type. It contains additional information specific to the type. + The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field. + Otherwise the type is an API resource, the token for which can be found in the "resource" field. """ class RequestedReason(StripeObject): - code: Literal[ - "future_requirements", - "routine_onboarding", - "routine_verification", - ] + code: Literal["routine_onboarding", "routine_verification"] """ Machine-readable description of Stripe's reason for collecting the requirement. """ @@ -4654,10 +5072,6 @@ class MinimumDeadline(StripeObject): """ _inner_class_types = {"minimum_deadline": MinimumDeadline} - collector: Literal["application", "stripe"] - """ - A value indicating responsibility for collecting requirements on this account. - """ entries: Optional[List[Entry]] """ A list of requirements for the Account. @@ -4702,6 +5116,10 @@ class MinimumDeadline(StripeObject): """ A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. """ + future_requirements: Optional[FutureRequirements] + """ + Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when. + """ id: str """ Unique identifier for the Account. @@ -4724,11 +5142,12 @@ class MinimumDeadline(StripeObject): """ requirements: Optional[Requirements] """ - Information about the requirements for the Account, including what information needs to be collected, and by when. + Information about the active requirements for the Account, including what information needs to be collected, and by when. """ _inner_class_types = { "configuration": Configuration, "defaults": Defaults, + "future_requirements": FutureRequirements, "identity": Identity, "requirements": Requirements, } diff --git a/stripe/v2/core/_account_person.py b/stripe/v2/core/_account_person.py index ff801b764..8cc0c25bc 100644 --- a/stripe/v2/core/_account_person.py +++ b/stripe/v2/core/_account_person.py @@ -236,6 +236,7 @@ class IdNumber(StripeObject): type: Literal[ "ae_eid", "ao_nif", + "ar_dni", "az_tin", "bd_brc", "bd_etin", diff --git a/stripe/v2/core/_account_person_token.py b/stripe/v2/core/_account_person_token.py new file mode 100644 index 000000000..34b07a1e6 --- /dev/null +++ b/stripe/v2/core/_account_person_token.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from typing import ClassVar +from typing_extensions import Literal + + +class AccountPersonToken(StripeObject): + """ + Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person. + """ + + OBJECT_NAME: ClassVar[Literal["v2.core.account_person_token"]] = ( + "v2.core.account_person_token" + ) + created: str + """ + Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + """ + expires_at: str + """ + Time at which the token will expire. + """ + id: str + """ + Unique identifier for the token. + """ + livemode: bool + """ + Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + """ + object: Literal["v2.core.account_person_token"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ + used: bool + """ + Determines if the token has already been used (tokens can only be used once). + """ diff --git a/stripe/v2/core/_account_service.py b/stripe/v2/core/_account_service.py index 27d89401c..d4f2f6c0c 100644 --- a/stripe/v2/core/_account_service.py +++ b/stripe/v2/core/_account_service.py @@ -22,14 +22,22 @@ from stripe.v2._list_object import ListObject from stripe.v2.core._account import Account from stripe.v2.core.accounts._person_service import PersonService + from stripe.v2.core.accounts._person_token_service import ( + PersonTokenService, + ) _subservices = { "persons": ["stripe.v2.core.accounts._person_service", "PersonService"], + "person_tokens": [ + "stripe.v2.core.accounts._person_token_service", + "PersonTokenService", + ], } class AccountService(StripeService): persons: "PersonService" + person_tokens: "PersonTokenService" def __init__(self, requestor): super().__init__(requestor) diff --git a/stripe/v2/core/_account_token.py b/stripe/v2/core/_account_token.py new file mode 100644 index 000000000..c64b53754 --- /dev/null +++ b/stripe/v2/core/_account_token.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from typing import ClassVar +from typing_extensions import Literal + + +class AccountToken(StripeObject): + """ + Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + """ + + OBJECT_NAME: ClassVar[Literal["v2.core.account_token"]] = ( + "v2.core.account_token" + ) + created: str + """ + Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + """ + expires_at: str + """ + Time at which the token will expire. + """ + id: str + """ + Unique identifier for the token. + """ + livemode: bool + """ + Has the value `true` if the token exists in live mode or the value `false` if the object exists in test mode. + """ + object: Literal["v2.core.account_token"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ + used: bool + """ + Determines if the token has already been used (tokens can only be used once). + """ diff --git a/stripe/v2/core/_account_token_service.py b/stripe/v2/core/_account_token_service.py new file mode 100644 index 000000000..a36e8a4ec --- /dev/null +++ b/stripe/v2/core/_account_token_service.py @@ -0,0 +1,96 @@ +# -*- 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.v2.core._account_token_create_params import ( + AccountTokenCreateParams, + ) + from stripe.params.v2.core._account_token_retrieve_params import ( + AccountTokenRetrieveParams, + ) + from stripe.v2.core._account_token import AccountToken + + +class AccountTokenService(StripeService): + def create( + self, + params: "AccountTokenCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "AccountToken": + """ + Creates an Account Token. + """ + return cast( + "AccountToken", + self._request( + "post", + "/v2/core/account_tokens", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "AccountTokenCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "AccountToken": + """ + Creates an Account Token. + """ + return cast( + "AccountToken", + await self._request_async( + "post", + "/v2/core/account_tokens", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + params: Optional["AccountTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "AccountToken": + """ + Retrieves an Account Token. + """ + return cast( + "AccountToken", + self._request( + "get", + "/v2/core/account_tokens/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + params: Optional["AccountTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "AccountToken": + """ + Retrieves an Account Token. + """ + return cast( + "AccountToken", + await self._request_async( + "get", + "/v2/core/account_tokens/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py index 415a2879e..cb7ad021b 100644 --- a/stripe/v2/core/_event.py +++ b/stripe/v2/core/_event.py @@ -42,6 +42,10 @@ class Request(StripeObject): """ _inner_class_types = {"request": Request} + changes: Optional[Dict[str, "Any"]] + """ + Before and after changes for the primary related object. + """ context: Optional[str] """ Authentication context needed to fetch the event or related object. diff --git a/stripe/v2/core/accounts/__init__.py b/stripe/v2/core/accounts/__init__.py index 6aa8f860c..6cc5ff799 100644 --- a/stripe/v2/core/accounts/__init__.py +++ b/stripe/v2/core/accounts/__init__.py @@ -7,10 +7,17 @@ from stripe.v2.core.accounts._person_service import ( PersonService as PersonService, ) + from stripe.v2.core.accounts._person_token_service import ( + PersonTokenService as PersonTokenService, + ) # name -> (import_target, is_submodule) _import_map = { "PersonService": ("stripe.v2.core.accounts._person_service", False), + "PersonTokenService": ( + "stripe.v2.core.accounts._person_token_service", + False, + ), } if not TYPE_CHECKING: diff --git a/stripe/v2/core/accounts/_person_token_service.py b/stripe/v2/core/accounts/_person_token_service.py new file mode 100644 index 000000000..0868da342 --- /dev/null +++ b/stripe/v2/core/accounts/_person_token_service.py @@ -0,0 +1,110 @@ +# -*- 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.v2.core.accounts._person_token_create_params import ( + PersonTokenCreateParams, + ) + from stripe.params.v2.core.accounts._person_token_retrieve_params import ( + PersonTokenRetrieveParams, + ) + from stripe.v2.core._account_person_token import AccountPersonToken + + +class PersonTokenService(StripeService): + def create( + self, + account_id: str, + params: Optional["PersonTokenCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "AccountPersonToken": + """ + Creates a Person Token associated with an Account. + """ + return cast( + "AccountPersonToken", + self._request( + "post", + "/v2/core/accounts/{account_id}/person_tokens".format( + account_id=sanitize_id(account_id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + account_id: str, + params: Optional["PersonTokenCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "AccountPersonToken": + """ + Creates a Person Token associated with an Account. + """ + return cast( + "AccountPersonToken", + await self._request_async( + "post", + "/v2/core/accounts/{account_id}/person_tokens".format( + account_id=sanitize_id(account_id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + account_id: str, + id: str, + params: Optional["PersonTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "AccountPersonToken": + """ + Retrieves a Person Token associated with an Account. + """ + return cast( + "AccountPersonToken", + self._request( + "get", + "/v2/core/accounts/{account_id}/person_tokens/{id}".format( + account_id=sanitize_id(account_id), + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + account_id: str, + id: str, + params: Optional["PersonTokenRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "AccountPersonToken": + """ + Retrieves a Person Token associated with an Account. + """ + return cast( + "AccountPersonToken", + await self._request_async( + "get", + "/v2/core/accounts/{account_id}/person_tokens/{id}".format( + account_id=sanitize_id(account_id), + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/money_management/_financial_address.py b/stripe/v2/money_management/_financial_address.py index e4d214e3e..541f21e1f 100644 --- a/stripe/v2/money_management/_financial_address.py +++ b/stripe/v2/money_management/_financial_address.py @@ -92,9 +92,7 @@ class UsBankAccount(StripeObject): """ The credentials of the SEPA Bank Account for the FinancialAddress. This contains unique banking details such as the IBAN, BIC, etc. of a SEPA bank account. """ - type: Literal[ - "gb_bank_account", "sepa_bank_account", "us_bank_account" - ] + type: Literal["gb_bank_account", "us_bank_account"] """ Open Enum. The type of Credentials that are provisioned for the FinancialAddress. """ diff --git a/stripe/v2/payments/__init__.py b/stripe/v2/payments/__init__.py deleted file mode 100644 index 18a4f22a1..000000000 --- a/stripe/v2/payments/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- 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.v2.payments._off_session_payment import ( - OffSessionPayment as OffSessionPayment, - ) - from stripe.v2.payments._off_session_payment_service import ( - OffSessionPaymentService as OffSessionPaymentService, - ) - -# name -> (import_target, is_submodule) -_import_map = { - "OffSessionPayment": ("stripe.v2.payments._off_session_payment", False), - "OffSessionPaymentService": ( - "stripe.v2.payments._off_session_payment_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/v2/payments/_off_session_payment.py b/stripe/v2/payments/_off_session_payment.py deleted file mode 100644 index 58d1800e5..000000000 --- a/stripe/v2/payments/_off_session_payment.py +++ /dev/null @@ -1,273 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import StripeObject -from stripe.v2._amount import Amount -from typing import ClassVar, Dict, List, Optional -from typing_extensions import Literal - - -class OffSessionPayment(StripeObject): - """ - OffSessionPayment resource. - """ - - OBJECT_NAME: ClassVar[Literal["v2.payments.off_session_payment"]] = ( - "v2.payments.off_session_payment" - ) - - class AmountDetails(StripeObject): - class LineItem(StripeObject): - class Tax(StripeObject): - total_tax_amount: Optional[int] - """ - Total portion of the amount that is for tax. - """ - - discount_amount: Optional[int] - """ - The amount an item was discounted for. Positive integer. - """ - product_code: Optional[str] - """ - Unique identifier of the product. At most 12 characters long. - """ - product_name: str - """ - Name of the product. At most 100 characters long. - """ - quantity: int - """ - Number of items of the product. Positive integer. - """ - tax: Optional[Tax] - """ - Contains information about the tax on the item. - """ - unit_cost: int - """ - Cost of the product. Non-negative integer. - """ - _inner_class_types = {"tax": Tax} - - class Shipping(StripeObject): - amount: Optional[int] - """ - Portion of the amount that is for shipping. - """ - from_postal_code: Optional[str] - """ - The postal code that represents the shipping source. - """ - to_postal_code: Optional[str] - """ - The postal code that represents the shipping destination. - """ - - class Tax(StripeObject): - total_tax_amount: Optional[int] - """ - Total portion of the amount that is for tax. - """ - - discount_amount: Optional[int] - """ - The amount the total transaction was discounted for. - """ - line_items: List[LineItem] - """ - A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. - """ - shipping: Optional[Shipping] - """ - Contains information about the shipping portion of the amount. - """ - tax: Optional[Tax] - """ - Contains information about the tax portion of the amount. - """ - _inner_class_types = { - "line_items": LineItem, - "shipping": Shipping, - "tax": Tax, - } - - class Capture(StripeObject): - capture_before: Optional[str] - """ - The timestamp when this payment is no longer eligible to be captured. - """ - capture_method: Literal["automatic", "manual"] - """ - The method to use to capture the payment. - """ - - class PaymentsOrchestration(StripeObject): - enabled: bool - """ - True when you want to enable payments orchestration for this off-session payment. False otherwise. - """ - - class RetryDetails(StripeObject): - attempts: int - """ - Number of authorization attempts so far. - """ - retry_policy: Optional[str] - """ - The pre-configured retry policy to use for the payment. - """ - retry_strategy: Literal["heuristic", "none", "scheduled", "smart"] - """ - Indicates the strategy for how you want Stripe to retry the payment. - """ - - class TransferData(StripeObject): - amount: Optional[int] - """ - The amount transferred to the destination account. This transfer will occur - automatically after the payment succeeds. If no amount is specified, by default - the entire payment amount is transferred to the destination account. The amount - must be less than or equal to the - [amount_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), - and must be a positive integer representing how much to transfer in the smallest - currency unit (e.g., 100 cents to charge $1.00). - """ - destination: str - """ - The account (if any) that the payment is attributed to for tax reporting, and - where funds from the payment are transferred to after payment success. - """ - - amount_capturable: Optional[Amount] - """ - The amount available to be captured. - """ - amount_details: Optional[AmountDetails] - """ - Provides industry-specific information about the amount. - """ - amount_requested: Amount - """ - The “presentment amount” to be collected from the customer. - """ - cadence: Literal["recurring", "unscheduled"] - """ - The frequency of the underlying payment. - """ - capture: Optional[Capture] - """ - Details about the capture configuration for the OffSessionPayment. - """ - capture_method: Optional[Literal["automatic", "manual"]] - """ - Whether the OffSessionPayment should be captured automatically or manually. - """ - compartment_id: str - """ - ID of the owning compartment. - """ - created: str - """ - Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC - value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - """ - customer: str - """ - ID of the Customer to which this OffSessionPayment belongs. - """ - failure_reason: Optional[ - Literal[ - "authorization_expired", "rejected_by_partner", "retries_exhausted" - ] - ] - """ - The reason why the OffSessionPayment failed. - """ - id: str - """ - Unique identifier for the object. - """ - last_authorization_attempt_error: Optional[str] - """ - The payment error encountered in the previous attempt to authorize the payment. - """ - latest_payment_attempt_record: Optional[str] - """ - Payment attempt record for the latest attempt, if one exists. - """ - livemode: bool - """ - Has the value true if the object exists in live mode or the value false if the object exists in test mode. - """ - metadata: Dict[str, str] - """ - Set of [key-value pairs](https://docs.corp.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. Learn more about - [storing information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata). - """ - object: Literal["v2.payments.off_session_payment"] - """ - String representing the object's type. Objects of the same type share the same value of the object field. - """ - on_behalf_of: Optional[str] - """ - The account (if any) for which the funds of the OffSessionPayment are intended. - """ - payment_method: str - """ - ID of the payment method used in this OffSessionPayment. - """ - payment_record: Optional[str] - """ - Payment record associated with the OffSessionPayment. - """ - payments_orchestration: PaymentsOrchestration - """ - Details about the payments orchestration configuration. - """ - retry_details: RetryDetails - """ - Details about the OffSessionPayment retries. - """ - statement_descriptor: Optional[str] - """ - Text that appears on the customer's statement as the statement descriptor for a - non-card charge. This value overrides the account's default statement descriptor. - For information about requirements, including the 22-character limit, see the - [Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). - """ - statement_descriptor_suffix: Optional[str] - """ - Provides information about a card charge. Concatenated to the account's - [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) - to form the complete statement descriptor that appears on the customer's statement. - """ - status: Literal[ - "canceled", - "failed", - "pending", - "pending_retry", - "processing", - "requires_capture", - "succeeded", - ] - """ - Status of this OffSessionPayment, one of `pending`, `pending_retry`, `processing`, - `failed`, `canceled`, `requires_capture`, or `succeeded`. - """ - test_clock: Optional[str] - """ - Test clock that can be used to advance the retry attempts in a sandbox. - """ - transfer_data: Optional[TransferData] - """ - The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts). - """ - _inner_class_types = { - "amount_details": AmountDetails, - "capture": Capture, - "payments_orchestration": PaymentsOrchestration, - "retry_details": RetryDetails, - "transfer_data": TransferData, - } diff --git a/stripe/v2/payments/_off_session_payment_service.py b/stripe/v2/payments/_off_session_payment_service.py deleted file mode 100644 index 3fcb38a62..000000000 --- a/stripe/v2/payments/_off_session_payment_service.py +++ /dev/null @@ -1,236 +0,0 @@ -# -*- 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.v2.payments._off_session_payment_cancel_params import ( - OffSessionPaymentCancelParams, - ) - from stripe.params.v2.payments._off_session_payment_capture_params import ( - OffSessionPaymentCaptureParams, - ) - from stripe.params.v2.payments._off_session_payment_create_params import ( - OffSessionPaymentCreateParams, - ) - from stripe.params.v2.payments._off_session_payment_list_params import ( - OffSessionPaymentListParams, - ) - from stripe.params.v2.payments._off_session_payment_retrieve_params import ( - OffSessionPaymentRetrieveParams, - ) - from stripe.v2._list_object import ListObject - from stripe.v2.payments._off_session_payment import OffSessionPayment - - -class OffSessionPaymentService(StripeService): - def list( - self, - params: Optional["OffSessionPaymentListParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "ListObject[OffSessionPayment]": - """ - Returns a list of OffSessionPayments matching a filter. - """ - return cast( - "ListObject[OffSessionPayment]", - self._request( - "get", - "/v2/payments/off_session_payments", - base_address="api", - params=params, - options=options, - ), - ) - - async def list_async( - self, - params: Optional["OffSessionPaymentListParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "ListObject[OffSessionPayment]": - """ - Returns a list of OffSessionPayments matching a filter. - """ - return cast( - "ListObject[OffSessionPayment]", - await self._request_async( - "get", - "/v2/payments/off_session_payments", - base_address="api", - params=params, - options=options, - ), - ) - - def create( - self, - params: "OffSessionPaymentCreateParams", - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Creates an OffSessionPayment object. - """ - return cast( - "OffSessionPayment", - self._request( - "post", - "/v2/payments/off_session_payments", - base_address="api", - params=params, - options=options, - ), - ) - - async def create_async( - self, - params: "OffSessionPaymentCreateParams", - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Creates an OffSessionPayment object. - """ - return cast( - "OffSessionPayment", - await self._request_async( - "post", - "/v2/payments/off_session_payments", - base_address="api", - params=params, - options=options, - ), - ) - - def retrieve( - self, - id: str, - params: Optional["OffSessionPaymentRetrieveParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Retrieves the details of an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - self._request( - "get", - "/v2/payments/off_session_payments/{id}".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - async def retrieve_async( - self, - id: str, - params: Optional["OffSessionPaymentRetrieveParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Retrieves the details of an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - await self._request_async( - "get", - "/v2/payments/off_session_payments/{id}".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - def cancel( - self, - id: str, - params: Optional["OffSessionPaymentCancelParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Cancel an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - self._request( - "post", - "/v2/payments/off_session_payments/{id}/cancel".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - async def cancel_async( - self, - id: str, - params: Optional["OffSessionPaymentCancelParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Cancel an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - await self._request_async( - "post", - "/v2/payments/off_session_payments/{id}/cancel".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - def capture( - self, - id: str, - params: "OffSessionPaymentCaptureParams", - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Captures an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - self._request( - "post", - "/v2/payments/off_session_payments/{id}/capture".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - async def capture_async( - self, - id: str, - params: "OffSessionPaymentCaptureParams", - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Captures an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - await self._request_async( - "post", - "/v2/payments/off_session_payments/{id}/capture".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py index 7d2712354..d56ffc7f5 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -220,7 +220,7 @@ def test_encodes_null_values_preview(self, requestor, http_client_mock): def test_dictionary_list_encoding(self): params = {"foo": {"0": {"bar": "bat"}}} - encoded = list(_api_encode(params, "V1")) + encoded = list(_api_encode(params)) key, value = encoded[0] assert key == "foo[0][bar]" @@ -237,7 +237,7 @@ def test_ordereddict_encoding(self): ] ) } - encoded = list(_api_encode(params, "V1")) + encoded = list(_api_encode(params)) assert encoded[0][0] == "ordered[one]" assert encoded[1][0] == "ordered[two]" diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 3788e8f03..68e740b97 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -44161,7 +44161,7 @@ def test_v2_billing_profile_get_service( http_client_mock.stub_request( "get", "/v2/billing/profiles", - "lookup_keys=lookup_keys", + "lookup_keys[0]=lookup_keys", ) client = StripeClient( "sk_test_123", @@ -44172,7 +44172,7 @@ def test_v2_billing_profile_get_service( http_client_mock.assert_requested( "get", path="/v2/billing/profiles", - query_string="lookup_keys=lookup_keys", + query_string="lookup_keys[0]=lookup_keys", api_base="https://api.stripe.com", ) @@ -44459,6 +44459,51 @@ def test_v2_core_accounts_person_post_2_service( is_json=True, ) + def test_v2_core_accounts_person_token_post_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "post", + "/v2/core/accounts/account_id_123/person_tokens", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.accounts.person_tokens.create("account_id_123") + http_client_mock.assert_requested( + "post", + path="/v2/core/accounts/account_id_123/person_tokens", + query_string="", + api_base="https://api.stripe.com", + post_data="{}", + is_json=True, + ) + + def test_v2_core_accounts_person_token_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/core/accounts/account_id_123/person_tokens/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.accounts.person_tokens.retrieve( + "account_id_123", + "id_123", + ) + http_client_mock.assert_requested( + "get", + path="/v2/core/accounts/account_id_123/person_tokens/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_core_account_link_post_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -44506,6 +44551,271 @@ def test_v2_core_account_link_post_service( is_json=True, ) + def test_v2_core_account_token_post_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "post", + "/v2/core/account_tokens", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.account_tokens.create( + { + "identity": { + "attestations": { + "directorship_declaration": {"attested": True}, + "ownership_declaration": {"attested": True}, + "persons_provided": { + "directors": True, + "executives": True, + "owners": True, + "ownership_exemption_reason": "qualified_entity_exceeds_ownership_threshold", + }, + "representative_declaration": {"attested": True}, + "terms_of_service": { + "account": {"shown_and_accepted": True}, + "storer": {"shown_and_accepted": True}, + }, + }, + "business_details": { + "address": { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "state": "state", + "town": "town", + }, + "annual_revenue": { + "amount": {"currency": "USD", "value": 96}, + "fiscal_year_end": "fiscal_year_end", + }, + "documents": { + "bank_account_ownership_verification": { + "files": ["files"], + "type": "files", + }, + "company_license": { + "files": ["files"], + "type": "files", + }, + "company_memorandum_of_association": { + "files": ["files"], + "type": "files", + }, + "company_ministerial_decree": { + "files": ["files"], + "type": "files", + }, + "company_registration_verification": { + "files": ["files"], + "type": "files", + }, + "company_tax_id_verification": { + "files": ["files"], + "type": "files", + }, + "primary_verification": { + "front_back": { + "back": "back", + "front": "front", + }, + "type": "front_back", + }, + "proof_of_address": { + "files": ["files"], + "type": "files", + }, + "proof_of_registration": { + "files": ["files"], + "type": "files", + }, + "proof_of_ultimate_beneficial_ownership": { + "files": ["files"], + "type": "files", + }, + }, + "estimated_worker_count": 884794319, + "id_numbers": [ + { + "registrar": "registrar", + "type": "th_prn", + "value": "value", + }, + ], + "monthly_estimated_revenue": { + "amount": {"currency": "USD", "value": 96}, + }, + "phone": "phone", + "registered_name": "registered_name", + "script_addresses": { + "kana": { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "state": "state", + "town": "town", + }, + "kanji": { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "state": "state", + "town": "town", + }, + }, + "script_names": { + "kana": {"registered_name": "registered_name"}, + "kanji": {"registered_name": "registered_name"}, + }, + "structure": "public_listed_corporation", + }, + "entity_type": "individual", + "individual": { + "additional_addresses": [ + { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "purpose": "registered", + "state": "state", + "town": "town", + }, + ], + "additional_names": [ + { + "full_name": "full_name", + "given_name": "given_name", + "purpose": "alias", + "surname": "surname", + }, + ], + "address": { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "state": "state", + "town": "town", + }, + "date_of_birth": { + "day": 99228, + "month": 104080000, + "year": 3704893, + }, + "documents": { + "company_authorization": { + "files": ["files"], + "type": "files", + }, + "passport": {"files": ["files"], "type": "files"}, + "primary_verification": { + "front_back": { + "back": "back", + "front": "front", + }, + "type": "front_back", + }, + "secondary_verification": { + "front_back": { + "back": "back", + "front": "front", + }, + "type": "front_back", + }, + "visa": {"files": ["files"], "type": "files"}, + }, + "email": "email", + "given_name": "given_name", + "id_numbers": [{"type": "th_lc", "value": "value"}], + "legal_gender": "male", + "metadata": {"key": "metadata"}, + "nationalities": ["nationalities"], + "phone": "phone", + "political_exposure": "none", + "relationship": { + "director": True, + "executive": True, + "owner": True, + "percent_ownership": "percent_ownership", + "title": "title", + }, + "script_addresses": { + "kana": { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "state": "state", + "town": "town", + }, + "kanji": { + "city": "city", + "country": "country", + "line1": "line1", + "line2": "line2", + "postal_code": "postal_code", + "state": "state", + "town": "town", + }, + }, + "script_names": { + "kana": { + "given_name": "given_name", + "surname": "surname", + }, + "kanji": { + "given_name": "given_name", + "surname": "surname", + }, + }, + "surname": "surname", + }, + }, + } + ) + http_client_mock.assert_requested( + "post", + path="/v2/core/account_tokens", + query_string="", + api_base="https://api.stripe.com", + post_data='{"identity":{"attestations":{"directorship_declaration":{"attested":true},"ownership_declaration":{"attested":true},"persons_provided":{"directors":true,"executives":true,"owners":true,"ownership_exemption_reason":"qualified_entity_exceeds_ownership_threshold"},"representative_declaration":{"attested":true},"terms_of_service":{"account":{"shown_and_accepted":true},"storer":{"shown_and_accepted":true}}},"business_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"annual_revenue":{"amount":{"currency":"USD","value":96},"fiscal_year_end":"fiscal_year_end"},"documents":{"bank_account_ownership_verification":{"files":["files"],"type":"files"},"company_license":{"files":["files"],"type":"files"},"company_memorandum_of_association":{"files":["files"],"type":"files"},"company_ministerial_decree":{"files":["files"],"type":"files"},"company_registration_verification":{"files":["files"],"type":"files"},"company_tax_id_verification":{"files":["files"],"type":"files"},"primary_verification":{"front_back":{"back":"back","front":"front"},"type":"front_back"},"proof_of_address":{"files":["files"],"type":"files"},"proof_of_registration":{"files":["files"],"type":"files"},"proof_of_ultimate_beneficial_ownership":{"files":["files"],"type":"files"}},"estimated_worker_count":884794319,"id_numbers":[{"registrar":"registrar","type":"th_prn","value":"value"}],"monthly_estimated_revenue":{"amount":{"currency":"USD","value":96}},"phone":"phone","registered_name":"registered_name","script_addresses":{"kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"}},"script_names":{"kana":{"registered_name":"registered_name"},"kanji":{"registered_name":"registered_name"}},"structure":"public_listed_corporation"},"entity_type":"individual","individual":{"additional_addresses":[{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","purpose":"registered","state":"state","town":"town"}],"additional_names":[{"full_name":"full_name","given_name":"given_name","purpose":"alias","surname":"surname"}],"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"date_of_birth":{"day":99228,"month":104080000,"year":3704893},"documents":{"company_authorization":{"files":["files"],"type":"files"},"passport":{"files":["files"],"type":"files"},"primary_verification":{"front_back":{"back":"back","front":"front"},"type":"front_back"},"secondary_verification":{"front_back":{"back":"back","front":"front"},"type":"front_back"},"visa":{"files":["files"],"type":"files"}},"email":"email","given_name":"given_name","id_numbers":[{"type":"th_lc","value":"value"}],"legal_gender":"male","metadata":{"key":"metadata"},"nationalities":["nationalities"],"phone":"phone","political_exposure":"none","relationship":{"director":true,"executive":true,"owner":true,"percent_ownership":"percent_ownership","title":"title"},"script_addresses":{"kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"}},"script_names":{"kana":{"given_name":"given_name","surname":"surname"},"kanji":{"given_name":"given_name","surname":"surname"}},"surname":"surname"}}}', + is_json=True, + ) + + def test_v2_core_account_token_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/core/account_tokens/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.core.account_tokens.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/core/account_tokens/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_core_event_get_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -45920,123 +46230,6 @@ def test_v2_money_management_transaction_entry_get_2_service( api_base="https://api.stripe.com", ) - def test_v2_payments_off_session_payment_get_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "get", - "/v2/payments/off_session_payments", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.payments.off_session_payments.list() - http_client_mock.assert_requested( - "get", - path="/v2/payments/off_session_payments", - query_string="", - api_base="https://api.stripe.com", - ) - - def test_v2_payments_off_session_payment_post_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/payments/off_session_payments", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.payments.off_session_payments.create( - { - "amount": {"currency": "USD", "value": 96}, - "cadence": "unscheduled", - "customer": "customer", - "metadata": {"key": "metadata"}, - "payment_method": "payment_method", - } - ) - http_client_mock.assert_requested( - "post", - path="/v2/payments/off_session_payments", - query_string="", - api_base="https://api.stripe.com", - post_data='{"amount":{"currency":"USD","value":96},"cadence":"unscheduled","customer":"customer","metadata":{"key":"metadata"},"payment_method":"payment_method"}', - is_json=True, - ) - - def test_v2_payments_off_session_payment_get_2_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "get", - "/v2/payments/off_session_payments/id_123", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.payments.off_session_payments.retrieve("id_123") - http_client_mock.assert_requested( - "get", - path="/v2/payments/off_session_payments/id_123", - query_string="", - api_base="https://api.stripe.com", - ) - - def test_v2_payments_off_session_payment_post_2_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/payments/off_session_payments/id_123/cancel", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.payments.off_session_payments.cancel("id_123") - http_client_mock.assert_requested( - "post", - path="/v2/payments/off_session_payments/id_123/cancel", - query_string="", - api_base="https://api.stripe.com", - post_data="{}", - is_json=True, - ) - - def test_v2_payments_off_session_payment_post_3_service( - self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/payments/off_session_payments/id_123/capture", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.payments.off_session_payments.capture( - "id_123", - {"amount_to_capture": 1374310455, "metadata": {"key": "metadata"}}, - ) - http_client_mock.assert_requested( - "post", - path="/v2/payments/off_session_payments/id_123/capture", - query_string="", - api_base="https://api.stripe.com", - post_data='{"amount_to_capture":1374310455,"metadata":{"key":"metadata"}}', - is_json=True, - ) - def test_v2_test_helpers_financial_address_post_service( self, http_client_mock: HTTPClientMock ) -> None: diff --git a/tests/test_http_client.py b/tests/test_http_client.py index 2f183498c..be0f8400f 100644 --- a/tests/test_http_client.py +++ b/tests/test_http_client.py @@ -1176,7 +1176,7 @@ class TestAPIEncode: def test_encode_dict(self): body = {"foo": {"dob": {"month": 1}, "name": "bat"}} - values = [t for t in _api_encode(body, "V1")] + values = [t for t in _api_encode(body)] assert ("foo[dob][month]", 1) in values assert ("foo[name]", "bat") in values @@ -1184,7 +1184,7 @@ def test_encode_dict(self): def test_encode_array(self): body = {"foo": [{"dob": {"month": 1}, "name": "bat"}]} - values = [t for t in _api_encode(body, "V1")] + values = [t for t in _api_encode(body)] assert ("foo[0][dob][month]", 1) in values assert ("foo[0][name]", "bat") in values @@ -1192,10 +1192,10 @@ def test_encode_array(self): def test_encode_v2_array(self): body = {"foo": [{"dob": {"month": 1}, "name": "bat"}]} - values = [t for t in _api_encode(body, "V2")] + values = [t for t in _api_encode(body)] - assert ("foo[dob][month]", 1) in values - assert ("foo[name]", "bat") in values + assert ("foo[0][dob][month]", 1) in values + assert ("foo[0][name]", "bat") in values class TestHTTPXClient(ClientTestBase):