Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 4, 2024
1 parent 6c4714d commit 8de9a0b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 289 deletions.
58 changes: 3 additions & 55 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -3600,9 +3600,6 @@
{
"$ref": "#/components/schemas/payout"
},
{
"$ref": "#/components/schemas/platform_tax_fee"
},
{
"$ref": "#/components/schemas/refund"
},
Expand Down Expand Up @@ -7655,7 +7652,7 @@
"$ref": "#/components/schemas/payment_intent"
}
],
"description": "The ID of the PaymentIntent for Checkout Sessions in `payment` mode.",
"description": "The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
Expand Down Expand Up @@ -7771,7 +7768,7 @@
"$ref": "#/components/schemas/setup_intent"
}
],
"description": "The ID of the SetupIntent for Checkout Sessions in `setup` mode.",
"description": "The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
Expand Down Expand Up @@ -47694,55 +47691,6 @@
"type": "object",
"x-expandableFields": []
},
"platform_tax_fee": {
"description": "",
"properties": {
"account": {
"description": "The Connected account that incurred this charge.",
"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": [
"platform_tax_fee"
],
"type": "string"
},
"source_transaction": {
"description": "The payment object that caused this tax to be inflicted.",
"maxLength": 5000,
"type": "string"
},
"type": {
"description": "The type of tax (VAT).",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"account",
"id",
"object",
"source_transaction",
"type"
],
"title": "PlatformTax",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "PlatformTaxFee",
"in_package": "",
"polymorphic_groups": [
"balance_transaction_source"
]
}
},
"portal_business_profile": {
"description": "",
"properties": {
Expand Down Expand Up @@ -173620,7 +173568,7 @@
},
"/v1/setup_intents/{intent}/cancel": {
"post": {
"description": "<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>\n\n<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error.</p>",
"description": "<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>\n\n<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. <a href=\"/docs/api/checkout/sessions/expire\">Expire the Checkout Session</a> instead.</p>",
"operationId": "PostSetupIntentsIntentCancel",
"parameters": [
{
Expand Down
59 changes: 15 additions & 44 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3478,7 +3478,6 @@ components:
- $ref: '#/components/schemas/issuing.dispute'
- $ref: '#/components/schemas/issuing.transaction'
- $ref: '#/components/schemas/payout'
- $ref: '#/components/schemas/platform_tax_fee'
- $ref: '#/components/schemas/refund'
- $ref: '#/components/schemas/reserve_transaction'
- $ref: '#/components/schemas/tax_deducted_at_source'
Expand Down Expand Up @@ -7189,7 +7188,12 @@ components:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/payment_intent'
description: The ID of the PaymentIntent for Checkout Sessions in `payment` mode.
description: >-
The ID of the PaymentIntent for Checkout Sessions in `payment` mode.
You can't confirm or cancel the PaymentIntent for a Checkout
Session. To cancel, [expire the Checkout
Session](https://stripe.com/docs/api/checkout/sessions/expire)
instead.
nullable: true
x-expansionResources:
oneOf:
Expand Down Expand Up @@ -7289,7 +7293,12 @@ components:
- maxLength: 5000
type: string
- $ref: '#/components/schemas/setup_intent'
description: The ID of the SetupIntent for Checkout Sessions in `setup` mode.
description: >-
The ID of the SetupIntent for Checkout Sessions in `setup` mode. You
can't confirm or cancel the SetupIntent for a Checkout Session. To
cancel, [expire the Checkout
Session](https://stripe.com/docs/api/checkout/sessions/expire)
instead.
nullable: true
x-expansionResources:
oneOf:
Expand Down Expand Up @@ -43872,46 +43881,6 @@ components:
title: PlatformEarningFeeSource
type: object
x-expandableFields: []
platform_tax_fee:
description: ''
properties:
account:
description: The Connected account that incurred this charge.
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:
- platform_tax_fee
type: string
source_transaction:
description: The payment object that caused this tax to be inflicted.
maxLength: 5000
type: string
type:
description: The type of tax (VAT).
maxLength: 5000
type: string
required:
- account
- id
- object
- source_transaction
- type
title: PlatformTax
type: object
x-expandableFields: []
x-stripeResource:
class_name: PlatformTaxFee
in_package: ''
polymorphic_groups:
- balance_transaction_source
portal_business_profile:
description: ''
properties:
Expand Down Expand Up @@ -164704,7 +164673,9 @@ paths:


<p>After you cancel it, setup is abandoned and any operations on the
SetupIntent fail with an error.</p>
SetupIntent fail with an error. You can’t cancel the SetupIntent for a
Checkout Session. <a href="/docs/api/checkout/sessions/expire">Expire
the Checkout Session</a> instead.</p>
operationId: PostSetupIntentsIntentCancel
parameters:
- in: path
Expand Down
54 changes: 3 additions & 51 deletions openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2569,9 +2569,6 @@
{
"$ref": "#/components/schemas/payout"
},
{
"$ref": "#/components/schemas/platform_tax_fee"
},
{
"$ref": "#/components/schemas/refund"
},
Expand Down Expand Up @@ -2625,9 +2622,6 @@
{
"$ref": "#/components/schemas/payout"
},
{
"$ref": "#/components/schemas/platform_tax_fee"
},
{
"$ref": "#/components/schemas/refund"
},
Expand Down Expand Up @@ -5199,7 +5193,7 @@
"$ref": "#/components/schemas/payment_intent"
}
],
"description": "The ID of the PaymentIntent for Checkout Sessions in `payment` mode.",
"description": "The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
Expand Down Expand Up @@ -5315,7 +5309,7 @@
"$ref": "#/components/schemas/setup_intent"
}
],
"description": "The ID of the SetupIntent for Checkout Sessions in `setup` mode.",
"description": "The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
Expand Down Expand Up @@ -34344,48 +34338,6 @@
"type": "object",
"x-expandableFields": []
},
"platform_tax_fee": {
"description": "",
"properties": {
"account": {
"description": "The Connected account that incurred this charge.",
"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": [
"platform_tax_fee"
],
"type": "string"
},
"source_transaction": {
"description": "The payment object that caused this tax to be inflicted.",
"maxLength": 5000,
"type": "string"
},
"type": {
"description": "The type of tax (VAT).",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"account",
"id",
"object",
"source_transaction",
"type"
],
"title": "PlatformTax",
"type": "object",
"x-expandableFields": []
},
"portal_business_profile": {
"description": "",
"properties": {
Expand Down Expand Up @@ -130725,7 +130677,7 @@
},
"/v1/setup_intents/{intent}/cancel": {
"post": {
"description": "<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>\n\n<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error.</p>",
"description": "<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>\n\n<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. <a href=\"/docs/api/checkout/sessions/expire\">Expire the Checkout Session</a> instead.</p>",
"operationId": "PostSetupIntentsIntentCancel",
"parameters": [
{
Expand Down
58 changes: 3 additions & 55 deletions openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -3339,9 +3339,6 @@
{
"$ref": "#/components/schemas/payout"
},
{
"$ref": "#/components/schemas/platform_tax_fee"
},
{
"$ref": "#/components/schemas/refund"
},
Expand Down Expand Up @@ -6603,7 +6600,7 @@
"$ref": "#/components/schemas/payment_intent"
}
],
"description": "The ID of the PaymentIntent for Checkout Sessions in `payment` mode.",
"description": "The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
Expand Down Expand Up @@ -6719,7 +6716,7 @@
"$ref": "#/components/schemas/setup_intent"
}
],
"description": "The ID of the SetupIntent for Checkout Sessions in `setup` mode.",
"description": "The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
Expand Down Expand Up @@ -41781,55 +41778,6 @@
"type": "object",
"x-expandableFields": []
},
"platform_tax_fee": {
"description": "",
"properties": {
"account": {
"description": "The Connected account that incurred this charge.",
"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": [
"platform_tax_fee"
],
"type": "string"
},
"source_transaction": {
"description": "The payment object that caused this tax to be inflicted.",
"maxLength": 5000,
"type": "string"
},
"type": {
"description": "The type of tax (VAT).",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"account",
"id",
"object",
"source_transaction",
"type"
],
"title": "PlatformTax",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "PlatformTaxFee",
"in_package": "",
"polymorphic_groups": [
"balance_transaction_source"
]
}
},
"portal_business_profile": {
"description": "",
"properties": {
Expand Down Expand Up @@ -137897,7 +137845,7 @@
},
"/v1/setup_intents/{intent}/cancel": {
"post": {
"description": "<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>\n\n<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error.</p>",
"description": "<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>\n\n<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. <a href=\"/docs/api/checkout/sessions/expire\">Expire the Checkout Session</a> instead.</p>",
"operationId": "PostSetupIntentsIntentCancel",
"parameters": [
{
Expand Down
Loading

0 comments on commit 8de9a0b

Please sign in to comment.