chore(docs): Generated API Reference (v2) (#8668)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fa44e3f5a8
commit
cb2ead3a1c
+6
@@ -0,0 +1,6 @@
|
|||||||
|
curl -X POST '{backend_url}/admin/order-edits/{id}/items/item/{item_id}' \
|
||||||
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
--data-raw '{
|
||||||
|
"quantity": 7564330046324736
|
||||||
|
}'
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminOrderEditResponse
|
||||||
|
required:
|
||||||
|
- order_change
|
||||||
|
properties:
|
||||||
|
order_change:
|
||||||
|
$ref: ./OrderChange.yaml
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminPostOrderEditsUpdateItemQuantityReqSchema
|
||||||
|
required:
|
||||||
|
- quantity
|
||||||
|
properties:
|
||||||
|
quantity:
|
||||||
|
type: number
|
||||||
|
title: quantity
|
||||||
|
description: The order edit's quantity.
|
||||||
|
internal_note:
|
||||||
|
type: string
|
||||||
|
title: internal_note
|
||||||
|
description: The order edit's internal note.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
type: object
|
type: object
|
||||||
description: The exchange's order preview.
|
description: The order edit's order preview.
|
||||||
x-schemaName: OrderPreview
|
x-schemaName: OrderPreview
|
||||||
required:
|
required:
|
||||||
- order_change
|
- order_change
|
||||||
|
|||||||
@@ -11902,7 +11902,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/AdminOrderResponse'
|
$ref: '#/components/schemas/AdminOrderEditResponse'
|
||||||
'400':
|
'400':
|
||||||
$ref: '#/components/responses/400_error'
|
$ref: '#/components/responses/400_error'
|
||||||
'401':
|
'401':
|
||||||
@@ -12199,6 +12199,112 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500_error'
|
$ref: '#/components/responses/500_error'
|
||||||
x-workflow: orderEditAddNewItemWorkflow
|
x-workflow: orderEditAddNewItemWorkflow
|
||||||
|
/admin/order-edits/{id}/items/item/{item_id}:
|
||||||
|
post:
|
||||||
|
operationId: PostOrderEditsIdItemsItemItem_id
|
||||||
|
summary: Add Items to Order Edit
|
||||||
|
description: Add a list of items to a order edit.
|
||||||
|
x-authenticated: true
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: The order edit's ID.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: item_id
|
||||||
|
in: path
|
||||||
|
description: The order edit's item id.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: expand
|
||||||
|
in: query
|
||||||
|
description: Comma-separated relations that should be expanded in the returned data.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
title: expand
|
||||||
|
description: Comma-separated relations that should be expanded in the returned data.
|
||||||
|
- name: fields
|
||||||
|
in: query
|
||||||
|
description: |-
|
||||||
|
Comma-separated fields that should be included in the returned data.
|
||||||
|
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
||||||
|
* without prefix it will replace the entire default fields.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
title: fields
|
||||||
|
description: |-
|
||||||
|
Comma-separated fields that should be included in the returned data.
|
||||||
|
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
||||||
|
* without prefix it will replace the entire default fields.
|
||||||
|
- name: offset
|
||||||
|
in: query
|
||||||
|
description: The number of items to skip when retrieving a list.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: number
|
||||||
|
title: offset
|
||||||
|
description: The number of items to skip when retrieving a list.
|
||||||
|
- name: limit
|
||||||
|
in: query
|
||||||
|
description: Limit the number of items returned in the list.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: number
|
||||||
|
title: limit
|
||||||
|
description: Limit the number of items returned in the list.
|
||||||
|
- name: order
|
||||||
|
in: query
|
||||||
|
description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
title: order
|
||||||
|
description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
|
||||||
|
security:
|
||||||
|
- api_token: []
|
||||||
|
- cookie_auth: []
|
||||||
|
- jwt_token: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/AdminPostOrderEditsUpdateItemQuantityReqSchema'
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: Shell
|
||||||
|
label: cURL
|
||||||
|
source: |-
|
||||||
|
curl -X POST '{backend_url}/admin/order-edits/{id}/items/item/{item_id}' \
|
||||||
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
--data-raw '{
|
||||||
|
"quantity": 7564330046324736
|
||||||
|
}'
|
||||||
|
tags:
|
||||||
|
- Order Edits
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/AdminOrderEditPreviewResponse'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/400_error'
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/unauthorized'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/not_found_error'
|
||||||
|
'409':
|
||||||
|
$ref: '#/components/responses/invalid_state_error'
|
||||||
|
'422':
|
||||||
|
$ref: '#/components/responses/invalid_request_error'
|
||||||
|
'500':
|
||||||
|
$ref: '#/components/responses/500_error'
|
||||||
|
x-workflow: orderEditUpdateItemQuantityWorkflow
|
||||||
/admin/order-edits/{id}/items/{action_id}:
|
/admin/order-edits/{id}/items/{action_id}:
|
||||||
post:
|
post:
|
||||||
operationId: PostOrderEditsIdItemsAction_id
|
operationId: PostOrderEditsIdItemsAction_id
|
||||||
@@ -13752,18 +13858,12 @@ paths:
|
|||||||
description: Comma-separated relations that should be expanded in the returned data.
|
description: Comma-separated relations that should be expanded in the returned data.
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
|
||||||
Comma-separated fields that should be included in the returned data.
|
|
||||||
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
|
||||||
* without prefix it will replace the entire default fields.
|
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
title: fields
|
title: fields
|
||||||
description: |-
|
description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.
|
||||||
Comma-separated fields that should be included in the returned data.
|
|
||||||
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
|
||||||
* without prefix it will replace the entire default fields.
|
|
||||||
- name: offset
|
- name: offset
|
||||||
in: query
|
in: query
|
||||||
description: The number of items to skip when retrieving a list.
|
description: The number of items to skip when retrieving a list.
|
||||||
@@ -46899,6 +46999,15 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
order_preview:
|
order_preview:
|
||||||
$ref: '#/components/schemas/OrderPreview'
|
$ref: '#/components/schemas/OrderPreview'
|
||||||
|
AdminOrderEditResponse:
|
||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminOrderEditResponse
|
||||||
|
required:
|
||||||
|
- order_change
|
||||||
|
properties:
|
||||||
|
order_change:
|
||||||
|
$ref: '#/components/schemas/OrderChange'
|
||||||
AdminOrderPreview:
|
AdminOrderPreview:
|
||||||
type: object
|
type: object
|
||||||
description: The return's order preview.
|
description: The return's order preview.
|
||||||
@@ -48303,6 +48412,21 @@ components:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The order edit's metadata.
|
description: The order edit's metadata.
|
||||||
|
AdminPostOrderEditsUpdateItemQuantityReqSchema:
|
||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminPostOrderEditsUpdateItemQuantityReqSchema
|
||||||
|
required:
|
||||||
|
- quantity
|
||||||
|
properties:
|
||||||
|
quantity:
|
||||||
|
type: number
|
||||||
|
title: quantity
|
||||||
|
description: The order edit's quantity.
|
||||||
|
internal_note:
|
||||||
|
type: string
|
||||||
|
title: internal_note
|
||||||
|
description: The order edit's internal note.
|
||||||
AdminPostOrderExchangesReqSchema:
|
AdminPostOrderExchangesReqSchema:
|
||||||
type: object
|
type: object
|
||||||
description: SUMMARY
|
description: SUMMARY
|
||||||
@@ -55114,7 +55238,7 @@ components:
|
|||||||
x-schemaName: OrderLineItemTaxLine
|
x-schemaName: OrderLineItemTaxLine
|
||||||
OrderPreview:
|
OrderPreview:
|
||||||
type: object
|
type: object
|
||||||
description: The exchange's order preview.
|
description: The order edit's order preview.
|
||||||
x-schemaName: OrderPreview
|
x-schemaName: OrderPreview
|
||||||
required:
|
required:
|
||||||
- order_change
|
- order_change
|
||||||
|
|||||||
@@ -297,6 +297,8 @@ paths:
|
|||||||
$ref: paths/admin_order-edits_{id}_confirm.yaml
|
$ref: paths/admin_order-edits_{id}_confirm.yaml
|
||||||
/admin/order-edits/{id}/items:
|
/admin/order-edits/{id}/items:
|
||||||
$ref: paths/admin_order-edits_{id}_items.yaml
|
$ref: paths/admin_order-edits_{id}_items.yaml
|
||||||
|
/admin/order-edits/{id}/items/item/{item_id}:
|
||||||
|
$ref: paths/admin_order-edits_{id}_items_item_{item_id}.yaml
|
||||||
/admin/order-edits/{id}/items/{action_id}:
|
/admin/order-edits/{id}/items/{action_id}:
|
||||||
$ref: paths/admin_order-edits_{id}_items_{action_id}.yaml
|
$ref: paths/admin_order-edits_{id}_items_{action_id}.yaml
|
||||||
/admin/order-edits/{id}/shipping-method:
|
/admin/order-edits/{id}/shipping-method:
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ post:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: ../components/schemas/AdminOrderResponse.yaml
|
$ref: ../components/schemas/AdminOrderEditResponse.yaml
|
||||||
'400':
|
'400':
|
||||||
$ref: ../components/responses/400_error.yaml
|
$ref: ../components/responses/400_error.yaml
|
||||||
'401':
|
'401':
|
||||||
|
|||||||
+109
@@ -0,0 +1,109 @@
|
|||||||
|
post:
|
||||||
|
operationId: PostOrderEditsIdItemsItemItem_id
|
||||||
|
summary: Add Items to Order Edit
|
||||||
|
description: Add a list of items to a order edit.
|
||||||
|
x-authenticated: true
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: The order edit's ID.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: item_id
|
||||||
|
in: path
|
||||||
|
description: The order edit's item id.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: expand
|
||||||
|
in: query
|
||||||
|
description: Comma-separated relations that should be expanded in the returned data.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
title: expand
|
||||||
|
description: >-
|
||||||
|
Comma-separated relations that should be expanded in the returned
|
||||||
|
data.
|
||||||
|
- name: fields
|
||||||
|
in: query
|
||||||
|
description: |-
|
||||||
|
Comma-separated fields that should be included in the returned data.
|
||||||
|
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
||||||
|
* without prefix it will replace the entire default fields.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
title: fields
|
||||||
|
description: |-
|
||||||
|
Comma-separated fields that should be included in the returned data.
|
||||||
|
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
||||||
|
* without prefix it will replace the entire default fields.
|
||||||
|
- name: offset
|
||||||
|
in: query
|
||||||
|
description: The number of items to skip when retrieving a list.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: number
|
||||||
|
title: offset
|
||||||
|
description: The number of items to skip when retrieving a list.
|
||||||
|
- name: limit
|
||||||
|
in: query
|
||||||
|
description: Limit the number of items returned in the list.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: number
|
||||||
|
title: limit
|
||||||
|
description: Limit the number of items returned in the list.
|
||||||
|
- name: order
|
||||||
|
in: query
|
||||||
|
description: >-
|
||||||
|
The field to sort the data by. By default, the sort order is ascending.
|
||||||
|
To change the order to descending, prefix the field name with `-`.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
title: order
|
||||||
|
description: >-
|
||||||
|
The field to sort the data by. By default, the sort order is
|
||||||
|
ascending. To change the order to descending, prefix the field name
|
||||||
|
with `-`.
|
||||||
|
security:
|
||||||
|
- api_token: []
|
||||||
|
- cookie_auth: []
|
||||||
|
- jwt_token: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: >-
|
||||||
|
../components/schemas/AdminPostOrderEditsUpdateItemQuantityReqSchema.yaml
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: Shell
|
||||||
|
label: cURL
|
||||||
|
source:
|
||||||
|
$ref: >-
|
||||||
|
../code_samples/Shell/admin_order-edits_{id}_items_item_{item_id}/post.sh
|
||||||
|
tags:
|
||||||
|
- Order Edits
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: ../components/schemas/AdminOrderEditPreviewResponse.yaml
|
||||||
|
'400':
|
||||||
|
$ref: ../components/responses/400_error.yaml
|
||||||
|
'401':
|
||||||
|
$ref: ../components/responses/unauthorized.yaml
|
||||||
|
'404':
|
||||||
|
$ref: ../components/responses/not_found_error.yaml
|
||||||
|
'409':
|
||||||
|
$ref: ../components/responses/invalid_state_error.yaml
|
||||||
|
'422':
|
||||||
|
$ref: ../components/responses/invalid_request_error.yaml
|
||||||
|
'500':
|
||||||
|
$ref: ../components/responses/500_error.yaml
|
||||||
|
x-workflow: orderEditUpdateItemQuantityWorkflow
|
||||||
@@ -16,18 +16,20 @@ post:
|
|||||||
data.
|
data.
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: >-
|
||||||
Comma-separated fields that should be included in the returned data.
|
Comma-separated fields that should be included in the returned data. if
|
||||||
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
a field is prefixed with `+` it will be added to the default fields,
|
||||||
* without prefix it will replace the entire default fields.
|
using `-` will remove it from the default fields. without prefix it will
|
||||||
|
replace the entire default fields.
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
title: fields
|
title: fields
|
||||||
description: |-
|
description: >-
|
||||||
Comma-separated fields that should be included in the returned data.
|
Comma-separated fields that should be included in the returned data.
|
||||||
* if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
if a field is prefixed with `+` it will be added to the default
|
||||||
* without prefix it will replace the entire default fields.
|
fields, using `-` will remove it from the default fields. without
|
||||||
|
prefix it will replace the entire default fields.
|
||||||
- name: offset
|
- name: offset
|
||||||
in: query
|
in: query
|
||||||
description: The number of items to skip when retrieving a list.
|
description: The number of items to skip when retrieving a list.
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminOrderEditResponse
|
||||||
|
required:
|
||||||
|
- order_change
|
||||||
|
properties:
|
||||||
|
order_change:
|
||||||
|
$ref: ./OrderChange.yaml
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminPostOrderEditsUpdateItemQuantityReqSchema
|
||||||
|
required:
|
||||||
|
- quantity
|
||||||
|
properties:
|
||||||
|
quantity:
|
||||||
|
type: number
|
||||||
|
title: quantity
|
||||||
|
description: The order edit's quantity.
|
||||||
|
internal_note:
|
||||||
|
type: string
|
||||||
|
title: internal_note
|
||||||
|
description: The order edit's internal note.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
type: object
|
type: object
|
||||||
description: The exchange's order preview.
|
description: The order edit's order preview.
|
||||||
x-schemaName: OrderPreview
|
x-schemaName: OrderPreview
|
||||||
required:
|
required:
|
||||||
- order_change
|
- order_change
|
||||||
|
|||||||
@@ -13622,6 +13622,15 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
order_preview:
|
order_preview:
|
||||||
$ref: '#/components/schemas/OrderPreview'
|
$ref: '#/components/schemas/OrderPreview'
|
||||||
|
AdminOrderEditResponse:
|
||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminOrderEditResponse
|
||||||
|
required:
|
||||||
|
- order_change
|
||||||
|
properties:
|
||||||
|
order_change:
|
||||||
|
$ref: '#/components/schemas/OrderChange'
|
||||||
AdminOrderPreview:
|
AdminOrderPreview:
|
||||||
type: object
|
type: object
|
||||||
description: The return's order preview.
|
description: The return's order preview.
|
||||||
@@ -15026,6 +15035,21 @@ components:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The order edit's metadata.
|
description: The order edit's metadata.
|
||||||
|
AdminPostOrderEditsUpdateItemQuantityReqSchema:
|
||||||
|
type: object
|
||||||
|
description: SUMMARY
|
||||||
|
x-schemaName: AdminPostOrderEditsUpdateItemQuantityReqSchema
|
||||||
|
required:
|
||||||
|
- quantity
|
||||||
|
properties:
|
||||||
|
quantity:
|
||||||
|
type: number
|
||||||
|
title: quantity
|
||||||
|
description: The order edit's quantity.
|
||||||
|
internal_note:
|
||||||
|
type: string
|
||||||
|
title: internal_note
|
||||||
|
description: The order edit's internal note.
|
||||||
AdminPostOrderExchangesReqSchema:
|
AdminPostOrderExchangesReqSchema:
|
||||||
type: object
|
type: object
|
||||||
description: SUMMARY
|
description: SUMMARY
|
||||||
@@ -21837,7 +21861,7 @@ components:
|
|||||||
x-schemaName: OrderLineItemTaxLine
|
x-schemaName: OrderLineItemTaxLine
|
||||||
OrderPreview:
|
OrderPreview:
|
||||||
type: object
|
type: object
|
||||||
description: The exchange's order preview.
|
description: The order edit's order preview.
|
||||||
x-schemaName: OrderPreview
|
x-schemaName: OrderPreview
|
||||||
required:
|
required:
|
||||||
- order_change
|
- order_change
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
* content:
|
* content:
|
||||||
* application/json:
|
* application/json:
|
||||||
* schema:
|
* schema:
|
||||||
* $ref: "#/components/schemas/AdminOrderResponse"
|
* $ref: "#/components/schemas/AdminOrderEditResponse"
|
||||||
* "400":
|
* "400":
|
||||||
* $ref: "#/components/responses/400_error"
|
* $ref: "#/components/responses/400_error"
|
||||||
* "401":
|
* "401":
|
||||||
|
|||||||
+113
@@ -0,0 +1,113 @@
|
|||||||
|
/**
|
||||||
|
* @oas [post] /admin/order-edits/{id}/items/item/{item_id}
|
||||||
|
* operationId: PostOrderEditsIdItemsItemItem_id
|
||||||
|
* summary: Add Items to Order Edit
|
||||||
|
* description: Add a list of items to a order edit.
|
||||||
|
* x-authenticated: true
|
||||||
|
* parameters:
|
||||||
|
* - name: id
|
||||||
|
* in: path
|
||||||
|
* description: The order edit's ID.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* - name: item_id
|
||||||
|
* in: path
|
||||||
|
* description: The order edit's item id.
|
||||||
|
* required: true
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* - name: expand
|
||||||
|
* in: query
|
||||||
|
* description: Comma-separated relations that should be expanded in the returned data.
|
||||||
|
* required: false
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* title: expand
|
||||||
|
* description: Comma-separated relations that should be expanded in the returned data.
|
||||||
|
* - name: fields
|
||||||
|
* in: query
|
||||||
|
* description: >-
|
||||||
|
* Comma-separated fields that should be included in the returned data.
|
||||||
|
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
||||||
|
* * without prefix it will replace the entire default fields.
|
||||||
|
* required: false
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* title: fields
|
||||||
|
* description: >-
|
||||||
|
* Comma-separated fields that should be included in the returned data.
|
||||||
|
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
||||||
|
* * without prefix it will replace the entire default fields.
|
||||||
|
* - name: offset
|
||||||
|
* in: query
|
||||||
|
* description: The number of items to skip when retrieving a list.
|
||||||
|
* required: false
|
||||||
|
* schema:
|
||||||
|
* type: number
|
||||||
|
* title: offset
|
||||||
|
* description: The number of items to skip when retrieving a list.
|
||||||
|
* - name: limit
|
||||||
|
* in: query
|
||||||
|
* description: Limit the number of items returned in the list.
|
||||||
|
* required: false
|
||||||
|
* schema:
|
||||||
|
* type: number
|
||||||
|
* title: limit
|
||||||
|
* description: Limit the number of items returned in the list.
|
||||||
|
* - name: order
|
||||||
|
* in: query
|
||||||
|
* description: The field to sort the data by. By default, the sort order is
|
||||||
|
* ascending. To change the order to descending, prefix the field name with
|
||||||
|
* `-`.
|
||||||
|
* required: false
|
||||||
|
* schema:
|
||||||
|
* type: string
|
||||||
|
* title: order
|
||||||
|
* description: The field to sort the data by. By default, the sort order is
|
||||||
|
* ascending. To change the order to descending, prefix the field name with
|
||||||
|
* `-`.
|
||||||
|
* security:
|
||||||
|
* - api_token: []
|
||||||
|
* - cookie_auth: []
|
||||||
|
* - jwt_token: []
|
||||||
|
* requestBody:
|
||||||
|
* content:
|
||||||
|
* application/json:
|
||||||
|
* schema:
|
||||||
|
* $ref: "#/components/schemas/AdminPostOrderEditsUpdateItemQuantityReqSchema"
|
||||||
|
* x-codeSamples:
|
||||||
|
* - lang: Shell
|
||||||
|
* label: cURL
|
||||||
|
* source: |-
|
||||||
|
* curl -X POST '{backend_url}/admin/order-edits/{id}/items/item/{item_id}' \
|
||||||
|
* -H 'x-medusa-access-token: {api_token}' \
|
||||||
|
* -H 'Content-Type: application/json' \
|
||||||
|
* --data-raw '{
|
||||||
|
* "quantity": 7564330046324736
|
||||||
|
* }'
|
||||||
|
* tags:
|
||||||
|
* - Order Edits
|
||||||
|
* responses:
|
||||||
|
* "200":
|
||||||
|
* description: OK
|
||||||
|
* content:
|
||||||
|
* application/json:
|
||||||
|
* schema:
|
||||||
|
* $ref: "#/components/schemas/AdminOrderEditPreviewResponse"
|
||||||
|
* "400":
|
||||||
|
* $ref: "#/components/responses/400_error"
|
||||||
|
* "401":
|
||||||
|
* $ref: "#/components/responses/unauthorized"
|
||||||
|
* "404":
|
||||||
|
* $ref: "#/components/responses/not_found_error"
|
||||||
|
* "409":
|
||||||
|
* $ref: "#/components/responses/invalid_state_error"
|
||||||
|
* "422":
|
||||||
|
* $ref: "#/components/responses/invalid_request_error"
|
||||||
|
* "500":
|
||||||
|
* $ref: "#/components/responses/500_error"
|
||||||
|
* x-workflow: orderEditUpdateItemQuantityWorkflow
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
@@ -15,18 +15,18 @@
|
|||||||
* description: Comma-separated relations that should be expanded in the returned data.
|
* description: Comma-separated relations that should be expanded in the returned data.
|
||||||
* - name: fields
|
* - name: fields
|
||||||
* in: query
|
* in: query
|
||||||
* description: >-
|
* description: Comma-separated fields that should be included in the returned
|
||||||
* Comma-separated fields that should be included in the returned data.
|
* data. if a field is prefixed with `+` it will be added to the default
|
||||||
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
* fields, using `-` will remove it from the default fields. without prefix
|
||||||
* * without prefix it will replace the entire default fields.
|
* it will replace the entire default fields.
|
||||||
* required: false
|
* required: false
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
* title: fields
|
* title: fields
|
||||||
* description: >-
|
* description: Comma-separated fields that should be included in the returned
|
||||||
* Comma-separated fields that should be included in the returned data.
|
* data. if a field is prefixed with `+` it will be added to the default
|
||||||
* * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields.
|
* fields, using `-` will remove it from the default fields. without prefix
|
||||||
* * without prefix it will replace the entire default fields.
|
* it will replace the entire default fields.
|
||||||
* - name: offset
|
* - name: offset
|
||||||
* in: query
|
* in: query
|
||||||
* description: The number of items to skip when retrieving a list.
|
* description: The number of items to skip when retrieving a list.
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
/**
|
||||||
|
* @schema AdminOrderEditResponse
|
||||||
|
* type: object
|
||||||
|
* description: SUMMARY
|
||||||
|
* x-schemaName: AdminOrderEditResponse
|
||||||
|
* required:
|
||||||
|
* - order_change
|
||||||
|
* properties:
|
||||||
|
* order_change:
|
||||||
|
* $ref: "#/components/schemas/OrderChange"
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
* @schema AdminPostOrderEditsUpdateItemQuantityReqSchema
|
||||||
|
* type: object
|
||||||
|
* description: SUMMARY
|
||||||
|
* x-schemaName: AdminPostOrderEditsUpdateItemQuantityReqSchema
|
||||||
|
* required:
|
||||||
|
* - quantity
|
||||||
|
* properties:
|
||||||
|
* quantity:
|
||||||
|
* type: number
|
||||||
|
* title: quantity
|
||||||
|
* description: The order edit's quantity.
|
||||||
|
* internal_note:
|
||||||
|
* type: string
|
||||||
|
* title: internal_note
|
||||||
|
* description: The order edit's internal note.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @schema OrderPreview
|
* @schema OrderPreview
|
||||||
* type: object
|
* type: object
|
||||||
* description: The exchange's order preview.
|
* description: The order edit's order preview.
|
||||||
* x-schemaName: OrderPreview
|
* x-schemaName: OrderPreview
|
||||||
* required:
|
* required:
|
||||||
* - order_change
|
* - order_change
|
||||||
|
|||||||
Reference in New Issue
Block a user