Represents an order discount code.

interface DiscountCode {
    amount: number;
    code: string;
}

Properties

Properties

amount: number

The discounted amount.

code: string

The discount code string.

Typically this is some coupon or promo code string entered by the user to apply the discount to the order.