using FluentValidation;

namespace Baya.Application.Features.Verification.Commands.RunIdentityKyc;

public sealed class RunIdentityKycCommandValidator : AbstractValidator<RunIdentityKycCommand>
{
    public RunIdentityKycCommandValidator()
    {
        RuleFor(x => x.NationalId)
            .NotEmpty()
            .Matches(@"^\d{10}$")
            .WithMessage("National ID must be exactly 10 digits.");
    }
}
