diff --git a/docs/api/admin.oas.json b/docs/api/admin.oas.json index 9d2ae8e874..fb56220788 100644 --- a/docs/api/admin.oas.json +++ b/docs/api/admin.oas.json @@ -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." diff --git a/docs/api/admin.oas.yaml b/docs/api/admin.oas.yaml index 30b0fbd255..05c9743323 100644 --- a/docs/api/admin.oas.yaml +++ b/docs/api/admin.oas.yaml @@ -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. diff --git a/docs/api/admin/code_samples/JavaScript/admin_currencies_{code}/post.js b/docs/api/admin/code_samples/JavaScript/admin_currencies_{code}/post.js index f50291cf75..0cc59f0be3 100644 --- a/docs/api/admin/code_samples/JavaScript/admin_currencies_{code}/post.js +++ b/docs/api/admin/code_samples/JavaScript/admin_currencies_{code}/post.js @@ -5,5 +5,5 @@ medusa.admin.currencies.update(code, { includes_tax: true }) .then(({ currency }) => { - console.log(currency.id); + console.log(currency.code); }); diff --git a/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/delete.js b/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/delete.js index 153d5ccaea..60a7f2301e 100644 --- a/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/delete.js +++ b/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/delete.js @@ -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); }); diff --git a/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/post.js b/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/post.js index 104d443ddb..8eb0ea3621 100644 --- a/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/post.js +++ b/docs/api/admin/code_samples/JavaScript/admin_store_currencies_{code}/post.js @@ -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); }); diff --git a/docs/api/admin/components/schemas/AdminPostProductCategoriesCategoryReq.yaml b/docs/api/admin/components/schemas/AdminPostProductCategoriesCategoryReq.yaml index 58dfccf7b9..b9f61a3d2c 100644 --- a/docs/api/admin/components/schemas/AdminPostProductCategoriesCategoryReq.yaml +++ b/docs/api/admin/components/schemas/AdminPostProductCategoriesCategoryReq.yaml @@ -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. diff --git a/docs/api/admin/components/schemas/AdminPostProductCategoriesReq.yaml b/docs/api/admin/components/schemas/AdminPostProductCategoriesReq.yaml index ce349dde14..264859f4ef 100644 --- a/docs/api/admin/components/schemas/AdminPostProductCategoriesReq.yaml +++ b/docs/api/admin/components/schemas/AdminPostProductCategoriesReq.yaml @@ -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: >- diff --git a/docs/api/store.oas.json b/docs/api/store.oas.json index 9569a3b736..08da8aff5f 100644 --- a/docs/api/store.oas.json +++ b/docs/api/store.oas.json @@ -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" } } diff --git a/docs/api/store.oas.yaml b/docs/api/store.oas.yaml index eb940ba47a..5bca9e6e2f 100644 --- a/docs/api/store.oas.yaml +++ b/docs/api/store.oas.yaml @@ -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. diff --git a/docs/api/store/components/schemas/StorePostCartsCartReq.yaml b/docs/api/store/components/schemas/StorePostCartsCartReq.yaml index 787339ceb5..a54a1d60a8 100644 --- a/docs/api/store/components/schemas/StorePostCartsCartReq.yaml +++ b/docs/api/store/components/schemas/StorePostCartsCartReq.yaml @@ -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.