@lendi/act-credit-decisions-transform 2.0.8 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -112,6 +112,11 @@ function transformLiability({ applicationId, id, liability }) {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
const newLimit = (0, lodash_1.get)(partialApplication, liabilityMapping.newLimit, 0);
|
|
116
|
+
if (!newLimit) {
|
|
117
|
+
// set clearing from this loan to true if ongoing limit is reduced
|
|
118
|
+
(0, lodash_1.set)(partialApplication, liabilityMapping.clearingFromThisLoan, lixi_internal_request_1.YesNoList.Yes);
|
|
119
|
+
}
|
|
115
120
|
return partialApplication;
|
|
116
121
|
}
|
|
117
122
|
exports.transformLiability = transformLiability;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/act-credit-decisions-transform",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Library for kafka event data transforming",
|
|
5
5
|
"author": "Integrations <integrations@lendi.com.au>",
|
|
6
6
|
"homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",
|