import { SpeakeasyBase } from "../../../internal/utils"; import { AccountingCustomerRef } from "./accountingcustomerref"; import { AccountRef } from "./accountref"; import { BilledToType } from "./billedtotype"; import { ItemRef } from "./itemref"; import { ProjectRef } from "./projectref"; import { TaxRateRef } from "./taxrateref"; import { TrackingCategoryRef } from "./trackingcategoryref"; /** * Categories, and a project and customer, against which the item is tracked. */ export declare class BillCreditNoteLineItemTracking extends SpeakeasyBase { categoryRefs: TrackingCategoryRef[]; customerRef?: AccountingCustomerRef; /** * Defines if the invoice or credit note is billed/rebilled to a project or customer. */ isBilledTo: BilledToType; /** * Defines if the invoice or credit note is billed/rebilled to a project or customer. */ isRebilledTo: BilledToType; projectRef?: ProjectRef; } export declare class BillCreditNoteLineItem 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 each line item. For example, the goods or service for which credit has been received. */ description?: string; /** * Value of any discounts applied. */ discountAmount?: number; /** * Percentage rate of any discount applied to the line item. */ discountPercentage?: number; itemRef?: ItemRef; /** * Number of units of the goods or service for which credit has been received. */ quantity: number; /** * Amount of credit associated with the line item, including discounts but excluding tax. */ subTotal?: number; /** * Amount of tax associated with the line item. */ 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 item, including discounts and tax. */ totalAmount?: number; /** * Categories, and a project and customer, against which the item is tracked. */ tracking?: BillCreditNoteLineItemTracking; /** * 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[]; /** * Unit price of the goods or service. */ unitAmount: number; }