/** * 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 { CustomCreateDeliveryNoteCalculationMode } from './customCreateDeliveryNoteCalculationMode'; import type { CustomCreateDeliveryNoteIssuer } from './customCreateDeliveryNoteIssuer'; import type { CustomCreateDeliveryNoteMetadata } from './customCreateDeliveryNoteMetadata'; import type { CustomDocumentItem } from './customDocumentItem'; import type { DocumentSummaryTax } from './documentSummaryTax'; import type { EslogInput } from './eslogInput'; export interface CustomCreateDeliveryNote { /** @nullable */ is_draft?: boolean | null; /** @nullable */ date?: string | null; issuer?: CustomCreateDeliveryNoteIssuer; /** * 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?: CustomCreateDeliveryNoteCalculationMode; /** @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?: CustomCreateDeliveryNoteMetadata; /** @nullable */ reference?: string | null; /** @nullable */ hide_prices?: boolean | 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; /** * Service date in YYYY-MM-DD format. For invoices and credit notes. * @nullable * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$ */ date_service?: string | null; /** * Service period end date in YYYY-MM-DD format. For invoices and credit notes. Use with date_service for date ranges. * @nullable * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$ */ 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 delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically. * @nullable */ linked_documents?: string[] | null; eslog?: EslogInput | null; } //# sourceMappingURL=customCreateDeliveryNote.d.ts.map