@apideck/node
Version:
Apideck Node.js SDK
179 lines (178 loc) • 4.64 kB
TypeScript
/**
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.13.0
* Contact: support@apideck.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { LinkedInvoiceItem } from './LinkedInvoiceItem';
import { LinkedLedgerAccount } from './LinkedLedgerAccount';
import { LinkedTaxRate } from './LinkedTaxRate';
import { LinkedTrackingCategories } from './LinkedTrackingCategories';
/**
*
* @export
* @interface BillLineItem
*/
export interface BillLineItem {
/**
* A unique identifier for an object.
* @type {string}
* @memberof BillLineItem
*/
readonly id?: string;
/**
* Row ID
* @type {string}
* @memberof BillLineItem
*/
row_id?: string;
/**
* User defined item code
* @type {string}
* @memberof BillLineItem
*/
code?: string | null;
/**
* Line number in the invoice
* @type {number}
* @memberof BillLineItem
*/
line_number?: number | null;
/**
* User defined description
* @type {string}
* @memberof BillLineItem
*/
description?: string | null;
/**
* Bill Line Item type
* @type {string}
* @memberof BillLineItem
*/
type?: BillLineItemType;
/**
* Tax amount
* @type {number}
* @memberof BillLineItem
*/
tax_amount?: number | null;
/**
* Total amount of the line item
* @type {number}
* @memberof BillLineItem
*/
total_amount?: number | null;
/**
*
* @type {number}
* @memberof BillLineItem
*/
quantity?: number | null;
/**
*
* @type {number}
* @memberof BillLineItem
*/
unit_price?: number | null;
/**
* Description of the unit type the item is sold as, ie: kg, hour.
* @type {string}
* @memberof BillLineItem
*/
unit_of_measure?: string | null;
/**
* Discount percentage applied to the line item when supported downstream.
* @type {number}
* @memberof BillLineItem
*/
discount_percentage?: number | null;
/**
* Discount amount applied to the line item when supported downstream.
* @type {number}
* @memberof BillLineItem
*/
discount_amount?: number | null;
/**
* Location id
* @type {string}
* @memberof BillLineItem
*/
location_id?: string | null;
/**
* Department id
* @type {string}
* @memberof BillLineItem
*/
department_id?: string | null;
/**
*
* @type {LinkedInvoiceItem}
* @memberof BillLineItem
*/
item?: LinkedInvoiceItem;
/**
*
* @type {LinkedTaxRate}
* @memberof BillLineItem
*/
tax_rate?: LinkedTaxRate;
/**
*
* @type {LinkedLedgerAccount}
* @memberof BillLineItem
*/
ledger_account?: LinkedLedgerAccount | null;
/**
*
* @type {LinkedTrackingCategories}
* @memberof BillLineItem
*/
tracking_categories?: LinkedTrackingCategories | null;
/**
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
* @type {string}
* @memberof BillLineItem
*/
row_version?: string | null;
/**
* The user who last updated the object.
* @type {string}
* @memberof BillLineItem
*/
readonly updated_by?: string | null;
/**
* The user who created the object.
* @type {string}
* @memberof BillLineItem
*/
readonly created_by?: string | null;
/**
* The date and time when the object was created.
* @type {Date}
* @memberof BillLineItem
*/
readonly created_at?: Date | null;
/**
* The date and time when the object was last updated.
* @type {Date}
* @memberof BillLineItem
*/
readonly updated_at?: Date | null;
}
/**
* @export
* @enum {string}
*/
export declare enum BillLineItemType {
expense_item = "expense_item",
expense_account = "expense_account",
other = "other"
}
export declare function BillLineItemFromJSON(json: any): BillLineItem;
export declare function BillLineItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillLineItem;
export declare function BillLineItemToJSON(value?: BillLineItem | null): any;