import { z } from "zod";

export const payoutTransactionsSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  transId: z.string(),
  holderName: z.string(),
  accountNum: z.string(),
  ifsc: z.string(),
  cfTransferId: z.string(),
  transferUtr: z.string(),
  amount: z.number(),
  vendorChargeDeducted: z.number(),
  charges: z.number(),
  tax: z.number(),
  currentBalance: z.number(),
  mode: z.number(),
  payoutBeneficiaryId: z.number(),
  beneficiaryMobile: z.string()
    .min(10, "Mobile number should be 10-digit only.")
    .max(10, "Mobile number should be 10-digit only."),
  cfBeneficiaryId: z.string(),
  expenseId: z.number(),
  expenseType: z.number(),
  status: z.number(),
  statusDescription: z.string(),
  remark: z.string(),
  receipt: z.string(),
  doneById: z.number(),
  doneByType: z.number(),
  isWalletAdjusted: z.number(),
  autopayQueueId: z.number().nullable(),
  createdAt: z.string(),
  updatedAt: z.string(),
});

type payoutTransactionsTypes = z.infer<
  typeof payoutTransactionsSchema
>;

export default payoutTransactionsTypes;