import { RacingDomainValidationError } from '../../errors/RacingDomainError'; export class LeagueWalletId { private constructor(private readonly value: string) {} static create(value: string): LeagueWalletId { if (!value || value.trim().length === 0) { throw new RacingDomainValidationError('LeagueWallet ID cannot be empty'); } return new LeagueWalletId(value.trim()); } toString(): string { return this.value; } equals(other: LeagueWalletId): boolean { return this.value === other.value; } }