diff --git a/contract/MAVN.Service.SmartVouchers.Contract/SmartVoucherUsedEvent.cs b/contract/MAVN.Service.SmartVouchers.Contract/SmartVoucherUsedEvent.cs index 40197a3..38477be 100644 --- a/contract/MAVN.Service.SmartVouchers.Contract/SmartVoucherUsedEvent.cs +++ b/contract/MAVN.Service.SmartVouchers.Contract/SmartVoucherUsedEvent.cs @@ -46,5 +46,10 @@ public class SmartVoucherUsedEvent /// Currency /// public string Currency { get; set; } + + /// + /// Short code of the voucher + /// + public string VoucherShortCode { get; set; } } } diff --git a/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs b/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs index de2f31e..d65f42e 100644 --- a/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs +++ b/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs @@ -546,6 +546,7 @@ await _voucherUsedPublisher.PublishAsync(new SmartVoucherUsedEvent Amount = voucherCampaign.VoucherPrice, Currency = voucherCampaign.Currency, LinkedCustomerId = voucher.SellerId, + VoucherShortCode = voucher.ShortCode, }); }