chore(docs): Generated API Reference (#2994)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f521260a8f
commit
f7e23afff2
@@ -0,0 +1,7 @@
|
||||
type: object
|
||||
required:
|
||||
- location_id
|
||||
properties:
|
||||
location_id:
|
||||
description: The ID of the stock location
|
||||
type: string
|
||||
@@ -0,0 +1,21 @@
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: The name to identify the Product Category by.
|
||||
handle:
|
||||
type: string
|
||||
description: >-
|
||||
An optional handle to be used in slugs, if none is provided we will
|
||||
kebab-case the title.
|
||||
is_internal:
|
||||
type: boolean
|
||||
description: A flag to make product category an internal category for admins
|
||||
is_active:
|
||||
type: boolean
|
||||
description: A flag to make product category visible/hidden in the store front
|
||||
parent_category_id:
|
||||
type: string
|
||||
description: The ID of the parent product category
|
||||
@@ -0,0 +1,7 @@
|
||||
type: object
|
||||
required:
|
||||
- location_id
|
||||
properties:
|
||||
location_id:
|
||||
description: The ID of the stock location
|
||||
type: string
|
||||
@@ -0,0 +1,15 @@
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
description: the name of the stock location
|
||||
type: string
|
||||
address_id:
|
||||
description: the stock location address ID
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
address:
|
||||
$ref: ./StockLocationAddressInput.yaml
|
||||
@@ -0,0 +1,17 @@
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
description: the name of the stock location
|
||||
type: string
|
||||
address_id:
|
||||
description: the stock location address ID
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
address:
|
||||
$ref: ./StockLocationAddressInput.yaml
|
||||
@@ -0,0 +1,22 @@
|
||||
title: Create Stock Location Input
|
||||
description: Represents the Input to create a Stock Location
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: The stock location name
|
||||
address_id:
|
||||
type: string
|
||||
description: The Stock location address ID
|
||||
address:
|
||||
description: Stock location address object
|
||||
allOf:
|
||||
- $ref: ./StockLocationAddressInput.yaml
|
||||
- type: object
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
@@ -42,6 +42,10 @@ properties:
|
||||
fulfillment
|
||||
type: string
|
||||
example: manual
|
||||
location_id:
|
||||
description: The id of the stock location the fulfillment will be shipped from
|
||||
type: string
|
||||
example: sloc_01G8TJSYT9M6AVS5N4EMNFS1EK
|
||||
provider:
|
||||
description: Available if the relation `provider` is expanded.
|
||||
$ref: ./FulfillmentProvider.yaml
|
||||
|
||||
@@ -33,6 +33,13 @@ properties:
|
||||
that will be used to complete the purchase.
|
||||
type: boolean
|
||||
example: true
|
||||
is_initiated:
|
||||
description: >-
|
||||
A flag to indicate if a communication with the third party provider has
|
||||
been initiated.
|
||||
type: boolean
|
||||
example: true
|
||||
default: false
|
||||
status:
|
||||
description: >-
|
||||
Indicates the status of the Payment Session. Will default to `pending`,
|
||||
|
||||
56
docs/api/admin/components/schemas/ProductCategory.yaml
Normal file
56
docs/api/admin/components/schemas/ProductCategory.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
title: ProductCategory
|
||||
description: Represents a product category
|
||||
x-resourceId: ProductCategory
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: The product category's ID
|
||||
example: pcat_01G2SG30J8C85S4A5CHM2S1NS2
|
||||
name:
|
||||
type: string
|
||||
description: The product category's name
|
||||
example: Regular Fit
|
||||
handle:
|
||||
description: 'A unique string that identifies the Category - example: slug structures.'
|
||||
type: string
|
||||
example: regular-fit
|
||||
mpath:
|
||||
type: string
|
||||
description: >-
|
||||
A string for Materialized Paths - used for finding ancestors and
|
||||
descendents
|
||||
example: pcat_id1.pcat_id2.pcat_id3
|
||||
is_internal:
|
||||
type: boolean
|
||||
description: A flag to make product category an internal category for admins
|
||||
default: false
|
||||
is_active:
|
||||
type: boolean
|
||||
description: A flag to make product category visible/hidden in the store front
|
||||
default: false
|
||||
category_children:
|
||||
description: Available if the relation `category_children` are expanded.
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
description: A product category object.
|
||||
parent_category:
|
||||
description: >-
|
||||
A product category object. Available if the relation `parent_category` is
|
||||
expanded.
|
||||
type: object
|
||||
created_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was created.
|
||||
format: date-time
|
||||
updated_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was updated.
|
||||
format: date-time
|
||||
deleted_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was deleted.
|
||||
format: date-time
|
||||
@@ -0,0 +1,58 @@
|
||||
title: Stock Location Address
|
||||
description: Represents a Stock Location Address
|
||||
type: object
|
||||
required:
|
||||
- address_1
|
||||
- country_code
|
||||
- created_at
|
||||
- updated_at
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: The stock location address' ID
|
||||
example: laddr_51G4ZW853Y6TFXWPG5ENJ81X42
|
||||
address_1:
|
||||
type: string
|
||||
description: Stock location address
|
||||
example: 35, Jhon Doe Ave
|
||||
address_2:
|
||||
type: string
|
||||
description: Stock location address' complement
|
||||
example: apartment 4432
|
||||
city:
|
||||
type: string
|
||||
description: Stock location address' city
|
||||
example: Mexico city
|
||||
country_code:
|
||||
type: string
|
||||
description: Stock location address' country
|
||||
example: MX
|
||||
phone:
|
||||
type: string
|
||||
description: Stock location address' phone number
|
||||
example: +1 555 61646
|
||||
postal_code:
|
||||
type: string
|
||||
description: Stock location address' postal code
|
||||
example: HD3-1G8
|
||||
province:
|
||||
type: string
|
||||
description: Stock location address' province
|
||||
example: Sinaloa
|
||||
created_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was created.
|
||||
format: date-time
|
||||
updated_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was updated.
|
||||
format: date-time
|
||||
deleted_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was deleted.
|
||||
format: date-time
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
@@ -0,0 +1,40 @@
|
||||
title: Stock Location Address Input
|
||||
description: Represents a Stock Location Address Input
|
||||
type: object
|
||||
required:
|
||||
- address_1
|
||||
- country_code
|
||||
properties:
|
||||
address_1:
|
||||
type: string
|
||||
description: Stock location address
|
||||
example: 35, Jhon Doe Ave
|
||||
address_2:
|
||||
type: string
|
||||
description: Stock location address' complement
|
||||
example: apartment 4432
|
||||
city:
|
||||
type: string
|
||||
description: Stock location address' city
|
||||
example: Mexico city
|
||||
country_code:
|
||||
type: string
|
||||
description: Stock location address' country
|
||||
example: MX
|
||||
phone:
|
||||
type: string
|
||||
description: Stock location address' phone number
|
||||
example: +1 555 61646
|
||||
postal_code:
|
||||
type: string
|
||||
description: Stock location address' postal code
|
||||
example: HD3-1G8
|
||||
province:
|
||||
type: string
|
||||
description: Stock location address' province
|
||||
example: Sinaloa
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
44
docs/api/admin/components/schemas/StockLocationDTO.yaml
Normal file
44
docs/api/admin/components/schemas/StockLocationDTO.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
title: Stock Location
|
||||
description: Represents a Stock Location
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- address_id
|
||||
- created_at
|
||||
- updated_at
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: The stock location's ID
|
||||
example: sloc_51G4ZW853Y6TFXWPG5ENJ81X42
|
||||
address_id:
|
||||
type: string
|
||||
description: Stock location address' ID
|
||||
example: laddr_05B2ZE853Y6FTXWPW85NJ81A44
|
||||
name:
|
||||
type: string
|
||||
description: The name of the stock location
|
||||
example: Main Warehouse
|
||||
address:
|
||||
description: The Address of the Stock Location
|
||||
allOf:
|
||||
- $ref: ./StockLocationAddressDTO.yaml
|
||||
- type: object
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
created_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was created.
|
||||
format: date-time
|
||||
updated_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was updated.
|
||||
format: date-time
|
||||
deleted_at:
|
||||
type: string
|
||||
description: The date with timezone at which the resource was deleted.
|
||||
format: date-time
|
||||
@@ -0,0 +1,20 @@
|
||||
title: Update Stock Location Input
|
||||
description: Represents the Input to update a Stock Location
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: The stock location name
|
||||
address_id:
|
||||
type: string
|
||||
description: The Stock location address ID
|
||||
address:
|
||||
description: Stock location address object
|
||||
allOf:
|
||||
- $ref: ./StockLocationAddressInput.yaml
|
||||
- type: object
|
||||
metadata:
|
||||
type: object
|
||||
description: An optional key-value map with additional details
|
||||
example:
|
||||
car: white
|
||||
Reference in New Issue
Block a user