CartDiscountUpdateInput
InputRepresents the input for creating a new cart discount.
Fields
- CartDiscountAbsoluteValueInput
absoluteValue The absolute value to use for this cart discount update input.
- [ID!]
discountCodes The discount codes to use for this cart discount update input.
- String
displayName The display name to use for this cart discount update input.
- ID!
id The unique identifier of the resource.
- LineItemTargetInput
lineItemTarget The line item target to use for this cart discount update input.
- String
name The name to use for this cart discount update input.
- String
predicate The predicate to use for this cart discount update input.
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 priority to use for this cart discount update input.
- CartDiscountRelativeValueInput
relativeValue The relative value to use for this cart discount update input.
- Boolean
requiresDiscountCode The requires discount code to use for this cart discount update input.
- CartDiscountTargetType
targetType The target type to use for this cart discount update input.
Possible enum valuesLINE_ITEMThe discount will target one or more individual line items.
SHIPPINGTargets the shipping price of the cart.
TOTALTargets the total price of the cart.
- DateTime
validFrom The valid from to use for this cart discount update input.
- DateTime
validUntil The valid until to use for this cart discount update input.