chore(docs): Generated API Reference (#2417)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c4c83c9717
commit
10b9b0dc49
@@ -58,7 +58,7 @@ post:
|
||||
billing_address:
|
||||
description: The Address to be used for billing purposes.
|
||||
anyOf:
|
||||
- $ref: ../components/schemas/address.yaml
|
||||
- $ref: ../components/schemas/address_fields.yaml
|
||||
description: The full billing address object
|
||||
- type: string
|
||||
description: The ID of an existing billing address
|
||||
|
||||
@@ -12,8 +12,16 @@ post:
|
||||
properties:
|
||||
address:
|
||||
description: The Address to add to the Customer.
|
||||
anyOf:
|
||||
- $ref: ../components/schemas/address.yaml
|
||||
allOf:
|
||||
- $ref: ../components/schemas/address_fields.yaml
|
||||
- type: object
|
||||
required:
|
||||
- first_name
|
||||
- last_name
|
||||
- address_1
|
||||
- city
|
||||
- country_code
|
||||
- postal_code
|
||||
x-codeSamples:
|
||||
- lang: JavaScript
|
||||
label: JS Client
|
||||
|
||||
@@ -63,7 +63,7 @@ post:
|
||||
application/json:
|
||||
schema:
|
||||
anyOf:
|
||||
- $ref: ../components/schemas/address.yaml
|
||||
- $ref: ../components/schemas/address_fields.yaml
|
||||
x-codeSamples:
|
||||
- lang: JavaScript
|
||||
label: JS Client
|
||||
|
||||
@@ -155,7 +155,17 @@ get:
|
||||
products:
|
||||
type: array
|
||||
items:
|
||||
$ref: ../components/schemas/product.yaml
|
||||
allOf:
|
||||
- $ref: ../components/schemas/product.yaml
|
||||
- type: object
|
||||
properties:
|
||||
variants:
|
||||
type: array
|
||||
items:
|
||||
allOf:
|
||||
- $ref: ../components/schemas/product_variant.yaml
|
||||
- $ref: >-
|
||||
../components/schemas/product_variant_prices_fields.yaml
|
||||
count:
|
||||
type: integer
|
||||
description: The total number of items available
|
||||
|
||||
@@ -52,7 +52,17 @@ get:
|
||||
schema:
|
||||
properties:
|
||||
product:
|
||||
$ref: ../components/schemas/product.yaml
|
||||
allOf:
|
||||
- $ref: ../components/schemas/product.yaml
|
||||
- type: object
|
||||
properties:
|
||||
variants:
|
||||
type: array
|
||||
items:
|
||||
allOf:
|
||||
- $ref: ../components/schemas/product_variant.yaml
|
||||
- $ref: >-
|
||||
../components/schemas/product_variant_prices_fields.yaml
|
||||
'400':
|
||||
$ref: ../components/responses/400_error.yaml
|
||||
'404':
|
||||
|
||||
@@ -79,7 +79,9 @@ get:
|
||||
variants:
|
||||
type: array
|
||||
items:
|
||||
$ref: ../components/schemas/product_variant.yaml
|
||||
allOf:
|
||||
- $ref: ../components/schemas/product_variant.yaml
|
||||
- $ref: ../components/schemas/product_variant_prices_fields.yaml
|
||||
'400':
|
||||
$ref: ../components/responses/400_error.yaml
|
||||
'404':
|
||||
|
||||
@@ -44,7 +44,9 @@ get:
|
||||
schema:
|
||||
properties:
|
||||
variant:
|
||||
$ref: ../components/schemas/product_variant.yaml
|
||||
allOf:
|
||||
- $ref: ../components/schemas/product_variant.yaml
|
||||
- $ref: ../components/schemas/product_variant_prices_fields.yaml
|
||||
'400':
|
||||
$ref: ../components/responses/400_error.yaml
|
||||
'404':
|
||||
|
||||
Reference in New Issue
Block a user