import type { Order, OrderItem } from '../../orders/index.js'; import type { PaymentIntent } from '../../payments/index.js'; import type { ProductResult, ProductVariant } from '../../products/index.js'; import type { Return } from '../../returns/index.js'; export type Exchange = { id: string; status: ExchangeStatus; exchangeOrder: ExchangeOrder; customer: { id: number | null; }; exchangeGroups: Array; createdDate: string; updatedDate: string | null; }; export declare enum ExchangeStatus { Draft = "Draft", PendingOrderConfirmation = "PendingOrderConfirmation", Booked = "Booked", ProcessingOrderPayment = "ProcessingOrderPayment", PendingOrderDelivery = "PendingOrderDelivery", Cancelled = "Cancelled", Completed = "Completed" } export type ExchangeOrder = { checkoutOrderId: string; orderId: Order['id']; payment: { intentId: PaymentIntent['id']; }; }; export type ExchangeGroup = { exchangeReturnItems: Array; exchangeItems: Array; }; export type ExchangeReturnItem = { id: string; orderCode: Order['id']; orderItemUuid: OrderItem['shippingOrderLineId']; returnId?: Return['id'] | null; }; export type ExchangeItem = { product: ExchangeProduct; }; export type ExchangeProduct = { id: ProductResult['id']; variantId: ProductVariant['id']; merchantId: OrderItem['merchantId']; };