Skip to content

Commit

Permalink
Update generated code for v992
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 25, 2024
1 parent 8856041 commit 119e6fc
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v991
v992
64 changes: 64 additions & 0 deletions stripe/_payment_method_configuration.py
Expand Up @@ -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]
Expand Down Expand Up @@ -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"
]
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
]
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
"""
Expand Down Expand Up @@ -2636,6 +2699,7 @@ async def retrieve_async(
"klarna": Klarna,
"konbini": Konbini,
"link": Link,
"mobilepay": Mobilepay,
"multibanco": Multibanco,
"oxxo": Oxxo,
"p24": P24,
Expand Down
40 changes: 40 additions & 0 deletions stripe/_payment_method_configuration_service.py
Expand Up @@ -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"
]
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
]
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 119e6fc

Please sign in to comment.