import {addressInterface} from './address';
import {productInterface} from './product';

export interface orderInterface {
  _id: string;
  subTotalAmount: string;
  totalAmount: string;
  taxAmount: number;
  name: string;
  email: string | null;
  phone: string;
  paymentId: string | null;
  orderId:string;
  transactionId: string | null;
  billingAddress: addressInterface;
  shippingAddress: addressInterface;
  updated_at: string;
  created_at: string;
  createdBy: {
    name: string;
    dateTime: string;
    _id: string;
  };
  deleted: false;
  userId: string;
  orderStatus: string;
  paymentStatus: string;
  order_items: [
    {
      _id: string;
      productId: string;
      variationId: string | null;
      amount: string;
      quantity: number;
      totalAmount: string;
      orderId: string;
      updated_at: string;
      created_at: string;
      product: productInterface;
      variation: any;
    },
  ];
}
