diff --git a/openapi/spec3.beta.sdk.json b/openapi/spec3.beta.sdk.json index d6045336..1f6eac95 100644 --- a/openapi/spec3.beta.sdk.json +++ b/openapi/spec3.beta.sdk.json @@ -35626,6 +35626,48 @@ "billing_interval" ] }, + "payment_flows_payment_intent_async_workflows": { + "description": "", + "properties": { + "inputs": { + "$ref": "#/components/schemas/payment_flows_payment_intent_async_workflows_resource_inputs" + } + }, + "title": "PaymentFlowsPaymentIntentAsyncWorkflows", + "type": "object", + "x-expandableFields": [ + "inputs" + ] + }, + "payment_flows_payment_intent_async_workflows_resource_inputs": { + "description": "", + "properties": { + "tax": { + "$ref": "#/components/schemas/payment_flows_payment_intent_async_workflows_resource_inputs_resource_tax" + } + }, + "title": "PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs", + "type": "object", + "x-expandableFields": [ + "tax" + ] + }, + "payment_flows_payment_intent_async_workflows_resource_inputs_resource_tax": { + "description": "", + "properties": { + "calculation": { + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "calculation" + ], + "title": "PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax", + "type": "object", + "x-expandableFields": [] + }, "payment_flows_private_payment_methods_alipay": { "description": "", "properties": {}, @@ -35962,6 +36004,9 @@ "nullable": true, "type": "integer" }, + "async_workflows": { + "$ref": "#/components/schemas/payment_flows_payment_intent_async_workflows" + }, "automatic_payment_methods": { "anyOf": [ { @@ -36380,6 +36425,7 @@ "x-expandableFields": [ "amount_details", "application", + "async_workflows", "automatic_payment_methods", "customer", "invoice", @@ -62818,6 +62864,71 @@ "end_behavior" ] }, + "tax.association": { + "description": "A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input", + "properties": { + "calculation": { + "description": "The [Tax Calculation](https://stripe.com/docs/api/tax/calculations/object) that was included in PaymentIntent.", + "maxLength": 5000, + "type": "string" + }, + "id": { + "description": "Unique identifier for the object.", + "maxLength": 5000, + "type": "string" + }, + "object": { + "description": "String representing the object's type. Objects of the same type share the same value.", + "enum": [ + "tax.association" + ], + "type": "string" + }, + "payment_intent": { + "description": "The [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) that this Tax Association is tracking.", + "maxLength": 5000, + "type": "string" + }, + "status": { + "description": "Status of the Tax Association.", + "enum": [ + "committed", + "errored" + ], + "type": "string" + }, + "status_details": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details" + } + }, + "required": [ + "calculation", + "id", + "object", + "payment_intent", + "status", + "status_details" + ], + "title": "TaxProductResourceTaxAssociation", + "type": "object", + "x-expandableFields": [ + "status_details" + ], + "x-resourceId": "tax.association", + "x-stripeOperations": [ + { + "method_name": "find", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/tax/associations/find" + } + ], + "x-stripeResource": { + "class_name": "Association", + "in_package": "Tax" + } + }, "tax.calculation": { "description": "A Tax Calculation allows you to calculate the tax to collect from your customer.\n\nRelated guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom)", "properties": { @@ -65006,6 +65117,153 @@ "address" ] }, + "tax_product_resource_tax_association_status_details": { + "description": "", + "properties": { + "committed": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details_resource_committed" + }, + "errored": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details_resource_errored" + } + }, + "title": "TaxProductResourceTaxAssociationStatusDetails", + "type": "object", + "x-expandableFields": [ + "committed", + "errored" + ] + }, + "tax_product_resource_tax_association_status_details_resource_committed": { + "description": "", + "properties": { + "reversals": { + "description": "Attempts to create Tax Transaction reversals", + "items": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal" + }, + "type": "array" + }, + "transaction": { + "description": "The [Tax Transaction](https://stripe.com/docs/api/tax/transaction/object)", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "reversals", + "transaction" + ], + "title": "TaxProductResourceTaxAssociationStatusDetailsResourceCommitted", + "type": "object", + "x-expandableFields": [ + "reversals" + ] + }, + "tax_product_resource_tax_association_status_details_resource_errored": { + "description": "", + "properties": { + "reason": { + "description": "Details on why we could not commit the Tax Transaction", + "enum": [ + "another_payment_associated_with_calculation", + "calculation_expired", + "currency_mismatch", + "unique_reference_violation" + ], + "type": "string" + } + }, + "required": [ + "reason" + ], + "title": "TaxProductResourceTaxAssociationStatusDetailsResourceErrored", + "type": "object", + "x-expandableFields": [] + }, + "tax_product_resource_tax_association_status_details_resource_tax_association_reversal_committed": { + "description": "", + "properties": { + "transaction": { + "description": "The [Tax Transaction](https://stripe.com/docs/api/tax/transaction/object)", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "transaction" + ], + "title": "TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalCommitted", + "type": "object", + "x-expandableFields": [] + }, + "tax_product_resource_tax_association_status_details_resource_tax_association_reversal_errored": { + "description": "", + "properties": { + "reason": { + "description": "Details on why we could not commit the reversal Tax Transaction", + "enum": [ + "original_transaction_voided", + "unique_reference_violation" + ], + "type": "string" + }, + "refund_id": { + "description": "The [Refund](https://stripe.com/docs/api/refunds/object) ID that should have created a tax reversal.", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "reason", + "refund_id" + ], + "title": "TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalErrored", + "type": "object", + "x-expandableFields": [] + }, + "tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal": { + "description": "", + "properties": { + "status": { + "description": "Status of the attempted Tax Transaction reversal.", + "enum": [ + "committed", + "errored" + ], + "type": "string" + }, + "status_details": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal_status_details" + } + }, + "required": [ + "status", + "status_details" + ], + "title": "TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalTaxAssociationReversal", + "type": "object", + "x-expandableFields": [ + "status_details" + ] + }, + "tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal_status_details": { + "description": "", + "properties": { + "committed": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_committed" + }, + "errored": { + "$ref": "#/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_errored" + } + }, + "title": "TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalTaxAssociationReversalStatusDetails", + "type": "object", + "x-expandableFields": [ + "committed", + "errored" + ] + }, "tax_product_resource_tax_breakdown": { "description": "", "properties": { @@ -72874,7 +73132,7 @@ "description": "The Stripe REST API. Please see https://stripe.com/docs/api for more details.", "termsOfService": "https://stripe.com/us/terms/", "title": "Stripe API", - "version": "2024-06-20; embedded_connect_beta=v2; server_side_confirmation_beta=v1; orders_beta=v4; gift_cards_beta=v1; unified_accounts_beta=v1; terminal_collect_inputs_beta=v1; terminal_collect_confirm_beta=v1; retrieve_tax_forms_beta=v1; financial_connections_transactions_beta=v1; invoice_partial_payments_beta=v1; invoice_payment_plans_beta=v1", + "version": "2024-06-20; embedded_connect_beta=v2; server_side_confirmation_beta=v1; orders_beta=v4; gift_cards_beta=v1; unified_accounts_beta=v1; terminal_collect_inputs_beta=v1; terminal_collect_confirm_beta=v1; retrieve_tax_forms_beta=v1; financial_connections_transactions_beta=v1; invoice_partial_payments_beta=v1; invoice_payment_plans_beta=v1; payment_intent_with_tax_api_beta=v1", "x-stripeSpecFilename": "spec3.beta.sdk" }, "openapi": "3.0.0", @@ -136565,6 +136823,10 @@ "content": { "application/x-www-form-urlencoded": { "encoding": { + "async_workflows": { + "explode": true, + "style": "deepObject" + }, "automatic_payment_methods": { "explode": true, "style": "deepObject" @@ -136625,6 +136887,45 @@ "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).", "type": "integer" }, + "async_workflows": { + "description": "Automations to be run during the PaymentIntent lifecycle", + "properties": { + "inputs": { + "description": "Arguments passed in automations", + "properties": { + "tax": { + "description": "Tax arguments for automations", + "properties": { + "calculation": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id" + } + }, + "required": [ + "calculation" + ], + "title": "async_workflows_inputs_tax_param", + "type": "object" + } + }, + "title": "async_workflows_inputs_param", + "type": "object" + } + }, + "title": "async_workflows_param", + "type": "object" + }, "automatic_payment_methods": { "description": "When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.", "properties": { @@ -140877,6 +141178,10 @@ "explode": true, "style": "deepObject" }, + "async_workflows": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -140939,6 +141244,45 @@ ], "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts)." }, + "async_workflows": { + "description": "Automations to be run during the PaymentIntent lifecycle", + "properties": { + "inputs": { + "description": "Arguments passed in automations", + "properties": { + "tax": { + "description": "Tax arguments for automations", + "properties": { + "calculation": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id" + } + }, + "required": [ + "calculation" + ], + "title": "async_workflows_inputs_tax_param", + "type": "object" + } + }, + "title": "async_workflows_inputs_param", + "type": "object" + } + }, + "title": "async_workflows_param", + "type": "object" + }, "capture_method": { "description": "Controls when the funds will be captured from the customer's account.", "enum": [ @@ -145043,6 +145387,10 @@ "content": { "application/x-www-form-urlencoded": { "encoding": { + "async_workflows": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -145071,6 +145419,45 @@ "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).", "type": "integer" }, + "async_workflows": { + "description": "Automations to be run during the PaymentIntent lifecycle", + "properties": { + "inputs": { + "description": "Arguments passed in automations", + "properties": { + "tax": { + "description": "Tax arguments for automations", + "properties": { + "calculation": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id" + } + }, + "required": [ + "calculation" + ], + "title": "async_workflows_inputs_tax_param", + "type": "object" + } + }, + "title": "async_workflows_inputs_param", + "type": "object" + } + }, + "title": "async_workflows_param", + "type": "object" + }, "expand": { "description": "Specifies which fields in the response should be expanded.", "items": { @@ -146002,6 +146389,10 @@ "explode": true, "style": "deepObject" }, + "async_workflows": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -146060,6 +146451,45 @@ ], "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts)." }, + "async_workflows": { + "description": "Automations to be run during the PaymentIntent lifecycle", + "properties": { + "inputs": { + "description": "Arguments passed in automations", + "properties": { + "tax": { + "description": "Tax arguments for automations", + "properties": { + "calculation": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id" + } + }, + "required": [ + "calculation" + ], + "title": "async_workflows_inputs_tax_param", + "type": "object" + } + }, + "title": "async_workflows_inputs_param", + "type": "object" + } + }, + "title": "async_workflows_param", + "type": "object" + }, "capture_method": { "description": "Controls when the funds will be captured from the customer's account.", "enum": [ @@ -150068,6 +150498,10 @@ "content": { "application/x-www-form-urlencoded": { "encoding": { + "async_workflows": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -150092,6 +150526,45 @@ "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).", "type": "integer" }, + "async_workflows": { + "description": "Automations to be run during the PaymentIntent lifecycle", + "properties": { + "inputs": { + "description": "Arguments passed in automations", + "properties": { + "tax": { + "description": "Tax arguments for automations", + "properties": { + "calculation": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id" + } + }, + "required": [ + "calculation" + ], + "title": "async_workflows_inputs_tax_param", + "type": "object" + } + }, + "title": "async_workflows_inputs_param", + "type": "object" + } + }, + "title": "async_workflows_param", + "type": "object" + }, "description": { "description": "An arbitrary string attached to the object. Often useful for displaying to users.", "maxLength": 1000, @@ -150177,6 +150650,10 @@ "content": { "application/x-www-form-urlencoded": { "encoding": { + "async_workflows": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -150201,6 +150678,45 @@ "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).", "type": "integer" }, + "async_workflows": { + "description": "Automations to be run during the PaymentIntent lifecycle", + "properties": { + "inputs": { + "description": "Arguments passed in automations", + "properties": { + "tax": { + "description": "Tax arguments for automations", + "properties": { + "calculation": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id" + } + }, + "required": [ + "calculation" + ], + "title": "async_workflows_inputs_tax_param", + "type": "object" + } + }, + "title": "async_workflows_inputs_param", + "type": "object" + } + }, + "title": "async_workflows_param", + "type": "object" + }, "description": { "description": "An arbitrary string attached to the object. Often useful for displaying to users.", "maxLength": 1000, @@ -187349,6 +187865,75 @@ } } }, + "/v1/tax/associations/find": { + "get": { + "description": "

Finds a tax association object by PaymentIntent id.

", + "operationId": "GetTaxAssociationsFind", + "parameters": [ + { + "description": "Specifies which fields in the response should be expanded.", + "explode": true, + "in": "query", + "name": "expand", + "required": false, + "schema": { + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "style": "deepObject" + }, + { + "description": "Valid [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) id", + "in": "query", + "name": "payment_intent", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "form" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": {}, + "schema": { + "additionalProperties": false, + "properties": {}, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tax.association" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, "/v1/tax/calculations": { "post": { "description": "

Calculates tax based on the input and returns a Tax Calculation object.

", diff --git a/openapi/spec3.beta.sdk.yaml b/openapi/spec3.beta.sdk.yaml index 2d85c430..4306bd45 100644 --- a/openapi/spec3.beta.sdk.yaml +++ b/openapi/spec3.beta.sdk.yaml @@ -32275,6 +32275,40 @@ components: x-expandableFields: - affiliate - billing_interval + payment_flows_payment_intent_async_workflows: + description: '' + properties: + inputs: + $ref: >- + #/components/schemas/payment_flows_payment_intent_async_workflows_resource_inputs + title: PaymentFlowsPaymentIntentAsyncWorkflows + type: object + x-expandableFields: + - inputs + payment_flows_payment_intent_async_workflows_resource_inputs: + description: '' + properties: + tax: + $ref: >- + #/components/schemas/payment_flows_payment_intent_async_workflows_resource_inputs_resource_tax + title: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs + type: object + x-expandableFields: + - tax + payment_flows_payment_intent_async_workflows_resource_inputs_resource_tax: + description: '' + properties: + calculation: + description: >- + The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + maxLength: 5000 + type: string + required: + - calculation + title: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax + type: object + x-expandableFields: [] payment_flows_private_payment_methods_alipay: description: '' properties: {} @@ -32586,6 +32620,8 @@ components: accounts](https://stripe.com/docs/payments/connected-accounts). nullable: true type: integer + async_workflows: + $ref: '#/components/schemas/payment_flows_payment_intent_async_workflows' automatic_payment_methods: anyOf: - $ref: >- @@ -32982,6 +33018,7 @@ components: x-expandableFields: - amount_details - application + - async_workflows - automatic_payment_methods - customer - invoice @@ -57044,6 +57081,66 @@ components: type: object x-expandableFields: - end_behavior + tax.association: + description: >- + A Tax Association exposes the Tax Transactions that Stripe attempted to + create on your behalf based on the PaymentIntent input + properties: + calculation: + description: >- + The [Tax + Calculation](https://stripe.com/docs/api/tax/calculations/object) + that was included in PaymentIntent. + maxLength: 5000 + type: string + id: + description: Unique identifier for the object. + maxLength: 5000 + type: string + object: + description: >- + String representing the object's type. Objects of the same type + share the same value. + enum: + - tax.association + type: string + payment_intent: + description: >- + The + [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) + that this Tax Association is tracking. + maxLength: 5000 + type: string + status: + description: Status of the Tax Association. + enum: + - committed + - errored + type: string + status_details: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details + required: + - calculation + - id + - object + - payment_intent + - status + - status_details + title: TaxProductResourceTaxAssociation + type: object + x-expandableFields: + - status_details + x-resourceId: tax.association + x-stripeOperations: + - method_name: find + method_on: service + method_type: custom + operation: get + path: /v1/tax/associations/find + x-stripeResource: + class_name: Association + in_package: Tax tax.calculation: description: >- A Tax Calculation allows you to calculate the tax to collect from your @@ -59025,6 +59122,130 @@ components: type: object x-expandableFields: - address + tax_product_resource_tax_association_status_details: + description: '' + properties: + committed: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details_resource_committed + errored: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details_resource_errored + title: TaxProductResourceTaxAssociationStatusDetails + type: object + x-expandableFields: + - committed + - errored + tax_product_resource_tax_association_status_details_resource_committed: + description: '' + properties: + reversals: + description: Attempts to create Tax Transaction reversals + items: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal + type: array + transaction: + description: >- + The [Tax + Transaction](https://stripe.com/docs/api/tax/transaction/object) + maxLength: 5000 + type: string + required: + - reversals + - transaction + title: TaxProductResourceTaxAssociationStatusDetailsResourceCommitted + type: object + x-expandableFields: + - reversals + tax_product_resource_tax_association_status_details_resource_errored: + description: '' + properties: + reason: + description: Details on why we could not commit the Tax Transaction + enum: + - another_payment_associated_with_calculation + - calculation_expired + - currency_mismatch + - unique_reference_violation + type: string + required: + - reason + title: TaxProductResourceTaxAssociationStatusDetailsResourceErrored + type: object + x-expandableFields: [] + tax_product_resource_tax_association_status_details_resource_tax_association_reversal_committed: + description: '' + properties: + transaction: + description: >- + The [Tax + Transaction](https://stripe.com/docs/api/tax/transaction/object) + maxLength: 5000 + type: string + required: + - transaction + title: >- + TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalCommitted + type: object + x-expandableFields: [] + tax_product_resource_tax_association_status_details_resource_tax_association_reversal_errored: + description: '' + properties: + reason: + description: Details on why we could not commit the reversal Tax Transaction + enum: + - original_transaction_voided + - unique_reference_violation + type: string + refund_id: + description: >- + The [Refund](https://stripe.com/docs/api/refunds/object) ID that + should have created a tax reversal. + maxLength: 5000 + type: string + required: + - reason + - refund_id + title: >- + TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalErrored + type: object + x-expandableFields: [] + tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal: + description: '' + properties: + status: + description: Status of the attempted Tax Transaction reversal. + enum: + - committed + - errored + type: string + status_details: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal_status_details + required: + - status + - status_details + title: >- + TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalTaxAssociationReversal + type: object + x-expandableFields: + - status_details + tax_product_resource_tax_association_status_details_resource_tax_association_reversal_tax_association_reversal_status_details: + description: '' + properties: + committed: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_committed + errored: + $ref: >- + #/components/schemas/tax_product_resource_tax_association_status_details_resource_tax_association_reversal_errored + title: >- + TaxProductResourceTaxAssociationStatusDetailsResourceTaxAssociationReversalTaxAssociationReversalStatusDetails + type: object + x-expandableFields: + - committed + - errored tax_product_resource_tax_breakdown: description: '' properties: @@ -65833,7 +66054,8 @@ info: orders_beta=v4; gift_cards_beta=v1; unified_accounts_beta=v1; terminal_collect_inputs_beta=v1; terminal_collect_confirm_beta=v1; retrieve_tax_forms_beta=v1; financial_connections_transactions_beta=v1; - invoice_partial_payments_beta=v1; invoice_payment_plans_beta=v1 + invoice_partial_payments_beta=v1; invoice_payment_plans_beta=v1; + payment_intent_with_tax_api_beta=v1 x-stripeSpecFilename: spec3.beta.sdk openapi: 3.0.0 paths: @@ -126233,6 +126455,9 @@ paths: content: application/x-www-form-urlencoded: encoding: + async_workflows: + explode: true + style: deepObject automatic_payment_methods: explode: true style: deepObject @@ -126295,6 +126520,34 @@ paths: [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). type: integer + async_workflows: + description: Automations to be run during the PaymentIntent lifecycle + properties: + inputs: + description: Arguments passed in automations + properties: + tax: + description: Tax arguments for automations + properties: + calculation: + anyOf: + - maxLength: 5000 + type: string + - enum: + - '' + type: string + description: >- + The + [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + required: + - calculation + title: async_workflows_inputs_tax_param + type: object + title: async_workflows_inputs_param + type: object + title: async_workflows_param + type: object automatic_payment_methods: description: >- When you enable this parameter, this PaymentIntent accepts @@ -131603,6 +131856,9 @@ paths: application_fee_amount: explode: true style: deepObject + async_workflows: + explode: true + style: deepObject expand: explode: true style: deepObject @@ -131663,6 +131919,34 @@ paths: payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). + async_workflows: + description: Automations to be run during the PaymentIntent lifecycle + properties: + inputs: + description: Arguments passed in automations + properties: + tax: + description: Tax arguments for automations + properties: + calculation: + anyOf: + - maxLength: 5000 + type: string + - enum: + - '' + type: string + description: >- + The + [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + required: + - calculation + title: async_workflows_inputs_tax_param + type: object + title: async_workflows_inputs_param + type: object + title: async_workflows_param + type: object capture_method: description: >- Controls when the funds will be captured from the customer's @@ -136757,6 +137041,9 @@ paths: content: application/x-www-form-urlencoded: encoding: + async_workflows: + explode: true + style: deepObject expand: explode: true style: deepObject @@ -136789,6 +137076,34 @@ paths: [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). type: integer + async_workflows: + description: Automations to be run during the PaymentIntent lifecycle + properties: + inputs: + description: Arguments passed in automations + properties: + tax: + description: Tax arguments for automations + properties: + calculation: + anyOf: + - maxLength: 5000 + type: string + - enum: + - '' + type: string + description: >- + The + [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + required: + - calculation + title: async_workflows_inputs_tax_param + type: object + title: async_workflows_inputs_param + type: object + title: async_workflows_param + type: object expand: description: Specifies which fields in the response should be expanded. items: @@ -137722,6 +138037,9 @@ paths: application_fee_amount: explode: true style: deepObject + async_workflows: + explode: true + style: deepObject expand: explode: true style: deepObject @@ -137769,6 +138087,34 @@ paths: payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). + async_workflows: + description: Automations to be run during the PaymentIntent lifecycle + properties: + inputs: + description: Arguments passed in automations + properties: + tax: + description: Tax arguments for automations + properties: + calculation: + anyOf: + - maxLength: 5000 + type: string + - enum: + - '' + type: string + description: >- + The + [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + required: + - calculation + title: async_workflows_inputs_tax_param + type: object + title: async_workflows_inputs_param + type: object + title: async_workflows_param + type: object capture_method: description: >- Controls when the funds will be captured from the customer's @@ -142788,6 +143134,9 @@ paths: content: application/x-www-form-urlencoded: encoding: + async_workflows: + explode: true + style: deepObject expand: explode: true style: deepObject @@ -142817,6 +143166,34 @@ paths: [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). type: integer + async_workflows: + description: Automations to be run during the PaymentIntent lifecycle + properties: + inputs: + description: Arguments passed in automations + properties: + tax: + description: Tax arguments for automations + properties: + calculation: + anyOf: + - maxLength: 5000 + type: string + - enum: + - '' + type: string + description: >- + The + [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + required: + - calculation + title: async_workflows_inputs_tax_param + type: object + title: async_workflows_inputs_param + type: object + title: async_workflows_param + type: object description: description: >- An arbitrary string attached to the object. Often useful for @@ -142941,6 +143318,9 @@ paths: content: application/x-www-form-urlencoded: encoding: + async_workflows: + explode: true + style: deepObject expand: explode: true style: deepObject @@ -142969,6 +143349,34 @@ paths: [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). type: integer + async_workflows: + description: Automations to be run during the PaymentIntent lifecycle + properties: + inputs: + description: Arguments passed in automations + properties: + tax: + description: Tax arguments for automations + properties: + calculation: + anyOf: + - maxLength: 5000 + type: string + - enum: + - '' + type: string + description: >- + The + [TaxCalculation](https://stripe.com/docs/api/tax/calculations) + id + required: + - calculation + title: async_workflows_inputs_tax_param + type: object + title: async_workflows_inputs_param + type: object + title: async_workflows_param + type: object description: description: >- An arbitrary string attached to the object. Often useful for @@ -178312,6 +178720,55 @@ paths: schema: $ref: '#/components/schemas/error' description: Error response. + /v1/tax/associations/find: + get: + description:

Finds a tax association object by PaymentIntent id.

+ operationId: GetTaxAssociationsFind + parameters: + - description: Specifies which fields in the response should be expanded. + explode: true + in: query + name: expand + required: false + schema: + items: + maxLength: 5000 + type: string + type: array + style: deepObject + - description: >- + Valid + [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) + id + in: query + name: payment_intent + required: true + schema: + maxLength: 5000 + type: string + style: form + requestBody: + content: + application/x-www-form-urlencoded: + encoding: {} + schema: + additionalProperties: false + properties: {} + type: object + required: false + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/tax.association' + description: Successful response. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/error' + description: Error response. /v1/tax/calculations: post: description: >-