ProductDiscountCreateInput
InputInput type for creating a product discount.
#
Fields
- ProductDiscountAbsoluteInput
absoluteInput The absolute discount input specifying fixed discount amounts in different currencies.
- String!
name The name of the product discount.
- String!
predicate The predicate of the discount, which defines the conditions under which the discount applies.
Thor predicates are boolean expressions. Cart discounts and shipping rules evaluate against cart context; product discounts evaluate against price and product context. Cart predicate language and product predicate language.- Int!
priority Lower values indicate higher priority. Discounts with lower priority values are applied first.
- ProductDiscountRelativeInput
relativeInput The relative discount input specifying a percentage-based discount factor.
- DateTime
validFrom The date and time from which the discount becomes valid. If null, the discount is valid immediately.
- DateTime
validUntil The date and time until which the discount remains valid. If null, the discount has no expiration date.