Scheduling infrastructure for absolutely everyone.
fix: v1 api payments endpoint fix (#16264)
Syed Ali Shahbazd73b84157aca
diff --git a/apps/api/v1/lib/validations/payment.ts b/apps/api/v1/lib/validations/payment.tsindex 32c5d8d6412..8c3b08413b6 100644--- a/apps/api/v1/lib/validations/payment.ts+++ b/apps/api/v1/lib/validations/payment.ts@@ -1,5 +1,12 @@import { _PaymentModel as Payment } from "@calcom/prisma/zod";-// FIXME: Payment seems a delicate endpoint, do we need to remove anything here?-export const schemaPaymentBodyParams = Payment.omit({ id: true });-export const schemaPaymentPublic = Payment.omit({ externalId: true });+export const schemaPaymentPublic = Payment.pick({+ id: true,+ amount: true,+ success: true,+ refunded: true,+ fee: true,+ paymentOption: true,+ currency: true,+ bookingId: true,+});