import { SpeakeasyBase } from "../../../internal/utils"; import { AccountRef } from "./accountref"; import { ItemRef } from "./itemref"; import { TaxRateRef } from "./taxrateref"; import { TrackingCategoryRef } from "./trackingcategoryref"; export declare class DirectIncomeLineItem 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; /** * A user-friendly name of the goods or services. */ description?: string; /** * Discount amount for the line before tax. */ discountAmount?: number; /** * Discount percentage for the line before tax. */ discountPercentage?: number; itemRef?: ItemRef; /** * The number of units of goods or services received. * * @remarks * * Note: If the platform does not provide this information, the quantity will be mapped as 1. */ quantity: number; /** * The amount of the line, inclusive of discounts, but exclusive of tax. */ subTotal?: number; /** * The amount of tax for the line. * * @remarks * Note: If the platform does not provide this information, the quantity will be mapped as 0.00. */ 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; /** * The total amount of the line, including tax. */ totalAmount?: number; /** * An array of categories against which this direct cost is tracked. */ trackingCategoryRefs?: TrackingCategoryRef[]; /** * The price of each unit of goods or services. * * @remarks * Note: If the platform does not provide this information, the unit amount will be mapped to the total amount. */ unitAmount: number; }