ProductDiscountUpdateInput
InputUpdates an existing product discount.
#
Fields
- ProductDiscountAbsoluteInput
absoluteInput The absolute discount input specifying fixed discount amounts in different currencies to update.
- ID!
id The unique identifier of the product discount to update.
- String
name New name for the product discount, if it needs to be changed.
- String
predicate Modified predicate for 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 The new priority of the discount. Lower values indicate higher priority, meaning discounts with lower priority values are applied first.
- ProductDiscountRelativeInput
relativeInput The relative discount input specifying a percentage-based discount factor to update.
- DateTime
validFrom Date and time from which the discount is valid.
- DateTime
validUntil Date and time until which the discount is valid.