Skip to main content

OrderDiscount

Contains all details related to the applied discount to the order.

type OrderDiscount implements Node {
id: ID!
type: OrderDiscountType!
name: String
translatedName: String
valueType: DiscountValueTypeEnum!
value: PositiveDecimal!
amount: Money!
}

Fields

OrderDiscount.id ● ID! non-null scalar

OrderDiscount.type ● OrderDiscountType! non-null enum

OrderDiscount.name ● String scalar

OrderDiscount.translatedName ● String scalar

OrderDiscount.valueType ● DiscountValueTypeEnum! non-null enum

Type of the discount: fixed or percent

OrderDiscount.value ● PositiveDecimal! non-null scalar

Value of the discount. Can store fixed value or percent value

OrderDiscount.amount ● Money! non-null object

Returns amount of discount.

Interfaces

Node interface

An object with an ID

Member of

Order object


Was this page helpful?