import { z } from "zod";

export const collectionPayoutSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  tenantId: z.number(),
  tenantName: z.string(),
  transId: z.string().nullable(),
  holderName: z.string().nullable(),
  accountNum: z.string().nullable(),
  ifsc: z.string().nullable(),
  cfTransferId: z.string().nullable(),
  transferUtr: z.string().nullable(),
  amount: z.number().nullable(),
  vendorChargeDeducted: z.number().nullable(),
  charges: z.number().nullable(),
  tax: z.number().nullable(),
  mode: z.number().nullable(),
  beneficiaryMobile: z.string().nullable(),
  cfBeneficiaryId: z.string().nullable(),
  gId: z.string(),
  status: z.number().nullable(),
  statusDescription: z.string().nullable(),
  remark: z.string().nullable(),
  receipt: z.string().nullable(),
  retried: z.number().nullable(),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type collectionPayoutTypes = z.infer<typeof collectionPayoutSchema>;

export default collectionPayoutTypes;