@tap-payments/auth-jsconnect 2.11.28-development → 2.11.30-development

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.
@@ -1,4 +1,4 @@
1
- import { BusinessCountryInfo } from '../@types';
1
+ import { BusinessCountryInfo, CountryCode } from '../@types';
2
2
  export declare const OTHER_BRAND: {
3
3
  id: string;
4
4
  code: string;
@@ -52,34 +52,7 @@ export declare const MONTHLY_INCOME_LIST: {
52
52
  };
53
53
  country_code: string[];
54
54
  }[];
55
- export declare const defaultCountry: {
56
- created: number;
57
- updated: number;
58
- countryId: string;
59
- name: {
60
- created: number;
61
- updated: number;
62
- textId: string;
63
- arabic: string;
64
- english: string;
65
- french: string;
66
- spanish: string;
67
- russian: string;
68
- chinese: string;
69
- };
70
- iso2: string;
71
- iso3: string;
72
- numeric: number;
73
- continent: string;
74
- capital: string;
75
- geoNameId: string;
76
- idd_prefix: number;
77
- logo: string;
78
- digits: number;
79
- supported_by_tap: boolean;
80
- min_digits: number;
81
- max_digits: number;
82
- };
55
+ export declare const defaultCountry: CountryCode;
83
56
  export declare const SOCIAL_MEDIA_LINKS: {
84
57
  twitter: string;
85
58
  facebook: string;
@@ -351,8 +351,8 @@ export var defaultCountry = {
351
351
  created: 1577690965000,
352
352
  updated: 1577691209000,
353
353
  textId: 'txt_vSW31311012NdeM7214',
354
- arabic: 'المملكة العربية السعودية',
355
354
  english: 'Saudi Arabia',
355
+ arabic: 'المملكة العربية السعودية',
356
356
  french: 'Arabie saoudite',
357
357
  spanish: 'Arabia Saudita',
358
358
  russian: 'Саудовская Аравия',
@@ -366,10 +366,10 @@ export var defaultCountry = {
366
366
  geoNameId: '102358',
367
367
  idd_prefix: 966,
368
368
  logo: getCountryLogoPNGPath('SA'),
369
- digits: 10,
369
+ digits: 9,
370
370
  supported_by_tap: true,
371
- min_digits: 10,
372
- max_digits: 10
371
+ min_digits: 9,
372
+ max_digits: 9
373
373
  };
374
374
  export var SOCIAL_MEDIA_LINKS = {
375
375
  twitter: 'https://twitter.com/gotapnow',
@@ -1052,8 +1052,9 @@ export var individualSlice = createSlice({
1052
1052
  if (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) {
1053
1053
  state.data.individualPersonalData.issuedCountry = findCountryByIso2(countries, identification === null || identification === void 0 ? void 0 : identification.issued_country_code);
1054
1054
  }
1055
- var expiryDate = new Date((identification === null || identification === void 0 ? void 0 : identification.expiry) || new Date().getTime());
1056
- state.data.individualPersonalData.expiryDate = convertNumbers2English(dateFormat(expiryDate));
1055
+ state.data.individualPersonalData.expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry)
1056
+ ? convertNumbers2English(dateFormat(new Date(identification.expiry)))
1057
+ : undefined;
1057
1058
  if (birth === null || birth === void 0 ? void 0 : birth.date)
1058
1059
  state.data.individualPersonalData.dob = convertNumbers2English(dateFormat(new Date(birth === null || birth === void 0 ? void 0 : birth.date)));
1059
1060
  if (birth === null || birth === void 0 ? void 0 : birth.country) {
@@ -1147,8 +1148,9 @@ export var individualSlice = createSlice({
1147
1148
  if (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) {
1148
1149
  state.data.individualPersonalData.issuedCountry = findCountryByIso2(countries, identification === null || identification === void 0 ? void 0 : identification.issued_country_code);
1149
1150
  }
1150
- var expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry) || new Date().getTime();
1151
- state.data.individualPersonalData.expiryDate = convertNumbers2English(dateFormat(expiryDate));
1151
+ state.data.individualPersonalData.expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry)
1152
+ ? convertNumbers2English(dateFormat(new Date(identification.expiry)))
1153
+ : undefined;
1152
1154
  if (birth === null || birth === void 0 ? void 0 : birth.date)
1153
1155
  state.data.individualPersonalData.dob = convertNumbers2English(dateFormat(birth === null || birth === void 0 ? void 0 : birth.date));
1154
1156
  if (birth === null || birth === void 0 ? void 0 : birth.country) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.11.28-development",
3
+ "version": "2.11.30-development",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",