import { z } from "zod";

export const orderSubmitSchema = z.object({
  packageId: z.string().uuid(),
  quantity: z.number().int().min(1).max(20),
  customerEmail: z.string().email().max(255),
  whatsapp: z.string().max(30).optional().nullable(),
  paymentMethod: z.enum(["bkash", "nagad", "other"]),
  transactionId: z.string().max(100).optional().nullable(),
  notes: z.string().max(500).optional().nullable(),
});

export type OrderSubmitInput = z.infer<typeof orderSubmitSchema>;