DiscountAgreementContext
The customer and order details a discount was validated against.
type DiscountAgreementContext {
customerId: GlobalID
productIds: [GlobalID!]!
productVariantIds: [GlobalID!]!
recur: Boolean!
totalPrice: Money
virginApplication: Boolean
}
Fields
DiscountAgreementContext.customerId ● GlobalID scalar types
The ID of the customer the discount was validated for.
DiscountAgreementContext.productIds ● [GlobalID!]! non-null scalar types
The IDs of the products the discount was validated for.
DiscountAgreementContext.productVariantIds ● [GlobalID!]! non-null scalar types
The IDs of the product variants the discount was validated for.
DiscountAgreementContext.recur ● Boolean! non-null scalar types
Whether the discount must recur on later subscription orders.
DiscountAgreementContext.totalPrice ● Money object types
The order total checked against the discount's minimum spend.
DiscountAgreementContext.virginApplication ● Boolean scalar types
Whether the discount is being added to an existing subscription after checkout.
Member Of
DiscountAgreement object