/** * 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 { CreateDocumentItem } from './createDocumentItem'; import type { DocumentEntity } from './documentEntity'; import type { EslogInput } from './eslogInput'; import type { UpdateCreditNoteMetadata } from './updateCreditNoteMetadata'; export interface UpdateCreditNote { /** * Document date (YYYY-MM-DD or ISO datetime format). * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$ */ date?: string; issuer?: DocumentEntity & unknown; /** * Referenced Customer ID. Set to null to remove customer reference. * @nullable */ customer_id?: string | null; customer?: CreateDocumentCustomer; /** * Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals. * @minItems 1 */ items?: CreateDocumentItem[]; /** * Document note/memo. Set to null to clear. * @nullable */ note?: string | null; /** * Payment terms text. Set to null to clear. * @nullable */ payment_terms?: string | null; /** * Tax clause text. Set to null to clear. * @nullable */ tax_clause?: string | null; /** * Footer text. Set to null to clear. * @nullable */ footer?: string | null; /** * Signature text (e.g. 'John Smith, CEO'). Set to null to clear. * @nullable */ signature?: string | null; /** Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation. */ currency_code?: string; /** * Custom reference (e.g., purchase order number, payment reference). When set, overrides the auto-generated UPN payment reference for Slovenian invoices. Set to null to clear. * @maxLength 100 * @nullable */ reference?: string | null; /** * Custom metadata object. Set to null to clear. * @nullable */ metadata?: UpdateCreditNoteMetadata; /** * Reason for the change. Stored in version history for audit trail. * @maxLength 500 */ change_reason?: string; /** * Service/work date or start of service period. Set to null to clear. * @nullable * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$ */ date_service?: string | null; /** * End of service period (if different from date_service). Set to null to clear. * @nullable * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$ */ date_service_to?: string | null; /** * Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx). * @nullable */ linked_documents?: string[] | null; eslog?: EslogInput | null; } //# sourceMappingURL=updateCreditNote.d.ts.map