Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add payment request ID to SmartVoucherSold event and fix typo in exch… #18

Merged
merged 1 commit into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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