Skip to content

Commit

Permalink
chore(docs): Updated API Reference (automated) (medusajs#10017)
Browse files Browse the repository at this point in the history
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <[email protected]>
Co-authored-by: Shahed Nasser <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2024
1 parent bc2d556 commit 82fd93d
Show file tree
Hide file tree
Showing 28 changed files with 60 additions and 167 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ properties:
display_id:
type: number
title: display_id
description: The order's display id.
description: The order's display ID.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,8 @@ properties:
title: no_notification
description: Whether to send the customer notifications when the exchange is updated.
difference_due:
oneOf:
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
type: number
title: difference_due
description: >-
The amount to be exchanged or refunded. If the amount is negative, it must
be refunded. If positive, additional payment is required from the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
15 changes: 2 additions & 13 deletions www/apps/api-reference/specs/admin/components/schemas/Return.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,8 @@ properties:
- received
- partially_received
refund_amount:
oneOf:
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
type: number
title: refund_amount
description: The amount refunded by this return.
order_id:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4013,4 +4013,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ properties:
description: The customer's phone.
metadata:
type: object
description: The customer's metadata.
description: The customer's metadata, can hold custom key-value pairs.
46 changes: 12 additions & 34 deletions www/apps/api-reference/specs/admin/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11441,8 +11441,8 @@ paths:
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.
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
Expand Down Expand Up @@ -48352,7 +48352,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
AdminOrderPreview:
type: object
description: A preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
Expand Down Expand Up @@ -55950,7 +55950,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
BaseOrderLineItemAdjustment:
type: object
description: The adjustment's details.
Expand Down Expand Up @@ -58344,7 +58344,7 @@ components:
display_id:
type: number
title: display_id
description: The order's display id.
description: The order's display ID.
OrderAddress:
type: object
description: The address's details.
Expand Down Expand Up @@ -58807,19 +58807,8 @@ components:
title: no_notification
description: Whether to send the customer notifications when the exchange is updated.
difference_due:
oneOf:
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
type: number
title: difference_due
description: The amount to be exchanged or refunded. If the amount is negative, it must be refunded. If positive, additional payment is required from the customer.
return:
$ref: '#/components/schemas/Return'
Expand Down Expand Up @@ -59171,7 +59160,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
OrderLineItemAdjustment:
type: object
description: The line item adjustment's details.
Expand Down Expand Up @@ -59702,19 +59691,8 @@ components:
- received
- partially_received
refund_amount:
oneOf:
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
type: number
title: refund_amount
description: The amount refunded by this return.
order_id:
type: string
Expand Down Expand Up @@ -65691,7 +65669,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
StoreOrderResponse:
type: object
description: The order's details.
Expand Down Expand Up @@ -68561,7 +68539,7 @@ components:
description: The customer's phone.
metadata:
type: object
description: The customer's metadata.
description: The customer's metadata, can hold custom key-value pairs.
UpdateAddress:
type: object
description: The details to update in the address.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ post:
type: string
- name: fields
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.
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ properties:
display_id:
type: number
title: display_id
description: The order's display id.
description: The order's display ID.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,8 @@ properties:
title: no_notification
description: Whether to send the customer notifications when the exchange is updated.
difference_due:
oneOf:
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
type: number
title: difference_due
description: >-
The amount to be exchanged or refunded. If the amount is negative, it must
be refunded. If positive, additional payment is required from the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
15 changes: 2 additions & 13 deletions www/apps/api-reference/specs/store/components/schemas/Return.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,8 @@ properties:
- received
- partially_received
refund_amount:
oneOf:
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
type: number
title: refund_amount
description: The amount refunded by this return.
order_id:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4013,4 +4013,4 @@ properties:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ properties:
description: The customer's phone.
metadata:
type: object
description: The customer's metadata.
description: The customer's metadata, can hold custom key-value pairs.
42 changes: 10 additions & 32 deletions www/apps/api-reference/specs/store/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10382,7 +10382,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
AdminOrderPreview:
type: object
description: A preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
Expand Down Expand Up @@ -17980,7 +17980,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
BaseOrderLineItemAdjustment:
type: object
description: The adjustment's details.
Expand Down Expand Up @@ -20374,7 +20374,7 @@ components:
display_id:
type: number
title: display_id
description: The order's display id.
description: The order's display ID.
OrderAddress:
type: object
description: The address's details.
Expand Down Expand Up @@ -20837,19 +20837,8 @@ components:
title: no_notification
description: Whether to send the customer notifications when the exchange is updated.
difference_due:
oneOf:
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
- type: string
title: difference_due
description: The exchange's difference due.
- type: number
title: difference_due
description: The exchange's difference due.
type: number
title: difference_due
description: The amount to be exchanged or refunded. If the amount is negative, it must be refunded. If positive, additional payment is required from the customer.
return:
$ref: '#/components/schemas/Return'
Expand Down Expand Up @@ -21201,7 +21190,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
OrderLineItemAdjustment:
type: object
description: The line item adjustment's details.
Expand Down Expand Up @@ -21732,19 +21721,8 @@ components:
- received
- partially_received
refund_amount:
oneOf:
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
- type: string
title: refund_amount
description: The return order's refund amount.
- type: number
title: refund_amount
description: The return order's refund amount.
type: number
title: refund_amount
description: The amount refunded by this return.
order_id:
type: string
Expand Down Expand Up @@ -27721,7 +27699,7 @@ components:
product_type_id:
type: string
title: product_type_id
description: The item's product type id.
description: The ID of the associated product's type.
StoreOrderResponse:
type: object
description: The order's details.
Expand Down Expand Up @@ -30591,7 +30569,7 @@ components:
description: The customer's phone.
metadata:
type: object
description: The customer's metadata.
description: The customer's metadata, can hold custom key-value pairs.
UpdateAddress:
type: object
description: The details to update in the address.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* 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.
* 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
Expand Down
Loading

0 comments on commit 82fd93d

Please sign in to comment.