INPUT_OBJECT
OrderLineDiscountSetInput
Take discountFrom
field and apply discountValue
on it. The result will be set on the line's unitPrice
,
the original price (unitOriginalPrice
) won't be changed.
link GraphQL Schema definition
1 input OrderLineDiscountSetInput { 2 3 # Exactly one input field should be provided 4 OrderLineInput! : 5 6 # A discount value that will be applied to the field chosen in `discountFrom` 7 # 8 # Exactly one input field should be provided 9 DiscountValueInput! : 10 11 # A field that will be taken to apply the discount in `discountValue` 12 DiscountFromType! : 13 }