import { z } from "zod/v4";
import { LIMITS } from "@/lib/limits";

export const payoutMarkPaidSchema = z.object({
  payoutId: z.string().trim().min(1, "Payout ID wajib"),
  adminNote: z
    .string()
    .trim()
    .min(3, "Catatan/referensi transfer minimal 3 karakter")
    .max(
      LIMITS.MAX_REFUND_NOTE_LENGTH,
      `Catatan maksimal ${LIMITS.MAX_REFUND_NOTE_LENGTH} karakter`
    ),
});

export type PayoutMarkPaidInput = z.infer<typeof payoutMarkPaidSchema>;
