diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d18dc2e69..579e73fad 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1317 \ No newline at end of file +v1318 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 89a4fcab0..dd71ba373 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -5279,7 +5279,7 @@ def create_login_link( cls, account: str, **params: Unpack["Account.CreateLoginLinkParams"] ) -> "LoginLink": """ - Creates a single-use login link for a connected account to access the Express Dashboard. + Creates a login link for a connected account to access the Express Dashboard. You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. """ @@ -5299,7 +5299,7 @@ async def create_login_link_async( cls, account: str, **params: Unpack["Account.CreateLoginLinkParams"] ) -> "LoginLink": """ - Creates a single-use login link for a connected account to access the Express Dashboard. + Creates a login link for a connected account to access the Express Dashboard. You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. """ diff --git a/stripe/_account_login_link_service.py b/stripe/_account_login_link_service.py index aa3d3dc7d..0d1d0a30c 100644 --- a/stripe/_account_login_link_service.py +++ b/stripe/_account_login_link_service.py @@ -22,7 +22,7 @@ def create( options: RequestOptions = {}, ) -> LoginLink: """ - Creates a single-use login link for a connected account to access the Express Dashboard. + Creates a login link for a connected account to access the Express Dashboard. You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. """ @@ -46,7 +46,7 @@ async def create_async( options: RequestOptions = {}, ) -> LoginLink: """ - Creates a single-use login link for a connected account to access the Express Dashboard. + Creates a login link for a connected account to access the Express Dashboard. You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. """ diff --git a/stripe/_account_session.py b/stripe/_account_session.py index fd3ef93bf..0371696eb 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -427,6 +427,9 @@ class CreateParamsComponents(TypedDict): recipients: NotRequired[ "AccountSession.CreateParamsComponentsRecipients" ] + """ + Configuration for the recipients component. + """ reporting_chart: NotRequired[ "AccountSession.CreateParamsComponentsReportingChart" ] @@ -643,6 +646,9 @@ class CreateParamsComponentsFinancialAccount(TypedDict): features: NotRequired[ "AccountSession.CreateParamsComponentsFinancialAccountFeatures" ] + """ + The list of features enabled in the embedded component. + """ class CreateParamsComponentsFinancialAccountFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] @@ -882,12 +888,12 @@ class CreateParamsComponentsRecipients(TypedDict): features: NotRequired[ "AccountSession.CreateParamsComponentsRecipientsFeatures" ] - """ - The list of features enabled in the embedded component. - """ class CreateParamsComponentsRecipientsFeatures(TypedDict): - pass + send_money: NotRequired[bool] + """ + Whether to allow sending money. + """ class CreateParamsComponentsReportingChart(TypedDict): enabled: bool diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index 18ac2f516..e7b3c3963 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -146,6 +146,9 @@ class CreateParamsComponents(TypedDict): recipients: NotRequired[ "AccountSessionService.CreateParamsComponentsRecipients" ] + """ + Configuration for the recipients component. + """ reporting_chart: NotRequired[ "AccountSessionService.CreateParamsComponentsReportingChart" ] @@ -362,6 +365,9 @@ class CreateParamsComponentsFinancialAccount(TypedDict): features: NotRequired[ "AccountSessionService.CreateParamsComponentsFinancialAccountFeatures" ] + """ + The list of features enabled in the embedded component. + """ class CreateParamsComponentsFinancialAccountFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] @@ -601,12 +607,12 @@ class CreateParamsComponentsRecipients(TypedDict): features: NotRequired[ "AccountSessionService.CreateParamsComponentsRecipientsFeatures" ] - """ - The list of features enabled in the embedded component. - """ class CreateParamsComponentsRecipientsFeatures(TypedDict): - pass + send_money: NotRequired[bool] + """ + Whether to allow sending money. + """ class CreateParamsComponentsReportingChart(TypedDict): enabled: bool diff --git a/stripe/_api_version.py b/stripe/_api_version.py index e23615373..16c42a5c5 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2024-09-30.acacia" + CURRENT = "2024-10-28.acacia" diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 4405d33ec..22f5c33e1 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -233,7 +233,7 @@ class ShippingAddress(StripeObject): """ The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge. """ - enhanced_evidence: Optional[EnhancedEvidence] + enhanced_evidence: EnhancedEvidence product_description: Optional[str] """ A description of the product or service that was sold. @@ -323,7 +323,7 @@ class VisaCompellingEvidence3(StripeObject): """ Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute. """ - enhanced_eligibility: Optional[EnhancedEligibility] + enhanced_eligibility: EnhancedEligibility has_evidence: bool """ Whether evidence has been staged for this dispute. @@ -764,9 +764,7 @@ class RetrieveParams(RequestOptions): """ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). """ - enhanced_eligibility_types: Optional[ - List[Literal["visa_compelling_evidence_3"]] - ] + enhanced_eligibility_types: List[Literal["visa_compelling_evidence_3"]] """ List of eligibility types that are included in `enhanced_evidence`. """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index bcaebf991..292ea9a92 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -1471,6 +1471,10 @@ class CreateParams(RequestOptions): """ Settings for automatic tax lookup for this invoice. """ + automatically_finalizes_at: NotRequired[int] + """ + The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. + """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] ] @@ -4176,6 +4180,10 @@ class ModifyParams(RequestOptions): """ Settings for automatic tax lookup for this invoice. """ + automatically_finalizes_at: NotRequired[int] + """ + The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] ] diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 6a4a86af3..9b9565499 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -349,6 +349,10 @@ class CreateParams(TypedDict): """ Settings for automatic tax lookup for this invoice. """ + automatically_finalizes_at: NotRequired[int] + """ + The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. + """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] ] @@ -5406,6 +5410,10 @@ class UpdateParams(TypedDict): """ Settings for automatic tax lookup for this invoice. """ + automatically_finalizes_at: NotRequired[int] + """ + The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + """ collection_method: NotRequired[ Literal["charge_automatically", "send_invoice"] ] diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index 9bf91b077..1ecc32bb1 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -477,6 +477,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Gopay(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class Grabpay(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -807,6 +829,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Qris(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class RevolutPay(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -851,6 +895,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Shopeepay(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class Sofort(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1094,6 +1160,10 @@ class CreateParams(RequestOptions): """ Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://stripe.com/docs/google-pay) for more details. """ + gopay: NotRequired["PaymentMethodConfiguration.CreateParamsGopay"] + """ + GoPay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment. + """ grabpay: NotRequired["PaymentMethodConfiguration.CreateParamsGrabpay"] """ GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://stripe.com/docs/payments/grabpay) for more details. @@ -1170,6 +1240,10 @@ class CreateParams(RequestOptions): """ PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details. """ + qris: NotRequired["PaymentMethodConfiguration.CreateParamsQris"] + """ + QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. + """ revolut_pay: NotRequired[ "PaymentMethodConfiguration.CreateParamsRevolutPay" ] @@ -1182,6 +1256,12 @@ class CreateParams(RequestOptions): """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. """ + shopeepay: NotRequired[ + "PaymentMethodConfiguration.CreateParamsShopeepay" + ] + """ + ShopeePay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment. + """ sofort: NotRequired["PaymentMethodConfiguration.CreateParamsSofort"] """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://stripe.com/docs/payments/sofort) for more details. @@ -1505,6 +1585,20 @@ class CreateParamsGooglePayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsGopay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.CreateParamsGopayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsGopayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsGrabpay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.CreateParamsGrabpayDisplayPreference" @@ -1715,6 +1809,20 @@ class CreateParamsPromptpayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsQris(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.CreateParamsQrisDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsQrisDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.CreateParamsRevolutPayDisplayPreference" @@ -1743,6 +1851,20 @@ class CreateParamsSepaDebitDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsShopeepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.CreateParamsShopeepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsShopeepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.CreateParamsSofortDisplayPreference" @@ -1964,6 +2086,10 @@ class ModifyParams(RequestOptions): """ Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://stripe.com/docs/google-pay) for more details. """ + gopay: NotRequired["PaymentMethodConfiguration.ModifyParamsGopay"] + """ + GoPay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment. + """ grabpay: NotRequired["PaymentMethodConfiguration.ModifyParamsGrabpay"] """ GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://stripe.com/docs/payments/grabpay) for more details. @@ -2036,6 +2162,10 @@ class ModifyParams(RequestOptions): """ PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details. """ + qris: NotRequired["PaymentMethodConfiguration.ModifyParamsQris"] + """ + QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. + """ revolut_pay: NotRequired[ "PaymentMethodConfiguration.ModifyParamsRevolutPay" ] @@ -2048,6 +2178,12 @@ class ModifyParams(RequestOptions): """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. """ + shopeepay: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsShopeepay" + ] + """ + ShopeePay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment. + """ sofort: NotRequired["PaymentMethodConfiguration.ModifyParamsSofort"] """ Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://stripe.com/docs/payments/sofort) for more details. @@ -2371,6 +2507,20 @@ class ModifyParamsGooglePayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class ModifyParamsGopay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsGopayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class ModifyParamsGopayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class ModifyParamsGrabpay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.ModifyParamsGrabpayDisplayPreference" @@ -2581,6 +2731,20 @@ class ModifyParamsPromptpayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class ModifyParamsQris(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsQrisDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class ModifyParamsQrisDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class ModifyParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.ModifyParamsRevolutPayDisplayPreference" @@ -2609,6 +2773,20 @@ class ModifyParamsSepaDebitDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class ModifyParamsShopeepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsShopeepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class ModifyParamsShopeepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class ModifyParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.ModifyParamsSofortDisplayPreference" @@ -2727,6 +2905,7 @@ class RetrieveParams(RequestOptions): fpx: Optional[Fpx] giropay: Optional[Giropay] google_pay: Optional[GooglePay] + gopay: Optional[Gopay] grabpay: Optional[Grabpay] id: str """ @@ -2766,8 +2945,10 @@ class RetrieveParams(RequestOptions): paypal: Optional[Paypal] payto: Optional[Payto] promptpay: Optional[Promptpay] + qris: Optional[Qris] revolut_pay: Optional[RevolutPay] sepa_debit: Optional[SepaDebit] + shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] swish: Optional[Swish] twint: Optional[Twint] @@ -2932,6 +3113,7 @@ async def retrieve_async( "fpx": Fpx, "giropay": Giropay, "google_pay": GooglePay, + "gopay": Gopay, "grabpay": Grabpay, "id_bank_transfer": IdBankTransfer, "ideal": Ideal, @@ -2947,8 +3129,10 @@ async def retrieve_async( "paypal": Paypal, "payto": Payto, "promptpay": Promptpay, + "qris": Qris, "revolut_pay": RevolutPay, "sepa_debit": SepaDebit, + "shopeepay": Shopeepay, "sofort": Sofort, "swish": Swish, "twint": Twint, diff --git a/stripe/_payment_method_configuration_service.py b/stripe/_payment_method_configuration_service.py index af2f0099d..7083ea7b3 100644 --- a/stripe/_payment_method_configuration_service.py +++ b/stripe/_payment_method_configuration_service.py @@ -131,6 +131,12 @@ class CreateParams(TypedDict): """ Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://stripe.com/docs/google-pay) for more details. """ + gopay: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsGopay" + ] + """ + GoPay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment. + """ grabpay: NotRequired[ "PaymentMethodConfigurationService.CreateParamsGrabpay" ] @@ -221,6 +227,10 @@ class CreateParams(TypedDict): """ PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details. """ + qris: NotRequired["PaymentMethodConfigurationService.CreateParamsQris"] + """ + QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. + """ revolut_pay: NotRequired[ "PaymentMethodConfigurationService.CreateParamsRevolutPay" ] @@ -233,6 +243,12 @@ class CreateParams(TypedDict): """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. """ + shopeepay: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsShopeepay" + ] + """ + ShopeePay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment. + """ sofort: NotRequired[ "PaymentMethodConfigurationService.CreateParamsSofort" ] @@ -562,6 +578,20 @@ class CreateParamsGooglePayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsGopay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsGopayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsGopayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsGrabpay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.CreateParamsGrabpayDisplayPreference" @@ -772,6 +802,20 @@ class CreateParamsPromptpayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsQris(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsQrisDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsQrisDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.CreateParamsRevolutPayDisplayPreference" @@ -800,6 +844,20 @@ class CreateParamsSepaDebitDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsShopeepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsShopeepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsShopeepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.CreateParamsSofortDisplayPreference" @@ -1037,6 +1095,12 @@ class UpdateParams(TypedDict): """ Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://stripe.com/docs/google-pay) for more details. """ + gopay: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsGopay" + ] + """ + GoPay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment. + """ grabpay: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsGrabpay" ] @@ -1123,6 +1187,10 @@ class UpdateParams(TypedDict): """ PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://stripe.com/docs/payments/promptpay) for more details. """ + qris: NotRequired["PaymentMethodConfigurationService.UpdateParamsQris"] + """ + QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. + """ revolut_pay: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsRevolutPay" ] @@ -1135,6 +1203,12 @@ class UpdateParams(TypedDict): """ The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details. """ + shopeepay: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsShopeepay" + ] + """ + ShopeePay is a [single use](https://stripe.com/docs/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment. + """ sofort: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsSofort" ] @@ -1464,6 +1538,20 @@ class UpdateParamsGooglePayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class UpdateParamsGopay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsGopayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class UpdateParamsGopayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class UpdateParamsGrabpay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsGrabpayDisplayPreference" @@ -1674,6 +1762,20 @@ class UpdateParamsPromptpayDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class UpdateParamsQris(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsQrisDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class UpdateParamsQrisDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class UpdateParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsRevolutPayDisplayPreference" @@ -1702,6 +1804,20 @@ class UpdateParamsSepaDebitDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class UpdateParamsShopeepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsShopeepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class UpdateParamsShopeepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class UpdateParamsSofort(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsSofortDisplayPreference" diff --git a/stripe/_refund.py b/stripe/_refund.py index 9309e3672..d8f2c74b1 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -328,9 +328,6 @@ class EmailSent(StripeObject): _inner_class_types = {"email_sent": EmailSent} display_details: Optional[DisplayDetails] - """ - Contains the refund details. - """ type: str """ Type of the next action to perform. diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index e63d4939f..46fdb4a29 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -135,6 +135,7 @@ class CreateParams(RequestOptions): "2024-04-10", "2024-06-20", "2024-09-30.acacia", + "2024-10-28.acacia", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 0b20d1cdb..3e4d291e2 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -116,6 +116,7 @@ class CreateParams(TypedDict): "2024-04-10", "2024-06-20", "2024-09-30.acacia", + "2024-10-28.acacia", ] ] """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index a374fe347..c46b9a02e 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1017,6 +1017,22 @@ class Ideal(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class KakaoPay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: Optional[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class Klarna(StripeObject): setup_future_usage: Optional[ Literal["none", "off_session", "on_session"] @@ -1047,6 +1063,22 @@ class Konbini(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class KrCard(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: Optional[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class Link(StripeObject): setup_future_usage: Optional[Literal["none", "off_session"]] """ @@ -1083,6 +1115,12 @@ class Multibanco(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class NaverPay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class Oxxo(StripeObject): expires_after_days: int """ @@ -1111,6 +1149,12 @@ class P24(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class Payco(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class Paynow(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -1238,6 +1282,12 @@ class RevolutPay(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class SamsungPay(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + class SepaDebit(StripeObject): setup_future_usage: Optional[ Literal["none", "off_session", "on_session"] @@ -1365,18 +1415,23 @@ class ManualEntry(StripeObject): giropay: Optional[Giropay] grabpay: Optional[Grabpay] ideal: Optional[Ideal] + kakao_pay: Optional[KakaoPay] klarna: Optional[Klarna] konbini: Optional[Konbini] + kr_card: Optional[KrCard] link: Optional[Link] mobilepay: Optional[Mobilepay] multibanco: Optional[Multibanco] + naver_pay: Optional[NaverPay] oxxo: Optional[Oxxo] p24: Optional[P24] + payco: Optional[Payco] paynow: Optional[Paynow] paypal: Optional[Paypal] payto: Optional[Payto] pix: Optional[Pix] revolut_pay: Optional[RevolutPay] + samsung_pay: Optional[SamsungPay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] swish: Optional[Swish] @@ -1399,18 +1454,23 @@ class ManualEntry(StripeObject): "giropay": Giropay, "grabpay": Grabpay, "ideal": Ideal, + "kakao_pay": KakaoPay, "klarna": Klarna, "konbini": Konbini, + "kr_card": KrCard, "link": Link, "mobilepay": Mobilepay, "multibanco": Multibanco, + "naver_pay": NaverPay, "oxxo": Oxxo, "p24": P24, + "payco": Payco, "paynow": Paynow, "paypal": Paypal, "payto": Payto, "pix": Pix, "revolut_pay": RevolutPay, + "samsung_pay": SamsungPay, "sepa_debit": SepaDebit, "sofort": Sofort, "swish": Swish, @@ -2890,6 +2950,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Ideal payment method options. """ + kakao_pay: NotRequired[ + "Session.CreateParamsPaymentMethodOptionsKakaoPay" + ] + """ + contains details about the Kakao Pay payment method options. + """ klarna: NotRequired["Session.CreateParamsPaymentMethodOptionsKlarna"] """ contains details about the Klarna payment method options. @@ -2898,6 +2964,10 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Konbini payment method options. """ + kr_card: NotRequired["Session.CreateParamsPaymentMethodOptionsKrCard"] + """ + contains details about the Korean card payment method options. + """ link: NotRequired["Session.CreateParamsPaymentMethodOptionsLink"] """ contains details about the Link payment method options. @@ -2914,6 +2984,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Multibanco payment method options. """ + naver_pay: NotRequired[ + "Session.CreateParamsPaymentMethodOptionsNaverPay" + ] + """ + contains details about the Kakao Pay payment method options. + """ oxxo: NotRequired["Session.CreateParamsPaymentMethodOptionsOxxo"] """ contains details about the OXXO payment method options. @@ -2922,6 +2998,10 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the P24 payment method options. """ + payco: NotRequired["Session.CreateParamsPaymentMethodOptionsPayco"] + """ + contains details about the PAYCO payment method options. + """ paynow: NotRequired["Session.CreateParamsPaymentMethodOptionsPaynow"] """ contains details about the PayNow payment method options. @@ -2944,6 +3024,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the RevolutPay payment method options. """ + samsung_pay: NotRequired[ + "Session.CreateParamsPaymentMethodOptionsSamsungPay" + ] + """ + contains details about the Samsung Pay payment method options. + """ sepa_debit: NotRequired[ "Session.CreateParamsPaymentMethodOptionsSepaDebit" ] @@ -3312,6 +3398,18 @@ class CreateParamsPaymentMethodOptionsIdeal(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsKakaoPay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class CreateParamsPaymentMethodOptionsKlarna(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -3340,6 +3438,18 @@ class CreateParamsPaymentMethodOptionsKonbini(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsKrCard(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class CreateParamsPaymentMethodOptionsLink(TypedDict): setup_future_usage: NotRequired[Literal["none", "off_session"]] """ @@ -3376,6 +3486,18 @@ class CreateParamsPaymentMethodOptionsMultibanco(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsNaverPay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class CreateParamsPaymentMethodOptionsOxxo(TypedDict): expires_after_days: NotRequired[int] """ @@ -3408,6 +3530,9 @@ class CreateParamsPaymentMethodOptionsP24(TypedDict): Confirm that the payer has accepted the P24 terms and conditions. """ + class CreateParamsPaymentMethodOptionsPayco(TypedDict): + pass + class CreateParamsPaymentMethodOptionsPaynow(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -3575,6 +3700,9 @@ class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsSamsungPay(TypedDict): + pass + class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): setup_future_usage: NotRequired[ Literal["none", "off_session", "on_session"] diff --git a/stripe/checkout/_session_service.py b/stripe/checkout/_session_service.py index 524d5ef3d..783ae0f9c 100644 --- a/stripe/checkout/_session_service.py +++ b/stripe/checkout/_session_service.py @@ -1035,6 +1035,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Ideal payment method options. """ + kakao_pay: NotRequired[ + "SessionService.CreateParamsPaymentMethodOptionsKakaoPay" + ] + """ + contains details about the Kakao Pay payment method options. + """ klarna: NotRequired[ "SessionService.CreateParamsPaymentMethodOptionsKlarna" ] @@ -1047,6 +1053,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Konbini payment method options. """ + kr_card: NotRequired[ + "SessionService.CreateParamsPaymentMethodOptionsKrCard" + ] + """ + contains details about the Korean card payment method options. + """ link: NotRequired[ "SessionService.CreateParamsPaymentMethodOptionsLink" ] @@ -1065,6 +1077,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Multibanco payment method options. """ + naver_pay: NotRequired[ + "SessionService.CreateParamsPaymentMethodOptionsNaverPay" + ] + """ + contains details about the Kakao Pay payment method options. + """ oxxo: NotRequired[ "SessionService.CreateParamsPaymentMethodOptionsOxxo" ] @@ -1075,6 +1093,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the P24 payment method options. """ + payco: NotRequired[ + "SessionService.CreateParamsPaymentMethodOptionsPayco" + ] + """ + contains details about the PAYCO payment method options. + """ paynow: NotRequired[ "SessionService.CreateParamsPaymentMethodOptionsPaynow" ] @@ -1103,6 +1127,12 @@ class CreateParamsPaymentMethodOptions(TypedDict): """ contains details about the RevolutPay payment method options. """ + samsung_pay: NotRequired[ + "SessionService.CreateParamsPaymentMethodOptionsSamsungPay" + ] + """ + contains details about the Samsung Pay payment method options. + """ sepa_debit: NotRequired[ "SessionService.CreateParamsPaymentMethodOptionsSepaDebit" ] @@ -1475,6 +1505,18 @@ class CreateParamsPaymentMethodOptionsIdeal(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsKakaoPay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class CreateParamsPaymentMethodOptionsKlarna(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -1503,6 +1545,18 @@ class CreateParamsPaymentMethodOptionsKonbini(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsKrCard(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class CreateParamsPaymentMethodOptionsLink(TypedDict): setup_future_usage: NotRequired[Literal["none", "off_session"]] """ @@ -1539,6 +1593,18 @@ class CreateParamsPaymentMethodOptionsMultibanco(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsNaverPay(TypedDict): + setup_future_usage: NotRequired[Literal["none", "off_session"]] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + """ + class CreateParamsPaymentMethodOptionsOxxo(TypedDict): expires_after_days: NotRequired[int] """ @@ -1571,6 +1637,9 @@ class CreateParamsPaymentMethodOptionsP24(TypedDict): Confirm that the payer has accepted the P24 terms and conditions. """ + class CreateParamsPaymentMethodOptionsPayco(TypedDict): + pass + class CreateParamsPaymentMethodOptionsPaynow(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ @@ -1738,6 +1807,9 @@ class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). """ + class CreateParamsPaymentMethodOptionsSamsungPay(TypedDict): + pass + class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict): setup_future_usage: NotRequired[ Literal["none", "off_session", "on_session"]