/** * 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 { ExchangeRate } from './exchangeRate'; import type { IncomingPurchaseDocumentItem } from './incomingPurchaseDocumentItem'; import type { IncomingPurchaseDocumentMetadata } from './incomingPurchaseDocumentMetadata'; import type { IncomingPurchaseDocumentSummaryClassification } from './incomingPurchaseDocumentSummaryClassification'; import type { IncomingPurchaseDocumentSummaryTax } from './incomingPurchaseDocumentSummaryTax'; import type { IncomingPurchaseDocumentSupplier } from './incomingPurchaseDocumentSupplier'; import type { IncomingPurchaseDocumentType } from './incomingPurchaseDocumentType'; /** * Incoming purchase document */ export interface IncomingPurchaseDocument { /** @maxLength 36 */ id: string; /** @maxLength 36 */ entity_id: string; /** * @maxLength 36 * @nullable */ supplier_id?: string | null; type: IncomingPurchaseDocumentType; is_draft: boolean; /** @nullable */ cancelled_at?: string | null; supplier?: IncomingPurchaseDocumentSupplier | null; /** * @maxLength 255 * @nullable */ supplier_document_number?: string | null; /** * @nullable * @pattern ^\d{4}-\d{2}-\d{2}$ */ date?: string | null; /** * @nullable * @pattern ^\d{4}-\d{2}-\d{2}$ */ date_received?: string | null; /** * @nullable * @pattern ^\d{4}-\d{2}-\d{2}$ */ date_due?: string | null; /** * @nullable * @pattern ^\d{4}-\d{2}-\d{2}$ */ date_service?: string | null; /** * @nullable * @pattern ^\d{4}-\d{2}-\d{2}$ */ date_service_to?: string | null; /** * @maxLength 3 * @nullable */ currency_code?: string | null; /** * @maxLength 50 * @nullable */ transaction_type?: string | null; /** * @maxLength 100 * @nullable */ reference?: string | null; /** * @maxLength 2000 * @nullable */ note?: string | null; summary_classification?: IncomingPurchaseDocumentSummaryClassification | null; items: IncomingPurchaseDocumentItem[]; taxes: IncomingPurchaseDocumentSummaryTax[]; /** * @minimum -140737488355328 * @maximum 140737488355327 * @nullable */ total?: number | null; /** * @minimum -140737488355328 * @maximum 140737488355327 * @nullable */ total_with_tax?: number | null; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total_discount: number; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total_paid: number; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total_due: number; paid_in_full: boolean; exchange_rate?: ExchangeRate | null; metadata: IncomingPurchaseDocumentMetadata; created_at: string; updated_at: string; } //# sourceMappingURL=incomingPurchaseDocument.d.ts.map