docs: generate API reference for 2.12.0 (#14185)

This commit is contained in:
Shahed Nasser
2025-12-02 11:56:37 +02:00
committed by GitHub
parent 21f61ec160
commit 9372a17d1f
71 changed files with 6310 additions and 19 deletions

View File

@@ -272,3 +272,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the draft order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the draft order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -677,3 +677,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the draft order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the draft order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -265,3 +265,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -139,3 +139,9 @@ properties:
format: date-time
title: updated_at
description: The date the order change was updated.
carry_over_promotions:
type: boolean
title: carry_over_promotions
description: >-
Whether promotions from the original order should be carried over to the
order change (specifically, exchanges).

View File

@@ -0,0 +1,8 @@
type: object
description: The details of the order change.
x-schemaName: AdminOrderChangeResponse
required:
- order_change
properties:
order_change:
$ref: ./AdminOrderChange.yaml

View File

@@ -679,3 +679,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -11,6 +11,7 @@ required:
- ean
- upc
- thumbnail
- images
- allow_backorder
- manage_inventory
- hs_code
@@ -149,7 +150,7 @@ properties:
type: array
description: The variant's images.
items:
$ref: ./AdminProductImage.yaml
$ref: ./BaseProductImage.yaml
thumbnail:
type: string
title: thumbnail

View File

@@ -69,3 +69,11 @@ properties:
description: >-
Whether the promotion is tax inclusive. If enabled, the promotion is
applied after tax is calculated.
limit:
type: number
title: limit
description: The limit of times the promotion can be used.
used:
type: number
title: used
description: The number of times the promotion has been used.

View File

@@ -0,0 +1,10 @@
type: object
description: The data to update in the order change.
x-schemaName: AdminUpdateOrderChange
properties:
carry_over_promotions:
type: boolean
title: carry_over_promotions
description: >-
Whether promotions from the original order should be carried over to the
order change (specifically, exchanges).

View File

@@ -253,3 +253,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -29,7 +29,7 @@ properties:
type: object
description: The image's metadata, can hold custom key-value pairs.
externalDocs:
url: https://docs.medusajs.com/api/store#manage-metadata
url: https://docs.medusajs.com/api/admin#manage-metadata
description: Learn how to manage metadata
rank:
type: number

View File

@@ -9,6 +9,7 @@ required:
- ean
- upc
- thumbnail
- images
- allow_backorder
- manage_inventory
- hs_code
@@ -138,3 +139,8 @@ properties:
type: string
title: thumbnail
description: The variant's thumbnail.
images:
type: array
description: The variant's images.
items:
$ref: ./BaseProductImage.yaml

View File

@@ -321,3 +321,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -139,3 +139,9 @@ properties:
format: date-time
title: updated_at
description: The date the order change was updated.
carry_over_promotions:
type: boolean
title: carry_over_promotions
description: >-
Whether promotions from the original order should be carried over to the
order change (specifically, exchanges).

View File

@@ -15,6 +15,7 @@ required:
- action
- details
- internal_note
- ordering
- created_at
- updated_at
properties:
@@ -98,3 +99,7 @@ properties:
format: date-time
title: updated_at
description: The date the action was updated.
ordering:
type: number
title: ordering
description: The action's ordering among other actions in the same order change.

View File

@@ -251,3 +251,10 @@ properties:
type: number
title: shipping_discount_total
description: The total discount amount applied on the order's shipping.
custom_display_id:
type: string
title: custom_display_id
description: The custom display ID of the order.
externalDocs:
url: >-
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id

View File

@@ -124,6 +124,11 @@ properties:
type: string
title: thumbnail
description: The variant's thumbnail.
images:
type: array
description: The variant's images.
items:
$ref: ./BaseProductImage.yaml
required:
- options
- length
@@ -139,6 +144,7 @@ required:
- hs_code
- mid_code
- material
- images
- deleted_at
- manage_inventory
- allow_backorder