// EN: Command to cancel an order.
// VI: Command hủy order.

using MediatR;

namespace OrderService.API.Application.Commands;

/// <summary>
/// EN: Command to cancel an order with reason.
/// VI: Command hủy order với lý do.
/// </summary>
public record CancelOrderCommand(
    Guid OrderId,
    Guid ShopId,
    string Reason
) : IRequest<CancelOrderResult>;

/// <summary>
/// EN: Result of cancel order command.
/// VI: Kết quả command hủy order.
/// </summary>
public record CancelOrderResult(
    bool Success,
    string Status
);
