/** * 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 { DeliveryNoteItemClassification } from './deliveryNoteItemClassification'; import type { DeliveryNoteItemMetadata } from './deliveryNoteItemMetadata'; import type { DeliveryNoteItemType } from './deliveryNoteItemType'; import type { DocumentItemTax } from './documentItemTax'; import type { LineDiscount } from './lineDiscount'; export interface DeliveryNoteItem { /** @maxLength 36 */ id: string; /** * Item type. null = regular line item, 'separator' = visual section header. * @nullable */ type?: DeliveryNoteItemType; /** @maxLength 500 */ name: string; /** @nullable */ description: string | null; /** * Item classification used for Portugal SAF-T product typing. * @nullable */ classification?: DeliveryNoteItemClassification; /** * Per-unit net price (before tax). Always stores net price. Null for separator items. * @nullable */ price?: number | null; /** * Per-unit gross price (includes tax). Only present if user originally sent gross price. Use gross pricing to keep invoice totals stable when VIES reverse charge is applied. * @nullable */ gross_price?: number | null; /** * Item quantity. Null for separator items. * @nullable */ quantity?: number | null; /** * @maxLength 50 * @nullable */ unit?: string | null; /** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */ taxes: DocumentItemTax[]; /** * Line discounts (max 5) in request order. In `b2b_standard`, percentage discounts are calculated from the original line subtotal and fixed amounts are summed before tax. In `b2c_gross_discount`, discounts are applied sequentially to the running gross subtotal. * @maxItems 5 */ discounts: LineDiscount[]; /** * Line total before tax. Null for separator items. * @nullable */ total?: number | null; /** * Line total after tax. Null for separator items. * @nullable */ total_with_tax?: number | null; /** * @minimum -140737488355328 * @maximum 140737488355327 * @nullable */ total_converted?: number | null; /** * @minimum -140737488355328 * @maximum 140737488355327 * @nullable */ total_with_tax_converted?: number | null; /** * @maxLength 36 * @nullable */ delivery_note_id?: string | null; /** * @maxLength 36 * @nullable */ item_id?: 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?: DeliveryNoteItemMetadata; created_at: string; updated_at: string; } //# sourceMappingURL=deliveryNoteItem.d.ts.map