25 lines
755 B
C#
25 lines
755 B
C#
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Coupon.API.IntegrationEvents.Events
|
|
{
|
|
public record OrderStatusChangedToAwaitingCouponValidationIntegrationEvent : IntegrationEvent
|
|
{
|
|
public int OrderId { get; private set; }
|
|
|
|
public string OrderStatus { get; private set; }
|
|
|
|
public string BuyerName { get; private set; }
|
|
|
|
public string Code { get; private set; }
|
|
|
|
public OrderStatusChangedToAwaitingCouponValidationIntegrationEvent(int orderId, string orderStatus, string buyerName, string code)
|
|
{
|
|
OrderId = orderId;
|
|
OrderStatus = orderStatus;
|
|
BuyerName = buyerName;
|
|
Code = code;
|
|
}
|
|
}
|
|
}
|