import { SpeakeasyBase } from "../../../internal/utils"; import { AccountRef } from "./accountref"; import { ItemRef } from "./itemref"; import { PropertieTracking1 } from "./propertietracking1"; import { TaxRateRef } from "./taxrateref"; import { TrackingCategoryRef } from "./trackingcategoryref"; export declare class InvoiceLineItem extends SpeakeasyBase { /** * Data types that reference an account, for example bill and invoice line items, use an accountRef that includes the ID and name of the linked account. */ accountRef?: AccountRef; /** * Friendly name of the goods or services provided. */ description?: string; /** * Numerical value of any discounts applied. */ discountAmount?: number; /** * Percentage rate (from 0 to 100) of any discounts applied to the unit amount. */ discountPercentage?: number; /** * The invoice is a direct income if `True`. */ isDirectIncome?: boolean; itemRef?: ItemRef; /** * Number of units of goods or services provided. */ quantity: number; /** * Amount of the line, inclusive of discounts but exclusive of tax. */ subTotal?: number; /** * Amount of tax for the line. */ taxAmount?: number; /** * Data types that reference a tax rate, for example invoice and bill line items, use a taxRateRef that includes the ID and name of the linked tax rate. * * @remarks * * Found on: * * - Bill line items * - Bill Credit Note line items * - Credit Note line items * - Direct incomes line items * - Invoice line items * - Items */ taxRateRef?: TaxRateRef; /** * Total amount of the line, including tax. When pushing invoices to Xero, the total amount is exclusive of tax to allow automatic calculations if a tax rate or tax amount is not specified. */ totalAmount?: number; /** * Categories, and a project and customer, against which the item is tracked. */ tracking?: PropertieTracking1; /** * Reference to the tracking categories to which the line item is linked. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ trackingCategoryRefs?: TrackingCategoryRef[]; /** * Price of each unit of goods or services. */ unitAmount: number; }