@usethrottle/discounts
    Preparing search index...

    Interface DiscountPreviewResult

    interface DiscountPreviewResult {
        code: string;
        currency: CurrencyCode;
        discount?: Discount;
        discountTotal: number;
        message: string | null;
        minimum?: any;
        shortfall?: any;
        subtotal: number;
        total: number;
        type?: DiscountType;
        valid: boolean;
        value?: number;
    }
    Index
    code: string
    currency: CurrencyCode
    discount?: Discount
    discountTotal: number
    message: string | null
    minimum?: any

    The code's minimum order total, when the subtotal is under it.

    shortfall?: any

    How much more the subtotal needs to reach the minimum.

    subtotal: number
    total: number
    valid: boolean
    value?: number