DiscountCondition
Holds rule conditions for when a discount is applicable
Properties
created_at
DateRequiredThe date with timezone at which the resource was created.
Customer groups associated with this condition if type
is customer\_groups
.
type
is customer\_groups
.deleted_at
null | DateRequiredThe date with timezone at which the resource was deleted.
The details of the discount rule associated with the condition.
discount_rule_id
stringRequiredThe ID of the discount rule associated with the condition
id
stringRequiredThe discount condition's ID
metadata
Record<string, unknown>RequiredAn optional key-value map with additional details
The 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.
in
indicates that discountable resources are within the specified resources. not\_in
indicates that discountable resources are everything but the specified resources.Product collections associated with this condition if type
is product\_collections
.
type
is product\_collections
.Product tags associated with this condition if type
is product\_tags
.
type
is product\_tags
.Product types associated with this condition if type
is product\_types
.
type
is product\_types
.products associated with this condition if type
is products
.
type
is products
.The type of the condition. The type affects the available resources associated with the condition. For example, if the type is products
, that means the products
relation will hold the products associated with this condition and other relations will be empty.
products
, that means the products
relation will hold the products associated with this condition and other relations will be empty.updated_at
DateRequiredThe date with timezone at which the resource was updated.
Was this section helpful?