// EN: Validator for PayOrderCommand.
// VI: Validator cho PayOrderCommand.

using FluentValidation;

namespace OrderService.API.Application.Validations;

/// <summary>
/// EN: Validator for PayOrderCommand.
/// VI: Validator cho PayOrderCommand.
/// </summary>
public class PayOrderCommandValidator : AbstractValidator<Commands.PayOrderCommand>
{
    public PayOrderCommandValidator()
    {
        RuleFor(x => x.OrderId)
            .NotEmpty()
            .WithMessage("EN: Order ID is required / VI: Order ID là bắt buộc");

        RuleFor(x => x.ShopId)
            .NotEmpty()
            .WithMessage("EN: Shop ID is required / VI: Shop ID là bắt buộc");
    }
}
