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:
committed by
GitHub
parent
beffa3de0e
commit
cce2b3827e
@@ -1,6 +1,4 @@
|
||||
type: object
|
||||
required:
|
||||
- prices
|
||||
properties:
|
||||
title:
|
||||
description: The title to identify the Product Variant by.
|
||||
|
||||
@@ -10,6 +10,8 @@ x-expanded-relations:
|
||||
- variants
|
||||
- variants.options
|
||||
- variants.prices
|
||||
totals:
|
||||
- variants.purchasable
|
||||
required:
|
||||
- products
|
||||
- count
|
||||
|
||||
@@ -5,6 +5,8 @@ x-expanded-relations:
|
||||
- options
|
||||
- prices
|
||||
- product
|
||||
totals:
|
||||
- purchasable
|
||||
required:
|
||||
- variants
|
||||
- count
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user