import type { User } from './user'
import type { Pagination } from './../global.d'
import type { OrderVariant } from './orderVariant'

export interface Order {
  id: string
  name: string
  orderNumber: number
  email: string
  phone: string
  paymentOption:string
  bankRef:string
  //address: string
date: string
  // province: string
  // postalCode: string
  status: string
type: string
  totalAmount: number
  // taxesAmount: number
  // shippingAmount: number

  userId: string

  createdAt?: string
  updatedAt?: string

  orderVariants: Array<OrderVariant>
  user?: User | null | undefined
}

export interface PaginationOrders extends Pagination {
  data: Array<Order>
}

