Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Update #433

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 101 additions & 3 deletions embedded/openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -20481,7 +20481,8 @@
"shipped"
],
"nullable": true,
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
},
"tracking_number": {
"description": "A tracking number for a card shipment.",
Expand Down Expand Up @@ -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": [
Expand All @@ -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"
]
}
},
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -140485,6 +140562,27 @@
"description": "<p>By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify <code>status=canceled</code>.</p>",
"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",
Expand Down
81 changes: 79 additions & 2 deletions embedded/openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -14956,7 +14956,8 @@
"shipped"
],
"nullable": true,
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
},
"tracking_number": {
"description": "A tracking number for a card shipment.",
Expand Down Expand Up @@ -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": [
Expand All @@ -21453,7 +21472,9 @@
"type": "object",
"x-expandableFields": [
"dropdown",
"label"
"label",
"numeric",
"text"
]
},
"payment_links_resource_custom_fields_dropdown": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -112290,6 +112347,26 @@
"description": "<p>By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify <code>status=canceled</code>.</p>",
"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",
Expand Down