ggez-banking-sdk 0.1.29 → 0.1.31
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.
@@ -39,10 +39,7 @@ declare const Data: () => {
|
|
39
39
|
is_primary: number;
|
40
40
|
verification_status: number;
|
41
41
|
}[];
|
42
|
-
authentication:
|
43
|
-
type: number;
|
44
|
-
code: string;
|
45
|
-
}[];
|
42
|
+
authentication: any[];
|
46
43
|
security: {
|
47
44
|
password: string;
|
48
45
|
security_code: number;
|
@@ -143,6 +140,10 @@ declare const Data: () => {
|
|
143
140
|
is_primary: number;
|
144
141
|
verification_status: number;
|
145
142
|
}[];
|
143
|
+
authentication: {
|
144
|
+
type: number;
|
145
|
+
code: string;
|
146
|
+
}[];
|
146
147
|
security: {
|
147
148
|
password: string;
|
148
149
|
security_code: number;
|
@@ -214,7 +215,6 @@ declare const Data: () => {
|
|
214
215
|
activity: any;
|
215
216
|
notes: any;
|
216
217
|
last_activity: any;
|
217
|
-
authentication: any;
|
218
218
|
validate: any;
|
219
219
|
function_code: any;
|
220
220
|
response_time: any;
|
@@ -116,6 +116,27 @@ const Data = () => {
|
|
116
116
|
}
|
117
117
|
customField.promotion_data.gift_data = [values.giftData];
|
118
118
|
}
|
119
|
+
let authentication = [];
|
120
|
+
if (values.mobileAuthenticationCode) {
|
121
|
+
authentication = [
|
122
|
+
{
|
123
|
+
type: enum_1.SecurityAuthenticationTypes.SMS_Code,
|
124
|
+
code: values.mobileAuthenticationCode,
|
125
|
+
},
|
126
|
+
{
|
127
|
+
type: enum_1.SecurityAuthenticationTypes.Email_Code,
|
128
|
+
code: values.emailAuthenticationCode,
|
129
|
+
},
|
130
|
+
];
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
authentication = [
|
134
|
+
{
|
135
|
+
type: enum_1.SecurityAuthenticationTypes.Email_Code,
|
136
|
+
code: values.emailAuthenticationCode,
|
137
|
+
},
|
138
|
+
];
|
139
|
+
}
|
119
140
|
let data = {
|
120
141
|
...data_1.userData,
|
121
142
|
info: {
|
@@ -152,16 +173,7 @@ const Data = () => {
|
|
152
173
|
verification_status: 1,
|
153
174
|
},
|
154
175
|
],
|
155
|
-
authentication:
|
156
|
-
// {
|
157
|
-
// type: 10,
|
158
|
-
// code: values.mobileAuthenticationCode,
|
159
|
-
// },
|
160
|
-
{
|
161
|
-
type: 9,
|
162
|
-
code: values.emailAuthenticationCode,
|
163
|
-
},
|
164
|
-
],
|
176
|
+
authentication: authentication,
|
165
177
|
security: {
|
166
178
|
password: values.password,
|
167
179
|
security_code: values.securityCode,
|
@@ -261,12 +273,12 @@ const Data = () => {
|
|
261
273
|
verification_status: 1,
|
262
274
|
},
|
263
275
|
],
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
276
|
+
authentication: [
|
277
|
+
{
|
278
|
+
type: 10,
|
279
|
+
code: values.mobileAuthenticationCode,
|
280
|
+
},
|
281
|
+
],
|
270
282
|
security: {
|
271
283
|
password: values.password,
|
272
284
|
security_code: values.securityCode,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ggez-banking-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.31",
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|