@tap-payments/auth-jsconnect 2.6.34-test → 2.6.36-test
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.
|
@@ -270,15 +270,15 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
270
270
|
_k.sent();
|
|
271
271
|
_k.label = 11;
|
|
272
272
|
case 11:
|
|
273
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
273
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP')); });
|
|
274
274
|
return [3, 23];
|
|
275
275
|
case 12:
|
|
276
276
|
if (!(data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH)) return [3, 13];
|
|
277
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
|
|
277
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP')); });
|
|
278
278
|
return [3, 23];
|
|
279
279
|
case 13:
|
|
280
280
|
if (!hasBusinessCustomersCompleted) return [3, 14];
|
|
281
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP'));
|
|
281
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP')); });
|
|
282
282
|
return [3, 23];
|
|
283
283
|
case 14:
|
|
284
284
|
if (!hasBusinessCRActivitiesCompleted) return [3, 19];
|
|
@@ -295,7 +295,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
295
295
|
return [4, API.brandService.retrieveBrand(brandID)];
|
|
296
296
|
case 18:
|
|
297
297
|
brandData = _k.sent();
|
|
298
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP'));
|
|
298
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP')); });
|
|
299
299
|
return [3, 23];
|
|
300
300
|
case 19:
|
|
301
301
|
if (!hasBusinessCRInfoCompleted) return [3, 22];
|
|
@@ -306,10 +306,10 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
306
306
|
return [4, API.brandService.retrieveBrand(brandID)];
|
|
307
307
|
case 21:
|
|
308
308
|
brandData = _k.sent();
|
|
309
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP'));
|
|
309
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP')); });
|
|
310
310
|
return [3, 23];
|
|
311
311
|
case 22:
|
|
312
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
|
|
312
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP')); });
|
|
313
313
|
_k.label = 23;
|
|
314
314
|
case 23: return [2, { data: data, isicActivityList: isicActivityList, formData: __assign(__assign({}, params), { isNID: isNID }), brand: brandData === null || brandData === void 0 ? void 0 : brandData.brand, leadData: leadData, currencyData: currencyData }];
|
|
315
315
|
}
|
|
@@ -723,7 +723,8 @@ export var updateLeadSuccess = createAsyncThunk('businessUpdateLeadSuccess', fun
|
|
|
723
723
|
case 0:
|
|
724
724
|
_a = thunkApi.getState(), settings = _a.settings, business = _a.business;
|
|
725
725
|
_b = business.data.verify.responseBody || {}, steps = _b.steps, lead_id = _b.lead_id;
|
|
726
|
-
flowCompleted =
|
|
726
|
+
flowCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_SUCCESS);
|
|
727
|
+
console.info('stop success call', flowCompleted || !lead_id);
|
|
727
728
|
if (flowCompleted || !lead_id)
|
|
728
729
|
return [2];
|
|
729
730
|
boardResponse = undefined;
|
|
@@ -853,6 +854,13 @@ export var businessSlice = createSlice({
|
|
|
853
854
|
var _g = action.payload, data = _g.data, boardId = _g.boardId, brandData = _g.brandData, leadData = _g.leadData, token = _g.token, isRequireOTP = _g.isRequireOTP, isicActivityList = _g.isicActivityList, currencyData = _g.currencyData;
|
|
854
855
|
var responseBody = state.data.verify.responseBody;
|
|
855
856
|
state.data.verify.responseBody = __assign(__assign(__assign(__assign(__assign({}, data), leadData), responseBody), { board_id: boardId, lead_id: data === null || data === void 0 ? void 0 : data.id }), (brandData && { brand: brandData }));
|
|
857
|
+
var identification = leadData.identification, date_of_birth = leadData.date_of_birth;
|
|
858
|
+
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
859
|
+
state.data.nidData.nid = identification.id;
|
|
860
|
+
if (date_of_birth)
|
|
861
|
+
state.data.nidData.dob = dateFormat(date_of_birth);
|
|
862
|
+
if (identification === null || identification === void 0 ? void 0 : identification.type)
|
|
863
|
+
state.data.nidData.type = identification.type;
|
|
856
864
|
if (token)
|
|
857
865
|
state.data.verify.token = token;
|
|
858
866
|
state.data.otpData.isNID = false;
|