/** * 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 { CreateOrderBodyMetadata } from './createOrderBodyMetadata'; import type { CreateOrderBodyPaymentStatus } from './createOrderBodyPaymentStatus'; import type { CreateOrderBodySource } from './createOrderBodySource'; import type { OrderAddress } from './orderAddress'; import type { OrderCustomer } from './orderCustomer'; import type { OrderItem } from './orderItem'; export type CreateOrderBody = { /** @maxLength 36 */ order_integration_id: string; /** Order source platform */ source: CreateOrderBodySource; /** @maxLength 255 */ source_id: string; /** * @maxLength 100 * @nullable */ source_order_number?: 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 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; /** @minItems 1 */ items: OrderItem[]; /** Order payment status */ payment_status?: CreateOrderBodyPaymentStatus; /** * @maxLength 50 * @nullable */ payment_method?: string | null; /** * @maxLength 100 * @nullable */ payment_gateway?: string | null; /** @nullable */ ordered_at?: 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?: CreateOrderBodyMetadata; }; //# sourceMappingURL=createOrderBody.d.ts.map