using FluentValidation;

namespace Baya.Application.Features.Refunds.Commands.WriteOffClawback;

public sealed class WriteOffClawbackCommandValidator : AbstractValidator<WriteOffClawbackCommand>
{
    public WriteOffClawbackCommandValidator()
    {
        RuleFor(x => x.ClawbackId).GreaterThan(0);
        RuleFor(x => x.Reason).NotEmpty().MaximumLength(500);
    }
}
