import { SpeakeasyBase } from "../../../internal/utils"; import { AccountingCustomerRef } from "./accountingcustomerref"; import { AccountRef } from "./accountref"; import { BilledToType1 } from "./billedtotype1"; import { InvoiceTo } from "./invoiceto"; 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 CreditNoteLineItemTracking extends SpeakeasyBase { categoryRefs: TrackingCategoryRef[]; customerRef?: AccountingCustomerRef; /** * Defines if the bill or bill credit note is billed/rebilled to a project. */ isBilledTo: BilledToType1; /** * Defines if the bill or bill credit note is billed/rebilled to a project. */ isRebilledTo: BilledToType1; projectRef?: ProjectRef; /** * Links the current record to the underlying record or data type that created it. * * @remarks * * For example, if a journal entry is generated based on an invoice, this property allows you to connect the journal entry to the underlying invoice in our data model. */ recordRef?: InvoiceTo; } export declare class CreditNoteLineItem 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 issued. */ description?: string; /** * Value of any discounts applied. */ discountAmount?: number; /** * Percentage rate of any discount applied to the line item. */ discountPercentage?: number; /** * The credit note is a direct income if `True`. */ isDirectIncome?: boolean; itemRef?: ItemRef; /** * Number of units of the goods or service for which credit has been issued. */ 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?: CreditNoteLineItemTracking; /** * 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; }