/**
 * 用户 KYC 认证通过事件
 */
export class UserKycVerifiedEvent {
  static readonly EVENT_TYPE = 'user.kyc.verified';

  constructor(
    public readonly accountSequence: string,
    public readonly realName: string,
    public readonly verifiedAt: Date,
  ) {}

  toPayload(): Record<string, unknown> {
    return {
      eventType: UserKycVerifiedEvent.EVENT_TYPE,
      accountSequence: this.accountSequence,
      realName: this.realName,
      verifiedAt: this.verifiedAt.toISOString(),
    };
  }
}
