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 Mar 22, 2023
1 parent f556eca commit be2b636
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 3 deletions.
1 change: 0 additions & 1 deletion openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -138838,7 +138838,6 @@
"style": "form"
},
{
"description": "Tax Transaction ID.",
"in": "path",
"name": "transaction",
"required": true,
Expand Down
3 changes: 1 addition & 2 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131163,8 +131163,7 @@ paths:
maxLength: 500
type: string
style: form
- description: Tax Transaction ID.
in: path
- in: path
name: transaction
required: true
schema:
Expand Down
42 changes: 42 additions & 0 deletions openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4075,6 +4075,15 @@
"nullable": true,
"type": "string"
},
"currency_conversion": {
"anyOf": [
{
"$ref": "#/components/schemas/payment_pages_checkout_session_currency_conversion"
}
],
"description": "Currency conversion details for automatic currency conversion sessions",
"nullable": true
},
"custom_fields": {
"description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.",
"items": {
Expand Down Expand Up @@ -4516,6 +4525,7 @@
"automatic_tax",
"consent",
"consent_collection",
"currency_conversion",
"custom_fields",
"custom_text",
"customer",
Expand Down Expand Up @@ -25475,6 +25485,38 @@
"type": "object",
"x-expandableFields": []
},
"payment_pages_checkout_session_currency_conversion": {
"description": "",
"properties": {
"amount_subtotal": {
"description": "Total of all items in source currency before discounts or taxes are applied.",
"type": "integer"
},
"amount_total": {
"description": "Total of all items in source currency after discounts and taxes are applied.",
"type": "integer"
},
"fx_rate": {
"description": "Exchange rate used to convert source currency amounts to customer currency amounts",
"format": "decimal",
"type": "string"
},
"source_currency": {
"description": "Creation currency of the CheckoutSession before localization",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"amount_subtotal",
"amount_total",
"fx_rate",
"source_currency"
],
"title": "PaymentPagesCheckoutSessionCurrencyConversion",
"type": "object",
"x-expandableFields": []
},
"payment_pages_checkout_session_custom_fields": {
"description": "",
"properties": {
Expand Down
47 changes: 47 additions & 0 deletions openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -4980,6 +4980,15 @@
"nullable": true,
"type": "string"
},
"currency_conversion": {
"anyOf": [
{
"$ref": "#/components/schemas/payment_pages_checkout_session_currency_conversion"
}
],
"description": "Currency conversion details for automatic currency conversion sessions",
"nullable": true
},
"custom_fields": {
"description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.",
"items": {
Expand Down Expand Up @@ -5453,6 +5462,7 @@
"automatic_tax",
"consent",
"consent_collection",
"currency_conversion",
"custom_fields",
"custom_text",
"customer",
Expand Down Expand Up @@ -5521,6 +5531,7 @@
"payment_pages_checkout_session_automatic_tax",
"payment_pages_checkout_session_consent",
"payment_pages_checkout_session_consent_collection",
"payment_pages_checkout_session_currency_conversion",
"payment_pages_checkout_session_custom_fields",
"payment_pages_checkout_session_custom_text",
"payment_pages_checkout_session_customer_details",
Expand Down Expand Up @@ -30895,6 +30906,42 @@
"in_class": "checkout.session"
}
},
"payment_pages_checkout_session_currency_conversion": {
"description": "",
"properties": {
"amount_subtotal": {
"description": "Total of all items in source currency before discounts or taxes are applied.",
"type": "integer"
},
"amount_total": {
"description": "Total of all items in source currency after discounts and taxes are applied.",
"type": "integer"
},
"fx_rate": {
"description": "Exchange rate used to convert source currency amounts to customer currency amounts",
"format": "decimal",
"type": "string"
},
"source_currency": {
"description": "Creation currency of the CheckoutSession before localization",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"amount_subtotal",
"amount_total",
"fx_rate",
"source_currency"
],
"title": "PaymentPagesCheckoutSessionCurrencyConversion",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "CurrencyConversion",
"in_class": "checkout.session"
}
},
"payment_pages_checkout_session_custom_fields": {
"description": "",
"properties": {
Expand Down
44 changes: 44 additions & 0 deletions openapi/spec3.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4672,6 +4672,14 @@ components:
currency](https://stripe.com/docs/currencies).
nullable: true
type: string
currency_conversion:
anyOf:
- $ref: >-
#/components/schemas/payment_pages_checkout_session_currency_conversion
description: >-
Currency conversion details for automatic currency conversion
sessions
nullable: true
custom_fields:
description: >-
Collect additional information from your customer using custom
Expand Down Expand Up @@ -5098,6 +5106,7 @@ components:
- automatic_tax
- consent
- consent_collection
- currency_conversion
- custom_fields
- custom_text
- customer
Expand Down Expand Up @@ -5154,6 +5163,7 @@ components:
- payment_pages_checkout_session_automatic_tax
- payment_pages_checkout_session_consent
- payment_pages_checkout_session_consent_collection
- payment_pages_checkout_session_currency_conversion
- payment_pages_checkout_session_custom_fields
- payment_pages_checkout_session_custom_text
- payment_pages_checkout_session_customer_details
Expand Down Expand Up @@ -28505,6 +28515,40 @@ components:
x-stripeResource:
class_name: ConsentCollection
in_class: checkout.session
payment_pages_checkout_session_currency_conversion:
description: ''
properties:
amount_subtotal:
description: >-
Total of all items in source currency before discounts or taxes are
applied.
type: integer
amount_total:
description: >-
Total of all items in source currency after discounts and taxes are
applied.
type: integer
fx_rate:
description: >-
Exchange rate used to convert source currency amounts to customer
currency amounts
format: decimal
type: string
source_currency:
description: Creation currency of the CheckoutSession before localization
maxLength: 5000
type: string
required:
- amount_subtotal
- amount_total
- fx_rate
- source_currency
title: PaymentPagesCheckoutSessionCurrencyConversion
type: object
x-expandableFields: []
x-stripeResource:
class_name: CurrencyConversion
in_class: checkout.session
payment_pages_checkout_session_custom_fields:
description: ''
properties:
Expand Down
40 changes: 40 additions & 0 deletions openapi/spec3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3957,6 +3957,14 @@ components:
currency](https://stripe.com/docs/currencies).
nullable: true
type: string
currency_conversion:
anyOf:
- $ref: >-
#/components/schemas/payment_pages_checkout_session_currency_conversion
description: >-
Currency conversion details for automatic currency conversion
sessions
nullable: true
custom_fields:
description: >-
Collect additional information from your customer using custom
Expand Down Expand Up @@ -4351,6 +4359,7 @@ components:
- automatic_tax
- consent
- consent_collection
- currency_conversion
- custom_fields
- custom_text
- customer
Expand Down Expand Up @@ -24160,6 +24169,37 @@ components:
title: PaymentPagesCheckoutSessionConsentCollection
type: object
x-expandableFields: []
payment_pages_checkout_session_currency_conversion:
description: ''
properties:
amount_subtotal:
description: >-
Total of all items in source currency before discounts or taxes are
applied.
type: integer
amount_total:
description: >-
Total of all items in source currency after discounts and taxes are
applied.
type: integer
fx_rate:
description: >-
Exchange rate used to convert source currency amounts to customer
currency amounts
format: decimal
type: string
source_currency:
description: Creation currency of the CheckoutSession before localization
maxLength: 5000
type: string
required:
- amount_subtotal
- amount_total
- fx_rate
- source_currency
title: PaymentPagesCheckoutSessionCurrencyConversion
type: object
x-expandableFields: []
payment_pages_checkout_session_custom_fields:
description: ''
properties:
Expand Down

0 comments on commit be2b636

Please sign in to comment.