Skip to content

Commit 5b3e970

Browse files
Update OpenAPI specification for beta and private preview
1 parent b581edb commit 5b3e970

File tree

2 files changed

+245
-2
lines changed

2 files changed

+245
-2
lines changed

openapi/spec3.beta.sdk.json

Lines changed: 119 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19148,6 +19148,9 @@
1914819148
},
1914919149
"pricing_table": {
1915019150
"$ref": "#/components/schemas/customer_session_resource_components_resource_pricing_table"
19151+
},
19152+
"tax_id_element": {
19153+
"$ref": "#/components/schemas/customer_session_resource_tax_id_element"
1915119154
}
1915219155
},
1915319156
"required": [
@@ -19164,14 +19167,16 @@
1916419167
"customer_sheet",
1916519168
"mobile_payment_element",
1916619169
"payment_element",
19167-
"pricing_table"
19170+
"pricing_table",
19171+
"tax_id_element"
1916819172
],
1916919173
"x-stripeMostCommon": [
1917019174
"buy_button",
1917119175
"customer_sheet",
1917219176
"mobile_payment_element",
1917319177
"payment_element",
19174-
"pricing_table"
19178+
"pricing_table",
19179+
"tax_id_element"
1917519180
]
1917619181
},
1917719182
"customer_session_resource_components_resource_buy_button": {
@@ -19494,6 +19499,71 @@
1949419499
"enabled"
1949519500
]
1949619501
},
19502+
"customer_session_resource_tax_id_element": {
19503+
"description": "This hash contains whether the Tax ID Element is enabled and the features it supports.",
19504+
"properties": {
19505+
"enabled": {
19506+
"description": "Whether the Tax ID Element is enabled.",
19507+
"type": "boolean"
19508+
},
19509+
"features": {
19510+
"anyOf": [
19511+
{
19512+
"$ref": "#/components/schemas/customer_session_resource_tax_id_element_resource_features"
19513+
}
19514+
],
19515+
"description": "This hash defines whether the Tax ID Element supports certain features.",
19516+
"nullable": true
19517+
}
19518+
},
19519+
"required": [
19520+
"enabled",
19521+
"features"
19522+
],
19523+
"title": "CustomerSessionResourceTaxIdElement",
19524+
"type": "object",
19525+
"x-expandableFields": [
19526+
"features"
19527+
],
19528+
"x-stripeMostCommon": [
19529+
"enabled",
19530+
"features"
19531+
]
19532+
},
19533+
"customer_session_resource_tax_id_element_resource_features": {
19534+
"description": "This hash defines whether the Tax ID Element supports certain features.",
19535+
"properties": {
19536+
"tax_id_redisplay": {
19537+
"description": "Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.\n\nWhen enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.",
19538+
"enum": [
19539+
"disabled",
19540+
"enabled"
19541+
],
19542+
"type": "string",
19543+
"x-stripeBypassValidation": true
19544+
},
19545+
"tax_id_save": {
19546+
"description": "Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.\n\nWhen enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.",
19547+
"enum": [
19548+
"disabled",
19549+
"enabled"
19550+
],
19551+
"type": "string",
19552+
"x-stripeBypassValidation": true
19553+
}
19554+
},
19555+
"required": [
19556+
"tax_id_redisplay",
19557+
"tax_id_save"
19558+
],
19559+
"title": "CustomerSessionResourceTaxIdElementResourceFeatures",
19560+
"type": "object",
19561+
"x-expandableFields": [],
19562+
"x-stripeMostCommon": [
19563+
"tax_id_redisplay",
19564+
"tax_id_save"
19565+
]
19566+
},
1949719567
"customer_tax": {
1949819568
"description": "",
1949919569
"properties": {
@@ -127781,6 +127851,53 @@
127781127851
"x-stripeMostCommon": [
127782127852
"enabled"
127783127853
]
127854+
},
127855+
"tax_id_element": {
127856+
"description": "Configuration for the Tax ID Element.",
127857+
"properties": {
127858+
"enabled": {
127859+
"description": "Whether the Tax ID Element is enabled.",
127860+
"type": "boolean"
127861+
},
127862+
"features": {
127863+
"description": "This hash defines whether the Tax ID Element supports certain features.",
127864+
"properties": {
127865+
"tax_id_redisplay": {
127866+
"description": "Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.\n\nWhen enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.",
127867+
"enum": [
127868+
"disabled",
127869+
"enabled"
127870+
],
127871+
"type": "string",
127872+
"x-stripeBypassValidation": true
127873+
},
127874+
"tax_id_save": {
127875+
"description": "Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.\n\nWhen enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.",
127876+
"enum": [
127877+
"disabled",
127878+
"enabled"
127879+
],
127880+
"type": "string",
127881+
"x-stripeBypassValidation": true
127882+
}
127883+
},
127884+
"title": "features_param",
127885+
"type": "object",
127886+
"x-stripeMostCommon": [
127887+
"tax_id_redisplay",
127888+
"tax_id_save"
127889+
]
127890+
}
127891+
},
127892+
"required": [
127893+
"enabled"
127894+
],
127895+
"title": "tax_id_element_param",
127896+
"type": "object",
127897+
"x-stripeMostCommon": [
127898+
"enabled",
127899+
"features"
127900+
]
127784127901
}
127785127902
},
127786127903
"title": "components",

openapi/spec3.beta.sdk.yaml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17790,6 +17790,8 @@ components:
1779017790
pricing_table:
1779117791
$ref: >-
1779217792
#/components/schemas/customer_session_resource_components_resource_pricing_table
17793+
tax_id_element:
17794+
$ref: '#/components/schemas/customer_session_resource_tax_id_element'
1779317795
required:
1779417796
- buy_button
1779517797
- customer_sheet
@@ -17804,12 +17806,14 @@ components:
1780417806
- mobile_payment_element
1780517807
- payment_element
1780617808
- pricing_table
17809+
- tax_id_element
1780717810
x-stripeMostCommon:
1780817811
- buy_button
1780917812
- customer_sheet
1781017813
- mobile_payment_element
1781117814
- payment_element
1781217815
- pricing_table
17816+
- tax_id_element
1781317817
customer_session_resource_components_resource_buy_button:
1781417818
description: This hash contains whether the buy button is enabled.
1781517819
properties:
@@ -18167,6 +18171,72 @@ components:
1816718171
x-expandableFields: []
1816818172
x-stripeMostCommon:
1816918173
- enabled
18174+
customer_session_resource_tax_id_element:
18175+
description: >-
18176+
This hash contains whether the Tax ID Element is enabled and the
18177+
features it supports.
18178+
properties:
18179+
enabled:
18180+
description: Whether the Tax ID Element is enabled.
18181+
type: boolean
18182+
features:
18183+
anyOf:
18184+
- $ref: >-
18185+
#/components/schemas/customer_session_resource_tax_id_element_resource_features
18186+
description: >-
18187+
This hash defines whether the Tax ID Element supports certain
18188+
features.
18189+
nullable: true
18190+
required:
18191+
- enabled
18192+
- features
18193+
title: CustomerSessionResourceTaxIdElement
18194+
type: object
18195+
x-expandableFields:
18196+
- features
18197+
x-stripeMostCommon:
18198+
- enabled
18199+
- features
18200+
customer_session_resource_tax_id_element_resource_features:
18201+
description: This hash defines whether the Tax ID Element supports certain features.
18202+
properties:
18203+
tax_id_redisplay:
18204+
description: >-
18205+
Controls whether the Tax ID Element displays saved tax IDs for the
18206+
customer. This parameter defaults to `disabled`.
18207+
18208+
18209+
When enabled, the Tax ID Element will show existing tax IDs
18210+
associated with the customer, allowing them to select from
18211+
previously saved tax identification numbers.
18212+
enum:
18213+
- disabled
18214+
- enabled
18215+
type: string
18216+
x-stripeBypassValidation: true
18217+
tax_id_save:
18218+
description: >-
18219+
Controls whether the Tax ID Element allows merchants to save new tax
18220+
IDs for their customer. This parameter defaults to `disabled`.
18221+
18222+
18223+
When enabled, customers can enter and save new tax identification
18224+
numbers during the payment flow, which will be stored securely and
18225+
associated with their customer object for future use.
18226+
enum:
18227+
- disabled
18228+
- enabled
18229+
type: string
18230+
x-stripeBypassValidation: true
18231+
required:
18232+
- tax_id_redisplay
18233+
- tax_id_save
18234+
title: CustomerSessionResourceTaxIdElementResourceFeatures
18235+
type: object
18236+
x-expandableFields: []
18237+
x-stripeMostCommon:
18238+
- tax_id_redisplay
18239+
- tax_id_save
1817018240
customer_tax:
1817118241
description: ''
1817218242
properties:
@@ -117447,6 +117517,62 @@ paths:
117447117517
type: object
117448117518
x-stripeMostCommon:
117449117519
- enabled
117520+
tax_id_element:
117521+
description: Configuration for the Tax ID Element.
117522+
properties:
117523+
enabled:
117524+
description: Whether the Tax ID Element is enabled.
117525+
type: boolean
117526+
features:
117527+
description: >-
117528+
This hash defines whether the Tax ID Element
117529+
supports certain features.
117530+
properties:
117531+
tax_id_redisplay:
117532+
description: >-
117533+
Controls whether the Tax ID Element displays
117534+
saved tax IDs for the customer. This parameter
117535+
defaults to `disabled`.
117536+
117537+
117538+
When enabled, the Tax ID Element will show
117539+
existing tax IDs associated with the customer,
117540+
allowing them to select from previously saved
117541+
tax identification numbers.
117542+
enum:
117543+
- disabled
117544+
- enabled
117545+
type: string
117546+
x-stripeBypassValidation: true
117547+
tax_id_save:
117548+
description: >-
117549+
Controls whether the Tax ID Element allows
117550+
merchants to save new tax IDs for their
117551+
customer. This parameter defaults to `disabled`.
117552+
117553+
117554+
When enabled, customers can enter and save new
117555+
tax identification numbers during the payment
117556+
flow, which will be stored securely and
117557+
associated with their customer object for future
117558+
use.
117559+
enum:
117560+
- disabled
117561+
- enabled
117562+
type: string
117563+
x-stripeBypassValidation: true
117564+
title: features_param
117565+
type: object
117566+
x-stripeMostCommon:
117567+
- tax_id_redisplay
117568+
- tax_id_save
117569+
required:
117570+
- enabled
117571+
title: tax_id_element_param
117572+
type: object
117573+
x-stripeMostCommon:
117574+
- enabled
117575+
- features
117450117576
title: components
117451117577
type: object
117452117578
x-stripeMostCommon:

0 commit comments

Comments
 (0)