import { IkasOrderAddress } from "./address"; import { IkasOrderAdjustment } from "./adjustment"; import { IkasOrderCustomer } from "./customer"; import { IkasOrderGiftCardLine } from "./gift-card-line"; import { IkasOrderGiftPackageLine } from "./gift-line"; import { IkasInvoice } from "./invoice"; import { IkasOrderLineItem } from "./line-item"; import { IkasOrderPackage } from "./package"; import { IkasOrderPaymentMethod } from "./payment-method"; import { IkasOrderShippingLine } from "./shipping-line"; import { IkasOrderTaxLine } from "./tax-line"; import { IkasOrderTransaction } from "./transaction"; export type IkasOrder = { id: string; createdAt: number; updatedAt: number; deleted?: boolean | null; billingAddress: IkasOrderAddress | null; cancelReason: IkasOrderCancelReason | null; cancelledAt: number | null; currencyCode: string; currencySymbol: string | null; customer: IkasOrderCustomer | null; customerId: string | null; giftCardLines: IkasOrderGiftCardLine[] | null; giftPackageLines: IkasOrderGiftPackageLine[] | null; giftPackageNote: string | null; invoices: IkasInvoice[] | null; isGiftPackage: boolean | null; note: string | null; orderAdjustments: IkasOrderAdjustment[] | null; orderLineItems: IkasOrderLineItem[]; orderNumber: string | null; orderPackageStatus: IkasOrderPackageStatus | null; orderPackages: IkasOrderPackage[] | null; orderPaymentStatus: IkasOrderPaymentStatus | null; orderedAt: number | null; paymentMethods: IkasOrderPaymentMethod[] | null; priceListId: string | null; shippingAddress: IkasOrderAddress | null; shippingLines: IkasOrderShippingLine[] | null; shippingMethod: IkasOrderShippingMethod; status: IkasOrderStatus; taxLines: IkasOrderTaxLine[] | null; totalFinalPrice: number; totalPrice: number; transactions?: IkasOrderTransaction[]; }; export type IkasOrderCancelReason = "CUSTOMER" | "DECLINED" | "INVENTORY" | "OTHER"; export type IkasOrderPackageStatus = "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PARTIALLY_CANCELLED" | "PARTIALLY_DELIVERED" | "PARTIALLY_FULFILLED" | "PARTIALLY_READY_FOR_SHIPMENT" | "PARTIALLY_REFUNDED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNABLE_TO_DELIVER" | "UNFULFILLED"; export type IkasOrderPaymentStatus = "PAID" | "PARTIALLY_PAID" | "WAITING"; export type IkasOrderStatus = "CANCELLED" | "CREATED" | "DRAFT" | "PARTIALLY_CANCELLED" | "PARTIALLY_REFUNDED" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED"; export type IkasOrderShippingMethod = "CLICK_AND_COLLECT" | "NO_SHIPMENT" | "SHIPMENT" | "DIGITAL_DELIVERY";