Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1305

Merged
merged 9 commits into from
Apr 18, 2024
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v961
v972
6 changes: 6 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,12 @@ class CreateParamsPaymentMethodData(TypedDict):
"""
If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
"""
allow_redisplay: NotRequired[
Literal["always", "limited", "unspecified"]
]
"""
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
"""
amazon_pay: NotRequired[
"ConfirmationToken.CreateParamsPaymentMethodDataAmazonPay"
]
Expand Down
6 changes: 6 additions & 0 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,12 @@ class ListParamsCreated(TypedDict):
"""

class ListPaymentMethodsParams(RequestOptions):
allow_redisplay: NotRequired[
Literal["always", "limited", "unspecified"]
]
"""
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
6 changes: 6 additions & 0 deletions stripe/_customer_payment_method_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

class CustomerPaymentMethodService(StripeService):
class ListParams(TypedDict):
allow_redisplay: NotRequired[
Literal["always", "limited", "unspecified"]
]
"""
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
"""
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
Loading
Loading