@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface OptionProfileCharge

    A charge an option adds: a service product, its quantity rule and its price ladder.

    interface OptionProfileCharge {
        classTiers?: Record<string, OptionChargeTier[] | null> | null;
        key: string;
        label?: string | null;
        priceByClass?: boolean;
        quantity: { mode: "perUnit" | "fixed"; value: number };
        sku: string;
        tiers: OptionChargeTier[] | null;
    }
    Index
    classTiers?: Record<string, OptionChargeTier[] | null> | null
    key: string
    label?: string | null
    priceByClass?: boolean

    Priced per matrix group (a cushion in the sofa's fabric): classTiers[groupCode], else tiers.

    quantity: { mode: "perUnit" | "fixed"; value: number }

    perUnit: value × the group's goods quantity. fixed: the value once.

    sku: string
    tiers: OptionChargeTier[] | null

    The ladder without a class (and the fallback when a class has no row).