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

1input OrderLineDiscountSetInput {
2
3# Exactly one input field should be provided
4orderLine: 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
9discountValue: DiscountValueInput!
10
11# A field that will be taken to apply the discount in `discountValue`
12discountFrom: DiscountFromType!
13}