OrderLineDiscount Object
Represent the discount applied to order line.
type OrderLineDiscount {
id: ID!
type: OrderDiscountType!
name: String
translatedName: String
valueType: DiscountValueTypeEnum!
value: PositiveDecimal!
reason: String
total: Money!
unit: Money!
}
Fields
id
id · ID!
The ID of discount applied.
type
type · OrderDiscountType!
The type of applied discount: Sale, Voucher or Manual.
name
name · String
The name of applied discount.
translatedName
translatedName · String
Translated name of the applied discount.
valueType
valueType · DiscountValueTypeEnum!
Type of the discount: fixed or percent
value
value · PositiveDecimal!
Value of the discount. Can store fixed value or percent value
reason
reason · String
Explanation for the applied discount.
total
total · Money!
The discount amount applied to the line item.
unit
unit · Money!
The discount amount applied to the single line unit.
Used by
Schema: Saleor 3.23.43. Download SDL.