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 Jul 3, 2024
1 parent b8ab289 commit fcd424a
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 0 deletions.
54 changes: 54 additions & 0 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -13635,6 +13635,32 @@
"customer_session_resource_components_resource_payment_element_resource_features": {
"description": "This hash contains the features the Payment Element supports.",
"properties": {
"payment_method_allow_redisplay_filters": {
"description": "A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.\n\nIf not specified, defaults to [\"always\"]. In order to display all saved payment methods, specify [\"always\", \"limited\", \"unspecified\"].",
"items": {
"enum": [
"always",
"limited",
"unspecified"
],
"type": "string"
},
"type": "array"
},
"payment_method_redisplay": {
"description": "Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.",
"enum": [
"disabled",
"enabled"
],
"type": "string",
"x-stripeBypassValidation": true
},
"payment_method_redisplay_limit": {
"description": "Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `10`.",
"nullable": true,
"type": "integer"
},
"payment_method_remove": {
"description": "Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.\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": [
Expand Down Expand Up @@ -13664,6 +13690,9 @@
}
},
"required": [
"payment_method_allow_redisplay_filters",
"payment_method_redisplay",
"payment_method_redisplay_limit",
"payment_method_remove",
"payment_method_save",
"payment_method_save_usage"
Expand Down Expand Up @@ -94822,6 +94851,31 @@
"features": {
"description": "This hash defines whether the Payment Element supports certain features.",
"properties": {
"payment_method_allow_redisplay_filters": {
"description": "A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.\n\nIf not specified, defaults to [\"always\"]. In order to display all saved payment methods, specify [\"always\", \"limited\", \"unspecified\"].",
"items": {
"enum": [
"always",
"limited",
"unspecified"
],
"type": "string"
},
"type": "array"
},
"payment_method_redisplay": {
"description": "Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.",
"enum": [
"disabled",
"enabled"
],
"type": "string",
"x-stripeBypassValidation": true
},
"payment_method_redisplay_limit": {
"description": "Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `10`.",
"type": "integer"
},
"payment_method_remove": {
"description": "Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.\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": [
Expand Down
73 changes: 73 additions & 0 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12773,6 +12773,39 @@ components:
customer_session_resource_components_resource_payment_element_resource_features:
description: This hash contains the features the Payment Element supports.
properties:
payment_method_allow_redisplay_filters:
description: >-
A list of
[`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay)
values that controls which saved payment methods the Payment Element
displays by filtering to only show payment methods with an
`allow_redisplay` value that is present in this list.


If not specified, defaults to ["always"]. In order to display all
saved payment methods, specify ["always", "limited", "unspecified"].
items:
enum:
- always
- limited
- unspecified
type: string
type: array
payment_method_redisplay:
description: >-
Controls whether or not the Payment Element shows saved payment
methods. This parameter defaults to `disabled`.
enum:
- disabled
- enabled
type: string
x-stripeBypassValidation: true
payment_method_redisplay_limit:
description: >-
Determines the max number of saved payment methods for the Payment
Element to display. This parameter defaults to `10`.
nullable: true
type: integer
payment_method_remove:
description: >-
Controls whether the Payment Element displays the option to remove a
Expand Down Expand Up @@ -12825,6 +12858,9 @@ components:
nullable: true
type: string
required:
- payment_method_allow_redisplay_filters
- payment_method_redisplay
- payment_method_redisplay_limit
- payment_method_remove
- payment_method_save
- payment_method_save_usage
Expand Down Expand Up @@ -86850,6 +86886,43 @@ paths:
This hash defines whether the Payment Element
supports certain features.
properties:
payment_method_allow_redisplay_filters:
description: >-
A list of
[`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay)
values that controls which saved payment methods
the Payment Element displays by filtering to
only show payment methods with an
`allow_redisplay` value that is present in this
list.


If not specified, defaults to ["always"]. In
order to display all saved payment methods,
specify ["always", "limited", "unspecified"].
items:
enum:
- always
- limited
- unspecified
type: string
type: array
payment_method_redisplay:
description: >-
Controls whether or not the Payment Element
shows saved payment methods. This parameter
defaults to `disabled`.
enum:
- disabled
- enabled
type: string
x-stripeBypassValidation: true
payment_method_redisplay_limit:
description: >-
Determines the max number of saved payment
methods for the Payment Element to display. This
parameter defaults to `10`.
type: integer
payment_method_remove:
description: >-
Controls whether the Payment Element displays
Expand Down

0 comments on commit fcd424a

Please sign in to comment.