Skip to content
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 @@ -158,7 +158,7 @@ private async Task<Result> HandleSpecificDomainEvent(VoucherIssuedEvent domainEv
CancellationToken cancellationToken)
{
// Get the voucher aggregate
Result<VoucherAggregate> voucherAggregateResult = await this.VoucherAggregateRepository.GetLatestVersion(domainEvent.AggregateId, cancellationToken);
Result<VoucherAggregate> voucherAggregateResult = await this.VoucherAggregateRepository.GetLatestVersion(domainEvent.VoucherId, cancellationToken);
if (voucherAggregateResult.IsFailed)
return ResultHelpers.CreateFailure(voucherAggregateResult);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
<None Update="Receipts\Email\Safaricom\TransactionAuthorised.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="VoucherMessages\VoucherEmail.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="VoucherMessages\VoucherSMS.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h1>[OperatorIdentifier] Voucher</h1>

<h3>Voucher Details</h3>
<p><strong>Amount:</strong> [Value]</p>
<p><strong>Voucher Code:</strong> [VoucherCode]</p>
<img src="data:image/png;base64, [Barcode]"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[OperatorIdentifier] Voucher

Amount: [Value]
Voucher Code: [VoucherCode]
Loading