using EventFlow.Aggregates;

namespace Books.Api.Domain.Orders.Events;

/// <summary>
/// Raised when an order is marked as completed.
/// </summary>
public class OrderCompletedEvent(
    string completedBy,
    DateTimeOffset completedAt) : AggregateEvent<OrderAggregate, OrderId>
{
    public string CompletedBy { get; } = completedBy;
    public DateTimeOffset CompletedAt { get; } = completedAt;
}
