From 00a078c60ad93c791d5fe1c1f815ff5c7a9d01c7 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 19:03:10 +0000 Subject: [PATCH] Update generated code (#1336) * Update generated code for v1049 * Update generated code for v1050 * Update generated code for v1051 * Update generated code for v1052 * Update generated code for v1053 * Update generated code for v1054 * Update generated code for v1055 * Update generated code for v1056 * Update generated code for v1058 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- stripe/_account.py | 4 +- stripe/_account_service.py | 4 +- stripe/_bank_account.py | 2 + stripe/_capability.py | 2 + stripe/_charge.py | 2 +- stripe/_confirmation_token.py | 182 ++++++++++++++++++++++ stripe/_event.py | 4 + stripe/_invoice.py | 6 +- stripe/_invoice_service.py | 4 +- stripe/_invoice_upcoming_lines_service.py | 2 +- stripe/_payment_intent.py | 168 ++++++++++---------- stripe/_payment_intent_service.py | 168 ++++++++++---------- stripe/_payment_method.py | 180 +++++++++++++++++++++ stripe/_person.py | 2 + stripe/_webhook_endpoint.py | 8 + stripe/_webhook_endpoint_service.py | 8 + stripe/checkout/_session.py | 26 +++- stripe/checkout/_session_service.py | 14 +- stripe/issuing/_physical_bundle.py | 4 +- 20 files changed, 615 insertions(+), 177 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 20970a9f9..4161e81ad 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1047 \ No newline at end of file +v1058 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index e58390170..80babd314 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -707,6 +707,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. @@ -855,6 +856,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. @@ -1264,7 +1266,7 @@ class CreateParams(RequestOptions): """ tos_acceptance: NotRequired["Account.CreateParamsTosAcceptance"] """ - Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. + Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty. """ type: NotRequired[Literal["custom", "express", "standard"]] """ diff --git a/stripe/_account_service.py b/stripe/_account_service.py index b7c53e47b..437f1b7a3 100644 --- a/stripe/_account_service.py +++ b/stripe/_account_service.py @@ -101,7 +101,7 @@ class CreateParams(TypedDict): """ tos_acceptance: NotRequired["AccountService.CreateParamsTosAcceptance"] """ - Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. + Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty. """ type: NotRequired[Literal["custom", "express", "standard"]] """ @@ -1707,7 +1707,7 @@ class UpdateParams(TypedDict): """ tos_acceptance: NotRequired["AccountService.UpdateParamsTosAcceptance"] """ - Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. + Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty. """ class UpdateParamsBankAccount(TypedDict): diff --git a/stripe/_bank_account.py b/stripe/_bank_account.py index c74515d33..8f3799e37 100644 --- a/stripe/_bank_account.py +++ b/stripe/_bank_account.py @@ -126,6 +126,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. @@ -248,6 +249,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. diff --git a/stripe/_capability.py b/stripe/_capability.py index 8e800be8f..53ca37edd 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -119,6 +119,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. @@ -267,6 +268,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. diff --git a/stripe/_charge.py b/stripe/_charge.py index 63d1385fc..896a4c2ed 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1255,7 +1255,7 @@ class Klarna(StripeObject): preferred_locale: Optional[str] """ Preferred language of the Klarna authorization page that the customer is redirected to. - Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` """ class Konbini(StripeObject): diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index c8cbd375b..8eba07da4 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -196,6 +196,183 @@ class Checks(StripeObject): If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. """ + class GeneratedFrom(StripeObject): + class PaymentMethodDetails(StripeObject): + class CardPresent(StripeObject): + class Offline(StripeObject): + stored_at: Optional[int] + """ + Time at which the payment was collected while offline + """ + + class Receipt(StripeObject): + account_type: Optional[ + Literal[ + "checking", "credit", "prepaid", "unknown" + ] + ] + """ + The type of account being debited or credited + """ + application_cryptogram: Optional[str] + """ + EMV tag 9F26, cryptogram generated by the integrated circuit chip. + """ + application_preferred_name: Optional[str] + """ + Mnenomic of the Application Identifier. + """ + authorization_code: Optional[str] + """ + Identifier for this transaction. + """ + authorization_response_code: Optional[str] + """ + EMV tag 8A. A code returned by the card issuer. + """ + cardholder_verification_method: Optional[str] + """ + Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + """ + dedicated_file_name: Optional[str] + """ + EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + """ + terminal_verification_results: Optional[str] + """ + The outcome of a series of EMV functions performed by the card reader. + """ + transaction_status_information: Optional[str] + """ + An indication of various EMV functions performed during the transaction. + """ + + amount_authorized: Optional[int] + """ + The authorized amount + """ + brand: Optional[str] + """ + Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + """ + capture_before: Optional[int] + """ + When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + """ + cardholder_name: Optional[str] + """ + The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + emv_auth_data: Optional[str] + """ + Authorization response cryptogram. + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + """ + funding: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + generated_card: Optional[str] + """ + ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + incremental_authorization_supported: bool + """ + Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + network: Optional[str] + """ + Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + """ + offline: Optional[Offline] + """ + Details about payments collected offline. + """ + overcapture_supported: bool + """ + Defines whether the authorized amount can be over-captured or not + """ + preferred_locales: Optional[List[str]] + """ + EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + """ + read_method: Optional[ + Literal[ + "contact_emv", + "contactless_emv", + "contactless_magstripe_mode", + "magnetic_stripe_fallback", + "magnetic_stripe_track2", + ] + ] + """ + How card details were read in this transaction. + """ + receipt: Optional[Receipt] + """ + A collection of fields required to be displayed on receipts. Only required for EMV transactions. + """ + _inner_class_types = { + "offline": Offline, + "receipt": Receipt, + } + + card_present: Optional[CardPresent] + type: str + """ + The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`. + """ + _inner_class_types = {"card_present": CardPresent} + + charge: Optional[str] + """ + The charge that created this object. + """ + payment_method_details: Optional[PaymentMethodDetails] + """ + Transaction-specific details of the payment method used in the payment. + """ + setup_attempt: Optional[ExpandableField["SetupAttempt"]] + """ + The ID of the SetupAttempt that generated this PaymentMethod, if any. + """ + _inner_class_types = { + "payment_method_details": PaymentMethodDetails, + } + class Networks(StripeObject): available: List[str] """ @@ -447,6 +624,10 @@ class ShippingAddress(StripeObject): """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. """ + generated_from: Optional[GeneratedFrom] + """ + Details of the original PaymentMethod that created this object. + """ iin: Optional[str] """ Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) @@ -473,6 +654,7 @@ class ShippingAddress(StripeObject): """ _inner_class_types = { "checks": Checks, + "generated_from": GeneratedFrom, "networks": Networks, "three_d_secure_usage": ThreeDSecureUsage, "wallet": Wallet, diff --git a/stripe/_event.py b/stripe/_event.py index 8161a9ce1..40164c169 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -265,6 +265,10 @@ class RetrieveParams(RequestOptions): "issuing_dispute.funds_reinstated", "issuing_dispute.submitted", "issuing_dispute.updated", + "issuing_personalization_design.activated", + "issuing_personalization_design.deactivated", + "issuing_personalization_design.rejected", + "issuing_personalization_design.updated", "issuing_token.created", "issuing_token.updated", "issuing_transaction.created", diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 5b628c477..2670f8ec5 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1659,7 +1659,7 @@ class CreatePreviewParams(RequestOptions): """ subscription: NotRequired[str] """ - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. + The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. """ subscription_details: NotRequired[ "Invoice.CreatePreviewParamsSubscriptionDetails" @@ -3400,7 +3400,7 @@ class UpcomingLinesParams(RequestOptions): """ subscription: NotRequired[str] """ - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. + The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. """ subscription_billing_cycle_anchor: NotRequired[ "Literal['now', 'unchanged']|int" @@ -4534,7 +4534,7 @@ class UpcomingParams(RequestOptions): """ subscription: NotRequired[str] """ - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. + The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. """ subscription_billing_cycle_anchor: NotRequired[ "Literal['now', 'unchanged']|int" diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 82a527768..20813eedd 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -692,7 +692,7 @@ class CreatePreviewParams(TypedDict): """ subscription: NotRequired[str] """ - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. + The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. """ subscription_details: NotRequired[ "InvoiceService.CreatePreviewParamsSubscriptionDetails" @@ -1834,7 +1834,7 @@ class UpcomingParams(TypedDict): """ subscription: NotRequired[str] """ - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. + The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. """ subscription_billing_cycle_anchor: NotRequired[ "Literal['now', 'unchanged']|int" diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index 0087c058e..106daa5fd 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -86,7 +86,7 @@ class ListParams(TypedDict): """ subscription: NotRequired[str] """ - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. + The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions. """ subscription_billing_cycle_anchor: NotRequired[ "Literal['now', 'unchanged']|int" diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index b64e38c66..39183b13c 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2976,11 +2976,11 @@ class ConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions(TypedDict): class ConfirmParamsPaymentMethodOptionsAffirm(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -3000,11 +3000,11 @@ class ConfirmParamsPaymentMethodOptionsAffirm(TypedDict): class ConfirmParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -3039,11 +3039,11 @@ class ConfirmParamsPaymentMethodOptionsAlipay(TypedDict): class ConfirmParamsPaymentMethodOptionsAmazonPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -3139,11 +3139,11 @@ class ConfirmParamsPaymentMethodOptionsBoleto(TypedDict): class ConfirmParamsPaymentMethodOptionsCard(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -3418,11 +3418,11 @@ class ConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBanca class ConfirmParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -3573,11 +3573,11 @@ class ConfirmParamsPaymentMethodOptionsInteracPresent(TypedDict): class ConfirmParamsPaymentMethodOptionsKlarna(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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[ Literal[ @@ -3607,6 +3607,7 @@ class ConfirmParamsPaymentMethodOptionsKlarna(TypedDict): "en-NZ", "en-PL", "en-PT", + "en-RO", "en-SE", "en-US", "es-ES", @@ -3623,6 +3624,7 @@ class ConfirmParamsPaymentMethodOptionsKlarna(TypedDict): "nl-NL", "pl-PL", "pt-PT", + "ro-RO", "sv-FI", "sv-SE", ] @@ -3672,11 +3674,11 @@ class ConfirmParamsPaymentMethodOptionsKonbini(TypedDict): class ConfirmParamsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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. """ persistent_token: NotRequired[str] """ @@ -3698,11 +3700,11 @@ class ConfirmParamsPaymentMethodOptionsLink(TypedDict): class ConfirmParamsPaymentMethodOptionsMobilepay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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["none"]] """ @@ -3848,11 +3850,11 @@ class ConfirmParamsPaymentMethodOptionsPromptpay(TypedDict): class ConfirmParamsPaymentMethodOptionsRevolutPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -5177,11 +5179,11 @@ class CreateParamsPaymentMethodOptionsAcssDebitMandateOptions(TypedDict): class CreateParamsPaymentMethodOptionsAffirm(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -5201,11 +5203,11 @@ class CreateParamsPaymentMethodOptionsAffirm(TypedDict): class CreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -5240,11 +5242,11 @@ class CreateParamsPaymentMethodOptionsAlipay(TypedDict): class CreateParamsPaymentMethodOptionsAmazonPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -5340,11 +5342,11 @@ class CreateParamsPaymentMethodOptionsBoleto(TypedDict): class CreateParamsPaymentMethodOptionsCard(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -5619,11 +5621,11 @@ class CreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancai class CreateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -5774,11 +5776,11 @@ class CreateParamsPaymentMethodOptionsInteracPresent(TypedDict): class CreateParamsPaymentMethodOptionsKlarna(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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[ Literal[ @@ -5808,6 +5810,7 @@ class CreateParamsPaymentMethodOptionsKlarna(TypedDict): "en-NZ", "en-PL", "en-PT", + "en-RO", "en-SE", "en-US", "es-ES", @@ -5824,6 +5827,7 @@ class CreateParamsPaymentMethodOptionsKlarna(TypedDict): "nl-NL", "pl-PL", "pt-PT", + "ro-RO", "sv-FI", "sv-SE", ] @@ -5873,11 +5877,11 @@ class CreateParamsPaymentMethodOptionsKonbini(TypedDict): class CreateParamsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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. """ persistent_token: NotRequired[str] """ @@ -5899,11 +5903,11 @@ class CreateParamsPaymentMethodOptionsLink(TypedDict): class CreateParamsPaymentMethodOptionsMobilepay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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["none"]] """ @@ -6049,11 +6053,11 @@ class CreateParamsPaymentMethodOptionsPromptpay(TypedDict): class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -7372,11 +7376,11 @@ class ModifyParamsPaymentMethodOptionsAcssDebitMandateOptions(TypedDict): class ModifyParamsPaymentMethodOptionsAffirm(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -7396,11 +7400,11 @@ class ModifyParamsPaymentMethodOptionsAffirm(TypedDict): class ModifyParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -7435,11 +7439,11 @@ class ModifyParamsPaymentMethodOptionsAlipay(TypedDict): class ModifyParamsPaymentMethodOptionsAmazonPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -7535,11 +7539,11 @@ class ModifyParamsPaymentMethodOptionsBoleto(TypedDict): class ModifyParamsPaymentMethodOptionsCard(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -7814,11 +7818,11 @@ class ModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancai class ModifyParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -7969,11 +7973,11 @@ class ModifyParamsPaymentMethodOptionsInteracPresent(TypedDict): class ModifyParamsPaymentMethodOptionsKlarna(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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[ Literal[ @@ -8003,6 +8007,7 @@ class ModifyParamsPaymentMethodOptionsKlarna(TypedDict): "en-NZ", "en-PL", "en-PT", + "en-RO", "en-SE", "en-US", "es-ES", @@ -8019,6 +8024,7 @@ class ModifyParamsPaymentMethodOptionsKlarna(TypedDict): "nl-NL", "pl-PL", "pt-PT", + "ro-RO", "sv-FI", "sv-SE", ] @@ -8068,11 +8074,11 @@ class ModifyParamsPaymentMethodOptionsKonbini(TypedDict): class ModifyParamsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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. """ persistent_token: NotRequired[str] """ @@ -8094,11 +8100,11 @@ class ModifyParamsPaymentMethodOptionsLink(TypedDict): class ModifyParamsPaymentMethodOptionsMobilepay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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["none"]] """ @@ -8244,11 +8250,11 @@ class ModifyParamsPaymentMethodOptionsPromptpay(TypedDict): class ModifyParamsPaymentMethodOptionsRevolutPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index d2e1c83d4..fa94c2cd0 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -1119,11 +1119,11 @@ class ConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions(TypedDict): class ConfirmParamsPaymentMethodOptionsAffirm(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -1143,11 +1143,11 @@ class ConfirmParamsPaymentMethodOptionsAffirm(TypedDict): class ConfirmParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -1182,11 +1182,11 @@ class ConfirmParamsPaymentMethodOptionsAlipay(TypedDict): class ConfirmParamsPaymentMethodOptionsAmazonPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -1282,11 +1282,11 @@ class ConfirmParamsPaymentMethodOptionsBoleto(TypedDict): class ConfirmParamsPaymentMethodOptionsCard(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -1561,11 +1561,11 @@ class ConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBanca class ConfirmParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -1716,11 +1716,11 @@ class ConfirmParamsPaymentMethodOptionsInteracPresent(TypedDict): class ConfirmParamsPaymentMethodOptionsKlarna(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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[ Literal[ @@ -1750,6 +1750,7 @@ class ConfirmParamsPaymentMethodOptionsKlarna(TypedDict): "en-NZ", "en-PL", "en-PT", + "en-RO", "en-SE", "en-US", "es-ES", @@ -1766,6 +1767,7 @@ class ConfirmParamsPaymentMethodOptionsKlarna(TypedDict): "nl-NL", "pl-PL", "pt-PT", + "ro-RO", "sv-FI", "sv-SE", ] @@ -1815,11 +1817,11 @@ class ConfirmParamsPaymentMethodOptionsKonbini(TypedDict): class ConfirmParamsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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. """ persistent_token: NotRequired[str] """ @@ -1841,11 +1843,11 @@ class ConfirmParamsPaymentMethodOptionsLink(TypedDict): class ConfirmParamsPaymentMethodOptionsMobilepay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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["none"]] """ @@ -1991,11 +1993,11 @@ class ConfirmParamsPaymentMethodOptionsPromptpay(TypedDict): class ConfirmParamsPaymentMethodOptionsRevolutPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -3344,11 +3346,11 @@ class CreateParamsPaymentMethodOptionsAcssDebitMandateOptions(TypedDict): class CreateParamsPaymentMethodOptionsAffirm(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -3368,11 +3370,11 @@ class CreateParamsPaymentMethodOptionsAffirm(TypedDict): class CreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -3407,11 +3409,11 @@ class CreateParamsPaymentMethodOptionsAlipay(TypedDict): class CreateParamsPaymentMethodOptionsAmazonPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -3507,11 +3509,11 @@ class CreateParamsPaymentMethodOptionsBoleto(TypedDict): class CreateParamsPaymentMethodOptionsCard(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -3786,11 +3788,11 @@ class CreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancai class CreateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -3941,11 +3943,11 @@ class CreateParamsPaymentMethodOptionsInteracPresent(TypedDict): class CreateParamsPaymentMethodOptionsKlarna(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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[ Literal[ @@ -3975,6 +3977,7 @@ class CreateParamsPaymentMethodOptionsKlarna(TypedDict): "en-NZ", "en-PL", "en-PT", + "en-RO", "en-SE", "en-US", "es-ES", @@ -3991,6 +3994,7 @@ class CreateParamsPaymentMethodOptionsKlarna(TypedDict): "nl-NL", "pl-PL", "pt-PT", + "ro-RO", "sv-FI", "sv-SE", ] @@ -4040,11 +4044,11 @@ class CreateParamsPaymentMethodOptionsKonbini(TypedDict): class CreateParamsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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. """ persistent_token: NotRequired[str] """ @@ -4066,11 +4070,11 @@ class CreateParamsPaymentMethodOptionsLink(TypedDict): class CreateParamsPaymentMethodOptionsMobilepay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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["none"]] """ @@ -4216,11 +4220,11 @@ class CreateParamsPaymentMethodOptionsPromptpay(TypedDict): class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -5591,11 +5595,11 @@ class UpdateParamsPaymentMethodOptionsAcssDebitMandateOptions(TypedDict): class UpdateParamsPaymentMethodOptionsAffirm(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -5615,11 +5619,11 @@ class UpdateParamsPaymentMethodOptionsAffirm(TypedDict): class UpdateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -5654,11 +5658,11 @@ class UpdateParamsPaymentMethodOptionsAlipay(TypedDict): class UpdateParamsPaymentMethodOptionsAmazonPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -5754,11 +5758,11 @@ class UpdateParamsPaymentMethodOptionsBoleto(TypedDict): class UpdateParamsPaymentMethodOptionsCard(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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] """ @@ -6033,11 +6037,11 @@ class UpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancai class UpdateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" @@ -6188,11 +6192,11 @@ class UpdateParamsPaymentMethodOptionsInteracPresent(TypedDict): class UpdateParamsPaymentMethodOptionsKlarna(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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[ Literal[ @@ -6222,6 +6226,7 @@ class UpdateParamsPaymentMethodOptionsKlarna(TypedDict): "en-NZ", "en-PL", "en-PT", + "en-RO", "en-SE", "en-US", "es-ES", @@ -6238,6 +6243,7 @@ class UpdateParamsPaymentMethodOptionsKlarna(TypedDict): "nl-NL", "pl-PL", "pt-PT", + "ro-RO", "sv-FI", "sv-SE", ] @@ -6287,11 +6293,11 @@ class UpdateParamsPaymentMethodOptionsKonbini(TypedDict): class UpdateParamsPaymentMethodOptionsLink(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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. """ persistent_token: NotRequired[str] """ @@ -6313,11 +6319,11 @@ class UpdateParamsPaymentMethodOptionsLink(TypedDict): class UpdateParamsPaymentMethodOptionsMobilepay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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["none"]] """ @@ -6463,11 +6469,11 @@ class UpdateParamsPaymentMethodOptionsPromptpay(TypedDict): class UpdateParamsPaymentMethodOptionsRevolutPay(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ - Controls when the funds will be captured from the customer's account. + Controls when the funds are captured from the customer's account. - If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + If provided, this parameter overrides the behavior of the top-level [capture_method](https://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 will unset the stored value for 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']" diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index aa5f8e897..3a263b266 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -172,6 +172,181 @@ class Checks(StripeObject): If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. """ + class GeneratedFrom(StripeObject): + class PaymentMethodDetails(StripeObject): + class CardPresent(StripeObject): + class Offline(StripeObject): + stored_at: Optional[int] + """ + Time at which the payment was collected while offline + """ + + class Receipt(StripeObject): + account_type: Optional[ + Literal["checking", "credit", "prepaid", "unknown"] + ] + """ + The type of account being debited or credited + """ + application_cryptogram: Optional[str] + """ + EMV tag 9F26, cryptogram generated by the integrated circuit chip. + """ + application_preferred_name: Optional[str] + """ + Mnenomic of the Application Identifier. + """ + authorization_code: Optional[str] + """ + Identifier for this transaction. + """ + authorization_response_code: Optional[str] + """ + EMV tag 8A. A code returned by the card issuer. + """ + cardholder_verification_method: Optional[str] + """ + Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + """ + dedicated_file_name: Optional[str] + """ + EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + """ + terminal_verification_results: Optional[str] + """ + The outcome of a series of EMV functions performed by the card reader. + """ + transaction_status_information: Optional[str] + """ + An indication of various EMV functions performed during the transaction. + """ + + amount_authorized: Optional[int] + """ + The authorized amount + """ + brand: Optional[str] + """ + Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + """ + capture_before: Optional[int] + """ + When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + """ + cardholder_name: Optional[str] + """ + The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + emv_auth_data: Optional[str] + """ + Authorization response cryptogram. + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + """ + funding: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + generated_card: Optional[str] + """ + ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + incremental_authorization_supported: bool + """ + Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + network: Optional[str] + """ + Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + """ + offline: Optional[Offline] + """ + Details about payments collected offline. + """ + overcapture_supported: bool + """ + Defines whether the authorized amount can be over-captured or not + """ + preferred_locales: Optional[List[str]] + """ + EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + """ + read_method: Optional[ + Literal[ + "contact_emv", + "contactless_emv", + "contactless_magstripe_mode", + "magnetic_stripe_fallback", + "magnetic_stripe_track2", + ] + ] + """ + How card details were read in this transaction. + """ + receipt: Optional[Receipt] + """ + A collection of fields required to be displayed on receipts. Only required for EMV transactions. + """ + _inner_class_types = { + "offline": Offline, + "receipt": Receipt, + } + + card_present: Optional[CardPresent] + type: str + """ + The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`. + """ + _inner_class_types = {"card_present": CardPresent} + + charge: Optional[str] + """ + The charge that created this object. + """ + payment_method_details: Optional[PaymentMethodDetails] + """ + Transaction-specific details of the payment method used in the payment. + """ + setup_attempt: Optional[ExpandableField["SetupAttempt"]] + """ + The ID of the SetupAttempt that generated this PaymentMethod, if any. + """ + _inner_class_types = { + "payment_method_details": PaymentMethodDetails, + } + class Networks(StripeObject): available: List[str] """ @@ -423,6 +598,10 @@ class ShippingAddress(StripeObject): """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. """ + generated_from: Optional[GeneratedFrom] + """ + Details of the original PaymentMethod that created this object. + """ iin: Optional[str] """ Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) @@ -449,6 +628,7 @@ class ShippingAddress(StripeObject): """ _inner_class_types = { "checks": Checks, + "generated_from": GeneratedFrom, "networks": Networks, "three_d_secure_usage": ThreeDSecureUsage, "wallet": Wallet, diff --git a/stripe/_person.py b/stripe/_person.py index d3461e966..399a97f2f 100644 --- a/stripe/_person.py +++ b/stripe/_person.py @@ -242,6 +242,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. @@ -438,6 +439,7 @@ class Error(StripeObject): "verification_missing_executives", "verification_missing_owners", "verification_requires_additional_memorandum_of_associations", + "verification_requires_additional_proof_of_registration", ] """ The code for the type of error. diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index c23848bbc..4b32c05f8 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -258,6 +258,10 @@ class CreateParams(RequestOptions): "issuing_dispute.funds_reinstated", "issuing_dispute.submitted", "issuing_dispute.updated", + "issuing_personalization_design.activated", + "issuing_personalization_design.deactivated", + "issuing_personalization_design.rejected", + "issuing_personalization_design.updated", "issuing_token.created", "issuing_token.updated", "issuing_transaction.created", @@ -539,6 +543,10 @@ class ModifyParams(RequestOptions): "issuing_dispute.funds_reinstated", "issuing_dispute.submitted", "issuing_dispute.updated", + "issuing_personalization_design.activated", + "issuing_personalization_design.deactivated", + "issuing_personalization_design.rejected", + "issuing_personalization_design.updated", "issuing_token.created", "issuing_token.updated", "issuing_transaction.created", diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 2d1c7513a..2a97e832c 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -239,6 +239,10 @@ class CreateParams(TypedDict): "issuing_dispute.funds_reinstated", "issuing_dispute.submitted", "issuing_dispute.updated", + "issuing_personalization_design.activated", + "issuing_personalization_design.deactivated", + "issuing_personalization_design.rejected", + "issuing_personalization_design.updated", "issuing_token.created", "issuing_token.updated", "issuing_transaction.created", @@ -526,6 +530,10 @@ class UpdateParams(TypedDict): "issuing_dispute.funds_reinstated", "issuing_dispute.submitted", "issuing_dispute.updated", + "issuing_personalization_design.activated", + "issuing_personalization_design.deactivated", + "issuing_personalization_design.rejected", + "issuing_personalization_design.updated", "issuing_token.created", "issuing_token.updated", "issuing_transaction.created", diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 8535824d1..7cb3605d3 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -175,6 +175,10 @@ class Option(StripeObject): The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. """ + default_value: Optional[str] + """ + The value that will pre-fill on the payment page. + """ options: List[Option] """ The options available for the customer to select. Up to 200 options allowed. @@ -196,6 +200,10 @@ class Label(StripeObject): """ class Numeric(StripeObject): + default_value: Optional[str] + """ + The value that will pre-fill the field on the payment page. + """ maximum_length: Optional[int] """ The maximum character length constraint for the customer's input. @@ -210,6 +218,10 @@ class Numeric(StripeObject): """ class Text(StripeObject): + default_value: Optional[str] + """ + The value that will pre-fill the field on the payment page. + """ maximum_length: Optional[int] """ The maximum character length constraint for the customer's input. @@ -1936,6 +1948,10 @@ class CreateParamsCustomField(TypedDict): """ class CreateParamsCustomFieldDropdown(TypedDict): + default_value: NotRequired[str] + """ + The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array. + """ options: List["Session.CreateParamsCustomFieldDropdownOption"] """ The options available for the customer to select. Up to 200 options allowed. @@ -1962,6 +1978,10 @@ class CreateParamsCustomFieldLabel(TypedDict): """ class CreateParamsCustomFieldNumeric(TypedDict): + default_value: NotRequired[str] + """ + The value that will pre-fill the field on the payment page. + """ maximum_length: NotRequired[int] """ The maximum character length constraint for the customer's input. @@ -1972,6 +1992,10 @@ class CreateParamsCustomFieldNumeric(TypedDict): """ class CreateParamsCustomFieldText(TypedDict): + default_value: NotRequired[str] + """ + The value that will pre-fill the field on the payment page. + """ maximum_length: NotRequired[int] """ The maximum character length constraint for the customer's input. @@ -3378,7 +3402,7 @@ class CreateParamsShippingOption(TypedDict): "Session.CreateParamsShippingOptionShippingRateData" ] """ - Parameters to be passed to Shipping Rate creation for this shipping option + Parameters to be passed to Shipping Rate creation for this shipping option. """ class CreateParamsShippingOptionShippingRateData(TypedDict): diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index defe9f25a..289ed5fd0 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -448,6 +448,10 @@ class CreateParamsCustomField(TypedDict): """ class CreateParamsCustomFieldDropdown(TypedDict): + default_value: NotRequired[str] + """ + The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array. + """ options: List["SessionService.CreateParamsCustomFieldDropdownOption"] """ The options available for the customer to select. Up to 200 options allowed. @@ -474,6 +478,10 @@ class CreateParamsCustomFieldLabel(TypedDict): """ class CreateParamsCustomFieldNumeric(TypedDict): + default_value: NotRequired[str] + """ + The value that will pre-fill the field on the payment page. + """ maximum_length: NotRequired[int] """ The maximum character length constraint for the customer's input. @@ -484,6 +492,10 @@ class CreateParamsCustomFieldNumeric(TypedDict): """ class CreateParamsCustomFieldText(TypedDict): + default_value: NotRequired[str] + """ + The value that will pre-fill the field on the payment page. + """ maximum_length: NotRequired[int] """ The maximum character length constraint for the customer's input. @@ -1926,7 +1938,7 @@ class CreateParamsShippingOption(TypedDict): "SessionService.CreateParamsShippingOptionShippingRateData" ] """ - Parameters to be passed to Shipping Rate creation for this shipping option + Parameters to be passed to Shipping Rate creation for this shipping option. """ class CreateParamsShippingOptionShippingRateData(TypedDict): diff --git a/stripe/issuing/_physical_bundle.py b/stripe/issuing/_physical_bundle.py index 45b959c11..7f2661d49 100644 --- a/stripe/issuing/_physical_bundle.py +++ b/stripe/issuing/_physical_bundle.py @@ -4,7 +4,7 @@ from stripe._listable_api_resource import ListableAPIResource from stripe._request_options import RequestOptions from stripe._stripe_object import StripeObject -from typing import ClassVar, List, Optional +from typing import ClassVar, List from typing_extensions import Literal, NotRequired, Unpack @@ -63,7 +63,7 @@ class RetrieveParams(RequestOptions): Specifies which fields in the response should be expanded. """ - features: Optional[Features] + features: Features id: str """ Unique identifier for the object.