Files
goodgo-platform/apps/api/src/modules/payments/domain/events/payment-completed.event.ts
Ho Ngoc Hai f15e98a33b feat(payments): improve VNPay, MoMo, ZaloPay services with ConfigService
Migrate payment gateway services from hardcoded config to NestJS
ConfigService injection. Improve payment handler error handling and
update gateway factory specs.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-09 09:43:19 +07:00

15 lines
436 B
TypeScript

import { type PaymentProvider } from '@prisma/client';
import { type DomainEvent } from '@modules/shared';
export class PaymentCompletedEvent implements DomainEvent {
readonly eventName = 'payment.completed';
readonly occurredAt = new Date();
constructor(
public readonly aggregateId: string,
public readonly userId: string,
public readonly provider: PaymentProvider,
public readonly amountVND: bigint,
) {}
}