Mayson Monorepo Documentation
    Preparing search index...

    A line item.

    interface LineItem {
        id: string;
        object: "item";
        adjustable_quantity: Stripe.LineItem.AdjustableQuantity;
        amount_discount: number;
        amount_subtotal: number;
        amount_tax: number;
        amount_total: number;
        currency: string;
        description: string;
        discounts?: Stripe.LineItem.Discount[];
        metadata: Metadata;
        price: Stripe.Price;
        quantity: number;
        taxes?: Stripe.LineItem.Tax[];
    }
    Index

    Properties

    id: string

    Unique identifier for the object.

    object: "item"

    String representing the object's type. Objects of the same type share the same value.

    adjustable_quantity: Stripe.LineItem.AdjustableQuantity
    amount_discount: number

    Total discount amount applied. If no discounts were applied, defaults to 0.

    amount_subtotal: number

    Total before any discounts or taxes are applied.

    amount_tax: number

    Total tax amount applied. If no tax was applied, defaults to 0.

    amount_total: number

    Total after discounts and taxes.

    currency: string

    Three-letter ISO currency code, in lowercase. Must be a supported currency.

    description: string

    An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.

    discounts?: Stripe.LineItem.Discount[]

    The discounts applied to the line item.

    metadata: Metadata

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

    price: Stripe.Price

    The price used to generate the line item.

    quantity: number

    The quantity of products being purchased.

    taxes?: Stripe.LineItem.Tax[]

    The taxes applied to the line item.