AppliedCoupon
interface AppliedCoupon {
code: string;
discount: number;
definition: DiscountDefinition;
}Source: global.ts:1807
A discount code the shopper has successfully applied — its code, the computed discount amount, and the DiscountDefinition it matched.
Properties
code: string
The applied code.
discount: number
The calculated discount amount for the current cart.
definition: DiscountDefinition
The rule this code matched.