chore(docs): Generated API Reference (#2882)

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-12-22 17:09:49 +02:00
committed by GitHub
co-authored by olivermrbl
parent 233d6904f8
commit 4814045036
477 changed files with 17312 additions and 17713 deletions
+3 -59
View File
@@ -90,7 +90,7 @@ get:
type: object
properties:
region:
$ref: ../components/schemas/region.yaml
$ref: ../components/schemas/Region.yaml
'400':
$ref: ../components/responses/400_error.yaml
'401':
@@ -119,63 +119,7 @@ post:
content:
application/json:
schema:
type: object
properties:
name:
description: The name of the Region
type: string
currency_code:
description: The 3 character ISO currency code to use for the Region.
type: string
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_4217#Active_codes
description: See a list of codes.
automatic_taxes:
description: >-
If true Medusa will automatically calculate taxes for carts in
this region. If false you have to manually call POST
/carts/:id/taxes.
type: boolean
gift_cards_taxable:
description: >-
Whether gift cards in this region should be applied sales tax
when purchasing a gift card
type: boolean
tax_provider_id:
description: >-
The ID of the tax provider to use; if null the system tax
provider is used
type: string
tax_code:
description: An optional tax code the Region.
type: string
tax_rate:
description: The tax rate to use on Orders in the Region.
type: number
includes_tax:
description: '[EXPERIMENTAL] Tax included in prices of region'
type: boolean
payment_providers:
description: >-
A list of Payment Provider IDs that should be enabled for the
Region
type: array
items:
type: string
fulfillment_providers:
description: >-
A list of Fulfillment Provider IDs that should be enabled for
the Region
type: array
items:
type: string
countries:
description: >-
A list of countries' 2 ISO Characters that should be included in
the Region.
type: array
items:
type: string
$ref: ../components/schemas/AdminPostRegionsRegionReq.yaml
x-codeSamples:
- lang: JavaScript
label: JS Client
@@ -199,7 +143,7 @@ post:
type: object
properties:
region:
$ref: ../components/schemas/region.yaml
$ref: ../components/schemas/Region.yaml
'400':
$ref: ../components/responses/400_error.yaml
'401':