src/app/Order.ts
Properties |
_id |
_id:
|
Type : string
|
address |
address:
|
Type : string
|
cart |
cart:
|
Type : string
|
createdAt |
createdAt:
|
Type : Date
|
menuItems |
menuItems:
|
Type : MenuItem[]
|
paymentMethod |
paymentMethod:
|
Type : "online" | "cash-on-delivery"
|
phone |
phone:
|
Type : string
|
status |
status:
|
Type : "Pending" | "Processing" | "Shipped" | "Delivered"
|
user |
user:
|
Type : string
|
import { MenuItem } from "./MenuItem";
export interface Order {
_id: string;
user: string;
cart: string;
status: 'Pending' | 'Processing' | 'Shipped' | 'Delivered';
createdAt: Date;
paymentMethod: 'online' | 'cash-on-delivery';
address: string;
phone: string;
menuItems: MenuItem[]; // Update the type to MenuItem[]
}