import { type PaymentProvider, type PaymentType } from '@prisma/client';
import { type DomainEvent } from '@modules/shared';

export class PaymentCreatedEvent implements DomainEvent {
  readonly eventName = 'payment.created';
  readonly occurredAt = new Date();

  constructor(
    public readonly aggregateId: string,
    public readonly userId: string,
    public readonly provider: PaymentProvider,
    public readonly type: PaymentType,
    public readonly amountVND: bigint,
  ) {}
}
