import { SpeakeasyBase } from "../../../internal/utils"; import { BillItem } from "./billitem"; import { InvoiceItem } from "./invoiceitem"; import { ItemStatus } from "./itemstatus"; import { ItemType } from "./itemtype"; import { Metadata } from "./metadata"; import { SupplementalData } from "./supplementaldata"; /** * > View the coverage for items in the Data coverage explorer. * * @remarks * * ## Overview * * **Items** allow your customers to save and track details of the products and services that they buy and sell. * */ export declare class Item extends SpeakeasyBase { /** * Item details that are only for bills. */ billItem?: BillItem; /** * Friendly reference for the item. */ code?: string; /** * Identifier for the item that is unique to a company in the accounting platform. */ id?: string; /** * Item details that are only for bills. */ invoiceItem?: InvoiceItem; /** * Whether you can use this item for bills. */ isBillItem: boolean; /** * Whether you can use this item for invoices. */ isInvoiceItem: boolean; /** * Current state of the item, either: * * @remarks * * - `Active`: Available for use * - `Archived`: Unavailable * - `Unknown` * * Due to a [limitation in Xero's API](https://docs.codat.io/integrations/accounting/xero/xero-faq#why-do-all-of-my-items-from-xero-have-their-status-as-unknown), all items from Xero are mapped as `Unknown`. */ itemStatus: ItemStatus; metadata?: Metadata; modifiedDate?: string; /** * Name of the item in the accounting platform. */ name?: string; sourceModifiedDate?: string; /** * Supplemental data is additional data you can include in our standard data types. * * @remarks * * It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. */ supplementalData?: SupplementalData; /** * Type of the item. */ type: ItemType; }