import * as z from 'zod';
import { PaymentMethodSchema } from '../../enums/PaymentMethod.schema';
// prettier-ignore
export const ServiceLineTransactionInputSchema = z.object({
    id: z.number().int(),
    paymentId: z.number().int(),
    serviceLineId: z.number().int(),
    transactionId: z.string().optional().nullable(),
    paidAmount: z.number(),
    adjustedAmount: z.number(),
    method: PaymentMethodSchema,
    receivedDate: z.date(),
    payerName: z.string().optional().nullable(),
    notes: z.string().optional().nullable(),
    createdAt: z.date(),
    payment: z.unknown(),
    serviceLine: z.unknown()
}).strict();

export type ServiceLineTransactionInputType = z.infer<typeof ServiceLineTransactionInputSchema>;
