chore(docs): Updated API Reference (automated) (#9728)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
54 files changed
+1165
-2451
No files matched your search
@@ -10,8 +10,10 @@ required:
|
|||||||
- last_used_at
|
- last_used_at
|
||||||
- created_by
|
- created_by
|
||||||
- created_at
|
- created_at
|
||||||
|
- updated_at
|
||||||
- revoked_by
|
- revoked_by
|
||||||
- revoked_at
|
- revoked_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -65,3 +67,13 @@ properties:
|
|||||||
The date and time the API key was revoked. The API key is considered
|
The date and time the API key was revoked. The API key is considered
|
||||||
revoked when this property is set.
|
revoked when this property is set.
|
||||||
format: date-time
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the API key was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the API key was deleted.
|
||||||
@@ -10,6 +10,9 @@ required:
|
|||||||
- starts_at
|
- starts_at
|
||||||
- ends_at
|
- ends_at
|
||||||
- budget
|
- budget
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -79,3 +82,18 @@ properties:
|
|||||||
property holds the total amount discounted so far. If the limit is
|
property holds the total amount discounted so far. If the limit is
|
||||||
`usage`, it holds the number of times the campaign's promotions have
|
`usage`, it holds the number of times the campaign's promotions have
|
||||||
been used so far.
|
been used so far.
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the campaign was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the campaign was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the campaign was deleted.
|
||||||
@@ -41,7 +41,7 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
description: The collection's products.
|
description: The collection's products.
|
||||||
items:
|
items:
|
||||||
type: object
|
$ref: ./BaseProduct.yaml
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's metadata, used to store custom key-value pairs.
|
description: The collection's metadata, used to store custom key-value pairs.
|
||||||
@@ -146,3 +146,7 @@ properties:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata, used to store custom key-value pairs.
|
description: The product's metadata, used to store custom key-value pairs.
|
||||||
|
external_id:
|
||||||
|
type: string
|
||||||
|
title: external_id
|
||||||
|
description: The ID of the product in an external or third-party system.
|
||||||
@@ -3,6 +3,9 @@ description: The promotion's details.
|
|||||||
x-schemaName: AdminPromotion
|
x-schemaName: AdminPromotion
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
application_method:
|
application_method:
|
||||||
type: object
|
type: object
|
||||||
@@ -38,3 +41,18 @@ properties:
|
|||||||
description: The ID of the campaign this promotion belongs to.
|
description: The ID of the campaign this promotion belongs to.
|
||||||
campaign:
|
campaign:
|
||||||
$ref: ./AdminCampaign.yaml
|
$ref: ./AdminCampaign.yaml
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the promotion was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the promotion was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the promotion was deleted.
|
||||||
@@ -147,3 +147,7 @@ properties:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata, can hold custom key-value pairs.
|
description: The product's metadata, can hold custom key-value pairs.
|
||||||
|
external_id:
|
||||||
|
type: string
|
||||||
|
title: external_id
|
||||||
|
description: The ID of the product in an external or third-party system.
|
||||||
@@ -41,7 +41,7 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
description: The collection's products.
|
description: The collection's products.
|
||||||
items:
|
items:
|
||||||
$ref: ./AdminProduct.yaml
|
type: object
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's metadata, used to store custom key-value pairs.
|
description: The collection's metadata, used to store custom key-value pairs.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
type: object
|
type: object
|
||||||
description: The parent's product.
|
description: The product's details.
|
||||||
x-schemaName: BaseProduct
|
x-schemaName: BaseProduct
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
@@ -52,7 +52,7 @@ properties:
|
|||||||
is_giftcard:
|
is_giftcard:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: is_giftcard
|
title: is_giftcard
|
||||||
description: The product's is giftcard.
|
description: Whether the product is a gift card.
|
||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
description: The product's status.
|
description: The product's status.
|
||||||
@@ -64,7 +64,7 @@ properties:
|
|||||||
thumbnail:
|
thumbnail:
|
||||||
type: string
|
type: string
|
||||||
title: thumbnail
|
title: thumbnail
|
||||||
description: The product's thumbnail.
|
description: The product's thumbnail URL.
|
||||||
width:
|
width:
|
||||||
type: number
|
type: number
|
||||||
title: width
|
title: width
|
||||||
@@ -102,18 +102,18 @@ properties:
|
|||||||
collection_id:
|
collection_id:
|
||||||
type: string
|
type: string
|
||||||
title: collection_id
|
title: collection_id
|
||||||
description: The product's collection id.
|
description: The ID of the collection the product belongs to.
|
||||||
categories:
|
categories:
|
||||||
type: array
|
type: array
|
||||||
description: The product's categories.
|
description: The product's categories.
|
||||||
items:
|
items:
|
||||||
$ref: ./BaseProductCategory.yaml
|
$ref: ./BaseProductCategory.yaml
|
||||||
type:
|
type:
|
||||||
type: object
|
$ref: ./BaseProductType.yaml
|
||||||
type_id:
|
type_id:
|
||||||
type: string
|
type: string
|
||||||
title: type_id
|
title: type_id
|
||||||
description: The product's type id.
|
description: The ID of the type the product belongs to.
|
||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
description: The product's tags.
|
description: The product's tags.
|
||||||
@@ -137,26 +137,26 @@ properties:
|
|||||||
discountable:
|
discountable:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: discountable
|
title: discountable
|
||||||
description: The product's discountable.
|
description: Whether the product is discountable.
|
||||||
external_id:
|
external_id:
|
||||||
type: string
|
type: string
|
||||||
title: external_id
|
title: external_id
|
||||||
description: The product's external id.
|
description: The ID of the product in an external or third-party system.
|
||||||
created_at:
|
created_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: created_at
|
title: created_at
|
||||||
description: The product's created at.
|
description: The date the product was created.
|
||||||
updated_at:
|
updated_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: updated_at
|
title: updated_at
|
||||||
description: The product's updated at.
|
description: The date the product was updated.
|
||||||
deleted_at:
|
deleted_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: deleted_at
|
title: deleted_at
|
||||||
description: The product's deleted at.
|
description: The date the product was deleted.
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata.
|
description: The product's metadata, can hold custom key-value pairs.
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
type: object
|
||||||
|
description: The product type's details.
|
||||||
|
x-schemaName: BaseProductType
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- value
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The type's ID.
|
||||||
|
value:
|
||||||
|
type: string
|
||||||
|
title: value
|
||||||
|
description: The type's value.
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the type was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the type was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the type was deleted.
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
description: The type's metadata, can hold custom key-value pairs.
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
type: object
|
||||||
|
description: The shipping option's details.
|
||||||
|
x-schemaName: StoreCartShippingOption
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- name
|
||||||
|
- price_type
|
||||||
|
- service_zone_id
|
||||||
|
- shipping_profile_id
|
||||||
|
- provider_id
|
||||||
|
- data
|
||||||
|
- type
|
||||||
|
- provider
|
||||||
|
- amount
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The shipping option's ID.
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
title: name
|
||||||
|
description: The shipping option's name.
|
||||||
|
price_type:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The shipping option's price type. If it's `flat`, the price is fixed and
|
||||||
|
is set in the `prices` property. If it's `calculated`, the price is
|
||||||
|
calculated on checkout by the associated fulfillment provider.
|
||||||
|
enum:
|
||||||
|
- flat
|
||||||
|
- calculated
|
||||||
|
service_zone_id:
|
||||||
|
type: string
|
||||||
|
title: service_zone_id
|
||||||
|
description: The ID of the service zone the shipping option belongs to.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
title: provider_id
|
||||||
|
description: The ID of the fulfillment provider handling this option.
|
||||||
|
provider:
|
||||||
|
type: object
|
||||||
|
description: The fulfillment provider's details.
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- is_enabled
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The provider's ID.
|
||||||
|
is_enabled:
|
||||||
|
type: boolean
|
||||||
|
title: is_enabled
|
||||||
|
description: Whether the provider is enabled.
|
||||||
|
type:
|
||||||
|
type: object
|
||||||
|
description: The shipping option type's details.
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- label
|
||||||
|
- description
|
||||||
|
- code
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The type's ID.
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
|
title: label
|
||||||
|
description: The type's label.
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
title: description
|
||||||
|
description: The type's description.
|
||||||
|
code:
|
||||||
|
type: string
|
||||||
|
title: code
|
||||||
|
description: The type's code.
|
||||||
|
shipping_profile_id:
|
||||||
|
type: string
|
||||||
|
title: shipping_profile_id
|
||||||
|
description: The ID of the associated shipping profile.
|
||||||
|
amount:
|
||||||
|
type: number
|
||||||
|
title: amount
|
||||||
|
description: The shipping option's amount.
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
description: The shipping option's data, useful for the provider handling fulfillment.
|
||||||
|
externalDocs:
|
||||||
|
url: >-
|
||||||
|
https://docs.medusajs.com/v2/resources/commerce-modules/fulfillment/shipping-option#data-property
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
type: object
|
||||||
|
description: The payment session's details.
|
||||||
|
required:
|
||||||
|
- provider_id
|
||||||
|
properties:
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
title: provider_id
|
||||||
|
description: The ID of the payment provider the customer chose.
|
||||||
|
example: pp_stripe_stripe
|
||||||
|
context:
|
||||||
|
type: object
|
||||||
|
description: >-
|
||||||
|
The payment's context, such as the customer or address details. If the
|
||||||
|
customer is logged-in, the customer `id` is set in the context under a
|
||||||
|
`customer.id` property.
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
description: Any data necessary for the payment provider to process the payment.
|
||||||
|
externalDocs:
|
||||||
|
url: >-
|
||||||
|
https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
||||||
|
description: Learn more about the payment session's data property
|
||||||
|
x-schemaName: StoreInitializePaymentSession
|
||||||
+1
-1
@@ -8,4 +8,4 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
description: The shipping option's shipping options.
|
description: The shipping option's shipping options.
|
||||||
items:
|
items:
|
||||||
$ref: ./StoreShippingOption.yaml
|
$ref: ./StoreCartShippingOption.yaml
|
||||||
@@ -13603,14 +13603,6 @@ paths:
|
|||||||
type: boolean
|
type: boolean
|
||||||
title: $exists
|
title: $exists
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
- name: q
|
|
||||||
in: query
|
|
||||||
description: Search term to apply on an exchange's searchable properties.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
title: q
|
|
||||||
description: Search term to apply on an exchange's searchable properties.
|
|
||||||
- name: id
|
- name: id
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
@@ -14115,26 +14107,6 @@ paths:
|
|||||||
type: boolean
|
type: boolean
|
||||||
title: $exists
|
title: $exists
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
- name: $and
|
|
||||||
in: query
|
|
||||||
description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
- name: $or
|
|
||||||
in: query
|
|
||||||
description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
security:
|
security:
|
||||||
- api_token: []
|
- api_token: []
|
||||||
- cookie_auth: []
|
- cookie_auth: []
|
||||||
@@ -20418,8 +20390,8 @@ paths:
|
|||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
Comma-separated fields that should be included in the returned data.
|
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.
|
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.
|
without prefix it will replace the entire default fields.
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
@@ -41401,8 +41373,8 @@ paths:
|
|||||||
in: query
|
in: query
|
||||||
description: |-
|
description: |-
|
||||||
Comma-separated fields that should be included in the returned data.
|
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.
|
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.
|
without prefix it will replace the entire default fields.
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
@@ -43348,8 +43320,10 @@ components:
|
|||||||
- last_used_at
|
- last_used_at
|
||||||
- created_by
|
- created_by
|
||||||
- created_at
|
- created_at
|
||||||
|
- updated_at
|
||||||
- revoked_by
|
- revoked_by
|
||||||
- revoked_at
|
- revoked_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -43397,6 +43371,16 @@ components:
|
|||||||
title: revoked_at
|
title: revoked_at
|
||||||
description: The date and time the API key was revoked. The API key is considered revoked when this property is set.
|
description: The date and time the API key was revoked. The API key is considered revoked when this property is set.
|
||||||
format: date-time
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the API key was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the API key was deleted.
|
||||||
AdminApiKeyResponse:
|
AdminApiKeyResponse:
|
||||||
type: object
|
type: object
|
||||||
description: The API key's details.
|
description: The API key's details.
|
||||||
@@ -43612,6 +43596,9 @@ components:
|
|||||||
- starts_at
|
- starts_at
|
||||||
- ends_at
|
- ends_at
|
||||||
- budget
|
- budget
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -43675,6 +43662,21 @@ components:
|
|||||||
title: used
|
title: used
|
||||||
description: |
|
description: |
|
||||||
How much of the budget has been used. If the limit is `spend`, this property holds the total amount discounted so far. If the limit is `usage`, it holds the number of times the campaign's promotions have been used so far.
|
How much of the budget has been used. If the limit is `spend`, this property holds the total amount discounted so far. If the limit is `usage`, it holds the number of times the campaign's promotions have been used so far.
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the campaign was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the campaign was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the campaign was deleted.
|
||||||
AdminCampaignResponse:
|
AdminCampaignResponse:
|
||||||
type: object
|
type: object
|
||||||
description: The campaign's details.
|
description: The campaign's details.
|
||||||
@@ -43943,7 +43945,7 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
description: The collection's products.
|
description: The collection's products.
|
||||||
items:
|
items:
|
||||||
type: object
|
$ref: '#/components/schemas/BaseProduct'
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's metadata, used to store custom key-value pairs.
|
description: The collection's metadata, used to store custom key-value pairs.
|
||||||
@@ -44527,6 +44529,10 @@ components:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata, used to store custom key-value pairs.
|
description: The product's metadata, used to store custom key-value pairs.
|
||||||
|
external_id:
|
||||||
|
type: string
|
||||||
|
title: external_id
|
||||||
|
description: The ID of the product in an external or third-party system.
|
||||||
AdminCreateProductCategory:
|
AdminCreateProductCategory:
|
||||||
type: object
|
type: object
|
||||||
description: The product category's details.
|
description: The product category's details.
|
||||||
@@ -51423,6 +51429,9 @@ components:
|
|||||||
x-schemaName: AdminPromotion
|
x-schemaName: AdminPromotion
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
application_method:
|
application_method:
|
||||||
type: object
|
type: object
|
||||||
@@ -51456,6 +51465,21 @@ components:
|
|||||||
description: The ID of the campaign this promotion belongs to.
|
description: The ID of the campaign this promotion belongs to.
|
||||||
campaign:
|
campaign:
|
||||||
$ref: '#/components/schemas/AdminCampaign'
|
$ref: '#/components/schemas/AdminCampaign'
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the promotion was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the promotion was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the promotion was deleted.
|
||||||
AdminPromotionResponse:
|
AdminPromotionResponse:
|
||||||
type: object
|
type: object
|
||||||
description: The promotion's details.
|
description: The promotion's details.
|
||||||
@@ -53370,6 +53394,10 @@ components:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata, can hold custom key-value pairs.
|
description: The product's metadata, can hold custom key-value pairs.
|
||||||
|
external_id:
|
||||||
|
type: string
|
||||||
|
title: external_id
|
||||||
|
description: The ID of the product in an external or third-party system.
|
||||||
AdminUpdateProductOption:
|
AdminUpdateProductOption:
|
||||||
type: object
|
type: object
|
||||||
description: The details to update in a product option.
|
description: The details to update in a product option.
|
||||||
@@ -54936,7 +54964,7 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
description: The collection's products.
|
description: The collection's products.
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/AdminProduct'
|
type: object
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's metadata, used to store custom key-value pairs.
|
description: The collection's metadata, used to store custom key-value pairs.
|
||||||
@@ -56550,7 +56578,7 @@ components:
|
|||||||
- status
|
- status
|
||||||
BaseProduct:
|
BaseProduct:
|
||||||
type: object
|
type: object
|
||||||
description: The parent's product.
|
description: The product's details.
|
||||||
x-schemaName: BaseProduct
|
x-schemaName: BaseProduct
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
@@ -56603,7 +56631,7 @@ components:
|
|||||||
is_giftcard:
|
is_giftcard:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: is_giftcard
|
title: is_giftcard
|
||||||
description: The product's is giftcard.
|
description: Whether the product is a gift card.
|
||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
description: The product's status.
|
description: The product's status.
|
||||||
@@ -56615,7 +56643,7 @@ components:
|
|||||||
thumbnail:
|
thumbnail:
|
||||||
type: string
|
type: string
|
||||||
title: thumbnail
|
title: thumbnail
|
||||||
description: The product's thumbnail.
|
description: The product's thumbnail URL.
|
||||||
width:
|
width:
|
||||||
type: number
|
type: number
|
||||||
title: width
|
title: width
|
||||||
@@ -56653,18 +56681,18 @@ components:
|
|||||||
collection_id:
|
collection_id:
|
||||||
type: string
|
type: string
|
||||||
title: collection_id
|
title: collection_id
|
||||||
description: The product's collection id.
|
description: The ID of the collection the product belongs to.
|
||||||
categories:
|
categories:
|
||||||
type: array
|
type: array
|
||||||
description: The product's categories.
|
description: The product's categories.
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/BaseProductCategory'
|
$ref: '#/components/schemas/BaseProductCategory'
|
||||||
type:
|
type:
|
||||||
type: object
|
$ref: '#/components/schemas/BaseProductType'
|
||||||
type_id:
|
type_id:
|
||||||
type: string
|
type: string
|
||||||
title: type_id
|
title: type_id
|
||||||
description: The product's type id.
|
description: The ID of the type the product belongs to.
|
||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
description: The product's tags.
|
description: The product's tags.
|
||||||
@@ -56688,29 +56716,29 @@ components:
|
|||||||
discountable:
|
discountable:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: discountable
|
title: discountable
|
||||||
description: The product's discountable.
|
description: Whether the product is discountable.
|
||||||
external_id:
|
external_id:
|
||||||
type: string
|
type: string
|
||||||
title: external_id
|
title: external_id
|
||||||
description: The product's external id.
|
description: The ID of the product in an external or third-party system.
|
||||||
created_at:
|
created_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: created_at
|
title: created_at
|
||||||
description: The product's created at.
|
description: The date the product was created.
|
||||||
updated_at:
|
updated_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: updated_at
|
title: updated_at
|
||||||
description: The product's updated at.
|
description: The date the product was updated.
|
||||||
deleted_at:
|
deleted_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: deleted_at
|
title: deleted_at
|
||||||
description: The product's deleted at.
|
description: The date the product was deleted.
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata.
|
description: The product's metadata, can hold custom key-value pairs.
|
||||||
BaseProductCategory:
|
BaseProductCategory:
|
||||||
type: object
|
type: object
|
||||||
description: The product category's details.
|
description: The product category's details.
|
||||||
@@ -56947,6 +56975,42 @@ components:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The tag's metadata, can hold custom key-value pairs.
|
description: The tag's metadata, can hold custom key-value pairs.
|
||||||
|
BaseProductType:
|
||||||
|
type: object
|
||||||
|
description: The product type's details.
|
||||||
|
x-schemaName: BaseProductType
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- value
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The type's ID.
|
||||||
|
value:
|
||||||
|
type: string
|
||||||
|
title: value
|
||||||
|
description: The type's value.
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the type was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the type was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the type was deleted.
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
description: The type's metadata, can hold custom key-value pairs.
|
||||||
BaseProductVariant:
|
BaseProductVariant:
|
||||||
type: object
|
type: object
|
||||||
description: The product variant's details.
|
description: The product variant's details.
|
||||||
@@ -60448,6 +60512,97 @@ components:
|
|||||||
type: number
|
type: number
|
||||||
title: discount_tax_total
|
title: discount_tax_total
|
||||||
description: The taxes applied on the discounted amount.
|
description: The taxes applied on the discounted amount.
|
||||||
|
StoreCartShippingOption:
|
||||||
|
type: object
|
||||||
|
description: The shipping option's details.
|
||||||
|
x-schemaName: StoreCartShippingOption
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- name
|
||||||
|
- price_type
|
||||||
|
- service_zone_id
|
||||||
|
- shipping_profile_id
|
||||||
|
- provider_id
|
||||||
|
- data
|
||||||
|
- type
|
||||||
|
- provider
|
||||||
|
- amount
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The shipping option's ID.
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
title: name
|
||||||
|
description: The shipping option's name.
|
||||||
|
price_type:
|
||||||
|
type: string
|
||||||
|
description: The shipping option's price type. If it's `flat`, the price is fixed and is set in the `prices` property. If it's `calculated`, the price is calculated on checkout by the associated fulfillment provider.
|
||||||
|
enum:
|
||||||
|
- flat
|
||||||
|
- calculated
|
||||||
|
service_zone_id:
|
||||||
|
type: string
|
||||||
|
title: service_zone_id
|
||||||
|
description: The ID of the service zone the shipping option belongs to.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
title: provider_id
|
||||||
|
description: The ID of the fulfillment provider handling this option.
|
||||||
|
provider:
|
||||||
|
type: object
|
||||||
|
description: The fulfillment provider's details.
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- is_enabled
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The provider's ID.
|
||||||
|
is_enabled:
|
||||||
|
type: boolean
|
||||||
|
title: is_enabled
|
||||||
|
description: Whether the provider is enabled.
|
||||||
|
type:
|
||||||
|
type: object
|
||||||
|
description: The shipping option type's details.
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- label
|
||||||
|
- description
|
||||||
|
- code
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The type's ID.
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
|
title: label
|
||||||
|
description: The type's label.
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
title: description
|
||||||
|
description: The type's description.
|
||||||
|
code:
|
||||||
|
type: string
|
||||||
|
title: code
|
||||||
|
description: The type's code.
|
||||||
|
shipping_profile_id:
|
||||||
|
type: string
|
||||||
|
title: shipping_profile_id
|
||||||
|
description: The ID of the associated shipping profile.
|
||||||
|
amount:
|
||||||
|
type: number
|
||||||
|
title: amount
|
||||||
|
description: The shipping option's amount.
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
description: The shipping option's data, useful for the provider handling fulfillment.
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/v2/resources/commerce-modules/fulfillment/shipping-option#data-property
|
||||||
StoreCollection:
|
StoreCollection:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's details.
|
description: The collection's details.
|
||||||
@@ -60957,6 +61112,27 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
customer:
|
customer:
|
||||||
$ref: '#/components/schemas/StoreCustomer'
|
$ref: '#/components/schemas/StoreCustomer'
|
||||||
|
StoreInitializePaymentSession:
|
||||||
|
type: object
|
||||||
|
description: The payment session's details.
|
||||||
|
required:
|
||||||
|
- provider_id
|
||||||
|
properties:
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
title: provider_id
|
||||||
|
description: The ID of the payment provider the customer chose.
|
||||||
|
example: pp_stripe_stripe
|
||||||
|
context:
|
||||||
|
type: object
|
||||||
|
description: The payment's context, such as the customer or address details. If the customer is logged-in, the customer `id` is set in the context under a `customer.id` property.
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
description: Any data necessary for the payment provider to process the payment.
|
||||||
|
externalDocs:
|
||||||
|
url: https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
||||||
|
description: Learn more about the payment session's data property
|
||||||
|
x-schemaName: StoreInitializePaymentSession
|
||||||
StoreOrder:
|
StoreOrder:
|
||||||
type: object
|
type: object
|
||||||
description: The order's details.
|
description: The order's details.
|
||||||
@@ -68133,7 +68309,7 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
description: The shipping option's shipping options.
|
description: The shipping option's shipping options.
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/StoreShippingOption'
|
$ref: '#/components/schemas/StoreCartShippingOption'
|
||||||
StoreShippingOptionType:
|
StoreShippingOptionType:
|
||||||
type: object
|
type: object
|
||||||
description: The shipping option type's details.
|
description: The shipping option type's details.
|
||||||
|
|||||||
@@ -326,14 +326,6 @@ get:
|
|||||||
type: boolean
|
type: boolean
|
||||||
title: $exists
|
title: $exists
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
- name: q
|
|
||||||
in: query
|
|
||||||
description: Search term to apply on an exchange's searchable properties.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
title: q
|
|
||||||
description: Search term to apply on an exchange's searchable properties.
|
|
||||||
- name: id
|
- name: id
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
@@ -914,34 +906,6 @@ get:
|
|||||||
type: boolean
|
type: boolean
|
||||||
title: $exists
|
title: $exists
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
- name: $and
|
|
||||||
in: query
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's content is
|
|
||||||
the same type as the expected query parameters.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's content is
|
|
||||||
the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
- name: $or
|
|
||||||
in: query
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's content is the
|
|
||||||
same type as the expected query parameters.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's content is
|
|
||||||
the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
security:
|
security:
|
||||||
- api_token: []
|
- api_token: []
|
||||||
- cookie_auth: []
|
- cookie_auth: []
|
||||||
|
|||||||
@@ -14,10 +14,13 @@ get:
|
|||||||
type: string
|
type: string
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: >-
|
||||||
Comma-separated fields that should be included in the returned data.
|
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
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -74,10 +74,13 @@ post:
|
|||||||
type: string
|
type: string
|
||||||
- name: fields
|
- name: fields
|
||||||
in: query
|
in: query
|
||||||
description: |-
|
description: >-
|
||||||
Comma-separated fields that should be included in the returned data.
|
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
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ required:
|
|||||||
- last_used_at
|
- last_used_at
|
||||||
- created_by
|
- created_by
|
||||||
- created_at
|
- created_at
|
||||||
|
- updated_at
|
||||||
- revoked_by
|
- revoked_by
|
||||||
- revoked_at
|
- revoked_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -65,3 +67,13 @@ properties:
|
|||||||
The date and time the API key was revoked. The API key is considered
|
The date and time the API key was revoked. The API key is considered
|
||||||
revoked when this property is set.
|
revoked when this property is set.
|
||||||
format: date-time
|
format: date-time
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the API key was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the API key was deleted.
|
||||||
@@ -10,6 +10,9 @@ required:
|
|||||||
- starts_at
|
- starts_at
|
||||||
- ends_at
|
- ends_at
|
||||||
- budget
|
- budget
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -79,3 +82,18 @@ properties:
|
|||||||
property holds the total amount discounted so far. If the limit is
|
property holds the total amount discounted so far. If the limit is
|
||||||
`usage`, it holds the number of times the campaign's promotions have
|
`usage`, it holds the number of times the campaign's promotions have
|
||||||
been used so far.
|
been used so far.
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the campaign was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the campaign was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the campaign was deleted.
|
||||||
@@ -41,7 +41,7 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
description: The collection's products.
|
description: The collection's products.
|
||||||
items:
|
items:
|
||||||
type: object
|
$ref: ./BaseProduct.yaml
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's metadata, used to store custom key-value pairs.
|
description: The collection's metadata, used to store custom key-value pairs.
|
||||||
@@ -146,3 +146,7 @@ properties:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata, used to store custom key-value pairs.
|
description: The product's metadata, used to store custom key-value pairs.
|
||||||
|
external_id:
|
||||||
|
type: string
|
||||||
|
title: external_id
|
||||||
|
description: The ID of the product in an external or third-party system.
|
||||||
@@ -3,6 +3,9 @@ description: The promotion's details.
|
|||||||
x-schemaName: AdminPromotion
|
x-schemaName: AdminPromotion
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- deleted_at
|
||||||
properties:
|
properties:
|
||||||
application_method:
|
application_method:
|
||||||
type: object
|
type: object
|
||||||
@@ -38,3 +41,18 @@ properties:
|
|||||||
description: The ID of the campaign this promotion belongs to.
|
description: The ID of the campaign this promotion belongs to.
|
||||||
campaign:
|
campaign:
|
||||||
$ref: ./AdminCampaign.yaml
|
$ref: ./AdminCampaign.yaml
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the promotion was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the promotion was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the promotion was deleted.
|
||||||
@@ -147,3 +147,7 @@ properties:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata, can hold custom key-value pairs.
|
description: The product's metadata, can hold custom key-value pairs.
|
||||||
|
external_id:
|
||||||
|
type: string
|
||||||
|
title: external_id
|
||||||
|
description: The ID of the product in an external or third-party system.
|
||||||
@@ -41,7 +41,7 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
description: The collection's products.
|
description: The collection's products.
|
||||||
items:
|
items:
|
||||||
$ref: ./AdminProduct.yaml
|
type: object
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The collection's metadata, used to store custom key-value pairs.
|
description: The collection's metadata, used to store custom key-value pairs.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
type: object
|
type: object
|
||||||
description: The parent's product.
|
description: The product's details.
|
||||||
x-schemaName: BaseProduct
|
x-schemaName: BaseProduct
|
||||||
required:
|
required:
|
||||||
- id
|
- id
|
||||||
@@ -52,7 +52,7 @@ properties:
|
|||||||
is_giftcard:
|
is_giftcard:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: is_giftcard
|
title: is_giftcard
|
||||||
description: The product's is giftcard.
|
description: Whether the product is a gift card.
|
||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
description: The product's status.
|
description: The product's status.
|
||||||
@@ -64,7 +64,7 @@ properties:
|
|||||||
thumbnail:
|
thumbnail:
|
||||||
type: string
|
type: string
|
||||||
title: thumbnail
|
title: thumbnail
|
||||||
description: The product's thumbnail.
|
description: The product's thumbnail URL.
|
||||||
width:
|
width:
|
||||||
type: number
|
type: number
|
||||||
title: width
|
title: width
|
||||||
@@ -102,18 +102,18 @@ properties:
|
|||||||
collection_id:
|
collection_id:
|
||||||
type: string
|
type: string
|
||||||
title: collection_id
|
title: collection_id
|
||||||
description: The product's collection id.
|
description: The ID of the collection the product belongs to.
|
||||||
categories:
|
categories:
|
||||||
type: array
|
type: array
|
||||||
description: The product's categories.
|
description: The product's categories.
|
||||||
items:
|
items:
|
||||||
$ref: ./BaseProductCategory.yaml
|
$ref: ./BaseProductCategory.yaml
|
||||||
type:
|
type:
|
||||||
type: object
|
$ref: ./BaseProductType.yaml
|
||||||
type_id:
|
type_id:
|
||||||
type: string
|
type: string
|
||||||
title: type_id
|
title: type_id
|
||||||
description: The product's type id.
|
description: The ID of the type the product belongs to.
|
||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
description: The product's tags.
|
description: The product's tags.
|
||||||
@@ -137,26 +137,26 @@ properties:
|
|||||||
discountable:
|
discountable:
|
||||||
type: boolean
|
type: boolean
|
||||||
title: discountable
|
title: discountable
|
||||||
description: The product's discountable.
|
description: Whether the product is discountable.
|
||||||
external_id:
|
external_id:
|
||||||
type: string
|
type: string
|
||||||
title: external_id
|
title: external_id
|
||||||
description: The product's external id.
|
description: The ID of the product in an external or third-party system.
|
||||||
created_at:
|
created_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: created_at
|
title: created_at
|
||||||
description: The product's created at.
|
description: The date the product was created.
|
||||||
updated_at:
|
updated_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: updated_at
|
title: updated_at
|
||||||
description: The product's updated at.
|
description: The date the product was updated.
|
||||||
deleted_at:
|
deleted_at:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
title: deleted_at
|
title: deleted_at
|
||||||
description: The product's deleted at.
|
description: The date the product was deleted.
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
description: The product's metadata.
|
description: The product's metadata, can hold custom key-value pairs.
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
type: object
|
||||||
|
description: The product type's details.
|
||||||
|
x-schemaName: BaseProductType
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- value
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The type's ID.
|
||||||
|
value:
|
||||||
|
type: string
|
||||||
|
title: value
|
||||||
|
description: The type's value.
|
||||||
|
created_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: created_at
|
||||||
|
description: The date the type was created.
|
||||||
|
updated_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: updated_at
|
||||||
|
description: The date the type was updated.
|
||||||
|
deleted_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
title: deleted_at
|
||||||
|
description: The date the type was deleted.
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
description: The type's metadata, can hold custom key-value pairs.
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
type: object
|
||||||
|
description: The shipping option's details.
|
||||||
|
x-schemaName: StoreCartShippingOption
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- name
|
||||||
|
- price_type
|
||||||
|
- service_zone_id
|
||||||
|
- shipping_profile_id
|
||||||
|
- provider_id
|
||||||
|
- data
|
||||||
|
- type
|
||||||
|
- provider
|
||||||
|
- amount
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The shipping option's ID.
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
title: name
|
||||||
|
description: The shipping option's name.
|
||||||
|
price_type:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The shipping option's price type. If it's `flat`, the price is fixed and
|
||||||
|
is set in the `prices` property. If it's `calculated`, the price is
|
||||||
|
calculated on checkout by the associated fulfillment provider.
|
||||||
|
enum:
|
||||||
|
- flat
|
||||||
|
- calculated
|
||||||
|
service_zone_id:
|
||||||
|
type: string
|
||||||
|
title: service_zone_id
|
||||||
|
description: The ID of the service zone the shipping option belongs to.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
title: provider_id
|
||||||
|
description: The ID of the fulfillment provider handling this option.
|
||||||
|
provider:
|
||||||
|
type: object
|
||||||
|
description: The fulfillment provider's details.
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- is_enabled
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The provider's ID.
|
||||||
|
is_enabled:
|
||||||
|
type: boolean
|
||||||
|
title: is_enabled
|
||||||
|
description: Whether the provider is enabled.
|
||||||
|
type:
|
||||||
|
type: object
|
||||||
|
description: The shipping option type's details.
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- label
|
||||||
|
- description
|
||||||
|
- code
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
title: id
|
||||||
|
description: The type's ID.
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
|
title: label
|
||||||
|
description: The type's label.
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
title: description
|
||||||
|
description: The type's description.
|
||||||
|
code:
|
||||||
|
type: string
|
||||||
|
title: code
|
||||||
|
description: The type's code.
|
||||||
|
shipping_profile_id:
|
||||||
|
type: string
|
||||||
|
title: shipping_profile_id
|
||||||
|
description: The ID of the associated shipping profile.
|
||||||
|
amount:
|
||||||
|
type: number
|
||||||
|
title: amount
|
||||||
|
description: The shipping option's amount.
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
description: The shipping option's data, useful for the provider handling fulfillment.
|
||||||
|
externalDocs:
|
||||||
|
url: >-
|
||||||
|
https://docs.medusajs.com/v2/resources/commerce-modules/fulfillment/shipping-option#data-property
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
type: object
|
||||||
|
description: The payment session's details.
|
||||||
|
required:
|
||||||
|
- provider_id
|
||||||
|
properties:
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
title: provider_id
|
||||||
|
description: The ID of the payment provider the customer chose.
|
||||||
|
example: pp_stripe_stripe
|
||||||
|
context:
|
||||||
|
type: object
|
||||||
|
description: >-
|
||||||
|
The payment's context, such as the customer or address details. If the
|
||||||
|
customer is logged-in, the customer `id` is set in the context under a
|
||||||
|
`customer.id` property.
|
||||||
|
data:
|
||||||
|
type: object
|
||||||
|
description: Any data necessary for the payment provider to process the payment.
|
||||||
|
externalDocs:
|
||||||
|
url: >-
|
||||||
|
https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
||||||
|
description: Learn more about the payment session's data property
|
||||||
|
x-schemaName: StoreInitializePaymentSession
|
||||||
+1
-1
@@ -8,4 +8,4 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
description: The shipping option's shipping options.
|
description: The shipping option's shipping options.
|
||||||
items:
|
items:
|
||||||
$ref: ./StoreShippingOption.yaml
|
$ref: ./StoreCartShippingOption.yaml
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -61,289 +61,6 @@ get:
|
|||||||
The field to sort the data by. By default, the sort order is
|
The field to sort the data by. By default, the sort order is
|
||||||
ascending. To change the order to descending, prefix the field name
|
ascending. To change the order to descending, prefix the field name
|
||||||
with `-`.
|
with `-`.
|
||||||
- name: deleted_at
|
|
||||||
in: query
|
|
||||||
description: Filter by the collection's deletion date.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
description: Filter by the collection's deletion date.
|
|
||||||
properties:
|
|
||||||
$and:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's content
|
|
||||||
is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
$or:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's content
|
|
||||||
is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
$eq:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
- type: array
|
|
||||||
description: Filter by an exact match.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
$ne:
|
|
||||||
type: string
|
|
||||||
title: $ne
|
|
||||||
description: Filter by values not equal to this parameter.
|
|
||||||
$in:
|
|
||||||
type: array
|
|
||||||
description: Filter by values in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $in
|
|
||||||
description: Filter by values in this array.
|
|
||||||
$nin:
|
|
||||||
type: array
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $nin
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
$not:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $not
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
- type: object
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
properties:
|
|
||||||
$and:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's
|
|
||||||
content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
$or:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's
|
|
||||||
content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
$eq:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
- type: array
|
|
||||||
description: Filter by an exact match.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
$ne:
|
|
||||||
type: string
|
|
||||||
title: $ne
|
|
||||||
description: Filter by values not equal to this parameter.
|
|
||||||
$in:
|
|
||||||
type: array
|
|
||||||
description: Filter by values in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $in
|
|
||||||
description: Filter by values in this array.
|
|
||||||
$nin:
|
|
||||||
type: array
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $nin
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
$not:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $not
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
- type: object
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
- type: array
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $not
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
$gt:
|
|
||||||
type: string
|
|
||||||
title: $gt
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$gte:
|
|
||||||
type: string
|
|
||||||
title: $gte
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than or equal to this parameter.
|
|
||||||
Useful for numbers and dates only.
|
|
||||||
$lt:
|
|
||||||
type: string
|
|
||||||
title: $lt
|
|
||||||
description: >-
|
|
||||||
Filter by values less than this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$lte:
|
|
||||||
type: string
|
|
||||||
title: $lte
|
|
||||||
description: >-
|
|
||||||
Filter by values less than or equal to this parameter.
|
|
||||||
Useful for numbers and dates only.
|
|
||||||
$like:
|
|
||||||
type: string
|
|
||||||
title: $like
|
|
||||||
description: Apply a `like` filter. Useful for strings only.
|
|
||||||
$re:
|
|
||||||
type: string
|
|
||||||
title: $re
|
|
||||||
description: Apply a regex filter. Useful for strings only.
|
|
||||||
$ilike:
|
|
||||||
type: string
|
|
||||||
title: $ilike
|
|
||||||
description: >-
|
|
||||||
Apply a case-insensitive `like` filter. Useful for strings
|
|
||||||
only.
|
|
||||||
$fulltext:
|
|
||||||
type: string
|
|
||||||
title: $fulltext
|
|
||||||
description: Filter to apply on full-text properties.
|
|
||||||
$overlap:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Filter arrays that have overlapping values with this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $overlap
|
|
||||||
description: >-
|
|
||||||
Filter arrays that have overlapping values with this
|
|
||||||
parameter.
|
|
||||||
$contains:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Filter arrays that contain some of the values of this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contains
|
|
||||||
description: >-
|
|
||||||
Filter arrays that contain some of the values of this
|
|
||||||
parameter.
|
|
||||||
$contained:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contained
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
$exists:
|
|
||||||
type: boolean
|
|
||||||
title: $exists
|
|
||||||
description: >-
|
|
||||||
Filter by whether a value for this parameter exists (not
|
|
||||||
`null`).
|
|
||||||
- type: array
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $not
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
$gt:
|
|
||||||
type: string
|
|
||||||
title: $gt
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than this parameter. Useful for numbers
|
|
||||||
and dates only.
|
|
||||||
$gte:
|
|
||||||
type: string
|
|
||||||
title: $gte
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than or equal to this parameter. Useful
|
|
||||||
for numbers and dates only.
|
|
||||||
$lt:
|
|
||||||
type: string
|
|
||||||
title: $lt
|
|
||||||
description: >-
|
|
||||||
Filter by values less than this parameter. Useful for numbers and
|
|
||||||
dates only.
|
|
||||||
$lte:
|
|
||||||
type: string
|
|
||||||
title: $lte
|
|
||||||
description: >-
|
|
||||||
Filter by values less than or equal to this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$like:
|
|
||||||
type: string
|
|
||||||
title: $like
|
|
||||||
description: Apply a `like` filter. Useful for strings only.
|
|
||||||
$re:
|
|
||||||
type: string
|
|
||||||
title: $re
|
|
||||||
description: Apply a regex filter. Useful for strings only.
|
|
||||||
$ilike:
|
|
||||||
type: string
|
|
||||||
title: $ilike
|
|
||||||
description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
$fulltext:
|
|
||||||
type: string
|
|
||||||
title: $fulltext
|
|
||||||
description: Filter to apply on full-text properties.
|
|
||||||
$overlap:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $overlap
|
|
||||||
description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
$contains:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contains
|
|
||||||
description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
$contained:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contained
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
$exists:
|
|
||||||
type: boolean
|
|
||||||
title: $exists
|
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
- name: title
|
- name: title
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
+1
-25
@@ -41,31 +41,7 @@ post:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: ../components/schemas/StoreInitializePaymentSession.yaml
|
||||||
description: The payment session's details.
|
|
||||||
required:
|
|
||||||
- provider_id
|
|
||||||
properties:
|
|
||||||
provider_id:
|
|
||||||
type: string
|
|
||||||
title: provider_id
|
|
||||||
description: The ID of the payment provider the customer chose.
|
|
||||||
example: pp_stripe_stripe
|
|
||||||
context:
|
|
||||||
type: object
|
|
||||||
description: >-
|
|
||||||
The payment's context, such as the customer or address details.
|
|
||||||
If the customer is logged-in, the customer `id` is set in the
|
|
||||||
context under a `customer.id` property.
|
|
||||||
data:
|
|
||||||
type: object
|
|
||||||
description: >-
|
|
||||||
Any data necessary for the payment provider to process the
|
|
||||||
payment.
|
|
||||||
externalDocs:
|
|
||||||
url: >-
|
|
||||||
https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
|
||||||
description: Learn more about the payment session's data property
|
|
||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
- lang: Shell
|
- lang: Shell
|
||||||
label: cURL
|
label: cURL
|
||||||
|
|||||||
@@ -694,275 +694,6 @@ get:
|
|||||||
type: boolean
|
type: boolean
|
||||||
title: $exists
|
title: $exists
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
- name: deleted_at
|
|
||||||
in: query
|
|
||||||
description: Filter by the category's deletion date.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
description: Filter by the category's deletion date.
|
|
||||||
properties:
|
|
||||||
$and:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's content
|
|
||||||
is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
$or:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's content
|
|
||||||
is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
$eq:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
- type: array
|
|
||||||
description: Filter by multiple exact matches.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $eq
|
|
||||||
description: An exact match.
|
|
||||||
$ne:
|
|
||||||
type: string
|
|
||||||
title: $ne
|
|
||||||
description: Filter by values not equal to this parameter.
|
|
||||||
$in:
|
|
||||||
type: array
|
|
||||||
description: Filter by values in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $in
|
|
||||||
description: The value to match.
|
|
||||||
$nin:
|
|
||||||
type: array
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $nin
|
|
||||||
description: The value not to match.
|
|
||||||
$not:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $not
|
|
||||||
description: Filter by values not matching this parameter.
|
|
||||||
- type: object
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
properties:
|
|
||||||
$and:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's
|
|
||||||
content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
$or:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's
|
|
||||||
content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
$eq:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
- type: array
|
|
||||||
description: Filter by multiple exact matches.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $eq
|
|
||||||
description: The value to match.
|
|
||||||
$ne:
|
|
||||||
type: string
|
|
||||||
title: $ne
|
|
||||||
description: Filter by values not matching this parameter.
|
|
||||||
$in:
|
|
||||||
type: array
|
|
||||||
description: Filter by values in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $in
|
|
||||||
description: The value to match.
|
|
||||||
$nin:
|
|
||||||
type: array
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $nin
|
|
||||||
description: The value to not match
|
|
||||||
$not:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $not
|
|
||||||
description: Filter by values not matching this parameter
|
|
||||||
- type: object
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
- type: array
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the values of this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $not
|
|
||||||
description: The values to not match.
|
|
||||||
$gt:
|
|
||||||
type: string
|
|
||||||
title: $gt
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$gte:
|
|
||||||
type: string
|
|
||||||
title: $gte
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than or equal to this parameter.
|
|
||||||
Useful for numbers and dates only.
|
|
||||||
$lt:
|
|
||||||
type: string
|
|
||||||
title: $lt
|
|
||||||
description: >-
|
|
||||||
Filter by values less than this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$lte:
|
|
||||||
type: string
|
|
||||||
title: $lte
|
|
||||||
description: >-
|
|
||||||
Filter by values less than or equal to this parameter.
|
|
||||||
Useful for numbers and dates only.
|
|
||||||
$like:
|
|
||||||
type: string
|
|
||||||
title: $like
|
|
||||||
description: Apply a `like` filter. Useful for strings only.
|
|
||||||
$re:
|
|
||||||
type: string
|
|
||||||
title: $re
|
|
||||||
description: Apply a regex filter. Useful for strings only.
|
|
||||||
$ilike:
|
|
||||||
type: string
|
|
||||||
title: $ilike
|
|
||||||
description: >-
|
|
||||||
Apply a case-insensitive `like` filter. Useful for strings
|
|
||||||
only.
|
|
||||||
$fulltext:
|
|
||||||
type: string
|
|
||||||
title: $fulltext
|
|
||||||
description: Filter to apply on full-text properties.
|
|
||||||
$overlap:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Filter arrays that have overlapping values with this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $overlap
|
|
||||||
description: The value to match.
|
|
||||||
$contains:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Filter arrays that contain some of the values of this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contains
|
|
||||||
description: The values to match.
|
|
||||||
$contained:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contained
|
|
||||||
description: The values to match.
|
|
||||||
$exists:
|
|
||||||
type: boolean
|
|
||||||
title: $exists
|
|
||||||
description: >-
|
|
||||||
Filter by whether a value for this parameter exists (not
|
|
||||||
`null`).
|
|
||||||
- type: array
|
|
||||||
description: Filter by values not matching those in this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $not
|
|
||||||
description: The values to not match.
|
|
||||||
$gt:
|
|
||||||
type: string
|
|
||||||
title: $gt
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than this parameter. Useful for numbers
|
|
||||||
and dates only.
|
|
||||||
$gte:
|
|
||||||
type: string
|
|
||||||
title: $gte
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than or equal to this parameter. Useful
|
|
||||||
for numbers and dates only.
|
|
||||||
$lt:
|
|
||||||
type: string
|
|
||||||
title: $lt
|
|
||||||
description: >-
|
|
||||||
Filter by values less than this parameter. Useful for numbers and
|
|
||||||
dates only.
|
|
||||||
$lte:
|
|
||||||
type: string
|
|
||||||
title: $lte
|
|
||||||
description: >-
|
|
||||||
Filter by values less than or equal to this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$like:
|
|
||||||
type: string
|
|
||||||
title: $like
|
|
||||||
description: Apply a `like` filter. Useful for strings only.
|
|
||||||
$re:
|
|
||||||
type: string
|
|
||||||
title: $re
|
|
||||||
description: Apply a regex filter. Useful for strings only.
|
|
||||||
$ilike:
|
|
||||||
type: string
|
|
||||||
title: $ilike
|
|
||||||
description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
$fulltext:
|
|
||||||
type: string
|
|
||||||
title: $fulltext
|
|
||||||
description: Filter to apply on full-text properties.
|
|
||||||
$overlap:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $overlap
|
|
||||||
description: The values to match.
|
|
||||||
$contains:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contains
|
|
||||||
description: The values to match.
|
|
||||||
$contained:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contained
|
|
||||||
description: The values to match.
|
|
||||||
$exists:
|
|
||||||
type: boolean
|
|
||||||
title: $exists
|
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
- name: $and
|
- name: $and
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -731,275 +731,6 @@ get:
|
|||||||
type: boolean
|
type: boolean
|
||||||
title: $exists
|
title: $exists
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
- name: deleted_at
|
|
||||||
in: query
|
|
||||||
description: Filter by the product's date date.
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
description: Filter by the product's date date.
|
|
||||||
properties:
|
|
||||||
$and:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's content
|
|
||||||
is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
$or:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's content
|
|
||||||
is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
$eq:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
- type: array
|
|
||||||
description: Filter by multiple exact matches.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $eq
|
|
||||||
description: An exact match.
|
|
||||||
$ne:
|
|
||||||
type: string
|
|
||||||
title: $ne
|
|
||||||
description: Filter by values not equal to this parameter.
|
|
||||||
$in:
|
|
||||||
type: array
|
|
||||||
description: Filter by values in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $in
|
|
||||||
description: The value to match.
|
|
||||||
$nin:
|
|
||||||
type: array
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $nin
|
|
||||||
description: The value not to match.
|
|
||||||
$not:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $not
|
|
||||||
description: Filter by values not matching this parameter.
|
|
||||||
- type: object
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
properties:
|
|
||||||
$and:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an AND condition. Each object's
|
|
||||||
content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $and
|
|
||||||
$or:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Join query parameters with an OR condition. Each object's
|
|
||||||
content is the same type as the expected query parameters.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: $or
|
|
||||||
$eq:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $eq
|
|
||||||
description: Filter by an exact match.
|
|
||||||
- type: array
|
|
||||||
description: Filter by multiple exact matches.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $eq
|
|
||||||
description: The value to match.
|
|
||||||
$ne:
|
|
||||||
type: string
|
|
||||||
title: $ne
|
|
||||||
description: Filter by values not matching this parameter.
|
|
||||||
$in:
|
|
||||||
type: array
|
|
||||||
description: Filter by values in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $in
|
|
||||||
description: The value to match.
|
|
||||||
$nin:
|
|
||||||
type: array
|
|
||||||
description: Filter by values not in this array.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $nin
|
|
||||||
description: The value to not match
|
|
||||||
$not:
|
|
||||||
oneOf:
|
|
||||||
- type: string
|
|
||||||
title: $not
|
|
||||||
description: Filter by values not matching this parameter
|
|
||||||
- type: object
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the conditions in this
|
|
||||||
parameter.
|
|
||||||
- type: array
|
|
||||||
description: >-
|
|
||||||
Filter by values not matching the values of this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $not
|
|
||||||
description: The values to not match.
|
|
||||||
$gt:
|
|
||||||
type: string
|
|
||||||
title: $gt
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$gte:
|
|
||||||
type: string
|
|
||||||
title: $gte
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than or equal to this parameter.
|
|
||||||
Useful for numbers and dates only.
|
|
||||||
$lt:
|
|
||||||
type: string
|
|
||||||
title: $lt
|
|
||||||
description: >-
|
|
||||||
Filter by values less than this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$lte:
|
|
||||||
type: string
|
|
||||||
title: $lte
|
|
||||||
description: >-
|
|
||||||
Filter by values less than or equal to this parameter.
|
|
||||||
Useful for numbers and dates only.
|
|
||||||
$like:
|
|
||||||
type: string
|
|
||||||
title: $like
|
|
||||||
description: Apply a `like` filter. Useful for strings only.
|
|
||||||
$re:
|
|
||||||
type: string
|
|
||||||
title: $re
|
|
||||||
description: Apply a regex filter. Useful for strings only.
|
|
||||||
$ilike:
|
|
||||||
type: string
|
|
||||||
title: $ilike
|
|
||||||
description: >-
|
|
||||||
Apply a case-insensitive `like` filter. Useful for strings
|
|
||||||
only.
|
|
||||||
$fulltext:
|
|
||||||
type: string
|
|
||||||
title: $fulltext
|
|
||||||
description: Filter to apply on full-text properties.
|
|
||||||
$overlap:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Filter arrays that have overlapping values with this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $overlap
|
|
||||||
description: The value to match.
|
|
||||||
$contains:
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Filter arrays that contain some of the values of this
|
|
||||||
parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contains
|
|
||||||
description: The values to match.
|
|
||||||
$contained:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contained
|
|
||||||
description: The values to match.
|
|
||||||
$exists:
|
|
||||||
type: boolean
|
|
||||||
title: $exists
|
|
||||||
description: >-
|
|
||||||
Filter by whether a value for this parameter exists (not
|
|
||||||
`null`).
|
|
||||||
- type: array
|
|
||||||
description: Filter by values not matching those in this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $not
|
|
||||||
description: The values to not match.
|
|
||||||
$gt:
|
|
||||||
type: string
|
|
||||||
title: $gt
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than this parameter. Useful for numbers
|
|
||||||
and dates only.
|
|
||||||
$gte:
|
|
||||||
type: string
|
|
||||||
title: $gte
|
|
||||||
description: >-
|
|
||||||
Filter by values greater than or equal to this parameter. Useful
|
|
||||||
for numbers and dates only.
|
|
||||||
$lt:
|
|
||||||
type: string
|
|
||||||
title: $lt
|
|
||||||
description: >-
|
|
||||||
Filter by values less than this parameter. Useful for numbers and
|
|
||||||
dates only.
|
|
||||||
$lte:
|
|
||||||
type: string
|
|
||||||
title: $lte
|
|
||||||
description: >-
|
|
||||||
Filter by values less than or equal to this parameter. Useful for
|
|
||||||
numbers and dates only.
|
|
||||||
$like:
|
|
||||||
type: string
|
|
||||||
title: $like
|
|
||||||
description: Apply a `like` filter. Useful for strings only.
|
|
||||||
$re:
|
|
||||||
type: string
|
|
||||||
title: $re
|
|
||||||
description: Apply a regex filter. Useful for strings only.
|
|
||||||
$ilike:
|
|
||||||
type: string
|
|
||||||
title: $ilike
|
|
||||||
description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
$fulltext:
|
|
||||||
type: string
|
|
||||||
title: $fulltext
|
|
||||||
description: Filter to apply on full-text properties.
|
|
||||||
$overlap:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $overlap
|
|
||||||
description: The values to match.
|
|
||||||
$contains:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contains
|
|
||||||
description: The values to match.
|
|
||||||
$contained:
|
|
||||||
type: array
|
|
||||||
description: Filter arrays that contain all values of this parameter.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
title: $contained
|
|
||||||
description: The values to match.
|
|
||||||
$exists:
|
|
||||||
type: boolean
|
|
||||||
title: $exists
|
|
||||||
description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
- name: region_id
|
- name: region_id
|
||||||
in: query
|
in: query
|
||||||
description: >-
|
description: >-
|
||||||
|
|||||||
@@ -100,6 +100,14 @@ get:
|
|||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
title: $or
|
title: $or
|
||||||
|
- name: is_return
|
||||||
|
in: query
|
||||||
|
description: Whether the shipping option can be used for returns.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
title: is_return
|
||||||
|
description: Whether the shipping option can be used for returns.
|
||||||
x-codeSamples:
|
x-codeSamples:
|
||||||
- lang: Shell
|
- lang: Shell
|
||||||
label: cURL
|
label: cURL
|
||||||
|
|||||||
@@ -276,14 +276,6 @@
|
|||||||
* type: boolean
|
* type: boolean
|
||||||
* title: $exists
|
* title: $exists
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
* description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
* - name: q
|
|
||||||
* in: query
|
|
||||||
* description: Search term to apply on an exchange's searchable properties.
|
|
||||||
* required: false
|
|
||||||
* schema:
|
|
||||||
* type: string
|
|
||||||
* title: q
|
|
||||||
* description: Search term to apply on an exchange's searchable properties.
|
|
||||||
* - name: id
|
* - name: id
|
||||||
* in: query
|
* in: query
|
||||||
* required: false
|
* required: false
|
||||||
@@ -788,26 +780,6 @@
|
|||||||
* type: boolean
|
* type: boolean
|
||||||
* title: $exists
|
* title: $exists
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
* description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
* - name: $and
|
|
||||||
* in: query
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* required: false
|
|
||||||
* schema:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* - name: $or
|
|
||||||
* in: query
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* required: false
|
|
||||||
* schema:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* security:
|
* security:
|
||||||
* - api_token: []
|
* - api_token: []
|
||||||
* - cookie_auth: []
|
* - cookie_auth: []
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
* Comma-separated fields that should be included in the returned data.
|
* 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.
|
* 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.
|
* without prefix it will replace the entire default fields.
|
||||||
* required: false
|
* required: false
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
* in: query
|
* in: query
|
||||||
* description: |-
|
* description: |-
|
||||||
* Comma-separated fields that should be included in the returned data.
|
* 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.
|
* 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.
|
* without prefix it will replace the entire default fields.
|
||||||
* required: false
|
* required: false
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
|
|||||||
@@ -48,237 +48,6 @@
|
|||||||
* type: string
|
* type: string
|
||||||
* title: order
|
* title: order
|
||||||
* description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
|
* description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
|
||||||
* - name: deleted_at
|
|
||||||
* in: query
|
|
||||||
* description: Filter by the collection's deletion date.
|
|
||||||
* required: false
|
|
||||||
* schema:
|
|
||||||
* type: object
|
|
||||||
* description: Filter by the collection's deletion date.
|
|
||||||
* properties:
|
|
||||||
* $and:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* $or:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* $eq:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* $ne:
|
|
||||||
* type: string
|
|
||||||
* title: $ne
|
|
||||||
* description: Filter by values not equal to this parameter.
|
|
||||||
* $in:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $in
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* $nin:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $nin
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* $not:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* - type: object
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* properties:
|
|
||||||
* $and:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* $or:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* $eq:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* $ne:
|
|
||||||
* type: string
|
|
||||||
* title: $ne
|
|
||||||
* description: Filter by values not equal to this parameter.
|
|
||||||
* $in:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $in
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* $nin:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $nin
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* $not:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* - type: object
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* $gt:
|
|
||||||
* type: string
|
|
||||||
* title: $gt
|
|
||||||
* description: Filter by values greater than this parameter. Useful for numbers and dates only.
|
|
||||||
* $gte:
|
|
||||||
* type: string
|
|
||||||
* title: $gte
|
|
||||||
* description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $lt:
|
|
||||||
* type: string
|
|
||||||
* title: $lt
|
|
||||||
* description: Filter by values less than this parameter. Useful for numbers and dates only.
|
|
||||||
* $lte:
|
|
||||||
* type: string
|
|
||||||
* title: $lte
|
|
||||||
* description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $like:
|
|
||||||
* type: string
|
|
||||||
* title: $like
|
|
||||||
* description: Apply a `like` filter. Useful for strings only.
|
|
||||||
* $re:
|
|
||||||
* type: string
|
|
||||||
* title: $re
|
|
||||||
* description: Apply a regex filter. Useful for strings only.
|
|
||||||
* $ilike:
|
|
||||||
* type: string
|
|
||||||
* title: $ilike
|
|
||||||
* description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
* $fulltext:
|
|
||||||
* type: string
|
|
||||||
* title: $fulltext
|
|
||||||
* description: Filter to apply on full-text properties.
|
|
||||||
* $overlap:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $overlap
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* $contains:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contains
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* $contained:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contained
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* $exists:
|
|
||||||
* type: boolean
|
|
||||||
* title: $exists
|
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* $gt:
|
|
||||||
* type: string
|
|
||||||
* title: $gt
|
|
||||||
* description: Filter by values greater than this parameter. Useful for numbers and dates only.
|
|
||||||
* $gte:
|
|
||||||
* type: string
|
|
||||||
* title: $gte
|
|
||||||
* description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $lt:
|
|
||||||
* type: string
|
|
||||||
* title: $lt
|
|
||||||
* description: Filter by values less than this parameter. Useful for numbers and dates only.
|
|
||||||
* $lte:
|
|
||||||
* type: string
|
|
||||||
* title: $lte
|
|
||||||
* description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $like:
|
|
||||||
* type: string
|
|
||||||
* title: $like
|
|
||||||
* description: Apply a `like` filter. Useful for strings only.
|
|
||||||
* $re:
|
|
||||||
* type: string
|
|
||||||
* title: $re
|
|
||||||
* description: Apply a regex filter. Useful for strings only.
|
|
||||||
* $ilike:
|
|
||||||
* type: string
|
|
||||||
* title: $ilike
|
|
||||||
* description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
* $fulltext:
|
|
||||||
* type: string
|
|
||||||
* title: $fulltext
|
|
||||||
* description: Filter to apply on full-text properties.
|
|
||||||
* $overlap:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $overlap
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* $contains:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contains
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* $contained:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contained
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* $exists:
|
|
||||||
* type: boolean
|
|
||||||
* title: $exists
|
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
* - name: title
|
* - name: title
|
||||||
* in: query
|
* in: query
|
||||||
* required: false
|
* required: false
|
||||||
|
|||||||
@@ -590,237 +590,6 @@
|
|||||||
* type: boolean
|
* type: boolean
|
||||||
* title: $exists
|
* title: $exists
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
* description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
* - name: deleted_at
|
|
||||||
* in: query
|
|
||||||
* description: Filter by the category's deletion date.
|
|
||||||
* required: false
|
|
||||||
* schema:
|
|
||||||
* type: object
|
|
||||||
* description: Filter by the category's deletion date.
|
|
||||||
* properties:
|
|
||||||
* $and:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* $or:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* $eq:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by multiple exact matches.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: An exact match.
|
|
||||||
* $ne:
|
|
||||||
* type: string
|
|
||||||
* title: $ne
|
|
||||||
* description: Filter by values not equal to this parameter.
|
|
||||||
* $in:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $in
|
|
||||||
* description: The value to match.
|
|
||||||
* $nin:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $nin
|
|
||||||
* description: The value not to match.
|
|
||||||
* $not:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching this parameter.
|
|
||||||
* - type: object
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* properties:
|
|
||||||
* $and:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* $or:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* $eq:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by multiple exact matches.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: The value to match.
|
|
||||||
* $ne:
|
|
||||||
* type: string
|
|
||||||
* title: $ne
|
|
||||||
* description: Filter by values not matching this parameter.
|
|
||||||
* $in:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $in
|
|
||||||
* description: The value to match.
|
|
||||||
* $nin:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $nin
|
|
||||||
* description: The value to not match
|
|
||||||
* $not:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching this parameter
|
|
||||||
* - type: object
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by values not matching the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $not
|
|
||||||
* description: The values to not match.
|
|
||||||
* $gt:
|
|
||||||
* type: string
|
|
||||||
* title: $gt
|
|
||||||
* description: Filter by values greater than this parameter. Useful for numbers and dates only.
|
|
||||||
* $gte:
|
|
||||||
* type: string
|
|
||||||
* title: $gte
|
|
||||||
* description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $lt:
|
|
||||||
* type: string
|
|
||||||
* title: $lt
|
|
||||||
* description: Filter by values less than this parameter. Useful for numbers and dates only.
|
|
||||||
* $lte:
|
|
||||||
* type: string
|
|
||||||
* title: $lte
|
|
||||||
* description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $like:
|
|
||||||
* type: string
|
|
||||||
* title: $like
|
|
||||||
* description: Apply a `like` filter. Useful for strings only.
|
|
||||||
* $re:
|
|
||||||
* type: string
|
|
||||||
* title: $re
|
|
||||||
* description: Apply a regex filter. Useful for strings only.
|
|
||||||
* $ilike:
|
|
||||||
* type: string
|
|
||||||
* title: $ilike
|
|
||||||
* description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
* $fulltext:
|
|
||||||
* type: string
|
|
||||||
* title: $fulltext
|
|
||||||
* description: Filter to apply on full-text properties.
|
|
||||||
* $overlap:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $overlap
|
|
||||||
* description: The value to match.
|
|
||||||
* $contains:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contains
|
|
||||||
* description: The values to match.
|
|
||||||
* $contained:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contained
|
|
||||||
* description: The values to match.
|
|
||||||
* $exists:
|
|
||||||
* type: boolean
|
|
||||||
* title: $exists
|
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by values not matching those in this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $not
|
|
||||||
* description: The values to not match.
|
|
||||||
* $gt:
|
|
||||||
* type: string
|
|
||||||
* title: $gt
|
|
||||||
* description: Filter by values greater than this parameter. Useful for numbers and dates only.
|
|
||||||
* $gte:
|
|
||||||
* type: string
|
|
||||||
* title: $gte
|
|
||||||
* description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $lt:
|
|
||||||
* type: string
|
|
||||||
* title: $lt
|
|
||||||
* description: Filter by values less than this parameter. Useful for numbers and dates only.
|
|
||||||
* $lte:
|
|
||||||
* type: string
|
|
||||||
* title: $lte
|
|
||||||
* description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $like:
|
|
||||||
* type: string
|
|
||||||
* title: $like
|
|
||||||
* description: Apply a `like` filter. Useful for strings only.
|
|
||||||
* $re:
|
|
||||||
* type: string
|
|
||||||
* title: $re
|
|
||||||
* description: Apply a regex filter. Useful for strings only.
|
|
||||||
* $ilike:
|
|
||||||
* type: string
|
|
||||||
* title: $ilike
|
|
||||||
* description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
* $fulltext:
|
|
||||||
* type: string
|
|
||||||
* title: $fulltext
|
|
||||||
* description: Filter to apply on full-text properties.
|
|
||||||
* $overlap:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $overlap
|
|
||||||
* description: The values to match.
|
|
||||||
* $contains:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contains
|
|
||||||
* description: The values to match.
|
|
||||||
* $contained:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contained
|
|
||||||
* description: The values to match.
|
|
||||||
* $exists:
|
|
||||||
* type: boolean
|
|
||||||
* title: $exists
|
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
* - name: $and
|
* - name: $and
|
||||||
* in: query
|
* in: query
|
||||||
* required: false
|
* required: false
|
||||||
|
|||||||
@@ -633,237 +633,6 @@
|
|||||||
* type: boolean
|
* type: boolean
|
||||||
* title: $exists
|
* title: $exists
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
* description: Filter by whether a value for this parameter exists (not `null`).
|
||||||
* - name: deleted_at
|
|
||||||
* in: query
|
|
||||||
* description: Filter by the product's date date.
|
|
||||||
* required: false
|
|
||||||
* schema:
|
|
||||||
* type: object
|
|
||||||
* description: Filter by the product's date date.
|
|
||||||
* properties:
|
|
||||||
* $and:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* $or:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* $eq:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by multiple exact matches.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: An exact match.
|
|
||||||
* $ne:
|
|
||||||
* type: string
|
|
||||||
* title: $ne
|
|
||||||
* description: Filter by values not equal to this parameter.
|
|
||||||
* $in:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $in
|
|
||||||
* description: The value to match.
|
|
||||||
* $nin:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $nin
|
|
||||||
* description: The value not to match.
|
|
||||||
* $not:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching this parameter.
|
|
||||||
* - type: object
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* properties:
|
|
||||||
* $and:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $and
|
|
||||||
* $or:
|
|
||||||
* type: array
|
|
||||||
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
|
|
||||||
* items:
|
|
||||||
* type: object
|
|
||||||
* title: $or
|
|
||||||
* $eq:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: Filter by an exact match.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by multiple exact matches.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $eq
|
|
||||||
* description: The value to match.
|
|
||||||
* $ne:
|
|
||||||
* type: string
|
|
||||||
* title: $ne
|
|
||||||
* description: Filter by values not matching this parameter.
|
|
||||||
* $in:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $in
|
|
||||||
* description: The value to match.
|
|
||||||
* $nin:
|
|
||||||
* type: array
|
|
||||||
* description: Filter by values not in this array.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $nin
|
|
||||||
* description: The value to not match
|
|
||||||
* $not:
|
|
||||||
* oneOf:
|
|
||||||
* - type: string
|
|
||||||
* title: $not
|
|
||||||
* description: Filter by values not matching this parameter
|
|
||||||
* - type: object
|
|
||||||
* description: Filter by values not matching the conditions in this parameter.
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by values not matching the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $not
|
|
||||||
* description: The values to not match.
|
|
||||||
* $gt:
|
|
||||||
* type: string
|
|
||||||
* title: $gt
|
|
||||||
* description: Filter by values greater than this parameter. Useful for numbers and dates only.
|
|
||||||
* $gte:
|
|
||||||
* type: string
|
|
||||||
* title: $gte
|
|
||||||
* description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $lt:
|
|
||||||
* type: string
|
|
||||||
* title: $lt
|
|
||||||
* description: Filter by values less than this parameter. Useful for numbers and dates only.
|
|
||||||
* $lte:
|
|
||||||
* type: string
|
|
||||||
* title: $lte
|
|
||||||
* description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $like:
|
|
||||||
* type: string
|
|
||||||
* title: $like
|
|
||||||
* description: Apply a `like` filter. Useful for strings only.
|
|
||||||
* $re:
|
|
||||||
* type: string
|
|
||||||
* title: $re
|
|
||||||
* description: Apply a regex filter. Useful for strings only.
|
|
||||||
* $ilike:
|
|
||||||
* type: string
|
|
||||||
* title: $ilike
|
|
||||||
* description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
* $fulltext:
|
|
||||||
* type: string
|
|
||||||
* title: $fulltext
|
|
||||||
* description: Filter to apply on full-text properties.
|
|
||||||
* $overlap:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $overlap
|
|
||||||
* description: The value to match.
|
|
||||||
* $contains:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contains
|
|
||||||
* description: The values to match.
|
|
||||||
* $contained:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contained
|
|
||||||
* description: The values to match.
|
|
||||||
* $exists:
|
|
||||||
* type: boolean
|
|
||||||
* title: $exists
|
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
* - type: array
|
|
||||||
* description: Filter by values not matching those in this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $not
|
|
||||||
* description: The values to not match.
|
|
||||||
* $gt:
|
|
||||||
* type: string
|
|
||||||
* title: $gt
|
|
||||||
* description: Filter by values greater than this parameter. Useful for numbers and dates only.
|
|
||||||
* $gte:
|
|
||||||
* type: string
|
|
||||||
* title: $gte
|
|
||||||
* description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $lt:
|
|
||||||
* type: string
|
|
||||||
* title: $lt
|
|
||||||
* description: Filter by values less than this parameter. Useful for numbers and dates only.
|
|
||||||
* $lte:
|
|
||||||
* type: string
|
|
||||||
* title: $lte
|
|
||||||
* description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
|
|
||||||
* $like:
|
|
||||||
* type: string
|
|
||||||
* title: $like
|
|
||||||
* description: Apply a `like` filter. Useful for strings only.
|
|
||||||
* $re:
|
|
||||||
* type: string
|
|
||||||
* title: $re
|
|
||||||
* description: Apply a regex filter. Useful for strings only.
|
|
||||||
* $ilike:
|
|
||||||
* type: string
|
|
||||||
* title: $ilike
|
|
||||||
* description: Apply a case-insensitive `like` filter. Useful for strings only.
|
|
||||||
* $fulltext:
|
|
||||||
* type: string
|
|
||||||
* title: $fulltext
|
|
||||||
* description: Filter to apply on full-text properties.
|
|
||||||
* $overlap:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that have overlapping values with this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $overlap
|
|
||||||
* description: The values to match.
|
|
||||||
* $contains:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain some of the values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contains
|
|
||||||
* description: The values to match.
|
|
||||||
* $contained:
|
|
||||||
* type: array
|
|
||||||
* description: Filter arrays that contain all values of this parameter.
|
|
||||||
* items:
|
|
||||||
* type: string
|
|
||||||
* title: $contained
|
|
||||||
* description: The values to match.
|
|
||||||
* $exists:
|
|
||||||
* type: boolean
|
|
||||||
* title: $exists
|
|
||||||
* description: Filter by whether a value for this parameter exists (not `null`).
|
|
||||||
* - name: region_id
|
* - name: region_id
|
||||||
* in: query
|
* in: query
|
||||||
* description: The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.
|
* description: The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.
|
||||||
|
|||||||
@@ -79,6 +79,14 @@
|
|||||||
* items:
|
* items:
|
||||||
* type: object
|
* type: object
|
||||||
* title: $or
|
* title: $or
|
||||||
|
* - name: is_return
|
||||||
|
* in: query
|
||||||
|
* description: Whether the shipping option can be used for returns.
|
||||||
|
* required: false
|
||||||
|
* schema:
|
||||||
|
* type: boolean
|
||||||
|
* title: is_return
|
||||||
|
* description: Whether the shipping option can be used for returns.
|
||||||
* x-codeSamples:
|
* x-codeSamples:
|
||||||
* - lang: Shell
|
* - lang: Shell
|
||||||
* label: cURL
|
* label: cURL
|
||||||
|
|||||||
+1
-19
@@ -32,25 +32,7 @@
|
|||||||
* content:
|
* content:
|
||||||
* application/json:
|
* application/json:
|
||||||
* schema:
|
* schema:
|
||||||
* type: object
|
* $ref: "#/components/schemas/StoreInitializePaymentSession"
|
||||||
* description: The payment session's details.
|
|
||||||
* required:
|
|
||||||
* - provider_id
|
|
||||||
* properties:
|
|
||||||
* provider_id:
|
|
||||||
* type: string
|
|
||||||
* title: provider_id
|
|
||||||
* description: The ID of the payment provider the customer chose.
|
|
||||||
* example: pp_stripe_stripe
|
|
||||||
* context:
|
|
||||||
* type: object
|
|
||||||
* description: The payment's context, such as the customer or address details. If the customer is logged-in, the customer `id` is set in the context under a `customer.id` property.
|
|
||||||
* data:
|
|
||||||
* type: object
|
|
||||||
* description: Any data necessary for the payment provider to process the payment.
|
|
||||||
* externalDocs:
|
|
||||||
* url: https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
|
||||||
* description: Learn more about the payment session's data property
|
|
||||||
* x-codeSamples:
|
* x-codeSamples:
|
||||||
* - lang: Shell
|
* - lang: Shell
|
||||||
* label: cURL
|
* label: cURL
|
||||||
|
|||||||
@@ -12,8 +12,10 @@
|
|||||||
* - last_used_at
|
* - last_used_at
|
||||||
* - created_by
|
* - created_by
|
||||||
* - created_at
|
* - created_at
|
||||||
|
* - updated_at
|
||||||
* - revoked_by
|
* - revoked_by
|
||||||
* - revoked_at
|
* - revoked_at
|
||||||
|
* - deleted_at
|
||||||
* properties:
|
* properties:
|
||||||
* id:
|
* id:
|
||||||
* type: string
|
* type: string
|
||||||
@@ -61,6 +63,16 @@
|
|||||||
* title: revoked_at
|
* title: revoked_at
|
||||||
* description: The date and time the API key was revoked. The API key is considered revoked when this property is set.
|
* description: The date and time the API key was revoked. The API key is considered revoked when this property is set.
|
||||||
* format: date-time
|
* format: date-time
|
||||||
|
* updated_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: updated_at
|
||||||
|
* description: The date the API key was updated.
|
||||||
|
* deleted_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: deleted_at
|
||||||
|
* description: The date the API key was deleted.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -12,6 +12,9 @@
|
|||||||
* - starts_at
|
* - starts_at
|
||||||
* - ends_at
|
* - ends_at
|
||||||
* - budget
|
* - budget
|
||||||
|
* - created_at
|
||||||
|
* - updated_at
|
||||||
|
* - deleted_at
|
||||||
* properties:
|
* properties:
|
||||||
* id:
|
* id:
|
||||||
* type: string
|
* type: string
|
||||||
@@ -77,6 +80,21 @@
|
|||||||
* description: >
|
* description: >
|
||||||
* How much of the budget has been used. If the limit is `spend`, this property holds the total amount discounted so far. If the limit is `usage`, it holds the number of times the campaign's
|
* How much of the budget has been used. If the limit is `spend`, this property holds the total amount discounted so far. If the limit is `usage`, it holds the number of times the campaign's
|
||||||
* promotions have been used so far.
|
* promotions have been used so far.
|
||||||
|
* created_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: created_at
|
||||||
|
* description: The date the campaign was created.
|
||||||
|
* updated_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: updated_at
|
||||||
|
* description: The date the campaign was updated.
|
||||||
|
* deleted_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: deleted_at
|
||||||
|
* description: The date the campaign was deleted.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
* type: array
|
* type: array
|
||||||
* description: The collection's products.
|
* description: The collection's products.
|
||||||
* items:
|
* items:
|
||||||
* $ref: "#/components/schemas/AdminProduct"
|
* $ref: "#/components/schemas/BaseProduct"
|
||||||
* metadata:
|
* metadata:
|
||||||
* type: object
|
* type: object
|
||||||
* description: The collection's metadata, used to store custom key-value pairs.
|
* description: The collection's metadata, used to store custom key-value pairs.
|
||||||
|
|||||||
@@ -148,6 +148,10 @@
|
|||||||
* metadata:
|
* metadata:
|
||||||
* type: object
|
* type: object
|
||||||
* description: The product's metadata, used to store custom key-value pairs.
|
* description: The product's metadata, used to store custom key-value pairs.
|
||||||
|
* external_id:
|
||||||
|
* type: string
|
||||||
|
* title: external_id
|
||||||
|
* description: The ID of the product in an external or third-party system.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -5,6 +5,9 @@
|
|||||||
* x-schemaName: AdminPromotion
|
* x-schemaName: AdminPromotion
|
||||||
* required:
|
* required:
|
||||||
* - id
|
* - id
|
||||||
|
* - created_at
|
||||||
|
* - updated_at
|
||||||
|
* - deleted_at
|
||||||
* properties:
|
* properties:
|
||||||
* application_method:
|
* application_method:
|
||||||
* $ref: "#/components/schemas/AdminApplicationMethod"
|
* $ref: "#/components/schemas/AdminApplicationMethod"
|
||||||
@@ -38,6 +41,21 @@
|
|||||||
* description: The ID of the campaign this promotion belongs to.
|
* description: The ID of the campaign this promotion belongs to.
|
||||||
* campaign:
|
* campaign:
|
||||||
* $ref: "#/components/schemas/AdminCampaign"
|
* $ref: "#/components/schemas/AdminCampaign"
|
||||||
|
* created_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: created_at
|
||||||
|
* description: The date the promotion was created.
|
||||||
|
* updated_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: updated_at
|
||||||
|
* description: The date the promotion was updated.
|
||||||
|
* deleted_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: deleted_at
|
||||||
|
* description: The date the promotion was deleted.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -147,6 +147,10 @@
|
|||||||
* metadata:
|
* metadata:
|
||||||
* type: object
|
* type: object
|
||||||
* description: The product's metadata, can hold custom key-value pairs.
|
* description: The product's metadata, can hold custom key-value pairs.
|
||||||
|
* external_id:
|
||||||
|
* type: string
|
||||||
|
* title: external_id
|
||||||
|
* description: The ID of the product in an external or third-party system.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @schema BaseProduct
|
* @schema BaseProduct
|
||||||
* type: object
|
* type: object
|
||||||
* description: The parent's product.
|
* description: The product's details.
|
||||||
* x-schemaName: BaseProduct
|
* x-schemaName: BaseProduct
|
||||||
* required:
|
* required:
|
||||||
* - id
|
* - id
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
* is_giftcard:
|
* is_giftcard:
|
||||||
* type: boolean
|
* type: boolean
|
||||||
* title: is_giftcard
|
* title: is_giftcard
|
||||||
* description: The product's is giftcard.
|
* description: Whether the product is a gift card.
|
||||||
* status:
|
* status:
|
||||||
* type: string
|
* type: string
|
||||||
* description: The product's status.
|
* description: The product's status.
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
* thumbnail:
|
* thumbnail:
|
||||||
* type: string
|
* type: string
|
||||||
* title: thumbnail
|
* title: thumbnail
|
||||||
* description: The product's thumbnail.
|
* description: The product's thumbnail URL.
|
||||||
* width:
|
* width:
|
||||||
* type: number
|
* type: number
|
||||||
* title: width
|
* title: width
|
||||||
@@ -104,18 +104,18 @@
|
|||||||
* collection_id:
|
* collection_id:
|
||||||
* type: string
|
* type: string
|
||||||
* title: collection_id
|
* title: collection_id
|
||||||
* description: The product's collection id.
|
* description: The ID of the collection the product belongs to.
|
||||||
* categories:
|
* categories:
|
||||||
* type: array
|
* type: array
|
||||||
* description: The product's categories.
|
* description: The product's categories.
|
||||||
* items:
|
* items:
|
||||||
* $ref: "#/components/schemas/BaseProductCategory"
|
* $ref: "#/components/schemas/BaseProductCategory"
|
||||||
* type:
|
* type:
|
||||||
* $ref: "#/components/schemas/BaseProduct"
|
* $ref: "#/components/schemas/BaseProductType"
|
||||||
* type_id:
|
* type_id:
|
||||||
* type: string
|
* type: string
|
||||||
* title: type_id
|
* title: type_id
|
||||||
* description: The product's type id.
|
* description: The ID of the type the product belongs to.
|
||||||
* tags:
|
* tags:
|
||||||
* type: array
|
* type: array
|
||||||
* description: The product's tags.
|
* description: The product's tags.
|
||||||
@@ -139,29 +139,29 @@
|
|||||||
* discountable:
|
* discountable:
|
||||||
* type: boolean
|
* type: boolean
|
||||||
* title: discountable
|
* title: discountable
|
||||||
* description: The product's discountable.
|
* description: Whether the product is discountable.
|
||||||
* external_id:
|
* external_id:
|
||||||
* type: string
|
* type: string
|
||||||
* title: external_id
|
* title: external_id
|
||||||
* description: The product's external id.
|
* description: The ID of the product in an external or third-party system.
|
||||||
* created_at:
|
* created_at:
|
||||||
* type: string
|
* type: string
|
||||||
* format: date-time
|
* format: date-time
|
||||||
* title: created_at
|
* title: created_at
|
||||||
* description: The product's created at.
|
* description: The date the product was created.
|
||||||
* updated_at:
|
* updated_at:
|
||||||
* type: string
|
* type: string
|
||||||
* format: date-time
|
* format: date-time
|
||||||
* title: updated_at
|
* title: updated_at
|
||||||
* description: The product's updated at.
|
* description: The date the product was updated.
|
||||||
* deleted_at:
|
* deleted_at:
|
||||||
* type: string
|
* type: string
|
||||||
* format: date-time
|
* format: date-time
|
||||||
* title: deleted_at
|
* title: deleted_at
|
||||||
* description: The product's deleted at.
|
* description: The date the product was deleted.
|
||||||
* metadata:
|
* metadata:
|
||||||
* type: object
|
* type: object
|
||||||
* description: The product's metadata.
|
* description: The product's metadata, can hold custom key-value pairs.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
* @schema BaseProductType
|
||||||
|
* type: object
|
||||||
|
* description: The product type's details.
|
||||||
|
* x-schemaName: BaseProductType
|
||||||
|
* required:
|
||||||
|
* - id
|
||||||
|
* - value
|
||||||
|
* - created_at
|
||||||
|
* - updated_at
|
||||||
|
* properties:
|
||||||
|
* id:
|
||||||
|
* type: string
|
||||||
|
* title: id
|
||||||
|
* description: The type's ID.
|
||||||
|
* value:
|
||||||
|
* type: string
|
||||||
|
* title: value
|
||||||
|
* description: The type's value.
|
||||||
|
* created_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: created_at
|
||||||
|
* description: The date the type was created.
|
||||||
|
* updated_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: updated_at
|
||||||
|
* description: The date the type was updated.
|
||||||
|
* deleted_at:
|
||||||
|
* type: string
|
||||||
|
* format: date-time
|
||||||
|
* title: deleted_at
|
||||||
|
* description: The date the type was deleted.
|
||||||
|
* metadata:
|
||||||
|
* type: object
|
||||||
|
* description: The type's metadata, can hold custom key-value pairs.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
/**
|
||||||
|
* @schema StoreCartShippingOption
|
||||||
|
* type: object
|
||||||
|
* description: The shipping option's details.
|
||||||
|
* x-schemaName: StoreCartShippingOption
|
||||||
|
* required:
|
||||||
|
* - id
|
||||||
|
* - name
|
||||||
|
* - price_type
|
||||||
|
* - service_zone_id
|
||||||
|
* - shipping_profile_id
|
||||||
|
* - provider_id
|
||||||
|
* - data
|
||||||
|
* - type
|
||||||
|
* - provider
|
||||||
|
* - amount
|
||||||
|
* properties:
|
||||||
|
* id:
|
||||||
|
* type: string
|
||||||
|
* title: id
|
||||||
|
* description: The shipping option's ID.
|
||||||
|
* name:
|
||||||
|
* type: string
|
||||||
|
* title: name
|
||||||
|
* description: The shipping option's name.
|
||||||
|
* price_type:
|
||||||
|
* type: string
|
||||||
|
* description: The shipping option's price type. If it's `flat`, the price is fixed and is set in the `prices` property. If it's `calculated`, the price is calculated on checkout by the associated
|
||||||
|
* fulfillment provider.
|
||||||
|
* enum:
|
||||||
|
* - flat
|
||||||
|
* - calculated
|
||||||
|
* service_zone_id:
|
||||||
|
* type: string
|
||||||
|
* title: service_zone_id
|
||||||
|
* description: The ID of the service zone the shipping option belongs to.
|
||||||
|
* provider_id:
|
||||||
|
* type: string
|
||||||
|
* title: provider_id
|
||||||
|
* description: The ID of the fulfillment provider handling this option.
|
||||||
|
* provider:
|
||||||
|
* type: object
|
||||||
|
* description: The fulfillment provider's details.
|
||||||
|
* required:
|
||||||
|
* - id
|
||||||
|
* - is_enabled
|
||||||
|
* properties:
|
||||||
|
* id:
|
||||||
|
* type: string
|
||||||
|
* title: id
|
||||||
|
* description: The provider's ID.
|
||||||
|
* is_enabled:
|
||||||
|
* type: boolean
|
||||||
|
* title: is_enabled
|
||||||
|
* description: Whether the provider is enabled.
|
||||||
|
* type:
|
||||||
|
* type: object
|
||||||
|
* description: The shipping option type's details.
|
||||||
|
* required:
|
||||||
|
* - id
|
||||||
|
* - label
|
||||||
|
* - description
|
||||||
|
* - code
|
||||||
|
* properties:
|
||||||
|
* id:
|
||||||
|
* type: string
|
||||||
|
* title: id
|
||||||
|
* description: The type's ID.
|
||||||
|
* label:
|
||||||
|
* type: string
|
||||||
|
* title: label
|
||||||
|
* description: The type's label.
|
||||||
|
* description:
|
||||||
|
* type: string
|
||||||
|
* title: description
|
||||||
|
* description: The type's description.
|
||||||
|
* code:
|
||||||
|
* type: string
|
||||||
|
* title: code
|
||||||
|
* description: The type's code.
|
||||||
|
* shipping_profile_id:
|
||||||
|
* type: string
|
||||||
|
* title: shipping_profile_id
|
||||||
|
* description: The ID of the associated shipping profile.
|
||||||
|
* amount:
|
||||||
|
* type: number
|
||||||
|
* title: amount
|
||||||
|
* description: The shipping option's amount.
|
||||||
|
* data:
|
||||||
|
* type: object
|
||||||
|
* description: The shipping option's data, useful for the provider handling fulfillment.
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/v2/resources/commerce-modules/fulfillment/shipping-option#data-property
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* @schema StoreInitializePaymentSession
|
||||||
|
* type: object
|
||||||
|
* description: The payment session's details.
|
||||||
|
* required:
|
||||||
|
* - provider_id
|
||||||
|
* properties:
|
||||||
|
* provider_id:
|
||||||
|
* type: string
|
||||||
|
* title: provider_id
|
||||||
|
* description: The ID of the payment provider the customer chose.
|
||||||
|
* example: pp_stripe_stripe
|
||||||
|
* context:
|
||||||
|
* type: object
|
||||||
|
* description: The payment's context, such as the customer or address details. If the customer is logged-in, the customer `id` is set in the context under a `customer.id` property.
|
||||||
|
* data:
|
||||||
|
* type: object
|
||||||
|
* description: Any data necessary for the payment provider to process the payment.
|
||||||
|
* externalDocs:
|
||||||
|
* url: https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
||||||
|
* description: Learn more about the payment session's data property
|
||||||
|
* x-schemaName: StoreInitializePaymentSession
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
* type: array
|
* type: array
|
||||||
* description: The shipping option's shipping options.
|
* description: The shipping option's shipping options.
|
||||||
* items:
|
* items:
|
||||||
* $ref: "#/components/schemas/StoreShippingOption"
|
* $ref: "#/components/schemas/StoreCartShippingOption"
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -357,7 +357,7 @@ class OasSchemaHelper {
|
|||||||
.replace("DTO", "")
|
.replace("DTO", "")
|
||||||
.replace(this.schemaRefPrefix, "")
|
.replace(this.schemaRefPrefix, "")
|
||||||
.replace(
|
.replace(
|
||||||
/(?<!(AdminProduct|CreateProduct|StoreShippingOption|AdminShippingOption|CreateShippingOption))Type$/,
|
/(?<!(AdminProduct|CreateProduct|StoreShippingOption|AdminShippingOption|CreateShippingOption|BaseProduct))Type$/,
|
||||||
""
|
""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user