@tap-payments/auth-jsconnect 2.4.18 → 2.4.19
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.
|
@@ -228,7 +228,7 @@ export var getMerchantListAsync = createAsyncThunk('connectExpress/getMerchantLi
|
|
|
228
228
|
case 0:
|
|
229
229
|
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
230
230
|
platforms = (_e = (_d = (_c = connectExpress.data.responseData) === null || _c === void 0 ? void 0 : _c.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
|
|
231
|
-
payment_provider = (_h = (_g = (_f = connectExpress.data.responseData) === null || _f === void 0 ? void 0 : _f.
|
|
231
|
+
payment_provider = (_h = (_g = (_f = connectExpress.data.responseData) === null || _f === void 0 ? void 0 : _f.leadData) === null || _g === void 0 ? void 0 : _g.payment_provider) !== null && _h !== void 0 ? _h : settings.data.appConfig.paymentProvider;
|
|
232
232
|
payload = {
|
|
233
233
|
business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
|
|
234
234
|
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
@@ -880,7 +880,7 @@ export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAs
|
|
|
880
880
|
_b = connectExpress.data, responseData = _b.responseData, showBoard = _b.showBoard;
|
|
881
881
|
_c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope, redirectUrl = _c.redirectUrl, mode = _c.mode;
|
|
882
882
|
platforms = (_f = (_e = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _e === void 0 ? void 0 : _e.platforms) !== null && _f !== void 0 ? _f : settings.data.appConfig.platforms;
|
|
883
|
-
payment_provider = (_h = (_g = responseData === null || responseData === void 0 ? void 0 : responseData.
|
|
883
|
+
payment_provider = (_h = (_g = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _g === void 0 ? void 0 : _g.payment_provider) !== null && _h !== void 0 ? _h : settings.data.appConfig.paymentProvider;
|
|
884
884
|
authId = (_k = (_j = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _j === void 0 ? void 0 : _j.auth) === null || _k === void 0 ? void 0 : _k.id;
|
|
885
885
|
bi = settings.data.deviceInfo.browser.browser_id;
|
|
886
886
|
body = {
|
|
@@ -1175,7 +1175,8 @@ export var connectSlice = createSlice({
|
|
|
1175
1175
|
state.data.otpData.otp = '';
|
|
1176
1176
|
},
|
|
1177
1177
|
resetStore: function (state) {
|
|
1178
|
-
|
|
1178
|
+
var _a;
|
|
1179
|
+
state.data = __assign(__assign({}, state.data), { responseData: { leadData: (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.leadData } });
|
|
1179
1180
|
},
|
|
1180
1181
|
resetIndividualScreen: function (state) {
|
|
1181
1182
|
state.data.individualData = initialState.data.individualData;
|
|
@@ -1388,7 +1389,10 @@ export var connectSlice = createSlice({
|
|
|
1388
1389
|
})
|
|
1389
1390
|
.addCase(verifyPACIAsync.rejected, function (state, action) {
|
|
1390
1391
|
state.loading = false;
|
|
1391
|
-
|
|
1392
|
+
var error = action.error.message;
|
|
1393
|
+
if (error !== 'Aborted') {
|
|
1394
|
+
state.error = error;
|
|
1395
|
+
}
|
|
1392
1396
|
})
|
|
1393
1397
|
.addCase(verifyNIDOtpLeadIdentityAsync.pending, function (state) {
|
|
1394
1398
|
state.loading = true;
|
|
@@ -1416,7 +1420,10 @@ export var connectSlice = createSlice({
|
|
|
1416
1420
|
})
|
|
1417
1421
|
.addCase(verifyPaciLeadIdentityAsync.rejected, function (state, action) {
|
|
1418
1422
|
state.loading = false;
|
|
1419
|
-
|
|
1423
|
+
var error = action.error.message;
|
|
1424
|
+
if (error !== 'Aborted') {
|
|
1425
|
+
state.error = error;
|
|
1426
|
+
}
|
|
1420
1427
|
})
|
|
1421
1428
|
.addCase(retrieveEntityListAsync.pending, function (state) {
|
|
1422
1429
|
state.loading = true;
|