Skip to content

Commit

Permalink
OPS-418: Fix amount change (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
malkoas authored Apr 23, 2024
1 parent 4b3e637 commit b34e764
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PaymentData map(InvoiceChange change, MachineEvent machineEvent) {

if (invoicePaymentCaptureStarted.getData().isSetCash()) {
Cash cash = invoicePaymentCaptureStarted.getData().getCash();
paymentData.setPaymentAmount(cash.getAmount());
paymentData.setPaymentOriginAmount(cash.getAmount());
paymentData.setPaymentCurrencyCode(cash.getCurrency().getSymbolicCode());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public PaymentData map(InvoiceChange change, MachineEvent machineEvent) {
InvoicePaymentCaptured invoicePaymentCaptured = invoicePaymentStatusChanged.getStatus().getCaptured();
if (invoicePaymentCaptured.isSetCost()) {
Cash cost = invoicePaymentCaptured.getCost();
paymentData.setPaymentAmount(cost.getAmount());
paymentData.setPaymentOriginAmount(cost.getAmount());
paymentData.setPaymentCurrencyCode(cost.getCurrency().getSymbolicCode());
}
}
Expand Down

0 comments on commit b34e764

Please sign in to comment.