using EventFlow.Aggregates;

namespace Books.Api.Domain.Orders.Events;

/// <summary>
/// Raised when order header information is updated (not lines).
/// </summary>
public class OrderUpdatedEvent(
    DateOnly? expectedDeliveryDate,
    string? notes,
    string? reference,
    string updatedBy) : AggregateEvent<OrderAggregate, OrderId>
{
    public DateOnly? ExpectedDeliveryDate { get; } = expectedDeliveryDate;
    public string? Notes { get; } = notes;
    public string? Reference { get; } = reference;
    public string UpdatedBy { get; } = updatedBy;
}
