Skip to content

Commit

Permalink
FINERACT-2081: Loan account data additional fields for summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alberto Hernandez authored and adamsaghy committed Jul 19, 2024
1 parent e4c857d commit 703ef90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@
"bigdecimal"
]
},
{
"default": null,
"name": "totalInterestPaymentWaiver",
"type": [
"null",
"bigdecimal"
]
},
{
"default": null,
"name": "chargeOffReasonId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void testSnapshotEventGenerationWhenLoanInstallmentIsNotPayed() {
Assertions.assertEquals(loanId, allExternalEvents.get(0).getAggregateRootId());

// Loan Delinquency data validation
final Map<String, Object> payLoad = (Map<String, Object>) allExternalEvents.get(0).getPayLoad().get("delinquent");
Map<String, Object> payLoad = (Map<String, Object>) allExternalEvents.get(0).getPayLoad().get("delinquent");
log.info("Payload: {}", payLoad.toString());

Assertions.assertNotNull(payLoad.get("delinquentPrincipal"));
Expand All @@ -106,6 +106,13 @@ public void testSnapshotEventGenerationWhenLoanInstallmentIsNotPayed() {
Assertions.assertEquals(0.0, payLoad.get("delinquentFee"));
Assertions.assertNotNull(payLoad.get("delinquentPenalty"));
Assertions.assertEquals(0.0, payLoad.get("delinquentPenalty"));

payLoad = (Map<String, Object>) allExternalEvents.get(0).getPayLoad().get("summary");
log.info("Payload: {}", payLoad.toString());
Assertions.assertNotNull(payLoad.get("totalInterestPaymentWaiver"));
Assertions.assertEquals(0.0, payLoad.get("totalInterestPaymentWaiver"));
Assertions.assertNotNull(payLoad.get("totalRepaymentTransactionReversed"));
Assertions.assertEquals(0.0, payLoad.get("totalRepaymentTransactionReversed"));
});
}

Expand Down

0 comments on commit 703ef90

Please sign in to comment.