import type { ClickAndCollect } from '../../checkout/index.js'; import type { FpsOrderType } from './orderSummary.types.js'; import type { OrderItem, OrderItemLegacy } from './orderItem.types.js'; import type { PaymentIntent } from '../../payments/index.js'; import type { UserAddress, UserAddressLegacy } from '../../types/common/address.types.js'; export type Order = { id: string; checkoutOrderId: number; clickAndCollect?: ClickAndCollect; customerEmail?: string; userId: number; paymentId?: string; currency: string; shippingAddress: UserAddress; billingAddress: UserAddress; createdDate: string; updatedDate: string; items: OrderItem[]; totalQuantity: number; subTotalAmount: number; totalDiscount: number; totalShippingFee: number; totalTaxes: number; totalDomesticTaxes: number; grandTotal: number; credit: number; customerType: CustomerType; formattedCredit: string; formattedGrandTotal: string; formattedSubTotalAmount: string; formattedSubTotalAmountExclTaxes: string; formattedTotalDiscount: string; formattedTotalShippingFee: string; formattedTotalTaxes: string; formattedTotalDomesticTaxes: string; taxType: string; paymentIntentIds?: Array; promotionOffers?: Array; fpsOrderType: FpsOrderType; }; export type OrderPromotionOffer = { shippingOffers: Array; merchantOrderCode: string; }; export type ShippingOffer = { discount: number; }; export declare enum CustomerType { Normal = "Normal", PersonalShopper = "PersonalShopper", VipBrazil = "VipBrazil" } export declare enum CustomerTypeLegacy { Normal = 0, PersonalShopper = 1, VipBrazil = 2 } export type OrderLegacy = Omit & { customerType: CustomerTypeLegacy; billingAddress?: UserAddressLegacy; shippingAddress?: UserAddressLegacy; items: OrderItemLegacy[]; };