import { OfficeModel } from "./office"; import { PropertyModel } from "./property"; export interface StatusModel { status: string; time: string; } export interface AlertModel { productTypes: string[]; type: string; } export interface OrderItemModel { capacity: string; code: undefined | string; color: undefined | string; depth: string; description: undefined | string; height: string; installationType: string; installInfo: { email: string; name: string; phone: string; }; manufacturer: string; price: number; quantity: number; replacementModel: undefined | string; replacementReason: undefined | string; serviceCodeId: undefined | string; serviceType: undefined | string; sku: string; subtitle: string; title: string; type: string; width: string; } export interface SummaryModel { labor: number; parts: number; products: number; serviceCodes: number; subtotal: number; tax: number; total: number; whiteGoodsDisposalTax: number; } export interface WorkOrderModel { labor: { cost: number; description: string; }[]; laborTotal: number; scheduledServiceDate: string; vendor: { imageUrl: string; name: string; }; woExternal: string; woInternal: string; } export interface ShipToOfficeModel { type: "property" | "fundOffice" | "vendorOffice" | "distribution"; street: string; city: string; state: string; zipCode: string; displayName: string; } export interface OrderModel { actions?: { isApprovable: boolean; isCancelable: boolean; isEditable: boolean; isTrackable: boolean; }; alerts: AlertModel[]; company: string; confirmationNumbers: { confirmationNumber: string; date: string; }[]; contact: { email: undefined | string; name: string; phone: undefined | string; }; deliveryAgent: { email: undefined | string; name: string; phone: undefined | string; }; deliveryInstructions: undefined | string; fulfillmentDate: string; fulfillmentType: string; items: OrderItemModel[]; manufacturer: string; office: OfficeModel; poExternal: undefined | string; poInternal: string; property: PropertyModel; shipToFundOffice: boolean; status: StatusModel[]; summary: SummaryModel; user: { email: undefined | string; firstName: string; lastName: string; phone: undefined | string; }; shipTo: ShipToOfficeModel; orderedForOffice: OfficeModel; workOrder?: WorkOrderModel; }