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

using FluentValidation;
using OrderService.API.Application.Commands;

namespace OrderService.API.Application.Validations;

/// <summary>
/// EN: Validator for CompleteOrderCommand.
/// VI: Validator cho CompleteOrderCommand.
/// </summary>
public class CompleteOrderCommandValidator : AbstractValidator<CompleteOrderCommand>
{
    public CompleteOrderCommandValidator()
    {
        RuleFor(x => x.OrderId)
            .NotEmpty()
            .WithMessage("EN: Order ID is required / VI: Order ID la bat buoc");

        RuleFor(x => x.ShopId)
            .NotEmpty()
            .WithMessage("EN: Shop ID is required / VI: Shop ID la bat buoc");
    }
}
