/** * 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 { OrderAddress } from './orderAddress'; import type { OrderBaseMetadata } from './orderBaseMetadata'; import type { OrderBasePaymentStatus } from './orderBasePaymentStatus'; import type { OrderBaseRawData } from './orderBaseRawData'; import type { OrderBaseSource } from './orderBaseSource'; import type { OrderBaseStatus } from './orderBaseStatus'; import type { OrderCustomer } from './orderCustomer'; import type { OrderItem } from './orderItem'; import type { OrderTransaction } from './orderTransaction'; /** * Order information */ export interface OrderBase { /** @maxLength 36 */ id: string; /** @maxLength 36 */ entity_id: string; /** @maxLength 36 */ order_integration_id: string; /** Order source platform */ source: OrderBaseSource; /** @maxLength 255 */ source_id: string; /** * @maxLength 100 * @nullable */ source_order_number?: string | null; /** Order processing status */ status: OrderBaseStatus; paid: boolean; /** @nullable */ paid_at?: string | null; fulfilled: boolean; /** @nullable */ fulfilled_at?: string | null; cancelled: boolean; /** @nullable */ cancelled_at?: string | null; refunded: boolean; /** @nullable */ refunded_at?: string | null; /** * @maxLength 255 * @nullable */ customer_name?: string | null; /** * @maxLength 255 * @nullable */ customer_email?: string | null; customer?: OrderCustomer | null; billing_address?: OrderAddress | null; shipping_address?: OrderAddress | null; /** * @maxLength 36 * @nullable */ customer_id?: string | null; /** @maxLength 3 */ currency_code: string; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total: number; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total_with_tax: number; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total_discount: number; /** * @minimum -140737488355328 * @maximum 140737488355327 */ total_shipping: number; items: OrderItem[]; /** Order payment status */ payment_status: OrderBasePaymentStatus; /** * @maxLength 50 * @nullable */ payment_method?: string | null; /** * @maxLength 100 * @nullable */ payment_gateway?: string | null; /** * @maxLength 36 * @nullable */ invoice_id?: string | null; /** * @maxLength 36 * @nullable */ estimate_id?: string | null; /** @nullable */ process_after?: string | null; transactions: OrderTransaction[]; complete: boolean; items_changed_after_processing: boolean; /** @nullable */ raw_data?: OrderBaseRawData; /** * @maxLength 255 * @nullable */ source_event_id?: string | null; /** * @maxLength 2000 * @nullable */ error?: string | null; /** @nullable */ ordered_at?: string | null; /** @nullable */ processed_at?: string | null; metadata: OrderBaseMetadata; /** @nullable */ deleted_at?: string | null; created_at: string; updated_at: string; } //# sourceMappingURL=orderBase.d.ts.map