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

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
github-actions[bot]
2023-04-26 20:57:23 +03:00
committed by GitHub
parent beffa3de0e
commit cce2b3827e
41 changed files with 110 additions and 95 deletions

View File

@@ -1,6 +1,4 @@
type: object
required:
- prices
properties:
title:
description: The title to identify the Product Variant by.

View File

@@ -10,6 +10,8 @@ x-expanded-relations:
- variants
- variants.options
- variants.prices
totals:
- variants.purchasable
required:
- products
- count

View File

@@ -5,6 +5,8 @@ x-expanded-relations:
- options
- prices
- product
totals:
- purchasable
required:
- variants
- count

View File

@@ -130,7 +130,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
context:
description: The context of the cart which can include info like IP or user agent.

View File

@@ -141,5 +141,5 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.

View File

@@ -1,10 +0,0 @@
title: Product with decorated variants
type: object
allOf:
- $ref: ./Product.yaml
- type: object
properties:
variants:
type: array
items:
$ref: ./DecoratedVariant.yaml

View File

@@ -1,9 +0,0 @@
title: Decorated Product Variant
type: object
allOf:
- $ref: ./PricedVariant.yaml
- type: object
properties:
purchasable:
type: boolean
description: Boolean indicating if variant is purchasable.

View File

@@ -71,7 +71,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: The date with timezone at which the resource was created.

View File

@@ -126,7 +126,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: The date with timezone at which the resource was created.

View File

@@ -26,7 +26,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: Date which the idempotency key was locked.

View File

@@ -245,7 +245,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
external_id:
description: The ID of an external order.

View File

@@ -102,7 +102,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: The date with timezone at which the resource was created.

View File

@@ -82,7 +82,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
amount:
description: The amount that the Payment Session has been authorized for.

View File

@@ -189,3 +189,13 @@ properties:
type: object
example:
car: white
purchasable:
description: |
Only used with the inventory modules.
A boolean value indicating whether the Product Variant is purchasable.
A variant is purchasable if:
- inventory is not managed
- it has no inventory items
- it is in stock
- it is backorderable.
type: boolean

View File

@@ -67,7 +67,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: The date with timezone at which the resource was created.

View File

@@ -103,7 +103,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
received_at:
description: The date with timezone at which the return was received.

View File

@@ -154,7 +154,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: The date with timezone at which the resource was created.

View File

@@ -44,7 +44,7 @@ properties:
type: string
externalDocs:
url: >-
https://docs.medusajs.com/advanced/backend/payment/overview#idempotency-key
https://docs.medusajs.com/modules/carts-and-checkout/cart.md#idempotency-key
description: Learn more how to use the idempotency key.
created_at:
description: The date with timezone at which the resource was created.