/** * 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 { CalculatedItem } from './calculatedItem'; import type { DocumentCalculationCalculationMode } from './documentCalculationCalculationMode'; import type { DocumentCalculationTransactionType } from './documentCalculationTransactionType'; import type { DocumentSummaryTax } from './documentSummaryTax'; import type { ExchangeRate } from './exchangeRate'; import type { ViesDocumentData } from './viesDocumentData'; export interface DocumentCalculation { /** Calculated line items */ items: CalculatedItem[]; /** Document total before tax */ total: number; /** Document total after tax */ total_with_tax: number; /** Document discount total stored as a net-equivalent amount for compatibility. In `b2b_standard`, this is the net value of line-item discounts applied before tax. In `b2c_gross_discount`, gross discounts are converted back to their net-equivalent value here. */ total_discount: number; /** Resolved calculation mode used for the preview after applying the request override or entity default. */ calculation_mode: DocumentCalculationCalculationMode; /** Aggregated tax summary */ taxes: DocumentSummaryTax[]; /** * Transaction type for VAT purposes. Always determined based on issuer/customer countries, regardless of VIES settings. * @nullable */ transaction_type: DocumentCalculationTransactionType; /** Currency code used for calculation */ currency_code: string; exchange_rate: (ExchangeRate | null) & unknown; /** * Document total in entity currency * @nullable */ total_converted: number | null; /** * Document total with tax in entity currency * @nullable */ total_with_tax_converted: number | null; /** * Rounding correction applied when expected_total_with_tax was provided * @nullable */ rounding_correction: number | null; vies: ViesDocumentData | null; } //# sourceMappingURL=documentCalculation.d.ts.map