DiscountCondition
Holds rule conditions for when a discount is applicable
Properties
id
stringRequiredThe discount condition's ID
created_at
DateRequiredThe date with timezone at which the resource was created.
updated_at
DateRequiredThe date with timezone at which the resource was updated.
deleted_at
null | DateRequiredThe date with timezone at which the resource was deleted.
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.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.discount_rule_id
stringRequiredThe ID of the discount rule associated with the condition
The details of the discount rule associated with the condition.
products associated with this condition if type
is products
.
type
is products
.Product types associated with this condition if type
is product\_types
.
type
is product\_types
.Product tags associated with this condition if type
is product\_tags
.
type
is product\_tags
.Product collections associated with this condition if type
is product\_collections
.
type
is product\_collections
.Customer groups associated with this condition if type
is customer\_groups
.
type
is customer\_groups
.metadata
Record<string, unknown>RequiredAn optional key-value map with additional details
Was this section helpful?