From 119e6fc1cf5216e8ef33991f593ae76a3b0a35b4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:24:54 +0000 Subject: [PATCH] Update generated code for v992 --- OPENAPI_VERSION | 2 +- stripe/_payment_method_configuration.py | 64 +++++++++++++++++++ .../_payment_method_configuration_service.py | 40 ++++++++++++ 3 files changed, 105 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 00ab57870..6eb80deb2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v991 \ No newline at end of file +v992 \ No newline at end of file diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index a4f3d27ac..2f4da96cd 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -587,6 +587,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class Mobilepay(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 Multibanco(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1004,6 +1026,12 @@ class CreateParams(RequestOptions): """ [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. """ + mobilepay: NotRequired[ + "PaymentMethodConfiguration.CreateParamsMobilepay" + ] + """ + MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. + """ multibanco: NotRequired[ "PaymentMethodConfiguration.CreateParamsMultibanco" ] @@ -1441,6 +1469,20 @@ class CreateParamsLinkDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsMobilepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.CreateParamsMobilepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsMobilepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsMultibanco(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.CreateParamsMultibancoDisplayPreference" @@ -1780,6 +1822,12 @@ class ModifyParams(RequestOptions): """ [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. """ + mobilepay: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsMobilepay" + ] + """ + MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. + """ multibanco: NotRequired[ "PaymentMethodConfiguration.ModifyParamsMultibanco" ] @@ -2213,6 +2261,20 @@ class ModifyParamsLinkDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class ModifyParamsMobilepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsMobilepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class ModifyParamsMobilepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class ModifyParamsMultibanco(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.ModifyParamsMultibancoDisplayPreference" @@ -2446,6 +2508,7 @@ class RetrieveParams(RequestOptions): """ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. """ + mobilepay: Optional[Mobilepay] multibanco: Optional[Multibanco] name: str """ @@ -2636,6 +2699,7 @@ async def retrieve_async( "klarna": Klarna, "konbini": Konbini, "link": Link, + "mobilepay": Mobilepay, "multibanco": Multibanco, "oxxo": Oxxo, "p24": P24, diff --git a/stripe/_payment_method_configuration_service.py b/stripe/_payment_method_configuration_service.py index 15c48ace8..3b639f873 100644 --- a/stripe/_payment_method_configuration_service.py +++ b/stripe/_payment_method_configuration_service.py @@ -159,6 +159,12 @@ class CreateParams(TypedDict): """ [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. """ + mobilepay: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsMobilepay" + ] + """ + MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. + """ multibanco: NotRequired[ "PaymentMethodConfigurationService.CreateParamsMultibanco" ] @@ -604,6 +610,20 @@ class CreateParamsLinkDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsMobilepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.CreateParamsMobilepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsMobilepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsMultibanco(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.CreateParamsMultibancoDisplayPreference" @@ -967,6 +987,12 @@ class UpdateParams(TypedDict): """ [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. """ + mobilepay: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsMobilepay" + ] + """ + MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. + """ multibanco: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsMultibanco" ] @@ -1408,6 +1434,20 @@ class UpdateParamsLinkDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class UpdateParamsMobilepay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationService.UpdateParamsMobilepayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class UpdateParamsMobilepayDisplayPreference(TypedDict): + preference: NotRequired[Literal["none", "off", "on"]] + """ + The account's preference for whether or not to display this payment method. + """ + class UpdateParamsMultibanco(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationService.UpdateParamsMultibancoDisplayPreference"