interface meta {
  id: number
}

interface statusData {
  code: string
  title: string
}

interface transaction {
  transactionTypeId: number
  transactionDate: Date
  transactionNo: string
  transactionTypeDescription: string
  transactionSubtotal: number
  transactionTax: number
  transactionTotal: number
}

interface Common {
  orderId: string
  requestingLocationCd: string
  requestingSystemCd: string
  customerId: string
  customerFirstName: string
  customerLastName: string
  status: string
  submitOrdMsg: string
  fdateCreation: Date
  consumed: boolean
  shipforpickupLocationCd: string
  shipforpickupSystemCd: string
  statusData: statusData
  transaction: transaction
}

interface Lines {
  lineOrderId: number
  lineItemNo: number
  orderId: string
  requestId: number
  lineItemOms: string
  itemId: string
  orderedLineQty: number
  status: string
  transactionDate: Date
  shippingAgent: string
  trackingNumber: string
  fulfillmentId: string
  cartonNumber: string
  fdateCreation: Date
  consumed: boolean
}

interface History {
  statusId: number
  Id: number
  status: string
  transactionDate: Date
  fdateCreation: Date
}

export interface Order {
  meta: meta
  common: Common
  lines: Lines[]
  history: History[]
}
