/** * 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 { DocumentEntity } from './documentEntity'; /** * Customer recipient of the document. Both `customer` and `customer_id` are optional - documents can be created without customer information. If both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated. If only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates using customer identifiers and reuses existing customers when found. */ export type CreateDocumentCustomer = DocumentEntity & ({ /** * Whether to save (create new or update existing) the customer data. Defaults to `true` (best-effort). When `true` with `customer_id`, updates the existing customer. When `true` without `customer_id`, checks for duplicate customers using customer identifiers (tax/company number, country-aware when available) and reuses the existing customer if found, otherwise creates a new customer. When `false`, customer data is stored inline on the document only. When omitted, behaves like `true` but won't fail the request if persistence fails. * @nullable */ save_customer?: boolean | null; } | null | null); //# sourceMappingURL=createDocumentCustomer.d.ts.map