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

type OrderType = {
    id: number;
    customerId: number;
    time: number;
    status: OrderStatusEnum;
    orderItems: { id: number; amount: number; article: string }[];
    total: number;
};

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 OrderPatch = {
    id: number;
    status: OrderStatusEnum;
    };
