/** * Billingual API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * * The version of the OpenAPI document: 1.0.0 * Contact: api@billingual.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 type { InvoiceCustomer } from './InvoiceCustomer'; import type { InvoiceIssuer } from './InvoiceIssuer'; import type { InvoiceItemsInner } from './InvoiceItemsInner'; import type { InvoiceTaxesInner } from './InvoiceTaxesInner'; /** * * @export * @interface Invoice */ export interface Invoice { /** * * @type {string} * @memberof Invoice */ type: InvoiceTypeEnum; /** * * @type {string} * @memberof Invoice */ id: string; /** * Per-type unique document number. Auto-generated if not sent. * @type {string} * @memberof Invoice */ number: string; /** * Date the invoice was created (ISO 8601 datetime at midnight UTC) * @type {Date} * @memberof Invoice */ date: Date; /** * Date the invoice is due (ISO 8601 datetime at midnight UTC) * @type {Date} * @memberof Invoice */ date_due: Date | null; /** * * @type {InvoiceIssuer} * @memberof Invoice */ issuer: InvoiceIssuer; /** * Referenced Customer ID. Required if customer is not provided. * @type {string} * @memberof Invoice */ customer_id: string | null; /** * * @type {InvoiceCustomer} * @memberof Invoice */ customer: InvoiceCustomer; /** * Document notes. * @type {string} * @memberof Invoice */ note: string | null; /** * * @type {number} * @memberof Invoice */ total: number; /** * * @type {number} * @memberof Invoice */ total_with_tax: number; /** * * @type {Array} * @memberof Invoice */ taxes: Array; /** * * @type {string} * @memberof Invoice */ entity_id: string; /** * * @type {number} * @memberof Invoice */ date_year: number; /** * * @type {{ [key: string]: string; }} * @memberof Invoice */ metadata: { [key: string]: string; }; /** * * @type {Date} * @memberof Invoice */ created_at: Date; /** * * @type {Date} * @memberof Invoice */ updated_at: Date; /** * * @type {Array} * @memberof Invoice */ items: Array; } /** * @export */ export declare const InvoiceTypeEnum: { readonly Invoice: "invoice"; }; export type InvoiceTypeEnum = typeof InvoiceTypeEnum[keyof typeof InvoiceTypeEnum]; /** * Check if a given object implements the Invoice interface. */ export declare function instanceOfInvoice(value: object): value is Invoice; export declare function InvoiceFromJSON(json: any): Invoice; export declare function InvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Invoice; export declare function InvoiceToJSON(value?: Invoice | null): any; //# sourceMappingURL=Invoice.d.ts.map