From edbc09d52b5f8ec41703c0d7474f89f673f063b3 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 6 Jul 2023 12:54:21 -0700 Subject: [PATCH] OpenAPI Update (#433) Update OpenAPI for 583d35871a5cdcbfb4d9ed7d6dad9ae93ecf8595 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- embedded/openapi/spec3.beta.sdk.json | 104 ++++++++++++++++++++++++++- embedded/openapi/spec3.json | 81 ++++++++++++++++++++- 2 files changed, 180 insertions(+), 5 deletions(-) diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index 9ebb6b3b..3b4ff781 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -20481,7 +20481,8 @@ "shipped" ], "nullable": true, - "type": "string" + "type": "string", + "x-stripeBypassValidation": true }, "tracking_number": { "description": "A tracking number for a card shipment.", @@ -29525,10 +29526,28 @@ "label": { "$ref": "#/components/schemas/payment_links_resource_custom_fields_label" }, + "numeric": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_links_resource_custom_fields_numeric" + } + ], + "description": "Configuration for `type=numeric` fields.", + "nullable": true + }, "optional": { "description": "Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.", "type": "boolean" }, + "text": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_links_resource_custom_fields_text" + } + ], + "description": "Configuration for `type=text` fields.", + "nullable": true + }, "type": { "description": "The type of the field.", "enum": [ @@ -29543,21 +29562,27 @@ "dropdown", "key", "label", + "numeric", "optional", + "text", "type" ], "title": "PaymentLinksResourceCustomFields", "type": "object", "x-expandableFields": [ "dropdown", - "label" + "label", + "numeric", + "text" ], "x-stripeResource": { "class_name": "CustomField", "in_class": "payment_link", "inner_classes": [ "payment_links_resource_custom_fields_dropdown", - "payment_links_resource_custom_fields_label" + "payment_links_resource_custom_fields_label", + "payment_links_resource_custom_fields_numeric", + "payment_links_resource_custom_fields_text" ] } }, @@ -29643,6 +29668,58 @@ "in_class": "payment_links_resource_custom_fields" } }, + "payment_links_resource_custom_fields_numeric": { + "description": "", + "properties": { + "maximum_length": { + "description": "The maximum character length constraint for the customer's input.", + "nullable": true, + "type": "integer" + }, + "minimum_length": { + "description": "The minimum character length requirement for the customer's input.", + "nullable": true, + "type": "integer" + } + }, + "required": [ + "maximum_length", + "minimum_length" + ], + "title": "PaymentLinksResourceCustomFieldsNumeric", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "CustomFieldNumeric", + "in_class": "payment_links_resource_custom_fields" + } + }, + "payment_links_resource_custom_fields_text": { + "description": "", + "properties": { + "maximum_length": { + "description": "The maximum character length constraint for the customer's input.", + "nullable": true, + "type": "integer" + }, + "minimum_length": { + "description": "The minimum character length requirement for the customer's input.", + "nullable": true, + "type": "integer" + } + }, + "required": [ + "maximum_length", + "minimum_length" + ], + "title": "PaymentLinksResourceCustomFieldsText", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "CustomFieldText", + "in_class": "payment_links_resource_custom_fields" + } + }, "payment_links_resource_custom_text": { "description": "", "properties": { @@ -140485,6 +140562,27 @@ "description": "

By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.

", "operationId": "GetSubscriptions", "parameters": [ + { + "description": "Filter subscriptions by their automatic tax settings.", + "explode": true, + "in": "query", + "name": "automatic_tax", + "required": false, + "schema": { + "properties": { + "enabled": { + "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "automatic_tax_filter_params", + "type": "object" + }, + "style": "deepObject" + }, { "description": "The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.", "in": "query", diff --git a/embedded/openapi/spec3.json b/embedded/openapi/spec3.json index e6dc5e75..628f0a20 100644 --- a/embedded/openapi/spec3.json +++ b/embedded/openapi/spec3.json @@ -14956,7 +14956,8 @@ "shipped" ], "nullable": true, - "type": "string" + "type": "string", + "x-stripeBypassValidation": true }, "tracking_number": { "description": "A tracking number for a card shipment.", @@ -21429,10 +21430,28 @@ "label": { "$ref": "#/components/schemas/payment_links_resource_custom_fields_label" }, + "numeric": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_links_resource_custom_fields_numeric" + } + ], + "description": "Configuration for `type=numeric` fields.", + "nullable": true + }, "optional": { "description": "Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.", "type": "boolean" }, + "text": { + "anyOf": [ + { + "$ref": "#/components/schemas/payment_links_resource_custom_fields_text" + } + ], + "description": "Configuration for `type=text` fields.", + "nullable": true + }, "type": { "description": "The type of the field.", "enum": [ @@ -21453,7 +21472,9 @@ "type": "object", "x-expandableFields": [ "dropdown", - "label" + "label", + "numeric", + "text" ] }, "payment_links_resource_custom_fields_dropdown": { @@ -21522,6 +21543,42 @@ "type": "object", "x-expandableFields": [] }, + "payment_links_resource_custom_fields_numeric": { + "description": "", + "properties": { + "maximum_length": { + "description": "The maximum character length constraint for the customer's input.", + "nullable": true, + "type": "integer" + }, + "minimum_length": { + "description": "The minimum character length requirement for the customer's input.", + "nullable": true, + "type": "integer" + } + }, + "title": "PaymentLinksResourceCustomFieldsNumeric", + "type": "object", + "x-expandableFields": [] + }, + "payment_links_resource_custom_fields_text": { + "description": "", + "properties": { + "maximum_length": { + "description": "The maximum character length constraint for the customer's input.", + "nullable": true, + "type": "integer" + }, + "minimum_length": { + "description": "The minimum character length requirement for the customer's input.", + "nullable": true, + "type": "integer" + } + }, + "title": "PaymentLinksResourceCustomFieldsText", + "type": "object", + "x-expandableFields": [] + }, "payment_links_resource_custom_text": { "description": "", "properties": { @@ -112290,6 +112347,26 @@ "description": "

By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.

", "operationId": "GetSubscriptions", "parameters": [ + { + "description": "Filter subscriptions by their automatic tax settings.", + "explode": true, + "in": "query", + "name": "automatic_tax", + "required": false, + "schema": { + "properties": { + "enabled": { + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "automatic_tax_filter_params", + "type": "object" + }, + "style": "deepObject" + }, { "description": "The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.", "in": "query",