From 6b7430c5cf693ab40da7aca1a92f6ea6bf2b5671 Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Sun, 3 Nov 2024 20:30:58 +0700 Subject: [PATCH] expose payment code --- src/Payment/payment.schema.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Payment/payment.schema.ts b/src/Payment/payment.schema.ts index 9f15087..fe18cb5 100644 --- a/src/Payment/payment.schema.ts +++ b/src/Payment/payment.schema.ts @@ -30,6 +30,13 @@ export class PaymentSchema extends PothosSchema { amount: t.exposeFloat('amount', { description: 'The amount of the payment.', }), + paymentCode: t.exposeString('paymentCode', { + description: 'The code of the payment.', + }), + expiredAt: t.expose('expiredAt', { + type: 'DateTime', + description: 'The date and time the payment will expire.', + }), status: t.expose('status', { type: PaymentStatus, description: 'The status of the payment.',