@tap-payments/auth-jsconnect 2.0.100-test → 2.0.102-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.
- package/build/api/index.d.ts +4 -2
- package/build/api/individual.d.ts +21 -0
- package/build/api/individual.js +28 -1
- package/build/assets/locales/ar.json +3 -1
- package/build/assets/locales/en.json +3 -1
- package/build/features/app/bank/bankStore.js +2 -2
- package/build/features/app/business/businessStore.js +14 -12
- package/build/features/app/connect/connectStore.js +18 -3
- package/build/features/app/individual/individualStore.d.ts +17 -0
- package/build/features/app/individual/individualStore.js +144 -69
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/tax/taxStore.js +2 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -5
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +36 -0
- package/build/features/business/screens/Activities/ActivitiesList.js +32 -2
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -0
- package/build/features/business/screens/Activities/OperationStartDate.js +5 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +13 -0
- package/build/features/business/screens/Customers/CustomerLocations.js +9 -2
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -3
- package/build/features/business/screens/Verify/Verify.js +2 -1
- package/build/features/connect/screens/Merchant/SocialMedia.js +6 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -6
- package/build/features/individual/screens/Verify/Verify.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +8 -5
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +7 -4
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import { styled } from '@mui/material/styles';
|
|
|
16
16
|
import { FlowsButtons } from '../../../shared/Button';
|
|
17
17
|
import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '../../../../constants';
|
|
18
18
|
import { useAppSelector, useLanguage } from '../../../../hooks';
|
|
19
|
-
import { getResetFlowUrl, showLastFour } from '../../../../utils';
|
|
19
|
+
import { getResetFlowUrl, showLastFour, concatenateObjectValues } from '../../../../utils';
|
|
20
20
|
import { taxSelector } from '../../../app/tax/taxStore';
|
|
21
21
|
import Box from '@mui/material/Box';
|
|
22
22
|
import Text from '../../../../components/Text';
|
|
@@ -48,9 +48,12 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(taxSelector).data;
|
|
51
|
-
var _e = data.verify.responseBody || {}, flows = _e.flows, nameObj = _e.name, entity = _e.entity, brand = _e.brand, bank = _e.bank, merchant = _e.merchant,
|
|
51
|
+
var _e = data.verify.responseBody || {}, flows = _e.flows, nameObj = _e.name, entity = _e.entity, brand = _e.brand, bank = _e.bank, merchant = _e.merchant, vatID = _e.vatID, user = _e.user;
|
|
52
52
|
var _f = useState([]), buttons = _f[0], setButtons = _f[1];
|
|
53
|
-
var
|
|
53
|
+
var _g = nameObj || {}, en = _g.en, ar = _g.ar;
|
|
54
|
+
var username = isAr
|
|
55
|
+
? concatenateObjectValues(ar || en, ['first', 'last'])
|
|
56
|
+
: concatenateObjectValues(en, ['first', 'last']);
|
|
54
57
|
var licenseNumber = ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.number) || '';
|
|
55
58
|
var bankName = (bank === null || bank === void 0 ? void 0 : bank.bank_name) || t('bank');
|
|
56
59
|
var iban = showLastFour((bank === null || bank === void 0 ? void 0 : bank.iban) || '');
|
|
@@ -61,7 +64,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
61
64
|
var identification = user.identification;
|
|
62
65
|
var maskedId = !!(identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_d = identification === null || identification === void 0 ? void 0 : identification.id) === null || _d === void 0 ? void 0 : _d.slice(-2)) : '';
|
|
63
66
|
var settings = useAppSelector(settingsSelector);
|
|
64
|
-
var
|
|
67
|
+
var _h = data.verify.responseBody || { contact: {}, board_id: '' }, contact = _h.contact, board_id = _h.board_id, board_info_id = _h.board_info_id;
|
|
65
68
|
var email = (contact || { email: '' }).email;
|
|
66
69
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
67
70
|
var reMapFlowData = function (flows) {
|