zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Events/Ordering/OrderStartedDomainEvent.cs

22 lines
668 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
using MediatR;
using ZeroFramework.DeviceCenter.Domain.Aggregates.OrderAggregate;
namespace ZeroFramework.DeviceCenter.Domain.Events.Ordering
{
/// <summary>
/// Event used when an order is created
/// </summary>
public class OrderStartedDomainEvent(Order order, Guid userId, int cardTypeId, string cardNumber, DateTimeOffset cardExpiration) : INotification
{
public Guid UserId { get; } = userId;
public int CardTypeId { get; } = cardTypeId;
public string CardNumber { get; } = cardNumber;
public DateTimeOffset CardExpiration { get; } = cardExpiration;
public Order Order { get; } = order;
}
}