@usethrottle/cart
    Preparing search index...

    Interface AddLineItemInput

    interface AddLineItemInput {
        description?: string;
        discountAmount?: number;
        imageUrl?: string;
        metadata?: Record<string, unknown>;
        name: string;
        quantity?: number;
        recurring?: LineRecurringInput;
        referenceId?: string;
        requiresShipping?: boolean;
        taxAmount?: number;
        type?:
            | "custom"
            | "product"
            | "subscription"
            | "service"
            | "ticket"
            | "donation";
        unitPrice: number;
    }
    Index
    description?: string
    discountAmount?: number
    imageUrl?: string
    metadata?: Record<string, unknown>
    name: string
    quantity?: number
    recurring?: LineRecurringInput

    Makes this line a subscription: type is forced to subscription, and it never ships (requiresShipping: true is rejected with it). A free-trial line is stored with unitPrice 0 and your price on recurring.amount. Terms cannot change later: remove the line and add it again.

    referenceId?: string
    requiresShipping?: boolean

    Whether this item is physically shippable. For external/ad-hoc catalogs with no Throttle product behind the item. Omit to infer from type (everything except service ships); set explicitly to force-include or force-exclude the item from calculated shipping.

    taxAmount?: number
    type?: "custom" | "product" | "subscription" | "service" | "ticket" | "donation"
    unitPrice: number