/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Space Invoices 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. * OpenAPI spec version: 1.0.0 */ import type { CreateDocumentCustomer } from './createDocumentCustomer'; import type { CreateDocumentPayment } from './createDocumentPayment'; import type { CreateFinaInvoiceData } from './createFinaInvoiceData'; import type { CreateFursDocumentData } from './createFursDocumentData'; import type { CustomCreateInvoiceCalculationMode } from './customCreateInvoiceCalculationMode'; import type { CustomCreateInvoiceIssuer } from './customCreateInvoiceIssuer'; import type { CustomCreateInvoiceMetadata } from './customCreateInvoiceMetadata'; import type { CustomCreateInvoicePt } from './customCreateInvoicePt'; import type { CustomDocumentItem } from './customDocumentItem'; import type { DocumentSummaryTax } from './documentSummaryTax'; import type { EslogInput } from './eslogInput'; export interface CustomCreateInvoice { /** @nullable */ is_draft?: boolean | null; /** @nullable */ date?: string | null; issuer?: CustomCreateInvoiceIssuer; /** * Referenced Customer ID. * @nullable */ customer_id?: string | null; customer?: CreateDocumentCustomer; /** @nullable */ note?: string | null; /** @nullable */ payment_terms?: string | null; /** @nullable */ tax_clause?: string | null; /** @nullable */ footer?: string | null; /** @nullable */ signature?: string | null; /** * Optional calculation mode override. When omitted, the entity default is used and falls back to `b2b_standard`. * @nullable */ calculation_mode?: CustomCreateInvoiceCalculationMode; /** @nullable */ currency_code?: string | null; /** * Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data. * @nullable */ metadata?: CustomCreateInvoiceMetadata; /** @nullable */ reference?: string | null; /** @nullable */ date_due?: string | null; pt?: CustomCreateInvoicePt; /** @nullable */ date_service?: string | null; /** @nullable */ date_service_to?: string | null; /** * Line items with pre-calculated totals. At least one item is required. * @minItems 1 */ items: CustomDocumentItem[]; /** Pre-calculated document total (before tax). */ total: number; /** Pre-calculated document total (after tax). */ total_with_tax: number; /** * Pre-calculated total net discount amount. Defaults to 0 if not provided. * @nullable */ total_discount?: number | null; /** Pre-calculated tax summary. If not provided, defaults to empty array. */ taxes?: DocumentSummaryTax[]; /** * Link this invoice to other documents. * @nullable */ linked_documents?: string[] | null; /** * Optional payments to record with the invoice. If amounts are not provided, the invoice total is split equally among all payments. Automatically updates invoice payment status. * @nullable */ payments?: CreateDocumentPayment[] | null; furs?: CreateFursDocumentData | null; fina?: CreateFinaInvoiceData | null; eslog?: EslogInput | null; /** * Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false. * @nullable */ force_linked_documents?: boolean | null; } //# sourceMappingURL=customCreateInvoice.d.ts.map