chore(docs): Generated API Reference (#4205)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
7 files changed
+215
-46
No files matched your search
+132
-31
@@ -6353,6 +6353,19 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "location_id",
|
||||||
|
"style": "form",
|
||||||
|
"explode": false,
|
||||||
|
"description": "Locations ids to search for.",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"name": "expand",
|
"name": "expand",
|
||||||
@@ -17748,6 +17761,65 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "description",
|
||||||
|
"description": "A param for search reservation descriptions",
|
||||||
|
"schema": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"contains": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by reservation description containing search string."
|
||||||
|
},
|
||||||
|
"starts_with": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by reservation description starting with search string."
|
||||||
|
},
|
||||||
|
"ends_with": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by reservation description ending with search string."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "created_at",
|
||||||
|
"description": "Date comparison for when resulting reservations were created.",
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lt": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by dates less than this date",
|
||||||
|
"format": "date"
|
||||||
|
},
|
||||||
|
"gt": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by dates greater than this date",
|
||||||
|
"format": "date"
|
||||||
|
},
|
||||||
|
"lte": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by dates less than or equal to this date",
|
||||||
|
"format": "date"
|
||||||
|
},
|
||||||
|
"gte": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "filter by dates greater than or equal to this date",
|
||||||
|
"format": "date"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"name": "offset",
|
"name": "offset",
|
||||||
@@ -25509,36 +25581,7 @@
|
|||||||
"inventory_items": {
|
"inventory_items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"allOf": [
|
"$ref": "#/components/schemas/DecoratedInventoryItemDTO"
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/InventoryItemDTO"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"location_levels": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"allOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/InventoryLevelDTO"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"variants": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"allOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/ProductVariant"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"count": {
|
"count": {
|
||||||
@@ -31178,7 +31221,7 @@
|
|||||||
"reservations": {
|
"reservations": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/ReservationItemDTO"
|
"$ref": "#/components/schemas/ExtendedReservationItem"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"count": {
|
"count": {
|
||||||
@@ -33281,6 +33324,43 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DecoratedInventoryItemDTO": {
|
||||||
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/InventoryItemDTO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"stocked_quantity",
|
||||||
|
"reserved_quantity"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"location_levels": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/InventoryLevelDTO"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/ProductVariant"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stocked_quantity": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The total quantity of the item in stock across levels"
|
||||||
|
},
|
||||||
|
"reserved_quantity": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The total quantity of the item available across levels"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Discount": {
|
"Discount": {
|
||||||
"title": "Discount",
|
"title": "Discount",
|
||||||
"description": "Represents a discount that can be applied to a cart for promotional purposes.",
|
"description": "Represents a discount that can be applied to a cart for promotional purposes.",
|
||||||
@@ -33987,6 +34067,27 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ExtendedReservationItem": {
|
||||||
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ReservationItemDTO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"line_item": {
|
||||||
|
"description": "optional line item",
|
||||||
|
"$ref": "#/components/schemas/LineItem"
|
||||||
|
},
|
||||||
|
"inventory_item": {
|
||||||
|
"description": "inventory item from inventory module",
|
||||||
|
"$ref": "#/components/schemas/InventoryItemDTO"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"ExtendedStoreDTO": {
|
"ExtendedStoreDTO": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-14
@@ -8,20 +8,7 @@ properties:
|
|||||||
inventory_items:
|
inventory_items:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
allOf:
|
$ref: ./DecoratedInventoryItemDTO.yaml
|
||||||
- $ref: ./InventoryItemDTO.yaml
|
|
||||||
- type: object
|
|
||||||
properties:
|
|
||||||
location_levels:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
allOf:
|
|
||||||
- $ref: ./InventoryLevelDTO.yaml
|
|
||||||
variants:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
allOf:
|
|
||||||
- $ref: ./ProductVariant.yaml
|
|
||||||
count:
|
count:
|
||||||
type: integer
|
type: integer
|
||||||
description: The total number of items available
|
description: The total number of items available
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ properties:
|
|||||||
reservations:
|
reservations:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: ./ReservationItemDTO.yaml
|
$ref: ./ExtendedReservationItem.yaml
|
||||||
count:
|
count:
|
||||||
type: integer
|
type: integer
|
||||||
description: The total number of items available
|
description: The total number of items available
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
type: object
|
||||||
|
allOf:
|
||||||
|
- $ref: ./InventoryItemDTO.yaml
|
||||||
|
- type: object
|
||||||
|
required:
|
||||||
|
- stocked_quantity
|
||||||
|
- reserved_quantity
|
||||||
|
properties:
|
||||||
|
location_levels:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: ./InventoryLevelDTO.yaml
|
||||||
|
variants:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: ./ProductVariant.yaml
|
||||||
|
stocked_quantity:
|
||||||
|
type: number
|
||||||
|
description: The total quantity of the item in stock across levels
|
||||||
|
reserved_quantity:
|
||||||
|
type: number
|
||||||
|
description: The total quantity of the item available across levels
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
type: object
|
||||||
|
allOf:
|
||||||
|
- $ref: ./ReservationItemDTO.yaml
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
line_item:
|
||||||
|
description: optional line item
|
||||||
|
$ref: ./LineItem.yaml
|
||||||
|
inventory_item:
|
||||||
|
description: inventory item from inventory module
|
||||||
|
$ref: ./InventoryItemDTO.yaml
|
||||||
@@ -10,6 +10,15 @@ get:
|
|||||||
description: The ID of the Inventory Item.
|
description: The ID of the Inventory Item.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: location_id
|
||||||
|
style: form
|
||||||
|
explode: false
|
||||||
|
description: Locations ids to search for.
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
- in: query
|
- in: query
|
||||||
name: expand
|
name: expand
|
||||||
description: Comma separated list of relations to include in the results.
|
description: Comma separated list of relations to include in the results.
|
||||||
|
|||||||
@@ -51,6 +51,45 @@ get:
|
|||||||
description: >-
|
description: >-
|
||||||
filter by reservation quantity greater than or equal to this
|
filter by reservation quantity greater than or equal to this
|
||||||
number
|
number
|
||||||
|
- in: query
|
||||||
|
name: description
|
||||||
|
description: A param for search reservation descriptions
|
||||||
|
schema:
|
||||||
|
oneOf:
|
||||||
|
- type: string
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
contains:
|
||||||
|
type: string
|
||||||
|
description: filter by reservation description containing search string.
|
||||||
|
starts_with:
|
||||||
|
type: string
|
||||||
|
description: filter by reservation description starting with search string.
|
||||||
|
ends_with:
|
||||||
|
type: string
|
||||||
|
description: filter by reservation description ending with search string.
|
||||||
|
- in: query
|
||||||
|
name: created_at
|
||||||
|
description: Date comparison for when resulting reservations were created.
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
lt:
|
||||||
|
type: string
|
||||||
|
description: filter by dates less than this date
|
||||||
|
format: date
|
||||||
|
gt:
|
||||||
|
type: string
|
||||||
|
description: filter by dates greater than this date
|
||||||
|
format: date
|
||||||
|
lte:
|
||||||
|
type: string
|
||||||
|
description: filter by dates less than or equal to this date
|
||||||
|
format: date
|
||||||
|
gte:
|
||||||
|
type: string
|
||||||
|
description: filter by dates greater than or equal to this date
|
||||||
|
format: date
|
||||||
- in: query
|
- in: query
|
||||||
name: offset
|
name: offset
|
||||||
description: How many Reservations to skip in the result.
|
description: How many Reservations to skip in the result.
|
||||||
|
|||||||
Reference in new issue
Block a user