/** * 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 { CustomCreateCreditNoteCalculationMode } from './customCreateCreditNoteCalculationMode'; import type { CustomCreateCreditNoteIssuer } from './customCreateCreditNoteIssuer'; import type { CustomCreateCreditNoteMetadata } from './customCreateCreditNoteMetadata'; import type { CustomCreateCreditNotePt } from './customCreateCreditNotePt'; import type { CustomDocumentItem } from './customDocumentItem'; import type { DocumentSummaryTax } from './documentSummaryTax'; import type { EslogInput } from './eslogInput'; export interface CustomCreateCreditNote { /** @nullable */ is_draft?: boolean | null; /** @nullable */ date?: string | null; issuer?: CustomCreateCreditNoteIssuer; /** * 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?: CustomCreateCreditNoteCalculationMode; /** @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?: CustomCreateCreditNoteMetadata; /** @nullable */ reference?: string | null; pt?: CustomCreateCreditNotePt; /** @nullable */ date_service?: string | null; /** @nullable */ date_service_to?: string | null; /** * Document due date in YYYY-MM-DD format * @nullable * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$ */ date_due?: 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 credit note to invoices. * @nullable */ linked_documents?: string[] | null; /** * Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status. * @nullable */ payments?: CreateDocumentPayment[] | null; furs?: CreateFursDocumentData | null; fina?: CreateFinaInvoiceData | null; eslog?: EslogInput | null; } //# sourceMappingURL=customCreateCreditNote.d.ts.map