export const enum OrderStatusEnum {
    CANCELLED,
    ISSUES,
    DELIVERED,
    ORDERED,
    IN_PROGRESS
};

type OrderType = {
    id: string;
    date: string;
    status: OrderStatusEnum;
    items: { name: string; quantity: number; price: number }[];
    total: number;
    address: string;
};

export default OrderType;


export type ShippingDetails = {
    firstName: string;
    lastName: string;
    telefon: string;
    address: string;
    postalCode: string;
    city: string;
    country: string;
};

export type OrderItem = {
    id: string;
    amount: number;
    article: string; // UUID of the item
};

export type SubmitOrder = {
  id: number;
  customerId: number;
  time: number;
  status: OrderStatusEnum;
  orderItems: OrderItem[];
}
