initial commit
This commit is contained in:
26
packages/db/shared/schemas/variants/result/Payment.result.ts
Normal file
26
packages/db/shared/schemas/variants/result/Payment.result.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import * as z from 'zod';
|
||||
import { PaymentStatusSchema } from '../../enums/PaymentStatus.schema';
|
||||
// prettier-ignore
|
||||
export const PaymentResultSchema = z.object({
|
||||
id: z.number().int(),
|
||||
claimId: z.number().int().nullable(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
updatedById: z.number().int().nullable(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
totalDue: z.number(),
|
||||
status: PaymentStatusSchema,
|
||||
notes: z.string().nullable(),
|
||||
icn: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
claim: z.unknown().nullable(),
|
||||
patient: z.unknown(),
|
||||
updatedBy: z.unknown().nullable(),
|
||||
serviceLineTransactions: z.array(z.unknown()),
|
||||
serviceLines: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
export type PaymentResultType = z.infer<typeof PaymentResultSchema>;
|
||||
Reference in New Issue
Block a user