export interface Order {
  id: string;
  quantity: number;
  status: string;
  notes: string;
}

export function createOrder(input: Partial<Order> = {}): Order {
  return {
    id: input.id !== undefined ? input.id : '',
    quantity: input.quantity !== undefined ? input.quantity : 0,
    status: input.status !== undefined ? input.status : 'draft',
    notes: input.notes !== undefined ? input.notes : '',
  };
}
