@zeniai/client-epic-state 4.11.50 → 4.11.51
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.
|
@@ -17,7 +17,7 @@ const createBankAccountEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, o
|
|
|
17
17
|
return zeniAPI
|
|
18
18
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/bank-accounts`, (0, bankAccountViewPayload_1.toBankAccountPayload)(bankAccountLocalData, paymentMethodType))
|
|
19
19
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
21
21
|
const bankAccountActions = [];
|
|
22
22
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
23
23
|
bankAccountActions.push((0, bankAccountReducer_1.updateBankAccounts)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.bank_accounts) !== null && _b !== void 0 ? _b : []), (0, bankAccountViewReducer_1.updateStatusForCreateBankAccountFlow)({
|
|
@@ -62,7 +62,9 @@ const createBankAccountEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, o
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
else if (response.status.code === 409) {
|
|
65
|
-
bankAccountActions.push(
|
|
65
|
+
bankAccountActions.push(
|
|
66
|
+
// bank account already exists
|
|
67
|
+
(0, bankAccountReducer_1.updateBankAccounts)((_k = (_j = response.data) === null || _j === void 0 ? void 0 : _j.bank_accounts) !== null && _k !== void 0 ? _k : []), (0, bankAccountViewReducer_1.updateStatusForCreateBankAccountFlow)({
|
|
66
68
|
fetchState: 'Error',
|
|
67
69
|
error: response.status,
|
|
68
70
|
isInternationalBankAccount: false,
|
|
@@ -82,7 +84,7 @@ const createBankAccountEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, o
|
|
|
82
84
|
bankAccountContext === 'billDetail') {
|
|
83
85
|
bankAccountActions.push((0, vendorViewReducer_1.updateBankAccountsInVendorView)({
|
|
84
86
|
bankAccountIds: [
|
|
85
|
-
(
|
|
87
|
+
(_m = (_l = response.data) === null || _l === void 0 ? void 0 : _l.bank_accounts[0].bank_account_id) !== null && _m !== void 0 ? _m : '',
|
|
86
88
|
],
|
|
87
89
|
vendorId: vendorId,
|
|
88
90
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.51",
|
|
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",
|