using FluentValidation;

namespace Baya.Application.Features.Payouts.Commands.MarkPayoutFailed;

public sealed class MarkPayoutFailedCommandValidator : AbstractValidator<MarkPayoutFailedCommand>
{
    public MarkPayoutFailedCommandValidator()
    {
        RuleFor(x => x.PayoutId).GreaterThan(0);
        RuleFor(x => x.FailureReason).NotEmpty().MaximumLength(500);
    }
}
