chore(docs): manually generated API reference to fix load issue (#3286)

This commit is contained in:
Shahed Nasser
2023-02-17 15:23:20 +02:00
committed by GitHub
parent 9690f07bc0
commit d1abe7cd85
60 changed files with 6622 additions and 6622 deletions
+3044 -3044
View File
File diff suppressed because it is too large Load Diff
+2334 -2334
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -82,12 +82,12 @@ properties:
payment_session:
description: The selected payment session in the cart.
nullable: true
$ref: ./PaymentSession.yaml
type: object
payment_sessions:
description: The payment sessions created on the cart.
type: array
items:
$ref: ./PaymentSession.yaml
type: object
payment_id:
description: The payment's ID if available
nullable: true
@@ -20,7 +20,7 @@ properties:
claim_item:
description: A claim item object. Available if the relation `claim_item` is expanded.
nullable: true
$ref: ./ClaimItem.yaml
type: object
url:
description: The URL of the image
type: string
@@ -54,4 +54,4 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
@@ -23,14 +23,14 @@ properties:
`customers` is expanded.
type: array
items:
$ref: ./Customer.yaml
type: object
price_lists:
description: >-
The price lists that are associated with the customer group. Available if
the relation `price_lists` is expanded.
type: array
items:
$ref: ./PriceList.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -59,7 +59,7 @@ properties:
parent_discount:
description: Available if the relation `parent_discount` is expanded.
nullable: true
$ref: ./Discount.yaml
type: object
starts_at:
description: The time at which the discount can be used.
type: string
@@ -54,7 +54,7 @@ properties:
used. Available if the relation `conditions` is expanded.
type: array
items:
$ref: ./DiscountCondition.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -19,7 +19,7 @@ properties:
fulfillment:
description: A fulfillment object. Available if the relation `fulfillment` is expanded.
nullable: true
$ref: ./Fulfillment.yaml
type: object
item:
description: Available if the relation `item` is expanded.
nullable: true
@@ -20,7 +20,7 @@ properties:
item:
description: Available if the relation `item` is expanded.
nullable: true
$ref: ./LineItem.yaml
type: object
description:
description: The line item's adjustment description
type: string
@@ -35,7 +35,7 @@ properties:
item:
description: Available if the relation `item` is expanded.
nullable: true
$ref: ./LineItem.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -62,7 +62,7 @@ properties:
price_list:
description: Available if the relation `price_list` is expanded.
nullable: true
$ref: ./PriceList.yaml
type: object
variant_id:
description: The id of the Product Variant contained in the Line Item.
nullable: true
@@ -73,7 +73,7 @@ properties:
The Product Variant contained in the Line Item. Available if the relation
`variant` is expanded.
nullable: true
$ref: ./ProductVariant.yaml
type: object
region_id:
description: The region's ID
nullable: true
@@ -82,7 +82,7 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -64,14 +64,14 @@ properties:
parent_notification:
description: Available if the relation `parent_notification` is expanded.
nullable: true
$ref: ./Notification.yaml
type: object
resends:
description: >-
The resends that have been completed after the original Notification.
Available if the relation `resends` is expanded.
type: array
items:
$ref: ./Notification.yaml
type: object
provider_id:
description: The id of the Notification Provider that handles the Notification.
nullable: true
@@ -29,7 +29,7 @@ properties:
order_edit:
description: Available if the relation `order_edit` is expanded.
nullable: true
$ref: ./OrderEdit.yaml
type: object
original_line_item_id:
description: The ID of the original line item in the order
nullable: true
@@ -48,7 +48,7 @@ properties:
description: Available if the relation `category_children` are expanded.
type: array
items:
$ref: ./ProductCategory.yaml
type: object
parent_category_id:
description: The ID of the parent category.
nullable: true
@@ -59,14 +59,14 @@ properties:
A product category object. Available if the relation `parent_category` is
expanded.
nullable: true
$ref: ./ProductCategory.yaml
type: object
products:
description: >-
Products associated with category. Available if the relation `products` is
expanded.
type: array
items:
$ref: ./Product.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -31,7 +31,7 @@ properties:
relation `products` is expanded.
type: array
items:
$ref: ./Product.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -35,7 +35,7 @@ properties:
product:
description: A product object. Available if the relation `product` is expanded.
nullable: true
$ref: ./Product.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -31,7 +31,7 @@ properties:
option:
description: Available if the relation `option` is expanded.
nullable: true
$ref: ./ProductOption.yaml
type: object
variant_id:
description: >-
The ID of the Product Variant that the Product Option Value is defined
@@ -41,7 +41,7 @@ properties:
variant:
description: Available if the relation `variant` is expanded.
nullable: true
$ref: ./ProductVariant.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -45,7 +45,7 @@ properties:
product:
description: A product object. Available if the relation `product` is expanded.
nullable: true
$ref: ./Product.yaml
type: object
prices:
description: >-
The Money Amounts defined for the Product Variant. Each Money Amount
@@ -25,7 +25,7 @@ properties:
variant:
description: A ProductVariant object. Available if the relation `variant` is expanded.
nullable: true
$ref: ./ProductVariant.yaml
type: object
required_quantity:
description: >-
The quantity of an inventory item required for one quantity of the
@@ -25,7 +25,7 @@ properties:
return_order:
description: Available if the relation `return_order` is expanded.
nullable: true
$ref: ./Return.yaml
type: object
item:
description: Available if the relation `item` is expanded.
nullable: true
@@ -39,10 +39,10 @@ properties:
parent_return_reason:
description: Available if the relation `parent_return_reason` is expanded.
nullable: true
$ref: ./ReturnReason.yaml
type: object
return_reason_children:
description: Available if the relation `return_reason_children` is expanded.
$ref: ./ReturnReason.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -25,7 +25,7 @@ properties:
The sales channel the location is associated with. Available if the
relation `sales_channel` is expanded.
nullable: true
$ref: ./SalesChannel.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -35,7 +35,7 @@ properties:
shipping_method:
description: Available if the relation `shipping_method` is expanded.
nullable: true
$ref: ./ShippingMethod.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -40,7 +40,7 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
profile_id:
description: >-
The ID of the Shipping Profile that the shipping option belongs to.
@@ -23,7 +23,7 @@ properties:
shipping_option:
description: Available if the relation `shipping_option` is expanded.
nullable: true
$ref: ./ShippingOption.yaml
type: object
type:
description: >-
The type of the requirement, this defines how the value will be compared
@@ -38,7 +38,7 @@ properties:
Available if the relation `products` is expanded.
type: array
items:
$ref: ./Product.yaml
type: object
shipping_options:
description: >-
The Shipping Options that can be used to fulfill the Products in the
@@ -46,7 +46,7 @@ properties:
expanded.
type: array
items:
$ref: ./ShippingOption.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -38,7 +38,7 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
products:
description: >-
The products that belong to this tax rate. Available if the relation
@@ -35,7 +35,7 @@ properties:
fulfillment:
description: Available if the relation `fulfillment` is expanded.
nullable: true
$ref: ./Fulfillment.yaml
type: object
idempotency_key:
description: >-
Randomly generated key used to continue the completion of a process in
+40 -40
View File
@@ -197,6 +197,10 @@ paths:
$ref: paths/currencies.yaml
/currencies/{code}:
$ref: paths/currencies_{code}.yaml
/customers:
$ref: paths/customers.yaml
/customers/{id}:
$ref: paths/customers_{id}.yaml
/customer-groups/{id}/customers/batch:
$ref: paths/customer-groups_{id}_customers_batch.yaml
/customer-groups:
@@ -205,10 +209,6 @@ paths:
$ref: paths/customer-groups_{id}.yaml
/customer-groups/{id}/customers:
$ref: paths/customer-groups_{id}_customers.yaml
/customers:
$ref: paths/customers.yaml
/customers/{id}:
$ref: paths/customers_{id}.yaml
/discounts/{id}/regions/{region_id}:
$ref: paths/discounts_{id}_regions_{region_id}.yaml
/discounts/{discount_id}/conditions/{condition_id}/batch:
@@ -243,14 +243,6 @@ paths:
$ref: paths/gift-cards.yaml
/gift-cards/{id}:
$ref: paths/gift-cards_{id}.yaml
/inventory-items/{id}/location-levels:
$ref: paths/inventory-items_{id}_location-levels.yaml
/inventory-items/{id}:
$ref: paths/inventory-items_{id}.yaml
/inventory-items/{id}/location-levels/{location_id}:
$ref: paths/inventory-items_{id}_location-levels_{location_id}.yaml
/inventory-items:
$ref: paths/inventory-items.yaml
/invites/accept:
$ref: paths/invites_accept.yaml
/invites:
@@ -259,14 +251,22 @@ paths:
$ref: paths/invites_{invite_id}.yaml
/invites/{invite_id}/resend:
$ref: paths/invites_{invite_id}_resend.yaml
/notes:
$ref: paths/notes.yaml
/notes/{id}:
$ref: paths/notes_{id}.yaml
/inventory-items/{id}/location-levels:
$ref: paths/inventory-items_{id}_location-levels.yaml
/inventory-items/{id}:
$ref: paths/inventory-items_{id}.yaml
/inventory-items/{id}/location-levels/{location_id}:
$ref: paths/inventory-items_{id}_location-levels_{location_id}.yaml
/inventory-items:
$ref: paths/inventory-items.yaml
/notifications:
$ref: paths/notifications.yaml
/notifications/{id}/resend:
$ref: paths/notifications_{id}_resend.yaml
/notes:
$ref: paths/notes.yaml
/notes/{id}:
$ref: paths/notes_{id}.yaml
/order-edits/{id}/items:
$ref: paths/order-edits_{id}_items.yaml
/order-edits/{id}/cancel:
@@ -283,6 +283,10 @@ paths:
$ref: paths/order-edits_{id}.yaml
/order-edits/{id}/request:
$ref: paths/order-edits_{id}_request.yaml
/payment-collections/{id}:
$ref: paths/payment-collections_{id}.yaml
/payment-collections/{id}/authorize:
$ref: paths/payment-collections_{id}_authorize.yaml
/orders/{id}/shipping-methods:
$ref: paths/orders_{id}_shipping-methods.yaml
/orders/{id}/archive:
@@ -337,10 +341,6 @@ paths:
$ref: paths/orders_{id}_return.yaml
/order/{id}/claims/{claim_id}:
$ref: paths/order_{id}_claims_{claim_id}.yaml
/payment-collections/{id}:
$ref: paths/payment-collections_{id}.yaml
/payment-collections/{id}/authorize:
$ref: paths/payment-collections_{id}_authorize.yaml
/payments/{id}/capture:
$ref: paths/payments_{id}_capture.yaml
/payments/{id}:
@@ -359,12 +359,6 @@ paths:
$ref: paths/price-lists_{id}_variants_{variant_id}_prices.yaml
/price-lists/{id}/products:
$ref: paths/price-lists_{id}_products.yaml
/product-categories/{id}/products/batch:
$ref: paths/product-categories_{id}_products_batch.yaml
/product-categories:
$ref: paths/product-categories.yaml
/product-categories/{id}:
$ref: paths/product-categories_{id}.yaml
/product-tags:
$ref: paths/product-tags.yaml
/product-types:
@@ -387,6 +381,12 @@ paths:
$ref: paths/products_types.yaml
/products/{id}/metadata:
$ref: paths/products_{id}_metadata.yaml
/product-categories/{id}/products/batch:
$ref: paths/product-categories_{id}_products_batch.yaml
/product-categories:
$ref: paths/product-categories.yaml
/product-categories/{id}:
$ref: paths/product-categories_{id}.yaml
/publishable-api-keys/{id}/sales-channels/batch:
$ref: paths/publishable-api-keys_{id}_sales-channels_batch.yaml
/publishable-api-keys:
@@ -425,12 +425,6 @@ paths:
$ref: paths/return-reasons.yaml
/return-reasons/{id}:
$ref: paths/return-reasons_{id}.yaml
/returns/{id}/cancel:
$ref: paths/returns_{id}_cancel.yaml
/returns:
$ref: paths/returns.yaml
/returns/{id}/receive:
$ref: paths/returns_{id}_receive.yaml
/sales-channels/{id}/products/batch:
$ref: paths/sales-channels_{id}_products_batch.yaml
/sales-channels/{id}/stock-locations:
@@ -439,6 +433,12 @@ paths:
$ref: paths/sales-channels.yaml
/sales-channels/{id}:
$ref: paths/sales-channels_{id}.yaml
/returns/{id}/cancel:
$ref: paths/returns_{id}_cancel.yaml
/returns:
$ref: paths/returns.yaml
/returns/{id}/receive:
$ref: paths/returns_{id}_receive.yaml
/shipping-options:
$ref: paths/shipping-options.yaml
/shipping-options/{id}:
@@ -451,14 +451,6 @@ paths:
$ref: paths/stock-locations.yaml
/stock-locations/{id}:
$ref: paths/stock-locations_{id}.yaml
/store/currencies/{code}:
$ref: paths/store_currencies_{code}.yaml
/store:
$ref: paths/store.yaml
/store/payment-providers:
$ref: paths/store_payment-providers.yaml
/store/tax-providers:
$ref: paths/store_tax-providers.yaml
/swaps/{id}:
$ref: paths/swaps_{id}.yaml
/swaps:
@@ -473,6 +465,14 @@ paths:
$ref: paths/tax-rates.yaml
/tax-rates/{id}:
$ref: paths/tax-rates_{id}.yaml
/store/currencies/{code}:
$ref: paths/store_currencies_{code}.yaml
/store:
$ref: paths/store.yaml
/store/payment-providers:
$ref: paths/store_payment-providers.yaml
/store/tax-providers:
$ref: paths/store_tax-providers.yaml
/uploads/protected:
$ref: paths/uploads_protected.yaml
/uploads:
+906 -906
View File
File diff suppressed because it is too large Load Diff
+218 -218
View File
@@ -262,6 +262,151 @@ paths:
$ref: '#/components/responses/invalid_request_error'
'500':
$ref: '#/components/responses/500_error'
/collections/{id}:
get:
operationId: GetCollectionsCollection
summary: Get a Collection
description: Retrieves a Product Collection.
parameters:
- in: path
name: id
required: true
description: The id of the Product Collection
schema:
type: string
x-codegen:
method: retrieve
x-codeSamples:
- lang: JavaScript
label: JS Client
source: |
import Medusa from "@medusajs/medusa-js"
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.collections.retrieve(collection_id)
.then(({ collection }) => {
console.log(collection.id);
});
- lang: Shell
label: cURL
source: |
curl --location --request GET 'https://medusa-url.com/store/collections/{id}'
tags:
- Collection
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StoreCollectionsRes'
'400':
$ref: '#/components/responses/400_error'
'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'
/collections:
get:
operationId: GetCollections
summary: List Collections
description: Retrieve a list of Product Collection.
parameters:
- in: query
name: offset
description: The number of collections to skip before starting to collect the collections set
schema:
type: integer
default: 0
- in: query
name: limit
description: The number of collections to return
schema:
type: integer
default: 10
- in: query
name: created_at
description: Date comparison for when resulting collections 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
name: updated_at
description: Date comparison for when resulting collections were updated.
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
x-codegen:
method: list
queryParams: StoreGetCollectionsParams
x-codeSamples:
- lang: JavaScript
label: JS Client
source: |
import Medusa from "@medusajs/medusa-js"
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.collections.list()
.then(({ collections, limit, offset, count }) => {
console.log(collections.length);
});
- lang: Shell
label: cURL
source: |
curl --location --request GET 'https://medusa-url.com/store/collections'
tags:
- Collection
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StoreCollectionsListRes'
'400':
$ref: '#/components/responses/400_error'
'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'
/carts/{id}/shipping-methods:
post:
operationId: PostCartsCartShippingMethod
@@ -998,16 +1143,16 @@ paths:
$ref: '#/components/responses/invalid_request_error'
'500':
$ref: '#/components/responses/500_error'
/collections/{id}:
/gift-cards/{code}:
get:
operationId: GetCollectionsCollection
summary: Get a Collection
description: Retrieves a Product Collection.
operationId: GetGiftCardsCode
summary: Get Gift Card by Code
description: Retrieves a Gift Card by its associated unique code.
parameters:
- in: path
name: id
name: code
required: true
description: The id of the Product Collection
description: The unique Gift Card code.
schema:
type: string
x-codegen:
@@ -1018,121 +1163,23 @@ paths:
source: |
import Medusa from "@medusajs/medusa-js"
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.collections.retrieve(collection_id)
.then(({ collection }) => {
console.log(collection.id);
medusa.giftCards.retrieve(code)
.then(({ gift_card }) => {
console.log(gift_card.id);
});
- lang: Shell
label: cURL
source: |
curl --location --request GET 'https://medusa-url.com/store/collections/{id}'
curl --location --request GET 'https://medusa-url.com/store/gift-cards/{code}'
tags:
- Collection
- Gift Card
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StoreCollectionsRes'
'400':
$ref: '#/components/responses/400_error'
'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'
/collections:
get:
operationId: GetCollections
summary: List Collections
description: Retrieve a list of Product Collection.
parameters:
- in: query
name: offset
description: The number of collections to skip before starting to collect the collections set
schema:
type: integer
default: 0
- in: query
name: limit
description: The number of collections to return
schema:
type: integer
default: 10
- in: query
name: created_at
description: Date comparison for when resulting collections 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
name: updated_at
description: Date comparison for when resulting collections were updated.
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
x-codegen:
method: list
queryParams: StoreGetCollectionsParams
x-codeSamples:
- lang: JavaScript
label: JS Client
source: |
import Medusa from "@medusajs/medusa-js"
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.collections.list()
.then(({ collections, limit, offset, count }) => {
console.log(collections.length);
});
- lang: Shell
label: cURL
source: |
curl --location --request GET 'https://medusa-url.com/store/collections'
tags:
- Collection
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StoreCollectionsListRes'
$ref: '#/components/schemas/StoreGiftCardsRes'
'400':
$ref: '#/components/responses/400_error'
'404':
@@ -1882,53 +1929,6 @@ paths:
$ref: '#/components/responses/invalid_request_error'
'500':
$ref: '#/components/responses/500_error'
/gift-cards/{code}:
get:
operationId: GetGiftCardsCode
summary: Get Gift Card by Code
description: Retrieves a Gift Card by its associated unique code.
parameters:
- in: path
name: code
required: true
description: The unique Gift Card code.
schema:
type: string
x-codegen:
method: retrieve
x-codeSamples:
- lang: JavaScript
label: JS Client
source: |
import Medusa from "@medusajs/medusa-js"
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.giftCards.retrieve(code)
.then(({ gift_card }) => {
console.log(gift_card.id);
});
- lang: Shell
label: cURL
source: |
curl --location --request GET 'https://medusa-url.com/store/gift-cards/{code}'
tags:
- Gift Card
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StoreGiftCardsRes'
'400':
$ref: '#/components/responses/400_error'
'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'
/order-edits/{id}/complete:
post:
operationId: PostOrderEditsOrderEditComplete
@@ -4867,12 +4867,12 @@ components:
payment_session:
description: The selected payment session in the cart.
nullable: true
$ref: '#/components/schemas/PaymentSession'
type: object
payment_sessions:
description: The payment sessions created on the cart.
type: array
items:
$ref: '#/components/schemas/PaymentSession'
type: object
payment_id:
description: The payment's ID if available
nullable: true
@@ -5016,7 +5016,7 @@ components:
claim_item:
description: A claim item object. Available if the relation `claim_item` is expanded.
nullable: true
$ref: '#/components/schemas/ClaimItem'
type: object
url:
description: The URL of the image
type: string
@@ -5357,7 +5357,7 @@ components:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: '#/components/schemas/Region'
type: object
Currency:
title: Currency
description: Currency
@@ -5473,12 +5473,12 @@ components:
description: The customers that belong to the customer group. Available if the relation `customers` is expanded.
type: array
items:
$ref: '#/components/schemas/Customer'
type: object
price_lists:
description: The price lists that are associated with the customer group. Available if the relation `price_lists` is expanded.
type: array
items:
$ref: '#/components/schemas/PriceList'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -5923,7 +5923,7 @@ components:
description: A set of conditions that can be used to limit when the discount can be used. Available if the relation `conditions` is expanded.
type: array
items:
$ref: '#/components/schemas/DiscountCondition'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -5997,7 +5997,7 @@ components:
parent_discount:
description: Available if the relation `parent_discount` is expanded.
nullable: true
$ref: '#/components/schemas/Discount'
type: object
starts_at:
description: The time at which the discount can be used.
type: string
@@ -6153,7 +6153,7 @@ components:
fulfillment:
description: A fulfillment object. Available if the relation `fulfillment` is expanded.
nullable: true
$ref: '#/components/schemas/Fulfillment'
type: object
item:
description: Available if the relation `item` is expanded.
nullable: true
@@ -6626,7 +6626,7 @@ components:
item:
description: Available if the relation `item` is expanded.
nullable: true
$ref: '#/components/schemas/LineItem'
type: object
description:
description: The line item's adjustment description
type: string
@@ -6688,7 +6688,7 @@ components:
item:
description: Available if the relation `item` is expanded.
nullable: true
$ref: '#/components/schemas/LineItem'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -6967,7 +6967,7 @@ components:
price_list:
description: Available if the relation `price_list` is expanded.
nullable: true
$ref: '#/components/schemas/PriceList'
type: object
variant_id:
description: The id of the Product Variant contained in the Line Item.
nullable: true
@@ -6976,7 +6976,7 @@ components:
variant:
description: The Product Variant contained in the Line Item. Available if the relation `variant` is expanded.
nullable: true
$ref: '#/components/schemas/ProductVariant'
type: object
region_id:
description: The region's ID
nullable: true
@@ -6985,7 +6985,7 @@ components:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: '#/components/schemas/Region'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -7133,12 +7133,12 @@ components:
parent_notification:
description: Available if the relation `parent_notification` is expanded.
nullable: true
$ref: '#/components/schemas/Notification'
type: object
resends:
description: The resends that have been completed after the original Notification. Available if the relation `resends` is expanded.
type: array
items:
$ref: '#/components/schemas/Notification'
type: object
provider_id:
description: The id of the Notification Provider that handles the Notification.
nullable: true
@@ -7378,7 +7378,7 @@ components:
order_edit:
description: Available if the relation `order_edit` is expanded.
nullable: true
$ref: '#/components/schemas/OrderEdit'
type: object
original_line_item_id:
description: The ID of the original line item in the order
nullable: true
@@ -8134,7 +8134,7 @@ components:
description: Available if the relation `category_children` are expanded.
type: array
items:
$ref: '#/components/schemas/ProductCategory'
type: object
parent_category_id:
description: The ID of the parent category.
nullable: true
@@ -8143,12 +8143,12 @@ components:
parent_category:
description: A product category object. Available if the relation `parent_category` is expanded.
nullable: true
$ref: '#/components/schemas/ProductCategory'
type: object
products:
description: Products associated with category. Available if the relation `products` is expanded.
type: array
items:
$ref: '#/components/schemas/Product'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -8192,7 +8192,7 @@ components:
description: The Products contained in the Product Collection. Available if the relation `products` is expanded.
type: array
items:
$ref: '#/components/schemas/Product'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -8241,7 +8241,7 @@ components:
option:
description: Available if the relation `option` is expanded.
nullable: true
$ref: '#/components/schemas/ProductOption'
type: object
variant_id:
description: The ID of the Product Variant that the Product Option Value is defined for.
type: string
@@ -8249,7 +8249,7 @@ components:
variant:
description: Available if the relation `variant` is expanded.
nullable: true
$ref: '#/components/schemas/ProductVariant'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -8302,7 +8302,7 @@ components:
product:
description: A product object. Available if the relation `product` is expanded.
nullable: true
$ref: '#/components/schemas/Product'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -8508,7 +8508,7 @@ components:
variant:
description: A ProductVariant object. Available if the relation `variant` is expanded.
nullable: true
$ref: '#/components/schemas/ProductVariant'
type: object
required_quantity:
description: The quantity of an inventory item required for one quantity of the variant.
type: integer
@@ -8569,7 +8569,7 @@ components:
product:
description: A product object. Available if the relation `product` is expanded.
nullable: true
$ref: '#/components/schemas/Product'
type: object
prices:
description: The Money Amounts defined for the Product Variant. Each Money Amount represents a price in a given currency or a price in a specific Region. Available if the relation `prices` is expanded.
type: array
@@ -9145,7 +9145,7 @@ components:
return_order:
description: Available if the relation `return_order` is expanded.
nullable: true
$ref: '#/components/schemas/Return'
type: object
item:
description: Available if the relation `item` is expanded.
nullable: true
@@ -9228,10 +9228,10 @@ components:
parent_return_reason:
description: Available if the relation `parent_return_reason` is expanded.
nullable: true
$ref: '#/components/schemas/ReturnReason'
type: object
return_reason_children:
description: Available if the relation `return_reason_children` is expanded.
$ref: '#/components/schemas/ReturnReason'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -9391,7 +9391,7 @@ components:
sales_channel:
description: The sales channel the location is associated with. Available if the relation `sales_channel` is expanded.
nullable: true
$ref: '#/components/schemas/SalesChannel'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -9491,7 +9491,7 @@ components:
shipping_method:
description: Available if the relation `shipping_method` is expanded.
nullable: true
$ref: '#/components/schemas/ShippingMethod'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -9629,7 +9629,7 @@ components:
shipping_option:
description: Available if the relation `shipping_option` is expanded.
nullable: true
$ref: '#/components/schemas/ShippingOption'
type: object
type:
description: The type of the requirement, this defines how the value will be compared to the Cart's total. `min_subtotal` requirements define the minimum subtotal that is needed for the Shipping Option to be available, while the `max_subtotal` defines the maximum subtotal that the Cart can have for the Shipping Option to be available.
type: string
@@ -9681,7 +9681,7 @@ components:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: '#/components/schemas/Region'
type: object
profile_id:
description: The ID of the Shipping Profile that the shipping option belongs to. Shipping Profiles have a set of defined Shipping Options that can be used to Fulfill a given set of Products.
type: string
@@ -9783,12 +9783,12 @@ components:
description: The Products that the Shipping Profile defines Shipping Options for. Available if the relation `products` is expanded.
type: array
items:
$ref: '#/components/schemas/Product'
type: object
shipping_options:
description: The Shipping Options that can be used to fulfill the Products in the Shipping Profile. Available if the relation `shipping_options` is expanded.
type: array
items:
$ref: '#/components/schemas/ShippingOption'
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -10207,7 +10207,7 @@ components:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: '#/components/schemas/Region'
type: object
products:
description: The products that belong to this tax rate. Available if the relation `products` is expanded.
type: array
@@ -10284,7 +10284,7 @@ components:
fulfillment:
description: Available if the relation `fulfillment` is expanded.
nullable: true
$ref: '#/components/schemas/Fulfillment'
type: object
idempotency_key:
description: Randomly generated key used to continue the completion of a process in case of failure.
nullable: true
@@ -10798,6 +10798,27 @@ components:
exists:
type: boolean
description: Whether email exists or not.
StoreCollectionsListRes:
type: object
properties:
collections:
type: array
items:
$ref: '#/components/schemas/ProductCollection'
count:
type: integer
description: The total number of items available
offset:
type: integer
description: The number of items skipped before these items
limit:
type: integer
description: The number of items per page
StoreCollectionsRes:
type: object
properties:
collection:
$ref: '#/components/schemas/ProductCollection'
StorePostCartsCartShippingMethodReq:
type: object
required:
@@ -10964,27 +10985,11 @@ components:
data:
type: object
description: The data to update the payment session with.
StoreCollectionsListRes:
StoreGiftCardsRes:
type: object
properties:
collections:
type: array
items:
$ref: '#/components/schemas/ProductCollection'
count:
type: integer
description: The total number of items available
offset:
type: integer
description: The number of items skipped before these items
limit:
type: integer
description: The number of items per page
StoreCollectionsRes:
type: object
properties:
collection:
$ref: '#/components/schemas/ProductCollection'
gift_card:
$ref: '#/components/schemas/GiftCard'
StorePostCustomersCustomerAddressesReq:
type: object
required:
@@ -11120,11 +11125,6 @@ components:
metadata:
description: Metadata about the customer.
type: object
StoreGiftCardsRes:
type: object
properties:
gift_card:
$ref: '#/components/schemas/GiftCard'
StorePostOrderEditsOrderEditDecline:
type: object
properties:
+2 -2
View File
@@ -82,12 +82,12 @@ properties:
payment_session:
description: The selected payment session in the cart.
nullable: true
$ref: ./PaymentSession.yaml
type: object
payment_sessions:
description: The payment sessions created on the cart.
type: array
items:
$ref: ./PaymentSession.yaml
type: object
payment_id:
description: The payment's ID if available
nullable: true
@@ -20,7 +20,7 @@ properties:
claim_item:
description: A claim item object. Available if the relation `claim_item` is expanded.
nullable: true
$ref: ./ClaimItem.yaml
type: object
url:
description: The URL of the image
type: string
@@ -54,4 +54,4 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
@@ -23,14 +23,14 @@ properties:
`customers` is expanded.
type: array
items:
$ref: ./Customer.yaml
type: object
price_lists:
description: >-
The price lists that are associated with the customer group. Available if
the relation `price_lists` is expanded.
type: array
items:
$ref: ./PriceList.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -59,7 +59,7 @@ properties:
parent_discount:
description: Available if the relation `parent_discount` is expanded.
nullable: true
$ref: ./Discount.yaml
type: object
starts_at:
description: The time at which the discount can be used.
type: string
@@ -54,7 +54,7 @@ properties:
used. Available if the relation `conditions` is expanded.
type: array
items:
$ref: ./DiscountCondition.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -19,7 +19,7 @@ properties:
fulfillment:
description: A fulfillment object. Available if the relation `fulfillment` is expanded.
nullable: true
$ref: ./Fulfillment.yaml
type: object
item:
description: Available if the relation `item` is expanded.
nullable: true
@@ -20,7 +20,7 @@ properties:
item:
description: Available if the relation `item` is expanded.
nullable: true
$ref: ./LineItem.yaml
type: object
description:
description: The line item's adjustment description
type: string
@@ -35,7 +35,7 @@ properties:
item:
description: Available if the relation `item` is expanded.
nullable: true
$ref: ./LineItem.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -62,7 +62,7 @@ properties:
price_list:
description: Available if the relation `price_list` is expanded.
nullable: true
$ref: ./PriceList.yaml
type: object
variant_id:
description: The id of the Product Variant contained in the Line Item.
nullable: true
@@ -73,7 +73,7 @@ properties:
The Product Variant contained in the Line Item. Available if the relation
`variant` is expanded.
nullable: true
$ref: ./ProductVariant.yaml
type: object
region_id:
description: The region's ID
nullable: true
@@ -82,7 +82,7 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -64,14 +64,14 @@ properties:
parent_notification:
description: Available if the relation `parent_notification` is expanded.
nullable: true
$ref: ./Notification.yaml
type: object
resends:
description: >-
The resends that have been completed after the original Notification.
Available if the relation `resends` is expanded.
type: array
items:
$ref: ./Notification.yaml
type: object
provider_id:
description: The id of the Notification Provider that handles the Notification.
nullable: true
@@ -29,7 +29,7 @@ properties:
order_edit:
description: Available if the relation `order_edit` is expanded.
nullable: true
$ref: ./OrderEdit.yaml
type: object
original_line_item_id:
description: The ID of the original line item in the order
nullable: true
@@ -48,7 +48,7 @@ properties:
description: Available if the relation `category_children` are expanded.
type: array
items:
$ref: ./ProductCategory.yaml
type: object
parent_category_id:
description: The ID of the parent category.
nullable: true
@@ -59,14 +59,14 @@ properties:
A product category object. Available if the relation `parent_category` is
expanded.
nullable: true
$ref: ./ProductCategory.yaml
type: object
products:
description: >-
Products associated with category. Available if the relation `products` is
expanded.
type: array
items:
$ref: ./Product.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -31,7 +31,7 @@ properties:
relation `products` is expanded.
type: array
items:
$ref: ./Product.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -35,7 +35,7 @@ properties:
product:
description: A product object. Available if the relation `product` is expanded.
nullable: true
$ref: ./Product.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -31,7 +31,7 @@ properties:
option:
description: Available if the relation `option` is expanded.
nullable: true
$ref: ./ProductOption.yaml
type: object
variant_id:
description: >-
The ID of the Product Variant that the Product Option Value is defined
@@ -41,7 +41,7 @@ properties:
variant:
description: Available if the relation `variant` is expanded.
nullable: true
$ref: ./ProductVariant.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -45,7 +45,7 @@ properties:
product:
description: A product object. Available if the relation `product` is expanded.
nullable: true
$ref: ./Product.yaml
type: object
prices:
description: >-
The Money Amounts defined for the Product Variant. Each Money Amount
@@ -25,7 +25,7 @@ properties:
variant:
description: A ProductVariant object. Available if the relation `variant` is expanded.
nullable: true
$ref: ./ProductVariant.yaml
type: object
required_quantity:
description: >-
The quantity of an inventory item required for one quantity of the
@@ -25,7 +25,7 @@ properties:
return_order:
description: Available if the relation `return_order` is expanded.
nullable: true
$ref: ./Return.yaml
type: object
item:
description: Available if the relation `item` is expanded.
nullable: true
@@ -39,10 +39,10 @@ properties:
parent_return_reason:
description: Available if the relation `parent_return_reason` is expanded.
nullable: true
$ref: ./ReturnReason.yaml
type: object
return_reason_children:
description: Available if the relation `return_reason_children` is expanded.
$ref: ./ReturnReason.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -25,7 +25,7 @@ properties:
The sales channel the location is associated with. Available if the
relation `sales_channel` is expanded.
nullable: true
$ref: ./SalesChannel.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -35,7 +35,7 @@ properties:
shipping_method:
description: Available if the relation `shipping_method` is expanded.
nullable: true
$ref: ./ShippingMethod.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -40,7 +40,7 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
profile_id:
description: >-
The ID of the Shipping Profile that the shipping option belongs to.
@@ -23,7 +23,7 @@ properties:
shipping_option:
description: Available if the relation `shipping_option` is expanded.
nullable: true
$ref: ./ShippingOption.yaml
type: object
type:
description: >-
The type of the requirement, this defines how the value will be compared
@@ -38,7 +38,7 @@ properties:
Available if the relation `products` is expanded.
type: array
items:
$ref: ./Product.yaml
type: object
shipping_options:
description: >-
The Shipping Options that can be used to fulfill the Products in the
@@ -46,7 +46,7 @@ properties:
expanded.
type: array
items:
$ref: ./ShippingOption.yaml
type: object
created_at:
description: The date with timezone at which the resource was created.
type: string
@@ -38,7 +38,7 @@ properties:
region:
description: A region object. Available if the relation `region` is expanded.
nullable: true
$ref: ./Region.yaml
type: object
products:
description: >-
The products that belong to this tax rate. Available if the relation
@@ -35,7 +35,7 @@ properties:
fulfillment:
description: Available if the relation `fulfillment` is expanded.
nullable: true
$ref: ./Fulfillment.yaml
type: object
idempotency_key:
description: >-
Randomly generated key used to continue the completion of a process in
+6 -6
View File
@@ -137,6 +137,10 @@ paths:
$ref: paths/auth.yaml
/auth/{email}:
$ref: paths/auth_{email}.yaml
/collections/{id}:
$ref: paths/collections_{id}.yaml
/collections:
$ref: paths/collections.yaml
/carts/{id}/shipping-methods:
$ref: paths/carts_{id}_shipping-methods.yaml
/carts/{id}/taxes:
@@ -159,10 +163,8 @@ paths:
$ref: paths/carts_{id}_payment-sessions_{provider_id}_refresh.yaml
/carts/{id}/payment-session:
$ref: paths/carts_{id}_payment-session.yaml
/collections/{id}:
$ref: paths/collections_{id}.yaml
/collections:
$ref: paths/collections.yaml
/gift-cards/{code}:
$ref: paths/gift-cards_{code}.yaml
/customers/me/addresses:
$ref: paths/customers_me_addresses.yaml
/customers:
@@ -179,8 +181,6 @@ paths:
$ref: paths/customers_password-token.yaml
/customers/password-reset:
$ref: paths/customers_password-reset.yaml
/gift-cards/{code}:
$ref: paths/gift-cards_{code}.yaml
/order-edits/{id}/complete:
$ref: paths/order-edits_{id}_complete.yaml
/order-edits/{id}/decline: