30 lines
866 B
C#
30 lines
866 B
C#
using System.Collections.Generic;
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
|
|
|
namespace TenantACustomisations.IntegrationEvents.Events
|
|
{
|
|
public class OrderStatusChangedToAwaitingValidationIntegrationEvent : IntegrationEvent
|
|
{
|
|
public int OrderId { get; }
|
|
public IEnumerable<OrderStockItem> OrderStockItems { get; }
|
|
|
|
public OrderStatusChangedToAwaitingValidationIntegrationEvent(int orderId,
|
|
IEnumerable<OrderStockItem> orderStockItems)
|
|
{
|
|
OrderId = orderId;
|
|
OrderStockItems = orderStockItems;
|
|
}
|
|
}
|
|
|
|
public class OrderStockItem
|
|
{
|
|
public int ProductId { get; }
|
|
public int Units { get; }
|
|
|
|
public OrderStockItem(int productId, int units)
|
|
{
|
|
ProductId = productId;
|
|
Units = units;
|
|
}
|
|
}
|
|
} |