Skip to content

Commit fd1e5f8

Browse files
committed
Update OpenAPI specification
1 parent 84df223 commit fd1e5f8

6 files changed

Lines changed: 480 additions & 212 deletions

File tree

openapi/spec3.java.sdk.json

Lines changed: 97 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5293,6 +5293,9 @@
52935293
"maxLength": 5000,
52945294
"type": "string"
52955295
},
5296+
"tax_id_collection": {
5297+
"$ref": "#/components/schemas/payment_pages_checkout_session_tax_id_collection"
5298+
},
52965299
"total_details": {
52975300
"anyOf": [
52985301
{
@@ -5345,6 +5348,7 @@
53455348
"shipping",
53465349
"shipping_address_collection",
53475350
"subscription",
5351+
"tax_id_collection",
53485352
"total_details"
53495353
],
53505354
"x-resourceId": "checkout.session",
@@ -5412,6 +5416,7 @@
54125416
"checkout_session_payment_method_options",
54135417
"payment_pages_checkout_session_automatic_tax",
54145418
"payment_pages_checkout_session_customer_details",
5419+
"payment_pages_checkout_session_tax_id_collection",
54155420
"payment_pages_checkout_session_total_details",
54165421
"payment_pages_payment_page_resources_shipping_address_collection"
54175422
]
@@ -10747,41 +10752,6 @@
1074710752
]
1074810753
}
1074910754
},
10750-
"inventory": {
10751-
"description": "",
10752-
"properties": {
10753-
"quantity": {
10754-
"description": "The count of inventory available. Will be present if and only if `type` is `finite`.",
10755-
"nullable": true,
10756-
"type": "integer"
10757-
},
10758-
"type": {
10759-
"description": "Inventory type. Possible values are `finite`, `bucket` (not quantified), and `infinite`.",
10760-
"maxLength": 5000,
10761-
"type": "string"
10762-
},
10763-
"value": {
10764-
"description": "An indicator of the inventory available. Possible values are `in_stock`, `limited`, and `out_of_stock`. Will be present if and only if `type` is `bucket`.",
10765-
"maxLength": 5000,
10766-
"nullable": true,
10767-
"type": "string"
10768-
}
10769-
},
10770-
"required": [
10771-
"quantity",
10772-
"type",
10773-
"value"
10774-
],
10775-
"title": "Inventory",
10776-
"type": "object",
10777-
"x-expandableFields": [
10778-
10779-
],
10780-
"x-stripeResource": {
10781-
"class_name": "Inventory",
10782-
"in_class": "sku"
10783-
}
10784-
},
1078510755
"invoice": {
1078610756
"description": "Invoices are statements of amounts owed by a customer, and are either\ngenerated one-off, or generated periodically from a subscription.\n\nThey contain [invoice items](https://stripe.com/docs/api#invoiceitems), and proration adjustments\nthat may be caused by subscription upgrades/downgrades (if necessary).\n\nIf your invoice is configured to be billed through automatic charges,\nStripe automatically finalizes your invoice and attempts payment. Note\nthat finalizing the invoice,\n[when automatic](https://stripe.com/docs/billing/invoices/workflow/#auto_advance), does\nnot happen immediately as the invoice is created. Stripe waits\nuntil one hour after the last webhook was successfully sent (or the last\nwebhook timed out after failing). If you (and the platforms you may have\nconnected to) have no webhooks configured, Stripe waits one hour after\ncreation to finalize the invoice.\n\nIf your invoice is configured to be billed by sending an email, then based on your\n[email settings](https://dashboard.stripe.com/account/billing/automatic'),\nStripe will email the invoice to your customer and await payment. These\nemails can contain a link to a hosted page to pay the invoice.\n\nStripe applies any customer credit on the account before determining the\namount due for the invoice (i.e., the amount that will be actually\ncharged). If the amount due for the invoice is less than Stripe's [minimum allowed charge\nper currency](/docs/currencies#minimum-and-maximum-charge-amounts), the\ninvoice is automatically marked paid, and we add the amount due to the\ncustomer's credit balance which is applied to the next invoice.\n\nMore details on the customer's credit balance are\n[here](https://stripe.com/docs/billing/customer/balance).\n\nRelated guide: [Send Invoices to Customers](https://stripe.com/docs/billing/invoices/sending).",
1078710757
"properties": {
@@ -24308,6 +24278,27 @@
2430824278
"in_class": "payment_pages_checkout_session_customer_details"
2430924279
}
2431024280
},
24281+
"payment_pages_checkout_session_tax_id_collection": {
24282+
"description": "",
24283+
"properties": {
24284+
"enabled": {
24285+
"description": "Indicates whether tax ID collection is enabled for the session",
24286+
"type": "boolean"
24287+
}
24288+
},
24289+
"required": [
24290+
"enabled"
24291+
],
24292+
"title": "PaymentPagesCheckoutSessionTaxIDCollection",
24293+
"type": "object",
24294+
"x-expandableFields": [
24295+
24296+
],
24297+
"x-stripeResource": {
24298+
"class_name": "TaxIDCollection",
24299+
"in_class": "checkout.session"
24300+
}
24301+
},
2431124302
"payment_pages_checkout_session_total_details": {
2431224303
"description": "",
2431324304
"properties": {
@@ -30787,7 +30778,7 @@
3078730778
"type": "string"
3078830779
},
3078930780
"inventory": {
30790-
"$ref": "#/components/schemas/inventory"
30781+
"$ref": "#/components/schemas/sku_inventory"
3079130782
},
3079230783
"livemode": {
3079330784
"description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.",
@@ -30971,10 +30962,45 @@
3097130962
"has_collection_class": true,
3097230963
"in_package": "",
3097330964
"inner_classes": [
30974-
"inventory"
30965+
"sku_inventory"
3097530966
]
3097630967
}
3097730968
},
30969+
"sku_inventory": {
30970+
"description": "",
30971+
"properties": {
30972+
"quantity": {
30973+
"description": "The count of inventory available. Will be present if and only if `type` is `finite`.",
30974+
"nullable": true,
30975+
"type": "integer"
30976+
},
30977+
"type": {
30978+
"description": "Inventory type. Possible values are `finite`, `bucket` (not quantified), and `infinite`.",
30979+
"maxLength": 5000,
30980+
"type": "string"
30981+
},
30982+
"value": {
30983+
"description": "An indicator of the inventory available. Possible values are `in_stock`, `limited`, and `out_of_stock`. Will be present if and only if `type` is `bucket`.",
30984+
"maxLength": 5000,
30985+
"nullable": true,
30986+
"type": "string"
30987+
}
30988+
},
30989+
"required": [
30990+
"quantity",
30991+
"type",
30992+
"value"
30993+
],
30994+
"title": "SKUInventory",
30995+
"type": "object",
30996+
"x-expandableFields": [
30997+
30998+
],
30999+
"x-stripeResource": {
31000+
"class_name": "Inventory",
31001+
"in_class": "sku"
31002+
}
31003+
},
3097831004
"source": {
3097931005
"description": "`Source` objects allow you to accept a variety of payment methods. They\nrepresent a customer's payment instrument, and can be used with the Stripe API\njust like a `Card` object: once chargeable, they can be charged, or can be\nattached to customers.\n\nRelated guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers).",
3098031006
"properties": {
@@ -35641,10 +35667,24 @@
3564135667
"type": "boolean"
3564235668
},
3564335669
"location": {
35670+
"anyOf": [
35671+
{
35672+
"maxLength": 5000,
35673+
"type": "string"
35674+
},
35675+
{
35676+
"$ref": "#/components/schemas/terminal.location"
35677+
}
35678+
],
3564435679
"description": "The location identifier of the reader.",
35645-
"maxLength": 5000,
3564635680
"nullable": true,
35647-
"type": "string"
35681+
"x-expansionResources": {
35682+
"oneOf": [
35683+
{
35684+
"$ref": "#/components/schemas/terminal.location"
35685+
}
35686+
]
35687+
}
3564835688
},
3564935689
"metadata": {
3565035690
"additionalProperties": {
@@ -35680,7 +35720,7 @@
3568035720
"title": "TerminalReaderReader",
3568135721
"type": "object",
3568235722
"x-expandableFields": [
35683-
35723+
"location"
3568435724
],
3568535725
"x-resourceId": "terminal.reader",
3568635726
"x-stripeOperations": [
@@ -47093,6 +47133,10 @@
4709347133
"subscription_data": {
4709447134
"explode": true,
4709547135
"style": "deepObject"
47136+
},
47137+
"tax_id_collection": {
47138+
"explode": true,
47139+
"style": "deepObject"
4709647140
}
4709747141
},
4709847142
"schema": {
@@ -48125,6 +48169,19 @@
4812548169
"description": "The URL to which Stripe should send customers when payment or setup\nis complete.\nIf you’d like access to the Checkout Session for the successful\npayment, read more about it in the guide on [fulfilling orders](https://stripe.com/docs/payments/checkout/fulfill-orders).",
4812648170
"maxLength": 5000,
4812748171
"type": "string"
48172+
},
48173+
"tax_id_collection": {
48174+
"properties": {
48175+
"enabled": {
48176+
"description": "Set to true to enable Tax ID collection.",
48177+
"type": "boolean"
48178+
}
48179+
},
48180+
"required": [
48181+
"enabled"
48182+
],
48183+
"title": "tax_id_collection_params",
48184+
"type": "object"
4812848185
}
4812948186
},
4813048187
"required": [

0 commit comments

Comments
 (0)