@tap-payments/auth-jsconnect 1.0.76 → 1.0.77
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.
|
@@ -365,9 +365,9 @@ export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', functio
|
|
|
365
365
|
}); });
|
|
366
366
|
export var updateLeadSuccess = createAsyncThunk('updateLeadSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
367
367
|
var _a, settings, business, _b, steps, id, flowCompleted, payload, data;
|
|
368
|
-
var _c, _d, _e, _f;
|
|
369
|
-
return __generator(this, function (
|
|
370
|
-
switch (
|
|
368
|
+
var _c, _d, _e, _f, _g;
|
|
369
|
+
return __generator(this, function (_h) {
|
|
370
|
+
switch (_h.label) {
|
|
371
371
|
case 0:
|
|
372
372
|
_a = thunkApi.getState(), settings = _a.settings, business = _a.business;
|
|
373
373
|
_b = business.data.verify.responseBody || {}, steps = _b.steps, id = _b.id;
|
|
@@ -399,9 +399,12 @@ export var updateLeadSuccess = createAsyncThunk('updateLeadSuccess', function (p
|
|
|
399
399
|
};
|
|
400
400
|
return [4, API.leadService.updateLead(payload)];
|
|
401
401
|
case 1:
|
|
402
|
-
data = (
|
|
402
|
+
data = (_h.sent()).data;
|
|
403
403
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
404
404
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
405
|
+
return [4, thunkApi.dispatch(retrieveEntityInfo((_g = data === null || data === void 0 ? void 0 : data.entity) === null || _g === void 0 ? void 0 : _g.id))];
|
|
406
|
+
case 2:
|
|
407
|
+
_h.sent();
|
|
405
408
|
return [2, { response: data, formData: params }];
|
|
406
409
|
}
|
|
407
410
|
});
|
|
@@ -47,7 +47,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
47
47
|
var _b = data.verify.responseBody || {}, flows = _b.flows, nameObj = _b.name, entity = _b.entity, businessType = _b.business_type, bank = _b.bank, tax = _b.tax_id;
|
|
48
48
|
var _c = useState([]), buttons = _c[0], setButtons = _c[1];
|
|
49
49
|
var username = ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.first) || '') + ' ' + ((nameObj === null || nameObj === void 0 ? void 0 : nameObj.last) || '');
|
|
50
|
-
var licenseNumber = ((_a = entity.license) === null || _a === void 0 ? void 0 : _a.number) || '';
|
|
50
|
+
var licenseNumber = ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.number) || '';
|
|
51
51
|
var bankName = (bank === null || bank === void 0 ? void 0 : bank.name) || '';
|
|
52
52
|
var iban = (bank === null || bank === void 0 ? void 0 : bank.name) || '';
|
|
53
53
|
var taxID = tax || '';
|