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