DiscountCondition
Holds rule conditions for when a discount is applicable
Constructors
constructor
**new DiscountCondition**()
Holds rule conditions for when a discount is applicable
Properties
created_atDateRequiredThe date with timezone at which the resource was created.
Customer groups associated with this condition if
type is customer\_groups.deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
The details of the discount rule associated with the condition.
discount_rule_idstringRequiredThe ID of the discount rule associated with the condition
idstringRequiredThe discount condition's ID
metadataRecord<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.Product collections associated with this condition if
type is product\_collections.Product tags associated with this condition if
type is product\_tags.Product types associated with this condition if
type is product\_types.products associated with this condition if
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.updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?