Files
medusa-store/docs/api/admin/components/schemas/DiscountConditionProductCollection.yaml
2022-12-22 17:09:49 +02:00

35 lines
1.1 KiB
YAML

title: Product Collection Discount Condition
description: Associates a discount condition with a product collection
type: object
required:
- product_collection_id
- condition_id
properties:
product_collection_id:
description: The ID of the Product Collection
type: string
example: pcol_01F0YESBFAZ0DV6V831JXWH0BG
condition_id:
description: The ID of the Discount Condition
type: string
example: discon_01G8X9A7ESKAJXG2H0E6F1MW7A
product_collection:
description: Available if the relation `product_collection` is expanded.
$ref: ./ProductCollection.yaml
discount_condition:
description: Available if the relation `discount_condition` is expanded.
$ref: ./DiscountCondition.yaml
created_at:
type: string
description: The date with timezone at which the resource was created.
format: date-time
updated_at:
type: string
description: The date with timezone at which the resource was updated.
format: date-time
metadata:
type: object
description: An optional key-value map with additional details
example:
car: white