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

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-04-12 11:56:12 +02:00
committed by GitHub
parent 25672dbb77
commit d83fcfd9ea
10 changed files with 32 additions and 12 deletions
+11 -3
View File
@@ -1901,7 +1901,7 @@
{
"lang": "JavaScript",
"label": "JS Client",
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.currencies.update(code, {\n includes_tax: true\n})\n.then(({ currency }) => {\n console.log(currency.id);\n});\n"
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.currencies.update(code, {\n includes_tax: true\n})\n.then(({ currency }) => {\n console.log(currency.code);\n});\n"
},
{
"lang": "Shell",
@@ -21062,7 +21062,7 @@
{
"lang": "JavaScript",
"label": "JS Client",
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.addCurrency('eur')\n.then(({ store }) => {\n console.log(store.id);\n});\n"
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.addCurrency('eur')\n.then(({ store }) => {\n console.log(store.currencies);\n});\n"
},
{
"lang": "Shell",
@@ -21139,7 +21139,7 @@
{
"lang": "JavaScript",
"label": "JS Client",
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.deleteCurrency('eur')\n.then(({ store }) => {\n console.log(store.id);\n});\n"
"source": "import Medusa from \"@medusajs/medusa-js\"\nconst medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })\n// must be previously logged in or use api token\nmedusa.admin.store.deleteCurrency('eur')\n.then(({ store }) => {\n console.log(store.currencies);\n});\n"
},
{
"lang": "Shell",
@@ -28547,6 +28547,10 @@
"type": "string",
"description": "The name to identify the Product Category by."
},
"description": {
"type": "string",
"description": "An optional text field to describe the Product Category by."
},
"handle": {
"type": "string",
"description": "A handle to be used in slugs."
@@ -28579,6 +28583,10 @@
"type": "string",
"description": "The name to identify the Product Category by."
},
"description": {
"type": "string",
"description": "An optional text field to describe the Product Category by."
},
"handle": {
"type": "string",
"description": "An optional handle to be used in slugs, if none is provided we will kebab-case the title."
+9 -3
View File
@@ -1602,7 +1602,7 @@ paths:
includes_tax: true
})
.then(({ currency }) => {
console.log(currency.id);
console.log(currency.code);
});
- lang: Shell
label: cURL
@@ -16196,7 +16196,7 @@ paths:
// must be previously logged in or use api token
medusa.admin.store.addCurrency('eur')
.then(({ store }) => {
console.log(store.id);
console.log(store.currencies);
});
- lang: Shell
label: cURL
@@ -16253,7 +16253,7 @@ paths:
// must be previously logged in or use api token
medusa.admin.store.deleteCurrency('eur')
.then(({ store }) => {
console.log(store.id);
console.log(store.currencies);
});
- lang: Shell
label: cURL
@@ -21814,6 +21814,9 @@ components:
name:
type: string
description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle:
type: string
description: A handle to be used in slugs.
@@ -21837,6 +21840,9 @@ components:
name:
type: string
description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle:
type: string
description: An optional handle to be used in slugs, if none is provided we will kebab-case the title.
@@ -5,5 +5,5 @@ medusa.admin.currencies.update(code, {
includes_tax: true
})
.then(({ currency }) => {
console.log(currency.id);
console.log(currency.code);
});
@@ -3,5 +3,5 @@ const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
// must be previously logged in or use api token
medusa.admin.store.deleteCurrency('eur')
.then(({ store }) => {
console.log(store.id);
console.log(store.currencies);
});
@@ -3,5 +3,5 @@ const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
// must be previously logged in or use api token
medusa.admin.store.addCurrency('eur')
.then(({ store }) => {
console.log(store.id);
console.log(store.currencies);
});
@@ -3,6 +3,9 @@ properties:
name:
type: string
description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle:
type: string
description: A handle to be used in slugs.
@@ -5,6 +5,9 @@ properties:
name:
type: string
description: The name to identify the Product Category by.
description:
type: string
description: An optional text field to describe the Product Category by.
handle:
type: string
description: >-
+1 -1
View File
@@ -14280,7 +14280,7 @@
],
"properties": {
"code": {
"description": "The code that a Discount is identifed by.",
"description": "The code that a Discount is identified by.",
"type": "string"
}
}
+1 -1
View File
@@ -11288,7 +11288,7 @@ components:
- code
properties:
code:
description: The code that a Discount is identifed by.
description: The code that a Discount is identified by.
type: string
customer_id:
description: The ID of the Customer to associate the Cart with.
@@ -51,7 +51,7 @@ properties:
- code
properties:
code:
description: The code that a Discount is identifed by.
description: The code that a Discount is identified by.
type: string
customer_id:
description: The ID of the Customer to associate the Cart with.