ggez-banking-sdk 0.1.30 → 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.
@@ -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,
|
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",
|