// Generated by smithplates HTTP codegen. Do not edit.
import { OrderLineDetail } from "generated/petstore/api/orderLineDetail";
import { OrderPriority } from "generated/petstore/api/orderPriority";
import { OrderStatus } from "generated/petstore/api/orderStatus";

export interface OrderDetail {
  id: string;
  label: string;
  status: OrderStatus;
  priority: OrderPriority;
  created_at: string;
  updated_at: string;
  lines: OrderLineDetail[];
}

export function parseOrderDetail(value: unknown): OrderDetail {
  return value as OrderDetail;
}

export function serializeOrderDetail(value: OrderDetail): Record<string, unknown> {
  return { ...value };
}
