/** * 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 { CalculateDocumentPreviewCalculationMode } from './calculateDocumentPreviewCalculationMode'; import type { CalculateDocumentPreviewCustomer } from './calculateDocumentPreviewCustomer'; import type { CreateDocumentItem } from './createDocumentItem'; export interface CalculateDocumentPreview { /** * Document line items to calculate. At least one item is required. * @minItems 1 */ items: CreateDocumentItem[]; /** Customer data. Used for transaction type determination (country-based VAT rules). */ customer?: CalculateDocumentPreviewCustomer; /** * Existing customer ID. Alternative to inline customer data. * @nullable */ customer_id?: string | null; /** * Currency code (ISO 4217). Defaults to entity's currency if not provided. * @nullable */ currency_code?: string | null; /** * Document date (YYYY-MM-DD). Used for tax rate date resolution. Defaults to today. * @nullable */ date?: string | null; /** * Optional calculation mode override. When omitted, the entity default is used and falls back to `b2b_standard`. * @nullable */ calculation_mode?: CalculateDocumentPreviewCalculationMode; /** * Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules. * @exclusiveMinimum 0 * @nullable */ expected_total_with_tax?: number | null; } //# sourceMappingURL=calculateDocumentPreview.d.ts.map