@usethrottle/discounts
    Preparing search index...

    Interface Discount

    interface Discount {
        amounts?: Partial<
            Record<CurrencyCode, { minOrder?: number; value?: number }>,
        >;
        code: string | null;
        conditions: Record<string, unknown>;
        createdAt: string;
        customerGroupIds?: string[];
        customerGroupLimited?: boolean;
        endsAt?: string | null;
        id: string;
        isActive: boolean;
        maxRedemptionsPerCustomer?: number | null;
        metadata: Record<string, unknown>;
        name: string;
        startsAt?: string | null;
        type: DiscountType;
        usageCount: number;
        usageLimit?: number | null;
        value: number;
    }
    Index
    amounts?: Partial<Record<CurrencyCode, { minOrder?: number; value?: number }>>

    Per-currency amounts; the main-currency entry mirrors value.

    code: string | null
    conditions: Record<string, unknown>
    createdAt: string
    customerGroupIds?: string[]

    The groups whose members may use the code, sorted. Only for keys holding customer_groups:read.

    customerGroupLimited?: boolean

    True when only members of some customer groups may use the code.

    endsAt?: string | null
    id: string
    isActive: boolean
    maxRedemptionsPerCustomer?: number | null
    metadata: Record<string, unknown>
    name: string
    startsAt?: string | null
    usageCount: number
    usageLimit?: number | null
    value: number