diff --git a/fineract-avro-schemas/src/main/avro/loan/v1/LoanSummaryDataV1.avsc b/fineract-avro-schemas/src/main/avro/loan/v1/LoanSummaryDataV1.avsc index 9dae4c2f55a..1dfffa53918 100644 --- a/fineract-avro-schemas/src/main/avro/loan/v1/LoanSummaryDataV1.avsc +++ b/fineract-avro-schemas/src/main/avro/loan/v1/LoanSummaryDataV1.avsc @@ -411,6 +411,14 @@ "bigdecimal" ] }, + { + "default": null, + "name": "totalInterestPaymentWaiver", + "type": [ + "null", + "bigdecimal" + ] + }, { "default": null, "name": "chargeOffReasonId", diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/CustomSnapshotEventIntegrationTest.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/CustomSnapshotEventIntegrationTest.java index f6dd36c2cd7..98f9ab0b124 100644 --- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/CustomSnapshotEventIntegrationTest.java +++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/CustomSnapshotEventIntegrationTest.java @@ -95,7 +95,7 @@ public void testSnapshotEventGenerationWhenLoanInstallmentIsNotPayed() { Assertions.assertEquals(loanId, allExternalEvents.get(0).getAggregateRootId()); // Loan Delinquency data validation - final Map payLoad = (Map) allExternalEvents.get(0).getPayLoad().get("delinquent"); + Map payLoad = (Map) allExternalEvents.get(0).getPayLoad().get("delinquent"); log.info("Payload: {}", payLoad.toString()); Assertions.assertNotNull(payLoad.get("delinquentPrincipal")); @@ -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) 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")); }); }