export interface Order { /** Total amount of the order, including all shipping expenses, tax and the price of items. */ amount: number; /** Billing details of an order. */ billing?: Order.Billing | undefined; /** Coupons applied to the order. Stored case insensitive. */ coupons?: string[] | undefined; /** Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created. */ createdAt: string; /** Unique ID of the order. */ id: string; /** Identifies the contact associated with the order. */ identifiers?: Order.Identifiers | undefined; /** Meta data of order to store additional detail such as custom message, customer type, source. */ metaInfo?: Record | undefined; products: Order.Products.Item[]; /** State of the order. */ status: string; /** ID of store where the order is placed */ storeId?: string | undefined; /** Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated. */ updatedAt: string; } export declare namespace Order { /** * Billing details of an order. */ interface Billing { /** Full billing address. */ address?: string | undefined; /** Exact city of the address. */ city?: string | undefined; /** Billing country name. */ country?: string | undefined; /** Billing country 2-letter ISO code. */ countryCode?: string | undefined; /** How the visitor will pay for the item(s), e.g. paypal, check, etc. */ paymentMethod?: string | undefined; /** Billing phone number. */ phone?: string | undefined; /** Postcode for delivery and billing. */ postCode?: string | undefined; /** Exact region (state/province) for delivery and billing. */ region?: string | undefined; } /** * Identifies the contact associated with the order. */ interface Identifiers { /** Email of the contact associated with the order */ email_id?: string | undefined; /** ext_id associated with the order */ ext_id?: string | undefined; /** loyalty_subscription_id associated with the order */ loyalty_subscription_id?: string | undefined; /** Phone number of the contact associated with the order */ phone_id?: string | undefined; } namespace MetaInfo { type Value = string | number | boolean; } type Products = Products.Item[]; namespace Products { /** * Details for the Products in an order. */ interface Item { /** The price of a unit of product */ price: number; /** ID of the product. */ productId: string; /** Product ID of the red color shirts. */ variantId?: string | undefined; /** * **Required if quantityFloat is empty.** * * Number of product units added to the cart (whole numbers only, e.g., 10) */ quantity?: number | undefined; /** * **Required if quantity is empty.** * * Number of product units added to the cart(supports decimals, e.g., 20.52) */ quantityFloat?: number | undefined; } } }