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>
15 lines
436 B
TypeScript
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,
|
|
) {}
|
|
}
|