Mayson Monorepo Documentation
    Preparing search index...
    interface LineItem {
        discount_amount?: number;
        payment_method_options?: Stripe.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions;
        product_code?: string;
        product_name: string;
        quantity: number;
        tax?: Stripe.PaymentIntentUpdateParams.AmountDetails.LineItem.Tax;
        unit_cost: number;
        unit_of_measure?: string;
    }
    Index

    Properties

    discount_amount?: number

    The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.

    This field is mutually exclusive with the amount_details[discount_amount] field.

    Payment method-specific information for line items.

    product_code?: string

    The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.

    product_name: string

    The product name of the line item. Required for L3 rates. At most 1024 characters long.

    For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.

    quantity: number

    The quantity of items. Required for L3 rates. An integer greater than 0.

    Contains information about the tax on the item.

    unit_cost: number

    The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.

    unit_of_measure?: string

    A unit of measure for the line item, such as gallons, feet, meters, etc.