From acbe394006e3284c37a76030b589d96ee0004218 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 12 Jul 2023 11:04:55 -0700 Subject: [PATCH] Update OpenAPI for e484958d4ad2e1926cc363268528c17ac05c7762 (#1096) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- api/openapi-spec/spec3.sdk.json | 392 ++++++++++++++++++++++++++++++++ pkg/cmd/resources_cmds.go | 12 + pkg/proxy/events_list.go | 1 + 3 files changed, 405 insertions(+) diff --git a/api/openapi-spec/spec3.sdk.json b/api/openapi-spec/spec3.sdk.json index dd5a25f9c..1142a4358 100644 --- a/api/openapi-spec/spec3.sdk.json +++ b/api/openapi-spec/spec3.sdk.json @@ -1821,6 +1821,7 @@ "invalid_expiry_year", "invalid_number", "invalid_source_usage", + "invalid_tax_location", "invoice_no_customer_line_items", "invoice_no_payment_method_types", "invoice_no_subscription_line_items", @@ -28152,6 +28153,12 @@ "payment_method_details_afterpay_clearpay": { "description": "", "properties": { + "order_id": { + "description": "The Afterpay order ID associated with this payment intent.", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, "reference": { "description": "Order identifier shown to the merchant in Afterpay’s online portal.", "maxLength": 5000, @@ -28160,6 +28167,7 @@ } }, "required": [ + "order_id", "reference" ], "title": "payment_method_details_afterpay_clearpay", @@ -44806,6 +44814,86 @@ ] } }, + "tax.settings": { + "description": "You can use Tax `Settings` to manage configurations used by Stripe Tax calculations.\n\nRelated guide: [Using the Settings API](https://stripe.com/docs/tax/settings-api)", + "properties": { + "defaults": { + "$ref": "#/components/schemas/tax_product_resource_tax_settings_defaults" + }, + "head_office": { + "anyOf": [ + { + "$ref": "#/components/schemas/tax_product_resource_tax_settings_head_office" + } + ], + "description": "The place where your business is located.", + "nullable": true + }, + "livemode": { + "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", + "type": "boolean" + }, + "object": { + "description": "String representing the object's type. Objects of the same type share the same value.", + "enum": [ + "tax.settings" + ], + "type": "string" + }, + "status": { + "description": "The `active` status indicates you have all required settings to calculate tax. A status can transition out of `active` when new required settings are introduced.", + "enum": [ + "active", + "pending" + ], + "type": "string" + }, + "status_details": { + "$ref": "#/components/schemas/tax_product_resource_tax_settings_status_details" + } + }, + "required": [ + "defaults", + "head_office", + "livemode", + "object", + "status", + "status_details" + ], + "title": "TaxProductResourceTaxSettings", + "type": "object", + "x-expandableFields": [ + "defaults", + "head_office", + "status_details" + ], + "x-resourceId": "tax.settings", + "x-stripeOperations": [ + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/tax/settings" + }, + { + "method_name": "update", + "method_on": "service", + "method_type": "update", + "operation": "post", + "path": "/v1/tax/settings" + } + ], + "x-stripeResource": { + "class_name": "Settings", + "in_package": "Tax", + "inner_classes": [ + "tax_product_resource_tax_settings_defaults", + "tax_product_resource_tax_settings_head_office", + "tax_product_resource_tax_settings_status_details" + ] + } + }, "tax.transaction": { "description": "A Tax Transaction records the tax collected from or refunded to your customer.\n\nRelated guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction)", "properties": { @@ -45763,6 +45851,8 @@ "tax_type": { "description": "The tax type, such as `vat` or `sales_tax`.", "enum": [ + "amusement_tax", + "communications_tax", "gst", "hst", "igst", @@ -45981,6 +46071,8 @@ "tax_type": { "description": "The tax type, such as `vat` or `sales_tax`.", "enum": [ + "amusement_tax", + "communications_tax", "gst", "hst", "igst", @@ -46010,6 +46102,118 @@ "in_class": "tax_product_resource_tax_breakdown" } }, + "tax_product_resource_tax_settings_defaults": { + "description": "", + "properties": { + "tax_behavior": { + "description": "Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item's price has a tax behavior set, it will take precedence over the default tax behavior.", + "enum": [ + "exclusive", + "inclusive", + "inferred_by_currency" + ], + "nullable": true, + "type": "string" + }, + "tax_code": { + "description": "Default [tax code](https://stripe.com/docs/tax/tax-categories) used to classify your products and prices.", + "maxLength": 5000, + "nullable": true, + "type": "string" + } + }, + "required": [ + "tax_behavior", + "tax_code" + ], + "title": "TaxProductResourceTaxSettingsDefaults", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "Defaults", + "in_class": "tax.settings" + } + }, + "tax_product_resource_tax_settings_head_office": { + "description": "", + "properties": { + "address": { + "$ref": "#/components/schemas/address" + } + }, + "required": [ + "address" + ], + "title": "TaxProductResourceTaxSettingsHeadOffice", + "type": "object", + "x-expandableFields": [ + "address" + ], + "x-stripeResource": { + "class_name": "HeadOffice", + "in_class": "tax.settings" + } + }, + "tax_product_resource_tax_settings_status_details": { + "description": "", + "properties": { + "active": { + "$ref": "#/components/schemas/tax_product_resource_tax_settings_status_details_resource_active" + }, + "pending": { + "$ref": "#/components/schemas/tax_product_resource_tax_settings_status_details_resource_pending" + } + }, + "title": "TaxProductResourceTaxSettingsStatusDetails", + "type": "object", + "x-expandableFields": [ + "active", + "pending" + ], + "x-stripeResource": { + "class_name": "StatusDetails", + "in_class": "tax.settings", + "inner_classes": [ + "tax_product_resource_tax_settings_status_details_resource_active", + "tax_product_resource_tax_settings_status_details_resource_pending" + ] + } + }, + "tax_product_resource_tax_settings_status_details_resource_active": { + "description": "", + "properties": {}, + "title": "TaxProductResourceTaxSettingsStatusDetailsResourceActive", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "Active", + "in_class": "tax_product_resource_tax_settings_status_details" + } + }, + "tax_product_resource_tax_settings_status_details_resource_pending": { + "description": "", + "properties": { + "missing_fields": { + "description": "The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call.", + "items": { + "maxLength": 5000, + "type": "string" + }, + "nullable": true, + "type": "array" + } + }, + "required": [ + "missing_fields" + ], + "title": "TaxProductResourceTaxSettingsStatusDetailsResourcePending", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "Pending", + "in_class": "tax_product_resource_tax_settings_status_details" + } + }, "tax_product_resource_tax_transaction_line_item_resource_reversal": { "description": "", "properties": { @@ -120315,6 +120519,192 @@ } } }, + "/v1/tax/settings": { + "get": { + "description": "
Retrieves Tax Settings
for a merchant.
Updates Tax Settings
parameters used in tax calculations. All parameters are editable but none can be removed once set.
Creates a Tax Transaction
from a calculation.