Files
calendar/apps/api/v1/lib/validations/payment.ts
T
Syed Ali ShahbazandGitHub d73b84157a fix: v1 api payments endpoint fix (#16264)
* Update payment validation v1

* fix for [id]
2024-08-19 16:29:36 +00:00

13 lines
254 B
TypeScript

import { _PaymentModel as Payment } from "@calcom/prisma/zod";
export const schemaPaymentPublic = Payment.pick({
id: true,
amount: true,
success: true,
refunded: true,
fee: true,
paymentOption: true,
currency: true,
bookingId: true,
});