Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
type: object
|
|
required:
|
|
- operator
|
|
properties:
|
|
operator:
|
|
description: >-
|
|
Operator of the condition. `in` indicates that discountable resources are
|
|
within the specified resources. `not_in` indicates that discountable
|
|
resources are everything but the specified resources.
|
|
type: string
|
|
enum:
|
|
- in
|
|
- not_in
|
|
products:
|
|
type: array
|
|
description: list of product IDs if the condition's type is `products`.
|
|
items:
|
|
type: string
|
|
product_types:
|
|
type: array
|
|
description: list of product type IDs if the condition's type is `product_types`.
|
|
items:
|
|
type: string
|
|
product_collections:
|
|
type: array
|
|
description: >-
|
|
list of product collection IDs if the condition's type is
|
|
`product_collections`.
|
|
items:
|
|
type: string
|
|
product_tags:
|
|
type: array
|
|
description: list of product tag IDs if the condition's type is `product_tags`.
|
|
items:
|
|
type: string
|
|
customer_groups:
|
|
type: array
|
|
description: list of customer group IDs if the condition's type is `customer_groups`.
|
|
items:
|
|
type: string
|