Skip to content

Commit

Permalink
Update generated code for v1107
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jul 1, 2024
1 parent c211233 commit 42fb43e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1106
v1107
16 changes: 16 additions & 0 deletions stripe/_customer_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ class Features(StripeObject):
If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
"""
payment_method_save_usage: Optional[
Literal["off_session", "on_session"]
]
"""
When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
"""
payment_method_update: Literal["disabled", "enabled"]
"""
Controls whether the Payment Element displays the option to update a saved payment method. This parameter defaults to `disabled`.
Expand Down Expand Up @@ -150,6 +158,14 @@ class CreateParamsComponentsPaymentElementFeatures(TypedDict):
If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
"""
payment_method_save_usage: NotRequired[
Literal["off_session", "on_session"]
]
"""
When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
"""
payment_method_update: NotRequired[Literal["disabled", "enabled"]]
"""
Controls whether the Payment Element displays the option to update a saved payment method. This parameter defaults to `disabled`.
Expand Down
8 changes: 8 additions & 0 deletions stripe/_customer_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ class CreateParamsComponentsPaymentElementFeatures(TypedDict):
If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
"""
payment_method_save_usage: NotRequired[
Literal["off_session", "on_session"]
]
"""
When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
"""
payment_method_update: NotRequired[Literal["disabled", "enabled"]]
"""
Controls whether the Payment Element displays the option to update a saved payment method. This parameter defaults to `disabled`.
Expand Down

0 comments on commit 42fb43e

Please sign in to comment.