namespace BackOffice.BFF.Application.ManualPaymentCQ.Commands.CreateManualPayment; public class CreateManualPaymentCommandValidator : AbstractValidator { public CreateManualPaymentCommandValidator() { RuleFor(x => x.UserId) .GreaterThan(0) .WithMessage("شناسه کاربر باید بزرگتر از صفر باشد."); RuleFor(x => x.Amount) .GreaterThan(0) .WithMessage("مبلغ باید بزرگتر از صفر باشد."); RuleFor(x => x.Description) .NotEmpty() .WithMessage("توضیحات الزامی است."); RuleFor(x => x.Type) .GreaterThan(0) .WithMessage("نوع پرداخت دستی نامعتبر است."); } }