@usethrottle/cart
    Preparing search index...

    Interface AddLineItemInput

    interface AddLineItemInput {
        deliveryMethod?:
            | "custom"
            | "service"
            | "shipment"
            | "digital"
            | "access_grant"
            | "in_person"
            | "none";
        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
    deliveryMethod?:
        | "custom"
        | "service"
        | "shipment"
        | "digital"
        | "access_grant"
        | "in_person"
        | "none"

    What the item needs before it counts as delivered. Omit to infer it from type and metadata. digital and access_grant deliver themselves on payment; none means nothing to deliver.

    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. It ships only with deliveryMethod: 'shipment' (a physical subscription: a box every cycle, no shipping charge); 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