/**
 * Quotation Payment Validators
 * Zod schemas for manual payment recording
 */

import { z } from 'zod';

export const manualPaymentSchema = z.object({
  amount: z.number().positive(),
  method: z.enum(['MANUAL_CASH', 'MANUAL_BANK_TRANSFER', 'MANUAL_CHECK', 'MANUAL_OTHER']),
  reference: z.string().max(200).optional(),
  manualNotes: z.string().max(1000).optional(),
  paidAt: z.string().datetime().optional(),
});

export type ManualPaymentInput = z.infer<typeof manualPaymentSchema>;
