import { SpeakeasyBase } from "../../../internal/utils"; import { AccountRef } from "./accountref"; import { InvoiceTo } from "./invoiceto"; import { ItemRef } from "./itemref"; /** * Allowed name of the 'dataType'. */ export declare enum ItemReceiptLineItemDataType { PurchaseOrders = "purchaseOrders" } /** * Reference to the item receipt line this line was generated from. */ export declare class RecordLineReference extends SpeakeasyBase { /** * Allowed name of the 'dataType'. */ dataType?: ItemReceiptLineItemDataType; /** * 'id' of the underlying record. */ id?: string; /** * Line number of the underlying record. */ lineNumber?: string; } export declare class ItemReceiptLineItemTracking extends SpeakeasyBase { recordRefs?: InvoiceTo[]; } export declare class ItemReceiptLineItem 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 item or services received. */ description?: string; itemRef?: ItemRef; /** * The item receipt line's number. */ lineNumber?: string; purchaseOrderLineRef?: RecordLineReference; /** * Number of units of item or services received. */ quantity?: number; /** * Amount of the line, inclusive of discounts but exclusive of tax. */ subTotal?: number; /** * Total amount of the line, including tax. */ totalAmount?: number; tracking?: ItemReceiptLineItemTracking; /** * Price of each unit of item or services. */ unitAmount?: number; /** * The measurement which defines a unit for this item (e.g. 'kilogram', 'litre'). */ unitOfMeasurement?: string; }