Mayson Monorepo Documentation
    Preparing search index...
    interface LineItem {
        amount: number;
        amount_tax: number;
        metadata?: MetadataParam;
        original_line_item: string;
        quantity?: number;
        reference: string;
    }
    Index

    Properties

    amount: number

    The amount to reverse, in the smallest currency unit in negative.

    amount_tax: number

    The amount of tax to reverse, in the smallest currency unit in negative.

    metadata?: MetadataParam

    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.

    original_line_item: string

    The id of the line item to reverse in the original transaction.

    quantity?: number

    The quantity reversed. Appears in tax exports, but does not affect the amount of tax reversed.

    reference: string

    A custom identifier for this line item in the reversal transaction, such as 'L1-refund'.