expose payment code

This commit is contained in:
2024-11-03 20:30:58 +07:00
parent bc2eda7490
commit 6b7430c5cf

View File

@@ -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.',