initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import * as z from 'zod';
|
||||
import { PaymentMethodSchema } from '../../enums/PaymentMethod.schema';
|
||||
// prettier-ignore
|
||||
export const ServiceLineTransactionResultSchema = z.object({
|
||||
id: z.number().int(),
|
||||
paymentId: z.number().int(),
|
||||
serviceLineId: z.number().int(),
|
||||
transactionId: z.string().nullable(),
|
||||
paidAmount: z.number(),
|
||||
adjustedAmount: z.number(),
|
||||
method: PaymentMethodSchema,
|
||||
receivedDate: z.date(),
|
||||
payerName: z.string().nullable(),
|
||||
notes: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
payment: z.unknown(),
|
||||
serviceLine: z.unknown()
|
||||
}).strict();
|
||||
|
||||
export type ServiceLineTransactionResultType = z.infer<typeof ServiceLineTransactionResultSchema>;
|
||||
Reference in New Issue
Block a user