15 lines
479 B
C#
15 lines
479 B
C#
using MediatR;
|
|
using ZeroFramework.DeviceCenter.Domain.Aggregates.OrderAggregate;
|
|
|
|
namespace ZeroFramework.DeviceCenter.Domain.Events.Ordering
|
|
{
|
|
/// <summary>
|
|
/// Event used when the order is paid
|
|
/// </summary>
|
|
public class OrderStatusChangedToPaidDomainEvent(Guid orderId, IEnumerable<OrderItem> orderItems) : INotification
|
|
{
|
|
public Guid OrderId { get; } = orderId;
|
|
|
|
public IEnumerable<OrderItem> OrderItems { get; } = orderItems;
|
|
}
|
|
} |