@zeniai/client-epic-state 4.16.66 → 4.16.67
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.
|
@@ -62,9 +62,7 @@ const saveReconciliationReviewEpic = (actions$, state$, zeniAPI) => actions$.pip
|
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
const messageSection = (updatedTransaction
|
|
66
|
-
? 'recon_transaction_categorize'
|
|
67
|
-
: 'recon_transaction_match';
|
|
65
|
+
const messageSection = getToastMessageSection(updatedTransaction);
|
|
68
66
|
return zeniAPI
|
|
69
67
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/review?query=${encodeURIComponent(JSON.stringify(queryParam))}`, payload)
|
|
70
68
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
@@ -211,3 +209,9 @@ const getPayloadForBillPayment = (updatedTransaction, linkedTransaction, localDa
|
|
|
211
209
|
vendor_name: linkedTransaction === null || linkedTransaction === void 0 ? void 0 : linkedTransaction.merchantName,
|
|
212
210
|
};
|
|
213
211
|
};
|
|
212
|
+
const getToastMessageSection = (updatedTransaction) => {
|
|
213
|
+
if ((updatedTransaction === null || updatedTransaction === void 0 ? void 0 : updatedTransaction.recommendedAction.action) === 'record_bill_payment') {
|
|
214
|
+
return 'recon_transaction_match';
|
|
215
|
+
}
|
|
216
|
+
return 'recon_transaction_categorize';
|
|
217
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.67",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|