Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed May 10, 2024
1 parent b292197 commit 3d439f4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
8 changes: 4 additions & 4 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -13421,7 +13421,7 @@
"description": "This hash contains the features the Payment Element supports.",
"properties": {
"payment_method_remove": {
"description": "Controls whether the Payment Element displays the option to remove a saved payment method.",
"description": "Controls whether the Payment Element displays the option to remove a saved payment method.\"\n\nAllowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).",
"enum": [
"disabled",
"enabled"
Expand All @@ -13430,7 +13430,7 @@
"x-stripeBypassValidation": true
},
"payment_method_save": {
"description": "Controls whether the Payment Element displays a checkbox offering to save a new payment method.",
"description": "Controls whether the Payment Element displays a checkbox offering to save a new payment method.\n\nIf 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`.",
"enum": [
"disabled",
"enabled"
Expand Down Expand Up @@ -93473,7 +93473,7 @@
"description": "This hash defines whether the payment element supports certain features.",
"properties": {
"payment_method_remove": {
"description": "Controls whether the Payment Element displays the option to remove a saved payment method.",
"description": "Controls whether the Payment Element displays the option to remove a saved payment method.\"\n\nAllowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).",
"enum": [
"disabled",
"enabled"
Expand All @@ -93482,7 +93482,7 @@
"x-stripeBypassValidation": true
},
"payment_method_save": {
"description": "Controls whether the Payment Element displays a checkbox offering to save a new payment method.",
"description": "Controls whether the Payment Element displays a checkbox offering to save a new payment method.\n\nIf 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`.",
"enum": [
"disabled",
"enabled"
Expand Down
39 changes: 37 additions & 2 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12579,7 +12579,15 @@ components:
payment_method_remove:
description: >-
Controls whether the Payment Element displays the option to remove a
saved payment method.
saved payment method."


Allowing buyers to remove their saved payment methods impacts
subscriptions that depend on that payment method. Removing the
payment method detaches the [`customer`
object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer)
from that
[PaymentMethod](https://docs.stripe.com/api/payment_methods).
enum:
- disabled
- enabled
Expand All @@ -12589,6 +12597,15 @@ components:
description: >-
Controls whether the Payment Element displays a checkbox offering to
save a new payment method.


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`.
enum:
- disabled
- enabled
Expand Down Expand Up @@ -85563,7 +85580,16 @@ paths:
payment_method_remove:
description: >-
Controls whether the Payment Element displays
the option to remove a saved payment method.
the option to remove a saved payment method."


Allowing buyers to remove their saved payment
methods impacts subscriptions that depend on
that payment method. Removing the payment method
detaches the [`customer`
object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer)
from that
[PaymentMethod](https://docs.stripe.com/api/payment_methods).
enum:
- disabled
- enabled
Expand All @@ -85573,6 +85599,15 @@ paths:
description: >-
Controls whether the Payment Element displays a
checkbox offering to save a new payment method.


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`.
enum:
- disabled
- enabled
Expand Down

0 comments on commit 3d439f4

Please sign in to comment.