@usethrottle/cart
    Preparing search index...

    Interface AppliedShippingDiscount

    The cart's free-shipping code (the goods code stays appliedDiscount). zoneIds, targets and cap are the code's rules, so a custom checkout can explain them; null means all regions, any option, or free in full.

    interface AppliedShippingDiscount {
        amount: number;
        amountToMinimum?: number;
        cap: number | null;
        code: string;
        discountId: string;
        reason?: "zone" | "shipping_option" | "minimum_order";
        status: AppliedShippingDiscountStatus;
        targets: ShippingTarget[] | null;
        zoneIds: string[] | null;
    }
    Index
    amount: number

    The reduction the cart carries now, in minor units.

    amountToMinimum?: number

    How much more the order needs to reach the minimum, when reason is minimum_order.

    cap: number | null
    code: string
    discountId: string
    reason?: "zone" | "shipping_option" | "minimum_order"

    Why the code does not apply, when status is not_eligible.

    targets: ShippingTarget[] | null
    zoneIds: string[] | null