Skip to content

Commit

Permalink
Merge pull request #18 from IliyanIlievPH/master
Browse files Browse the repository at this point in the history
Add payment request ID to SmartVoucherSold event and fix typo in exch…
  • Loading branch information
starkmsu authored May 4, 2020
2 parents 9798e1d + 5bb9112 commit b7ae1f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ namespace MAVN.Service.SmartVouchers.Contract
/// </summary>
public class SmartVoucherSoldEvent
{
/// <summary>
/// Id of the voucher payment request
/// </summary>
public string PaymentRequestId { get; set; }

/// <summary>
/// Timestamp
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ await _voucherSoldPublisher.PublishAsync(new SmartVoucherSoldEvent
Timestamp = DateTime.UtcNow,
CampaignId = voucher.CampaignId,
VoucherShortCode = voucher.ShortCode,
PaymentRequestId = paymentRequestId.ToString(),
});

return ProcessingVoucherError.None;
Expand Down
2 changes: 1 addition & 1 deletion src/MAVN.Service.SmartVouchers/Modules/RabbitMqModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace MAVN.Service.SmartVouchers.Modules
[UsedImplicitly]
public class RabbitMqModule : Module
{
private const string PubExchangeName = "lykke.smart-vouchers.vouchesold";
private const string PubExchangeName = "lykke.smart-vouchers.vouchersold";
private const string SubExchangeName = "REPLACE THIS WITH PROPER EXCHANGE NAME"; // TODO pass proper exchange name

private readonly RabbitMqSettings _settings;
Expand Down

0 comments on commit b7ae1f6

Please sign in to comment.