fix: v1 api payments endpoint fix (#16264)
* Update payment validation v1 * fix for [id]
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user