CartDiscountCreateInput
InputRepresents the input for creating a new cart discount.
Fields
- CartDiscountAbsoluteValueInput
absoluteValue The absolute value to use for this cart discount create input.
- [ID!]
discountCodes The discount codes to use for this cart discount create input.
- String
displayName The display name to use for this cart discount create input.
- LineItemTargetInput
lineItemTarget The line item target to use for this cart discount create input.
- String!
name The name to use for this cart discount create input.
- String!
predicate The predicate to use for this cart discount create 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 create input.
- CartDiscountRelativeValueInput
relativeValue The relative value to use for this cart discount create input.
- Boolean
requiresDiscountCode The requires discount code to use for this cart discount create input.
- CartDiscountTargetType!
targetType The target type to use for this cart discount create 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 create input.
- DateTime
validUntil The valid until to use for this cart discount create input.