tencentcloud-sdk-nodejs-intl-en 3.0.1438 → 3.0.1439
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/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/ga2/index.js +3 -0
- package/tencentcloud/ga2/v20250115/ga2_client.js +46 -0
- package/tencentcloud/ga2/v20250115/index.js +4 -0
- package/tencentcloud/ga2/v20250115/models.js +86 -0
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/ocr/v20181119/models.js +456 -192
- package/tencentcloud/ocr/v20181119/ocr_client.js +19 -2
- package/tencentcloud/rce/v20260130/models.js +3846 -202
- package/tencentcloud/rce/v20260130/rce_client.js +65 -8
- package/tencentcloud/tcsas/v20250106/models.js +1809 -360
- package/tencentcloud/tcsas/v20250106/tcsas_client.js +83 -20
|
@@ -17,24 +17,66 @@
|
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Task event details
|
|
21
21
|
* @class
|
|
22
22
|
*/
|
|
23
|
-
class
|
|
23
|
+
class TaskEvent extends AbstractModel {
|
|
24
24
|
constructor(){
|
|
25
25
|
super();
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* <p>The ID of the
|
|
28
|
+
* <p>The ID of the promotion</p>
|
|
29
29
|
* @type {string || null}
|
|
30
30
|
*/
|
|
31
|
-
this.
|
|
31
|
+
this.PromotionId = null;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* <p>The
|
|
34
|
+
* <p>The name of the promotion</p>
|
|
35
35
|
* @type {string || null}
|
|
36
36
|
*/
|
|
37
|
-
this.
|
|
37
|
+
this.PromotionName = null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* <p>The description of the promotion</p>
|
|
41
|
+
* @type {string || null}
|
|
42
|
+
*/
|
|
43
|
+
this.Description = null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* <p>The ID of the inviter</p>
|
|
47
|
+
* @type {string || null}
|
|
48
|
+
*/
|
|
49
|
+
this.InviterUserId = null;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* <p>The ID of the task</p>
|
|
53
|
+
* @type {string || null}
|
|
54
|
+
*/
|
|
55
|
+
this.TaskId = null;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* <p>The name of the task</p>
|
|
59
|
+
* @type {string || null}
|
|
60
|
+
*/
|
|
61
|
+
this.TaskName = null;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* <p>Task type, such as daily check-in, ad viewing, or step accumulation</p>
|
|
65
|
+
* @type {string || null}
|
|
66
|
+
*/
|
|
67
|
+
this.TaskType = null;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* <p>Task completed duration</p><p>Measurement unit: ms</p>
|
|
71
|
+
* @type {number || null}
|
|
72
|
+
*/
|
|
73
|
+
this.TaskCostTime = null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
77
|
+
* @type {Array.<Cust> || null}
|
|
78
|
+
*/
|
|
79
|
+
this.Cust = null;
|
|
38
80
|
|
|
39
81
|
}
|
|
40
82
|
|
|
@@ -45,8 +87,217 @@ class RiskLabel extends AbstractModel {
|
|
|
45
87
|
if (!params) {
|
|
46
88
|
return;
|
|
47
89
|
}
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
90
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
91
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
92
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
93
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
94
|
+
this.TaskId = 'TaskId' in params ? params.TaskId : null;
|
|
95
|
+
this.TaskName = 'TaskName' in params ? params.TaskName : null;
|
|
96
|
+
this.TaskType = 'TaskType' in params ? params.TaskType : null;
|
|
97
|
+
this.TaskCostTime = 'TaskCostTime' in params ? params.TaskCostTime : null;
|
|
98
|
+
|
|
99
|
+
if (params.Cust) {
|
|
100
|
+
this.Cust = new Array();
|
|
101
|
+
for (let z in params.Cust) {
|
|
102
|
+
let obj = new Cust();
|
|
103
|
+
obj.deserialize(params.Cust[z]);
|
|
104
|
+
this.Cust.push(obj);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The details of the digital order
|
|
113
|
+
* @class
|
|
114
|
+
*/
|
|
115
|
+
class DigitalOrder extends AbstractModel {
|
|
116
|
+
constructor(){
|
|
117
|
+
super();
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* <p>The name of the asset</p>
|
|
121
|
+
* @type {string || null}
|
|
122
|
+
*/
|
|
123
|
+
this.DigitalAsset = null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* <p>The type of the asset</p><p>Enumeration value:</p><ul><li>coin</li><li>commodity</li><li>crypto</li><li>fiat</li><li>token</li><li>stock</li><li>bond</li></ul>
|
|
127
|
+
* @type {string || null}
|
|
128
|
+
*/
|
|
129
|
+
this.AssetType = null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* <p>The type of trade being made</p><p>Enumeration value:</p><ul><li>limit: Limit order</li><li>market: Market order</li><li>stop_limit: Stop-limit order</li><li>stop_loss: Stop-loss order</li><li>take_profit: Take-profit order</li><li>take_profit_limit: Take-profit limit order</li></ul>
|
|
133
|
+
* @type {string || null}
|
|
134
|
+
*/
|
|
135
|
+
this.OrderType = null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* <p>The quantity of the digital asset</p>
|
|
139
|
+
* @type {number || null}
|
|
140
|
+
*/
|
|
141
|
+
this.Volume = null;
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @private
|
|
147
|
+
*/
|
|
148
|
+
deserialize(params) {
|
|
149
|
+
if (!params) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this.DigitalAsset = 'DigitalAsset' in params ? params.DigitalAsset : null;
|
|
153
|
+
this.AssetType = 'AssetType' in params ? params.AssetType : null;
|
|
154
|
+
this.OrderType = 'OrderType' in params ? params.OrderType : null;
|
|
155
|
+
this.Volume = 'Volume' in params ? params.Volume : null;
|
|
156
|
+
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Bill information
|
|
162
|
+
* @class
|
|
163
|
+
*/
|
|
164
|
+
class Billing extends AbstractModel {
|
|
165
|
+
constructor(){
|
|
166
|
+
super();
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* <p>The billing address associated with this user</p>
|
|
170
|
+
* @type {Address || null}
|
|
171
|
+
*/
|
|
172
|
+
this.Address = null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* <p>The phone number associated with the bill</p><p>Parameter format: Complies with the E.164 standard, using the format with "+", region code, and number</p>
|
|
176
|
+
* @type {string || null}
|
|
177
|
+
*/
|
|
178
|
+
this.Phone = null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* <p>The email associated with the bill</p>
|
|
182
|
+
* @type {string || null}
|
|
183
|
+
*/
|
|
184
|
+
this.Email = null;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* <p>The name of the receiver associated with the bill</p>
|
|
188
|
+
* @type {string || null}
|
|
189
|
+
*/
|
|
190
|
+
this.Recipient = null;
|
|
191
|
+
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @private
|
|
196
|
+
*/
|
|
197
|
+
deserialize(params) {
|
|
198
|
+
if (!params) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (params.Address) {
|
|
203
|
+
let obj = new Address();
|
|
204
|
+
obj.deserialize(params.Address)
|
|
205
|
+
this.Address = obj;
|
|
206
|
+
}
|
|
207
|
+
this.Phone = 'Phone' in params ? params.Phone : null;
|
|
208
|
+
this.Email = 'Email' in params ? params.Email : null;
|
|
209
|
+
this.Recipient = 'Recipient' in params ? params.Recipient : null;
|
|
210
|
+
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Decision information
|
|
216
|
+
* @class
|
|
217
|
+
*/
|
|
218
|
+
class Decision extends AbstractModel {
|
|
219
|
+
constructor(){
|
|
220
|
+
super();
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* <p>Decision result</p><ul><li>pass: Pass</li><li>review: Review</li><li>reject: Reject</li></ul>
|
|
224
|
+
* @type {string || null}
|
|
225
|
+
*/
|
|
226
|
+
this.DecisionResult = null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* <p>Decision action when a strategy is matched. Configurable in the console.</p>
|
|
230
|
+
* @type {string || null}
|
|
231
|
+
*/
|
|
232
|
+
this.Disposition = null;
|
|
233
|
+
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @private
|
|
238
|
+
*/
|
|
239
|
+
deserialize(params) {
|
|
240
|
+
if (!params) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
this.DecisionResult = 'DecisionResult' in params ? params.DecisionResult : null;
|
|
244
|
+
this.Disposition = 'Disposition' in params ? params.Disposition : null;
|
|
245
|
+
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Personal information
|
|
251
|
+
* @class
|
|
252
|
+
*/
|
|
253
|
+
class Person extends AbstractModel {
|
|
254
|
+
constructor(){
|
|
255
|
+
super();
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* <p>The full name of the user if provided</p>
|
|
259
|
+
* @type {string || null}
|
|
260
|
+
*/
|
|
261
|
+
this.Name = null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* <p>The gender of the user if provided</p>
|
|
265
|
+
* @type {string || null}
|
|
266
|
+
*/
|
|
267
|
+
this.Gender = null;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* <p>The birthday of the user if provided</p><p>Parameter format: YYYY-MM-DD.</p>
|
|
271
|
+
* @type {string || null}
|
|
272
|
+
*/
|
|
273
|
+
this.Birthday = null;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* <p>The degree of the user if provided</p>
|
|
277
|
+
* @type {string || null}
|
|
278
|
+
*/
|
|
279
|
+
this.Degree = null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* <p>The occupation of the user if provided</p>
|
|
283
|
+
* @type {string || null}
|
|
284
|
+
*/
|
|
285
|
+
this.Occupation = null;
|
|
286
|
+
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @private
|
|
291
|
+
*/
|
|
292
|
+
deserialize(params) {
|
|
293
|
+
if (!params) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
297
|
+
this.Gender = 'Gender' in params ? params.Gender : null;
|
|
298
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
299
|
+
this.Degree = 'Degree' in params ? params.Degree : null;
|
|
300
|
+
this.Occupation = 'Occupation' in params ? params.Occupation : null;
|
|
50
301
|
|
|
51
302
|
}
|
|
52
303
|
}
|
|
@@ -97,24 +348,36 @@ class Environment extends AbstractModel {
|
|
|
97
348
|
}
|
|
98
349
|
|
|
99
350
|
/**
|
|
100
|
-
* The
|
|
351
|
+
* The details of the digital wallet
|
|
101
352
|
* @class
|
|
102
353
|
*/
|
|
103
|
-
class
|
|
354
|
+
class Wallet extends AbstractModel {
|
|
104
355
|
constructor(){
|
|
105
356
|
super();
|
|
106
357
|
|
|
107
358
|
/**
|
|
108
|
-
* <p>
|
|
109
|
-
* @type {
|
|
359
|
+
* <p>Wallet type</p><p>Enumeration value:</p><ul><li>crypto: Crypto currency</li><li>digital: Digital currency</li><li>fiat: Fiat currency</li></ul>
|
|
360
|
+
* @type {string || null}
|
|
110
361
|
*/
|
|
111
|
-
this.
|
|
362
|
+
this.WalletType = null;
|
|
112
363
|
|
|
113
364
|
/**
|
|
114
|
-
* <p>The
|
|
115
|
-
* @type {
|
|
365
|
+
* <p>The address of the wallet.Usually it is the ID of the wallet.</p>
|
|
366
|
+
* @type {string || null}
|
|
116
367
|
*/
|
|
117
|
-
this.
|
|
368
|
+
this.WalletAddress = null;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* <p>The full name of the person who holds the wallet</p>
|
|
372
|
+
* @type {string || null}
|
|
373
|
+
*/
|
|
374
|
+
this.WalletHolderName = null;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* <p>The provider of the wallet, such as wechat, alipay, paypal</p>
|
|
378
|
+
* @type {string || null}
|
|
379
|
+
*/
|
|
380
|
+
this.WalletProvider = null;
|
|
118
381
|
|
|
119
382
|
}
|
|
120
383
|
|
|
@@ -125,77 +388,2705 @@ class AssessEnvironmentRiskRsp extends AbstractModel {
|
|
|
125
388
|
if (!params) {
|
|
126
389
|
return;
|
|
127
390
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
this.Score = obj;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (params.Environment) {
|
|
136
|
-
let obj = new Environment();
|
|
137
|
-
obj.deserialize(params.Environment)
|
|
138
|
-
this.Environment = obj;
|
|
139
|
-
}
|
|
391
|
+
this.WalletType = 'WalletType' in params ? params.WalletType : null;
|
|
392
|
+
this.WalletAddress = 'WalletAddress' in params ? params.WalletAddress : null;
|
|
393
|
+
this.WalletHolderName = 'WalletHolderName' in params ? params.WalletHolderName : null;
|
|
394
|
+
this.WalletProvider = 'WalletProvider' in params ? params.WalletProvider : null;
|
|
140
395
|
|
|
141
396
|
}
|
|
142
397
|
}
|
|
143
398
|
|
|
144
399
|
/**
|
|
145
|
-
*
|
|
400
|
+
* ClaimRedPacket event details
|
|
146
401
|
* @class
|
|
147
402
|
*/
|
|
148
|
-
class
|
|
403
|
+
class ClaimRedPacketEvent extends AbstractModel {
|
|
149
404
|
constructor(){
|
|
150
405
|
super();
|
|
151
406
|
|
|
152
407
|
/**
|
|
153
|
-
* <p>The
|
|
408
|
+
* <p>The ID of the promotion</p>
|
|
154
409
|
* @type {string || null}
|
|
155
410
|
*/
|
|
156
|
-
this.
|
|
411
|
+
this.PromotionId = null;
|
|
157
412
|
|
|
158
413
|
/**
|
|
159
|
-
* <p>The
|
|
414
|
+
* <p>The Name of the promotion</p>
|
|
160
415
|
* @type {string || null}
|
|
161
416
|
*/
|
|
162
|
-
this.
|
|
417
|
+
this.PromotionName = null;
|
|
163
418
|
|
|
164
419
|
/**
|
|
165
|
-
* <p>The
|
|
420
|
+
* <p>The description of the promotion</p>
|
|
166
421
|
* @type {string || null}
|
|
167
422
|
*/
|
|
168
|
-
this.
|
|
423
|
+
this.Description = null;
|
|
169
424
|
|
|
170
425
|
/**
|
|
171
|
-
* <p>The
|
|
426
|
+
* <p>The ID of the inviter</p>
|
|
172
427
|
* @type {string || null}
|
|
173
428
|
*/
|
|
174
|
-
this.
|
|
429
|
+
this.InviterUserId = null;
|
|
175
430
|
|
|
176
431
|
/**
|
|
177
|
-
* <p>The
|
|
432
|
+
* <p>The ID of the red packet</p>
|
|
433
|
+
* @type {string || null}
|
|
434
|
+
*/
|
|
435
|
+
this.RedPacketId = null;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* <p>The type of red packet, for example, random amount, passcode, standard</p>
|
|
178
439
|
* @type {string || null}
|
|
179
440
|
*/
|
|
180
|
-
this.
|
|
441
|
+
this.RedPacketType = null;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* <p>The amount in the red packet</p>
|
|
445
|
+
* @type {Amount || null}
|
|
446
|
+
*/
|
|
447
|
+
this.RedPacketAmount = null;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
451
|
+
* @type {Array.<Cust> || null}
|
|
452
|
+
*/
|
|
453
|
+
this.Cust = null;
|
|
454
|
+
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @private
|
|
459
|
+
*/
|
|
460
|
+
deserialize(params) {
|
|
461
|
+
if (!params) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
465
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
466
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
467
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
468
|
+
this.RedPacketId = 'RedPacketId' in params ? params.RedPacketId : null;
|
|
469
|
+
this.RedPacketType = 'RedPacketType' in params ? params.RedPacketType : null;
|
|
470
|
+
|
|
471
|
+
if (params.RedPacketAmount) {
|
|
472
|
+
let obj = new Amount();
|
|
473
|
+
obj.deserialize(params.RedPacketAmount)
|
|
474
|
+
this.RedPacketAmount = obj;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (params.Cust) {
|
|
478
|
+
this.Cust = new Array();
|
|
479
|
+
for (let z in params.Cust) {
|
|
480
|
+
let obj = new Cust();
|
|
481
|
+
obj.deserialize(params.Cust[z]);
|
|
482
|
+
this.Cust.push(obj);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* The details of the promotion code
|
|
491
|
+
* @class
|
|
492
|
+
*/
|
|
493
|
+
class PromotionCode extends AbstractModel {
|
|
494
|
+
constructor(){
|
|
495
|
+
super();
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* <p>The ID of the promotion code</p>
|
|
499
|
+
* @type {string || null}
|
|
500
|
+
*/
|
|
501
|
+
this.Id = null;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* <p>The type of the promotion code, for example: qrcode, barcode, miniprogram code</p>
|
|
505
|
+
* @type {string || null}
|
|
506
|
+
*/
|
|
507
|
+
this.Type = null;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* <p>The url or hyperlink to the image</p>
|
|
511
|
+
* @type {string || null}
|
|
512
|
+
*/
|
|
513
|
+
this.ImageLink = null;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* <p>The address where the promotion code worked</p>
|
|
517
|
+
* @type {Address || null}
|
|
518
|
+
*/
|
|
519
|
+
this.Address = null;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* <p>The item(s) associated with the promotion code</p>
|
|
523
|
+
* @type {Array.<Item> || null}
|
|
524
|
+
*/
|
|
525
|
+
this.Items = null;
|
|
526
|
+
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @private
|
|
531
|
+
*/
|
|
532
|
+
deserialize(params) {
|
|
533
|
+
if (!params) {
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
this.Id = 'Id' in params ? params.Id : null;
|
|
537
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
538
|
+
this.ImageLink = 'ImageLink' in params ? params.ImageLink : null;
|
|
539
|
+
|
|
540
|
+
if (params.Address) {
|
|
541
|
+
let obj = new Address();
|
|
542
|
+
obj.deserialize(params.Address)
|
|
543
|
+
this.Address = obj;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (params.Items) {
|
|
547
|
+
this.Items = new Array();
|
|
548
|
+
for (let z in params.Items) {
|
|
549
|
+
let obj = new Item();
|
|
550
|
+
obj.deserialize(params.Items[z]);
|
|
551
|
+
this.Items.push(obj);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* ChargeBack event details
|
|
560
|
+
* @class
|
|
561
|
+
*/
|
|
562
|
+
class ChargeBackEvent extends AbstractModel {
|
|
563
|
+
constructor(){
|
|
564
|
+
super();
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* <p>The ID of the transaction</p>
|
|
568
|
+
* @type {string || null}
|
|
569
|
+
*/
|
|
570
|
+
this.TransactionId = null;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* <p>The ID(s) of the order associated with the transaction</p>
|
|
574
|
+
* @type {Array.<string> || null}
|
|
575
|
+
*/
|
|
576
|
+
this.OrderId = null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* <p>The code of the chargeback defined by the card organization, for example: 10.1, 13.1, 4870, 4871</p>
|
|
580
|
+
* @type {string || null}
|
|
581
|
+
*/
|
|
582
|
+
this.ChargeBackCode = null;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* <p>The reason of the chargeback defined by the card organization, for example: non-receipt of goods, fraud</p>
|
|
586
|
+
* @type {string || null}
|
|
587
|
+
*/
|
|
588
|
+
this.ChargeBackReason = null;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* <p>The process of the chargeback defined by the card organization</p><p>Enumeration values:</p><ul><li>need_response: Merchant needs to respond</li><li>information_supplied: Merchant has provided information</li><li>chargeback_reversed: Chargeback has been canceled</li><li>chargeback_sustained: Chargeback has been established</li></ul>
|
|
592
|
+
* @type {string || null}
|
|
593
|
+
*/
|
|
594
|
+
this.ChargeBackProcess = null;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* <p>The amount of the chargeback</p>
|
|
598
|
+
* @type {Amount || null}
|
|
599
|
+
*/
|
|
600
|
+
this.ChargeBackAmount = null;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
604
|
+
* @type {Array.<Cust> || null}
|
|
605
|
+
*/
|
|
606
|
+
this.Cust = null;
|
|
607
|
+
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* @private
|
|
612
|
+
*/
|
|
613
|
+
deserialize(params) {
|
|
614
|
+
if (!params) {
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
this.TransactionId = 'TransactionId' in params ? params.TransactionId : null;
|
|
618
|
+
this.OrderId = 'OrderId' in params ? params.OrderId : null;
|
|
619
|
+
this.ChargeBackCode = 'ChargeBackCode' in params ? params.ChargeBackCode : null;
|
|
620
|
+
this.ChargeBackReason = 'ChargeBackReason' in params ? params.ChargeBackReason : null;
|
|
621
|
+
this.ChargeBackProcess = 'ChargeBackProcess' in params ? params.ChargeBackProcess : null;
|
|
622
|
+
|
|
623
|
+
if (params.ChargeBackAmount) {
|
|
624
|
+
let obj = new Amount();
|
|
625
|
+
obj.deserialize(params.ChargeBackAmount)
|
|
626
|
+
this.ChargeBackAmount = obj;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
if (params.Cust) {
|
|
630
|
+
this.Cust = new Array();
|
|
631
|
+
for (let z in params.Cust) {
|
|
632
|
+
let obj = new Cust();
|
|
633
|
+
obj.deserialize(params.Cust[z]);
|
|
634
|
+
this.Cust.push(obj);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* ReportEvent request structure.
|
|
643
|
+
* @class
|
|
644
|
+
*/
|
|
645
|
+
class ReportEventRequest extends AbstractModel {
|
|
646
|
+
constructor(){
|
|
647
|
+
super();
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* <p>Event code. Used to specify the scenario node for business access.</p><p> Standard events under the account protection product include:</p><ul><li> login: Log in<p></p></li> <li>register: Register </li><li>sms: SMS </li><li>logout: Log out </li><li>modify_account: Modify account </li><li>modify_password: Modify password </li><li>security_verification: Security verification</li></ul><p>Standard events under the payment protection product include:</p><ul><li>create_order: Create an order</li><li>transaction: Transaction</li><li>charge_back: Chargeback</li></ul><p>Standard events under the promotion protection product include:</p><ul><li>add_promotion: Participate in promotions </li><li>redeem: Redeem a prize </li><li>withdraw: Withdraw</li><li>cust_event: Custom event, cust_xxx </li><li>scan_code: Scan a code </li><li>lucky_draw: Lucky draw </li><li>task: Complete a task </li><li>invitation: Invitation </li><li>claim_red_packet: Receive a red packet </li><li>browse: Browse</li></ul><p>Custom events can be evaluated for risk based on an agreement with RCE</p>
|
|
651
|
+
* @type {string || null}
|
|
652
|
+
*/
|
|
653
|
+
this.EventCode = null;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* <p>The time when the event occurred</p><p>Parameter format: Millisecond-level time with UTC time zone compliant with the ISO 8601 standard</p>
|
|
657
|
+
* @type {string || null}
|
|
658
|
+
*/
|
|
659
|
+
this.EventTime = null;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* <p>The user's current session ID used to associate with the actions before and after logging in. If UserId is not passed, SessionId is required. If missing, an empty string can be filled.</p>
|
|
663
|
+
* @type {string || null}
|
|
664
|
+
*/
|
|
665
|
+
this.SessionId = null;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* <p>The token provided by the SDK integrated in your web site or application</p>
|
|
669
|
+
* @type {string || null}
|
|
670
|
+
*/
|
|
671
|
+
this.DeviceToken = null;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* <p>User client IP address (IPv4 or IPv6)</p>
|
|
675
|
+
* @type {string || null}
|
|
676
|
+
*/
|
|
677
|
+
this.UserIp = null;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* <p>Event details, import corresponding event information based on the event code you input</p>
|
|
681
|
+
* @type {EventDetail || null}
|
|
682
|
+
*/
|
|
683
|
+
this.EventDetail = null;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* <p>The user's account ID in your system</p>
|
|
687
|
+
* @type {string || null}
|
|
688
|
+
*/
|
|
689
|
+
this.UserId = null;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* <p>Email of the user</p>
|
|
693
|
+
* @type {string || null}
|
|
694
|
+
*/
|
|
695
|
+
this.UserEmail = null;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* <p>Phone number of the user</p><p>Parameter format: Complies with the E.164 standard format, which includes "+", region code, and number</p>
|
|
699
|
+
* @type {string || null}
|
|
700
|
+
*/
|
|
701
|
+
this.UserPhone = null;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* <p>The details of the browser. If you've already integrated our device SDK, this field is not required</p>
|
|
705
|
+
* @type {Browser || null}
|
|
706
|
+
*/
|
|
707
|
+
this.Browser = null;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* <p>The details of the app, os and device.If you've already integrated our device SDK, this field is not required</p>
|
|
711
|
+
* @type {App || null}
|
|
712
|
+
*/
|
|
713
|
+
this.App = null;
|
|
714
|
+
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* @private
|
|
719
|
+
*/
|
|
720
|
+
deserialize(params) {
|
|
721
|
+
if (!params) {
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
this.EventCode = 'EventCode' in params ? params.EventCode : null;
|
|
725
|
+
this.EventTime = 'EventTime' in params ? params.EventTime : null;
|
|
726
|
+
this.SessionId = 'SessionId' in params ? params.SessionId : null;
|
|
727
|
+
this.DeviceToken = 'DeviceToken' in params ? params.DeviceToken : null;
|
|
728
|
+
this.UserIp = 'UserIp' in params ? params.UserIp : null;
|
|
729
|
+
|
|
730
|
+
if (params.EventDetail) {
|
|
731
|
+
let obj = new EventDetail();
|
|
732
|
+
obj.deserialize(params.EventDetail)
|
|
733
|
+
this.EventDetail = obj;
|
|
734
|
+
}
|
|
735
|
+
this.UserId = 'UserId' in params ? params.UserId : null;
|
|
736
|
+
this.UserEmail = 'UserEmail' in params ? params.UserEmail : null;
|
|
737
|
+
this.UserPhone = 'UserPhone' in params ? params.UserPhone : null;
|
|
738
|
+
|
|
739
|
+
if (params.Browser) {
|
|
740
|
+
let obj = new Browser();
|
|
741
|
+
obj.deserialize(params.Browser)
|
|
742
|
+
this.Browser = obj;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
if (params.App) {
|
|
746
|
+
let obj = new App();
|
|
747
|
+
obj.deserialize(params.App)
|
|
748
|
+
this.App = obj;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* The details of the merchant
|
|
756
|
+
* @class
|
|
757
|
+
*/
|
|
758
|
+
class Merchant extends AbstractModel {
|
|
759
|
+
constructor(){
|
|
760
|
+
super();
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* <p>The ID of the merchant</p>
|
|
764
|
+
* @type {string || null}
|
|
765
|
+
*/
|
|
766
|
+
this.MerchantId = null;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* <p>The name of the merchant</p>
|
|
770
|
+
* @type {string || null}
|
|
771
|
+
*/
|
|
772
|
+
this.Name = null;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* <p>Merchant registration time</p><p>Parameter format: Millisecond-level time with UTC time zone compliant with ISO 8601</p>
|
|
776
|
+
* @type {string || null}
|
|
777
|
+
*/
|
|
778
|
+
this.RegisterTime = null;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* <p>Merchant category code</p><p>Parameter format: 4-digit No. compliant with ISO 18245</p>
|
|
782
|
+
* @type {string || null}
|
|
783
|
+
*/
|
|
784
|
+
this.Category = null;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* <p>The phone number of the merchant</p><p>parameter format: format with "+", region code, and number that complies with the E.164 standard</p>
|
|
788
|
+
* @type {string || null}
|
|
789
|
+
*/
|
|
790
|
+
this.Phone = null;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* <p>The email of the merchant</p>
|
|
794
|
+
* @type {string || null}
|
|
795
|
+
*/
|
|
796
|
+
this.Email = null;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* <p>The url of the merchant shop on the website</p>
|
|
800
|
+
* @type {string || null}
|
|
801
|
+
*/
|
|
802
|
+
this.URL = null;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* <p>The address of the merchant</p>
|
|
806
|
+
* @type {Address || null}
|
|
807
|
+
*/
|
|
808
|
+
this.Address = null;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* <p>The level of the merchant</p>
|
|
812
|
+
* @type {string || null}
|
|
813
|
+
*/
|
|
814
|
+
this.Level = null;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* <p>The type of the merchant</p><p>Enumeration value:</p><ul><li>person: Person</li><li>company: Company</li></ul>
|
|
818
|
+
* @type {string || null}
|
|
819
|
+
*/
|
|
820
|
+
this.BusinessType = null;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* <p>The volume of goods on sale of the merchant</p>
|
|
824
|
+
* @type {number || null}
|
|
825
|
+
*/
|
|
826
|
+
this.GoodsQuantity = null;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* <p>The historical sales volume of the merchant</p>
|
|
830
|
+
* @type {number || null}
|
|
831
|
+
*/
|
|
832
|
+
this.HistoricSalesQuantity = null;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* <p>The historical sales amount of the merchant</p>
|
|
836
|
+
* @type {Amount || null}
|
|
837
|
+
*/
|
|
838
|
+
this.HistoricSalesAmount = null;
|
|
839
|
+
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* @private
|
|
844
|
+
*/
|
|
845
|
+
deserialize(params) {
|
|
846
|
+
if (!params) {
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
this.MerchantId = 'MerchantId' in params ? params.MerchantId : null;
|
|
850
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
851
|
+
this.RegisterTime = 'RegisterTime' in params ? params.RegisterTime : null;
|
|
852
|
+
this.Category = 'Category' in params ? params.Category : null;
|
|
853
|
+
this.Phone = 'Phone' in params ? params.Phone : null;
|
|
854
|
+
this.Email = 'Email' in params ? params.Email : null;
|
|
855
|
+
this.URL = 'URL' in params ? params.URL : null;
|
|
856
|
+
|
|
857
|
+
if (params.Address) {
|
|
858
|
+
let obj = new Address();
|
|
859
|
+
obj.deserialize(params.Address)
|
|
860
|
+
this.Address = obj;
|
|
861
|
+
}
|
|
862
|
+
this.Level = 'Level' in params ? params.Level : null;
|
|
863
|
+
this.BusinessType = 'BusinessType' in params ? params.BusinessType : null;
|
|
864
|
+
this.GoodsQuantity = 'GoodsQuantity' in params ? params.GoodsQuantity : null;
|
|
865
|
+
this.HistoricSalesQuantity = 'HistoricSalesQuantity' in params ? params.HistoricSalesQuantity : null;
|
|
866
|
+
|
|
867
|
+
if (params.HistoricSalesAmount) {
|
|
868
|
+
let obj = new Amount();
|
|
869
|
+
obj.deserialize(params.HistoricSalesAmount)
|
|
870
|
+
this.HistoricSalesAmount = obj;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Delivery information
|
|
878
|
+
* @class
|
|
879
|
+
*/
|
|
880
|
+
class Delivery extends AbstractModel {
|
|
881
|
+
constructor(){
|
|
882
|
+
super();
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* <p>The method of the delivery</p><ul><li>physical</li><li>electronic</li></ul>
|
|
886
|
+
* @type {string || null}
|
|
887
|
+
*/
|
|
888
|
+
this.DeliveryMethod = null;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* <p>The fee of the delivery</p>
|
|
892
|
+
* @type {Amount || null}
|
|
893
|
+
*/
|
|
894
|
+
this.DeliveryAmount = null;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* <p>The address of the delivery</p>
|
|
898
|
+
* @type {Address || null}
|
|
899
|
+
*/
|
|
900
|
+
this.DeliveryAddress = null;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* <p>Phone number of the consignee</p><p>parameter format: format with "+", region code, and number that complies with the E.164 standard</p>
|
|
904
|
+
* @type {string || null}
|
|
905
|
+
*/
|
|
906
|
+
this.ConsigneePhone = null;
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* <p>Email of the consignee</p>
|
|
910
|
+
* @type {string || null}
|
|
911
|
+
*/
|
|
912
|
+
this.ConsigneeEmail = null;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* <p>Full name of the consignee</p>
|
|
916
|
+
* @type {string || null}
|
|
917
|
+
*/
|
|
918
|
+
this.ConsigneeName = null;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* <p> Whether is the delivery expedited</p>
|
|
922
|
+
* @type {boolean || null}
|
|
923
|
+
*/
|
|
924
|
+
this.Expedited = null;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* <p>The carrier of the delivery, usually a logistics company</p>
|
|
928
|
+
* @type {string || null}
|
|
929
|
+
*/
|
|
930
|
+
this.DeliveryCarrier = null;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* <p>The number(s) used to track the delivery</p>
|
|
934
|
+
* @type {string || null}
|
|
935
|
+
*/
|
|
936
|
+
this.DeliveryTracking = null;
|
|
937
|
+
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* @private
|
|
942
|
+
*/
|
|
943
|
+
deserialize(params) {
|
|
944
|
+
if (!params) {
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
this.DeliveryMethod = 'DeliveryMethod' in params ? params.DeliveryMethod : null;
|
|
948
|
+
|
|
949
|
+
if (params.DeliveryAmount) {
|
|
950
|
+
let obj = new Amount();
|
|
951
|
+
obj.deserialize(params.DeliveryAmount)
|
|
952
|
+
this.DeliveryAmount = obj;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
if (params.DeliveryAddress) {
|
|
956
|
+
let obj = new Address();
|
|
957
|
+
obj.deserialize(params.DeliveryAddress)
|
|
958
|
+
this.DeliveryAddress = obj;
|
|
959
|
+
}
|
|
960
|
+
this.ConsigneePhone = 'ConsigneePhone' in params ? params.ConsigneePhone : null;
|
|
961
|
+
this.ConsigneeEmail = 'ConsigneeEmail' in params ? params.ConsigneeEmail : null;
|
|
962
|
+
this.ConsigneeName = 'ConsigneeName' in params ? params.ConsigneeName : null;
|
|
963
|
+
this.Expedited = 'Expedited' in params ? params.Expedited : null;
|
|
964
|
+
this.DeliveryCarrier = 'DeliveryCarrier' in params ? params.DeliveryCarrier : null;
|
|
965
|
+
this.DeliveryTracking = 'DeliveryTracking' in params ? params.DeliveryTracking : null;
|
|
966
|
+
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Customization parameters agreed with RCE, object array in K:V format
|
|
972
|
+
* @class
|
|
973
|
+
*/
|
|
974
|
+
class Cust extends AbstractModel {
|
|
975
|
+
constructor(){
|
|
976
|
+
super();
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* <p>Key</p>
|
|
980
|
+
* @type {string || null}
|
|
981
|
+
*/
|
|
982
|
+
this.Key = null;
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* <p>Value</p>
|
|
986
|
+
* @type {string || null}
|
|
987
|
+
*/
|
|
988
|
+
this.Value = null;
|
|
989
|
+
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* @private
|
|
994
|
+
*/
|
|
995
|
+
deserialize(params) {
|
|
996
|
+
if (!params) {
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
this.Key = 'Key' in params ? params.Key : null;
|
|
1000
|
+
this.Value = 'Value' in params ? params.Value : null;
|
|
1001
|
+
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* The results of AssessEnvironmentRisk
|
|
1007
|
+
* @class
|
|
1008
|
+
*/
|
|
1009
|
+
class AssessEnvironmentRiskRsp extends AbstractModel {
|
|
1010
|
+
constructor(){
|
|
1011
|
+
super();
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* <p>The risk score information of the IP environment</p>
|
|
1015
|
+
* @type {DataScore || null}
|
|
1016
|
+
*/
|
|
1017
|
+
this.Score = null;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* <p>The basic information of the IP environment</p>
|
|
1021
|
+
* @type {Environment || null}
|
|
1022
|
+
*/
|
|
1023
|
+
this.Environment = null;
|
|
1024
|
+
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* @private
|
|
1029
|
+
*/
|
|
1030
|
+
deserialize(params) {
|
|
1031
|
+
if (!params) {
|
|
1032
|
+
return;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
if (params.Score) {
|
|
1036
|
+
let obj = new DataScore();
|
|
1037
|
+
obj.deserialize(params.Score)
|
|
1038
|
+
this.Score = obj;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
if (params.Environment) {
|
|
1042
|
+
let obj = new Environment();
|
|
1043
|
+
obj.deserialize(params.Environment)
|
|
1044
|
+
this.Environment = obj;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* AssessEnvironmentRisk response structure.
|
|
1052
|
+
* @class
|
|
1053
|
+
*/
|
|
1054
|
+
class AssessEnvironmentRiskResponse extends AbstractModel {
|
|
1055
|
+
constructor(){
|
|
1056
|
+
super();
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* <p>The results of AssessEnvironmentRisk</p>
|
|
1060
|
+
* @type {AssessEnvironmentRiskRsp || null}
|
|
1061
|
+
*/
|
|
1062
|
+
this.Data = null;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1066
|
+
* @type {string || null}
|
|
1067
|
+
*/
|
|
1068
|
+
this.RequestId = null;
|
|
1069
|
+
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* @private
|
|
1074
|
+
*/
|
|
1075
|
+
deserialize(params) {
|
|
1076
|
+
if (!params) {
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
if (params.Data) {
|
|
1081
|
+
let obj = new AssessEnvironmentRiskRsp();
|
|
1082
|
+
obj.deserialize(params.Data)
|
|
1083
|
+
this.Data = obj;
|
|
1084
|
+
}
|
|
1085
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1086
|
+
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Payment method
|
|
1092
|
+
* @class
|
|
1093
|
+
*/
|
|
1094
|
+
class PaymentMethod extends AbstractModel {
|
|
1095
|
+
constructor(){
|
|
1096
|
+
super();
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* <p>Payment method</p><p>Enumeration value:</p><ul><li>cash</li><li>check</li><li>credit_card</li><li>debit_card</li><li>crypto_currency</li><li>digital_wallet</li><li>gift_card</li><li>points</li><li>in_app_purchase</li><li>electronic_fund_transfer</li><li>financing</li><li>invoice</li><li>prepaid_card</li><li>sepa_credit</li></ul>
|
|
1100
|
+
* @type {string || null}
|
|
1101
|
+
*/
|
|
1102
|
+
this.PaymentType = null;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* <p>The channel of the payment</p>
|
|
1106
|
+
* @type {string || null}
|
|
1107
|
+
*/
|
|
1108
|
+
this.PaymentChannel = null;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* <p>The details of the card.Required while PaymentMethod is "credit_card","debit_card"</p>
|
|
1112
|
+
* @type {Card || null}
|
|
1113
|
+
*/
|
|
1114
|
+
this.Card = null;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* <p>SEPA direct debit mandate</p><p>Enumeration value:</p><ul><li>true: Yes</li><li>false: No</li></ul>
|
|
1118
|
+
* @type {boolean || null}
|
|
1119
|
+
*/
|
|
1120
|
+
this.SEPADirectDebitMandate = null;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* <p>The details of the digital wallet when involved digital trade</p>
|
|
1124
|
+
* @type {Wallet || null}
|
|
1125
|
+
*/
|
|
1126
|
+
this.DigitalWallet = null;
|
|
1127
|
+
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @private
|
|
1132
|
+
*/
|
|
1133
|
+
deserialize(params) {
|
|
1134
|
+
if (!params) {
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1137
|
+
this.PaymentType = 'PaymentType' in params ? params.PaymentType : null;
|
|
1138
|
+
this.PaymentChannel = 'PaymentChannel' in params ? params.PaymentChannel : null;
|
|
1139
|
+
|
|
1140
|
+
if (params.Card) {
|
|
1141
|
+
let obj = new Card();
|
|
1142
|
+
obj.deserialize(params.Card)
|
|
1143
|
+
this.Card = obj;
|
|
1144
|
+
}
|
|
1145
|
+
this.SEPADirectDebitMandate = 'SEPADirectDebitMandate' in params ? params.SEPADirectDebitMandate : null;
|
|
1146
|
+
|
|
1147
|
+
if (params.DigitalWallet) {
|
|
1148
|
+
let obj = new Wallet();
|
|
1149
|
+
obj.deserialize(params.DigitalWallet)
|
|
1150
|
+
this.DigitalWallet = obj;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* LuckyDraw event details
|
|
1158
|
+
* @class
|
|
1159
|
+
*/
|
|
1160
|
+
class LuckyDrawEvent extends AbstractModel {
|
|
1161
|
+
constructor(){
|
|
1162
|
+
super();
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* <p>The ID of the promotion</p>
|
|
1166
|
+
* @type {string || null}
|
|
1167
|
+
*/
|
|
1168
|
+
this.PromotionId = null;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* <p>The name of the promotion</p>
|
|
1172
|
+
* @type {string || null}
|
|
1173
|
+
*/
|
|
1174
|
+
this.PromotionName = null;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* <p>The description of the promotion</p>
|
|
1178
|
+
* @type {string || null}
|
|
1179
|
+
*/
|
|
1180
|
+
this.Description = null;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* <p>The ID of the inviter</p>
|
|
1184
|
+
* @type {string || null}
|
|
1185
|
+
*/
|
|
1186
|
+
this.InviterUserId = null;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* <p>Number of lucky draw</p><p>Unit: count</p>
|
|
1190
|
+
* @type {number || null}
|
|
1191
|
+
*/
|
|
1192
|
+
this.LuckyDrawCount = null;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* <p>Type of lucky draw</p>
|
|
1196
|
+
* @type {string || null}
|
|
1197
|
+
*/
|
|
1198
|
+
this.LuckyDrawType = null;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
1202
|
+
* @type {Array.<Cust> || null}
|
|
1203
|
+
*/
|
|
1204
|
+
this.Cust = null;
|
|
1205
|
+
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* @private
|
|
1210
|
+
*/
|
|
1211
|
+
deserialize(params) {
|
|
1212
|
+
if (!params) {
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1215
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
1216
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
1217
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
1218
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
1219
|
+
this.LuckyDrawCount = 'LuckyDrawCount' in params ? params.LuckyDrawCount : null;
|
|
1220
|
+
this.LuckyDrawType = 'LuckyDrawType' in params ? params.LuckyDrawType : null;
|
|
1221
|
+
|
|
1222
|
+
if (params.Cust) {
|
|
1223
|
+
this.Cust = new Array();
|
|
1224
|
+
for (let z in params.Cust) {
|
|
1225
|
+
let obj = new Cust();
|
|
1226
|
+
obj.deserialize(params.Cust[z]);
|
|
1227
|
+
this.Cust.push(obj);
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* AssessDeviceRiskPremiumPro request structure.
|
|
1236
|
+
* @class
|
|
1237
|
+
*/
|
|
1238
|
+
class AssessDeviceRiskPremiumProRequest extends AbstractModel {
|
|
1239
|
+
constructor(){
|
|
1240
|
+
super();
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* <p>Device fingerprint token, obtained after integration of the device fingerprint SDK into your website or application</p>
|
|
1244
|
+
* @type {string || null}
|
|
1245
|
+
*/
|
|
1246
|
+
this.DeviceToken = null;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* <p>User client IP address (IPv4 or IPv6)</p>
|
|
1250
|
+
* @type {string || null}
|
|
1251
|
+
*/
|
|
1252
|
+
this.UserIp = null;
|
|
1253
|
+
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* @private
|
|
1258
|
+
*/
|
|
1259
|
+
deserialize(params) {
|
|
1260
|
+
if (!params) {
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1263
|
+
this.DeviceToken = 'DeviceToken' in params ? params.DeviceToken : null;
|
|
1264
|
+
this.UserIp = 'UserIp' in params ? params.UserIp : null;
|
|
1265
|
+
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* The details of the order
|
|
1271
|
+
* @class
|
|
1272
|
+
*/
|
|
1273
|
+
class Order extends AbstractModel {
|
|
1274
|
+
constructor(){
|
|
1275
|
+
super();
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* <p>The ID of the order</p>
|
|
1279
|
+
* @type {string || null}
|
|
1280
|
+
*/
|
|
1281
|
+
this.OrderId = null;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* <p>The amount of the order</p>
|
|
1285
|
+
* @type {Amount || null}
|
|
1286
|
+
*/
|
|
1287
|
+
this.Amount = null;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* <p>The detail information of the items in the order</p>
|
|
1291
|
+
* @type {Array.<Item> || null}
|
|
1292
|
+
*/
|
|
1293
|
+
this.Items = null;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* <p>The detail information of the delivery associated with the order</p>
|
|
1297
|
+
* @type {Delivery || null}
|
|
1298
|
+
*/
|
|
1299
|
+
this.Delivery = null;
|
|
1300
|
+
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* @private
|
|
1305
|
+
*/
|
|
1306
|
+
deserialize(params) {
|
|
1307
|
+
if (!params) {
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
1310
|
+
this.OrderId = 'OrderId' in params ? params.OrderId : null;
|
|
1311
|
+
|
|
1312
|
+
if (params.Amount) {
|
|
1313
|
+
let obj = new Amount();
|
|
1314
|
+
obj.deserialize(params.Amount)
|
|
1315
|
+
this.Amount = obj;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
if (params.Items) {
|
|
1319
|
+
this.Items = new Array();
|
|
1320
|
+
for (let z in params.Items) {
|
|
1321
|
+
let obj = new Item();
|
|
1322
|
+
obj.deserialize(params.Items[z]);
|
|
1323
|
+
this.Items.push(obj);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
if (params.Delivery) {
|
|
1328
|
+
let obj = new Delivery();
|
|
1329
|
+
obj.deserialize(params.Delivery)
|
|
1330
|
+
this.Delivery = obj;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* AssessDeviceRiskPro response structure.
|
|
1338
|
+
* @class
|
|
1339
|
+
*/
|
|
1340
|
+
class AssessDeviceRiskProResponse extends AbstractModel {
|
|
1341
|
+
constructor(){
|
|
1342
|
+
super();
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* <p>The results of AssessDeviceRiskPro</p>
|
|
1346
|
+
* @type {AssessDeviceRiskRsp || null}
|
|
1347
|
+
*/
|
|
1348
|
+
this.Data = null;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1352
|
+
* @type {string || null}
|
|
1353
|
+
*/
|
|
1354
|
+
this.RequestId = null;
|
|
1355
|
+
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* @private
|
|
1360
|
+
*/
|
|
1361
|
+
deserialize(params) {
|
|
1362
|
+
if (!params) {
|
|
1363
|
+
return;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
if (params.Data) {
|
|
1367
|
+
let obj = new AssessDeviceRiskRsp();
|
|
1368
|
+
obj.deserialize(params.Data)
|
|
1369
|
+
this.Data = obj;
|
|
1370
|
+
}
|
|
1371
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1372
|
+
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* The detail information of the user
|
|
1378
|
+
* @class
|
|
1379
|
+
*/
|
|
1380
|
+
class User extends AbstractModel {
|
|
1381
|
+
constructor(){
|
|
1382
|
+
super();
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* <p>The level of the user in your system</p>
|
|
1386
|
+
* @type {string || null}
|
|
1387
|
+
*/
|
|
1388
|
+
this.UserLevel = null;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* <p>The point of the user in your system</p>
|
|
1392
|
+
* @type {CreditPoint || null}
|
|
1393
|
+
*/
|
|
1394
|
+
this.UserPoint = null;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* <p>The type of the user in your system</p>
|
|
1398
|
+
* @type {string || null}
|
|
1399
|
+
*/
|
|
1400
|
+
this.UserType = null;
|
|
1401
|
+
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* @private
|
|
1406
|
+
*/
|
|
1407
|
+
deserialize(params) {
|
|
1408
|
+
if (!params) {
|
|
1409
|
+
return;
|
|
1410
|
+
}
|
|
1411
|
+
this.UserLevel = 'UserLevel' in params ? params.UserLevel : null;
|
|
1412
|
+
|
|
1413
|
+
if (params.UserPoint) {
|
|
1414
|
+
let obj = new CreditPoint();
|
|
1415
|
+
obj.deserialize(params.UserPoint)
|
|
1416
|
+
this.UserPoint = obj;
|
|
1417
|
+
}
|
|
1418
|
+
this.UserType = 'UserType' in params ? params.UserType : null;
|
|
1419
|
+
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Address
|
|
1425
|
+
* @class
|
|
1426
|
+
*/
|
|
1427
|
+
class Address extends AbstractModel {
|
|
1428
|
+
constructor(){
|
|
1429
|
+
super();
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* <p>Country</p><p>Parameter format: Compliant with the ISO 3166 standard</p>
|
|
1433
|
+
* @type {string || null}
|
|
1434
|
+
*/
|
|
1435
|
+
this.Country = null;
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* <p>Province</p>
|
|
1439
|
+
* @type {string || null}
|
|
1440
|
+
*/
|
|
1441
|
+
this.Region = null;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* <p>City</p>
|
|
1445
|
+
* @type {string || null}
|
|
1446
|
+
*/
|
|
1447
|
+
this.City = null;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* <p>Region</p>
|
|
1451
|
+
* @type {string || null}
|
|
1452
|
+
*/
|
|
1453
|
+
this.District = null;
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* <p>Detailed address</p>
|
|
1457
|
+
* @type {string || null}
|
|
1458
|
+
*/
|
|
1459
|
+
this.Detail = null;
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* <p>Postal code</p>
|
|
1463
|
+
* @type {string || null}
|
|
1464
|
+
*/
|
|
1465
|
+
this.ZipCode = null;
|
|
1466
|
+
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* @private
|
|
1471
|
+
*/
|
|
1472
|
+
deserialize(params) {
|
|
1473
|
+
if (!params) {
|
|
1474
|
+
return;
|
|
1475
|
+
}
|
|
1476
|
+
this.Country = 'Country' in params ? params.Country : null;
|
|
1477
|
+
this.Region = 'Region' in params ? params.Region : null;
|
|
1478
|
+
this.City = 'City' in params ? params.City : null;
|
|
1479
|
+
this.District = 'District' in params ? params.District : null;
|
|
1480
|
+
this.Detail = 'Detail' in params ? params.Detail : null;
|
|
1481
|
+
this.ZipCode = 'ZipCode' in params ? params.ZipCode : null;
|
|
1482
|
+
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* The basic infomation of the device
|
|
1488
|
+
* @class
|
|
1489
|
+
*/
|
|
1490
|
+
class Device extends AbstractModel {
|
|
1491
|
+
constructor(){
|
|
1492
|
+
super();
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* <p>The unique id of device returned by RCE</p>
|
|
1496
|
+
* @type {string || null}
|
|
1497
|
+
*/
|
|
1498
|
+
this.DeviceId = null;
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* <p>The version of the application</p>
|
|
1502
|
+
* @type {string || null}
|
|
1503
|
+
*/
|
|
1504
|
+
this.AppVersion = null;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* <p>Device brand</p>
|
|
1508
|
+
* @type {string || null}
|
|
1509
|
+
*/
|
|
1510
|
+
this.Brand = null;
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* <p>Client IP address</p>
|
|
1514
|
+
* @type {string || null}
|
|
1515
|
+
*/
|
|
1516
|
+
this.ClientIp = null;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* <p>Device model</p>
|
|
1520
|
+
* @type {string || null}
|
|
1521
|
+
*/
|
|
1522
|
+
this.Model = null;
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* <p>Network type of the device</p>
|
|
1526
|
+
* @type {string || null}
|
|
1527
|
+
*/
|
|
1528
|
+
this.NetworkType = null;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* <p>The package name of the application</p>
|
|
1532
|
+
* @type {string || null}
|
|
1533
|
+
*/
|
|
1534
|
+
this.PackageName = null;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* <p>Device platform</p><p>Enumeration value:</p><ul><li>2: Android</li><li>3: IOS</li><li>4: H5</li><li>5: WeChat Mini Program</li></ul>
|
|
1538
|
+
* @type {string || null}
|
|
1539
|
+
*/
|
|
1540
|
+
this.Platform = null;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* <p>Device system version</p>
|
|
1544
|
+
* @type {string || null}
|
|
1545
|
+
*/
|
|
1546
|
+
this.SystemVersion = null;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* <p>The build version of SDK</p>
|
|
1550
|
+
* @type {string || null}
|
|
1551
|
+
*/
|
|
1552
|
+
this.SdkBuildVersion = null;
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* <p>Signature verification token. Please contact us to enable signature verification</p>
|
|
1556
|
+
* @type {string || null}
|
|
1557
|
+
*/
|
|
1558
|
+
this.SignToken = null;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* <p>Token generation timestamp, in milliseconds</p>
|
|
1562
|
+
* @type {string || null}
|
|
1563
|
+
*/
|
|
1564
|
+
this.TokenTime = null;
|
|
1565
|
+
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* @private
|
|
1570
|
+
*/
|
|
1571
|
+
deserialize(params) {
|
|
1572
|
+
if (!params) {
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
|
|
1576
|
+
this.AppVersion = 'AppVersion' in params ? params.AppVersion : null;
|
|
1577
|
+
this.Brand = 'Brand' in params ? params.Brand : null;
|
|
1578
|
+
this.ClientIp = 'ClientIp' in params ? params.ClientIp : null;
|
|
1579
|
+
this.Model = 'Model' in params ? params.Model : null;
|
|
1580
|
+
this.NetworkType = 'NetworkType' in params ? params.NetworkType : null;
|
|
1581
|
+
this.PackageName = 'PackageName' in params ? params.PackageName : null;
|
|
1582
|
+
this.Platform = 'Platform' in params ? params.Platform : null;
|
|
1583
|
+
this.SystemVersion = 'SystemVersion' in params ? params.SystemVersion : null;
|
|
1584
|
+
this.SdkBuildVersion = 'SdkBuildVersion' in params ? params.SdkBuildVersion : null;
|
|
1585
|
+
this.SignToken = 'SignToken' in params ? params.SignToken : null;
|
|
1586
|
+
this.TokenTime = 'TokenTime' in params ? params.TokenTime : null;
|
|
1587
|
+
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* CreateOrder event details
|
|
1593
|
+
* @class
|
|
1594
|
+
*/
|
|
1595
|
+
class CreateOrderEvent extends AbstractModel {
|
|
1596
|
+
constructor(){
|
|
1597
|
+
super();
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* <p>The ID of the order</p>
|
|
1601
|
+
* @type {string || null}
|
|
1602
|
+
*/
|
|
1603
|
+
this.OrderId = null;
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* <p>The amount of the order</p>
|
|
1607
|
+
* @type {Amount || null}
|
|
1608
|
+
*/
|
|
1609
|
+
this.Amount = null;
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* <p>The detail information of the merchant associated with the order</p>
|
|
1613
|
+
* @type {Merchant || null}
|
|
1614
|
+
*/
|
|
1615
|
+
this.Merchant = null;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* <p>The detail information of the bill associated with the order</p>
|
|
1619
|
+
* @type {Billing || null}
|
|
1620
|
+
*/
|
|
1621
|
+
this.Billing = null;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* <p>The detail information of the items in the order</p>
|
|
1625
|
+
* @type {Array.<Item> || null}
|
|
1626
|
+
*/
|
|
1627
|
+
this.Items = null;
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* <p>The detail information of the delivery associated with the order</p>
|
|
1631
|
+
* @type {Delivery || null}
|
|
1632
|
+
*/
|
|
1633
|
+
this.Delivery = null;
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* <p>The promotion(s) associated with the order</p>
|
|
1637
|
+
* @type {Array.<Promotion> || null}
|
|
1638
|
+
*/
|
|
1639
|
+
this.Promotions = null;
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
1643
|
+
* @type {Array.<Cust> || null}
|
|
1644
|
+
*/
|
|
1645
|
+
this.Cust = null;
|
|
1646
|
+
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* @private
|
|
1651
|
+
*/
|
|
1652
|
+
deserialize(params) {
|
|
1653
|
+
if (!params) {
|
|
1654
|
+
return;
|
|
1655
|
+
}
|
|
1656
|
+
this.OrderId = 'OrderId' in params ? params.OrderId : null;
|
|
1657
|
+
|
|
1658
|
+
if (params.Amount) {
|
|
1659
|
+
let obj = new Amount();
|
|
1660
|
+
obj.deserialize(params.Amount)
|
|
1661
|
+
this.Amount = obj;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
if (params.Merchant) {
|
|
1665
|
+
let obj = new Merchant();
|
|
1666
|
+
obj.deserialize(params.Merchant)
|
|
1667
|
+
this.Merchant = obj;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
if (params.Billing) {
|
|
1671
|
+
let obj = new Billing();
|
|
1672
|
+
obj.deserialize(params.Billing)
|
|
1673
|
+
this.Billing = obj;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
if (params.Items) {
|
|
1677
|
+
this.Items = new Array();
|
|
1678
|
+
for (let z in params.Items) {
|
|
1679
|
+
let obj = new Item();
|
|
1680
|
+
obj.deserialize(params.Items[z]);
|
|
1681
|
+
this.Items.push(obj);
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
if (params.Delivery) {
|
|
1686
|
+
let obj = new Delivery();
|
|
1687
|
+
obj.deserialize(params.Delivery)
|
|
1688
|
+
this.Delivery = obj;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
if (params.Promotions) {
|
|
1692
|
+
this.Promotions = new Array();
|
|
1693
|
+
for (let z in params.Promotions) {
|
|
1694
|
+
let obj = new Promotion();
|
|
1695
|
+
obj.deserialize(params.Promotions[z]);
|
|
1696
|
+
this.Promotions.push(obj);
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
if (params.Cust) {
|
|
1701
|
+
this.Cust = new Array();
|
|
1702
|
+
for (let z in params.Cust) {
|
|
1703
|
+
let obj = new Cust();
|
|
1704
|
+
obj.deserialize(params.Cust[z]);
|
|
1705
|
+
this.Cust.push(obj);
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* The details of the card
|
|
1714
|
+
* @class
|
|
1715
|
+
*/
|
|
1716
|
+
class Card extends AbstractModel {
|
|
1717
|
+
constructor(){
|
|
1718
|
+
super();
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* <p>Bank identification number.The first six or eight digits of the card number</p><p>Parameter format: Compliant with the ISO 13616-1 standard</p>
|
|
1722
|
+
* @type {string || null}
|
|
1723
|
+
*/
|
|
1724
|
+
this.CardBin = null;
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* <p>The last four digits of the card number</p><p>Parameter format: Compliant with ISO 13616-1 standard</p>
|
|
1728
|
+
* @type {string || null}
|
|
1729
|
+
*/
|
|
1730
|
+
this.LastFourDigits = null;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* <p>The country where the card issued</p>
|
|
1734
|
+
* @type {string || null}
|
|
1735
|
+
*/
|
|
1736
|
+
this.Country = null;
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* <p>The bank that issued card</p>
|
|
1740
|
+
* @type {string || null}
|
|
1741
|
+
*/
|
|
1742
|
+
this.Bank = null;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* <p>the type of the card</p><p>Enumeration value:</p><ul><li>credit: Credit card</li><li>debit: Debit card</li><li>charge: Charge card</li></ul>
|
|
1746
|
+
* @type {string || null}
|
|
1747
|
+
*/
|
|
1748
|
+
this.Type = null;
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* <p>The brand of the card</p>
|
|
1752
|
+
* @type {string || null}
|
|
1753
|
+
*/
|
|
1754
|
+
this.Brand = null;
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* <p>The level of the card that the bank defined</p>
|
|
1758
|
+
* @type {string || null}
|
|
1759
|
+
*/
|
|
1760
|
+
this.Level = null;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* <p>The full name of the person who hold the card</p>
|
|
1764
|
+
* @type {string || null}
|
|
1765
|
+
*/
|
|
1766
|
+
this.HolderName = null;
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* <p>The expiration date of the card</p><p>Parameter format: YYYY-MM-DD.</p>
|
|
1770
|
+
* @type {string || null}
|
|
1771
|
+
*/
|
|
1772
|
+
this.ExpireTime = null;
|
|
1773
|
+
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* @private
|
|
1778
|
+
*/
|
|
1779
|
+
deserialize(params) {
|
|
1780
|
+
if (!params) {
|
|
1781
|
+
return;
|
|
1782
|
+
}
|
|
1783
|
+
this.CardBin = 'CardBin' in params ? params.CardBin : null;
|
|
1784
|
+
this.LastFourDigits = 'LastFourDigits' in params ? params.LastFourDigits : null;
|
|
1785
|
+
this.Country = 'Country' in params ? params.Country : null;
|
|
1786
|
+
this.Bank = 'Bank' in params ? params.Bank : null;
|
|
1787
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
1788
|
+
this.Brand = 'Brand' in params ? params.Brand : null;
|
|
1789
|
+
this.Level = 'Level' in params ? params.Level : null;
|
|
1790
|
+
this.HolderName = 'HolderName' in params ? params.HolderName : null;
|
|
1791
|
+
this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
|
|
1792
|
+
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Event result
|
|
1798
|
+
* @class
|
|
1799
|
+
*/
|
|
1800
|
+
class Result extends AbstractModel {
|
|
1801
|
+
constructor(){
|
|
1802
|
+
super();
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* <p>Actual completion status</p><p>Enumeration values:</p><ul><li>success: Success,</li><li>failure: Failure.</li></ul>
|
|
1806
|
+
* @type {string || null}
|
|
1807
|
+
*/
|
|
1808
|
+
this.Status = null;
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* <p>Failure reason</p>
|
|
1812
|
+
* @type {string || null}
|
|
1813
|
+
*/
|
|
1814
|
+
this.FailureReason = null;
|
|
1815
|
+
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* @private
|
|
1820
|
+
*/
|
|
1821
|
+
deserialize(params) {
|
|
1822
|
+
if (!params) {
|
|
1823
|
+
return;
|
|
1824
|
+
}
|
|
1825
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
1826
|
+
this.FailureReason = 'FailureReason' in params ? params.FailureReason : null;
|
|
1827
|
+
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* ReportEvent response structure.
|
|
1833
|
+
* @class
|
|
1834
|
+
*/
|
|
1835
|
+
class ReportEventResponse extends AbstractModel {
|
|
1836
|
+
constructor(){
|
|
1837
|
+
super();
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
1841
|
+
* @type {string || null}
|
|
1842
|
+
*/
|
|
1843
|
+
this.RequestId = null;
|
|
1844
|
+
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* @private
|
|
1849
|
+
*/
|
|
1850
|
+
deserialize(params) {
|
|
1851
|
+
if (!params) {
|
|
1852
|
+
return;
|
|
1853
|
+
}
|
|
1854
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1855
|
+
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Risk label
|
|
1861
|
+
* @class
|
|
1862
|
+
*/
|
|
1863
|
+
class RiskLabel extends AbstractModel {
|
|
1864
|
+
constructor(){
|
|
1865
|
+
super();
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* <p>The ID of the label</p>
|
|
1869
|
+
* @type {string || null}
|
|
1870
|
+
*/
|
|
1871
|
+
this.Id = null;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* <p>The reason of the label</p>
|
|
1875
|
+
* @type {string || null}
|
|
1876
|
+
*/
|
|
1877
|
+
this.Reason = null;
|
|
1878
|
+
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* @private
|
|
1883
|
+
*/
|
|
1884
|
+
deserialize(params) {
|
|
1885
|
+
if (!params) {
|
|
1886
|
+
return;
|
|
1887
|
+
}
|
|
1888
|
+
this.Id = 'Id' in params ? params.Id : null;
|
|
1889
|
+
this.Reason = 'Reason' in params ? params.Reason : null;
|
|
1890
|
+
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Custom event
|
|
1896
|
+
* @class
|
|
1897
|
+
*/
|
|
1898
|
+
class CustEvent extends AbstractModel {
|
|
1899
|
+
constructor(){
|
|
1900
|
+
super();
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
1904
|
+
* @type {Array.<Cust> || null}
|
|
1905
|
+
*/
|
|
1906
|
+
this.Cust = null;
|
|
1907
|
+
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* @private
|
|
1912
|
+
*/
|
|
1913
|
+
deserialize(params) {
|
|
1914
|
+
if (!params) {
|
|
1915
|
+
return;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
if (params.Cust) {
|
|
1919
|
+
this.Cust = new Array();
|
|
1920
|
+
for (let z in params.Cust) {
|
|
1921
|
+
let obj = new Cust();
|
|
1922
|
+
obj.deserialize(params.Cust[z]);
|
|
1923
|
+
this.Cust.push(obj);
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* The geographical location of the IP address
|
|
1932
|
+
* @class
|
|
1933
|
+
*/
|
|
1934
|
+
class IPLocation extends AbstractModel {
|
|
1935
|
+
constructor(){
|
|
1936
|
+
super();
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* <p>The country of the IP address</p>
|
|
1940
|
+
* @type {string || null}
|
|
1941
|
+
*/
|
|
1942
|
+
this.Country = null;
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* <p>The region of the IP address</p>
|
|
1946
|
+
* @type {string || null}
|
|
1947
|
+
*/
|
|
1948
|
+
this.Region = null;
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* <p>The city of the IP address</p>
|
|
1952
|
+
* @type {string || null}
|
|
1953
|
+
*/
|
|
1954
|
+
this.City = null;
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* <p>The district of the IP address</p>
|
|
1958
|
+
* @type {string || null}
|
|
1959
|
+
*/
|
|
1960
|
+
this.District = null;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* <p>The longitude of the IP address</p>
|
|
1964
|
+
* @type {string || null}
|
|
1965
|
+
*/
|
|
1966
|
+
this.Longitude = null;
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* <p>The latitude of the IP address</p>
|
|
1970
|
+
* @type {string || null}
|
|
1971
|
+
*/
|
|
1972
|
+
this.Latitude = null;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* <p>The timezone of the IP address</p>
|
|
1976
|
+
* @type {string || null}
|
|
1977
|
+
*/
|
|
1978
|
+
this.Timezone = null;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* <p>The zip code of the IP address</p>
|
|
1982
|
+
* @type {string || null}
|
|
1983
|
+
*/
|
|
1984
|
+
this.ZipCode = null;
|
|
1985
|
+
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* @private
|
|
1990
|
+
*/
|
|
1991
|
+
deserialize(params) {
|
|
1992
|
+
if (!params) {
|
|
1993
|
+
return;
|
|
1994
|
+
}
|
|
1995
|
+
this.Country = 'Country' in params ? params.Country : null;
|
|
1996
|
+
this.Region = 'Region' in params ? params.Region : null;
|
|
1997
|
+
this.City = 'City' in params ? params.City : null;
|
|
1998
|
+
this.District = 'District' in params ? params.District : null;
|
|
1999
|
+
this.Longitude = 'Longitude' in params ? params.Longitude : null;
|
|
2000
|
+
this.Latitude = 'Latitude' in params ? params.Latitude : null;
|
|
2001
|
+
this.Timezone = 'Timezone' in params ? params.Timezone : null;
|
|
2002
|
+
this.ZipCode = 'ZipCode' in params ? params.ZipCode : null;
|
|
2003
|
+
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Risk score information
|
|
2009
|
+
* @class
|
|
2010
|
+
*/
|
|
2011
|
+
class DataScore extends AbstractModel {
|
|
2012
|
+
constructor(){
|
|
2013
|
+
super();
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* <p>Risk level</p>
|
|
2017
|
+
* @type {number || null}
|
|
2018
|
+
*/
|
|
2019
|
+
this.RiskLevel = null;
|
|
2020
|
+
|
|
2021
|
+
/**
|
|
2022
|
+
* <p>Risk label</p>
|
|
2023
|
+
* @type {Array.<RiskLabel> || null}
|
|
2024
|
+
*/
|
|
2025
|
+
this.RiskLabels = null;
|
|
2026
|
+
|
|
2027
|
+
/**
|
|
2028
|
+
* <p>Comprehensive risk score.</p><p>Value ranges from 1 to 1000.</p><p>The larger the value, the larger the risk.</p>
|
|
2029
|
+
* @type {number || null}
|
|
2030
|
+
*/
|
|
2031
|
+
this.RiskScore = null;
|
|
2032
|
+
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
/**
|
|
2036
|
+
* @private
|
|
2037
|
+
*/
|
|
2038
|
+
deserialize(params) {
|
|
2039
|
+
if (!params) {
|
|
2040
|
+
return;
|
|
2041
|
+
}
|
|
2042
|
+
this.RiskLevel = 'RiskLevel' in params ? params.RiskLevel : null;
|
|
2043
|
+
|
|
2044
|
+
if (params.RiskLabels) {
|
|
2045
|
+
this.RiskLabels = new Array();
|
|
2046
|
+
for (let z in params.RiskLabels) {
|
|
2047
|
+
let obj = new RiskLabel();
|
|
2048
|
+
obj.deserialize(params.RiskLabels[z]);
|
|
2049
|
+
this.RiskLabels.push(obj);
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
this.RiskScore = 'RiskScore' in params ? params.RiskScore : null;
|
|
2053
|
+
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
/**
|
|
2058
|
+
* Browse event details
|
|
2059
|
+
* @class
|
|
2060
|
+
*/
|
|
2061
|
+
class BrowseEvent extends AbstractModel {
|
|
2062
|
+
constructor(){
|
|
2063
|
+
super();
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* <p>Current page type such as home page, search page</p>
|
|
2067
|
+
* @type {string || null}
|
|
2068
|
+
*/
|
|
2069
|
+
this.PageType = null;
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* <p>Currently page URL</p>
|
|
2073
|
+
* @type {string || null}
|
|
2074
|
+
*/
|
|
2075
|
+
this.PageUrl = null;
|
|
2076
|
+
|
|
2077
|
+
/**
|
|
2078
|
+
* <p>Browsing duration</p><p>Measurement unit: ms</p>
|
|
2079
|
+
* @type {number || null}
|
|
2080
|
+
*/
|
|
2081
|
+
this.Duration = null;
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* <p>The type of the content in current page such as ad, video, article</p>
|
|
2085
|
+
* @type {string || null}
|
|
2086
|
+
*/
|
|
2087
|
+
this.ContentType = null;
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* <p>The ID of the content in current page</p>
|
|
2091
|
+
* @type {string || null}
|
|
2092
|
+
*/
|
|
2093
|
+
this.ContentId = null;
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* <p>Previous page type such as home page, search page</p>
|
|
2097
|
+
* @type {string || null}
|
|
2098
|
+
*/
|
|
2099
|
+
this.ReferPageType = null;
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* <p>Previous page URL</p>
|
|
2103
|
+
* @type {string || null}
|
|
2104
|
+
*/
|
|
2105
|
+
this.ReferPageUrl = null;
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* <p>The ID of the user as guest</p>
|
|
2109
|
+
* @type {string || null}
|
|
2110
|
+
*/
|
|
2111
|
+
this.GuestId = null;
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
2115
|
+
* @type {Array.<Cust> || null}
|
|
2116
|
+
*/
|
|
2117
|
+
this.Cust = null;
|
|
2118
|
+
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* @private
|
|
2123
|
+
*/
|
|
2124
|
+
deserialize(params) {
|
|
2125
|
+
if (!params) {
|
|
2126
|
+
return;
|
|
2127
|
+
}
|
|
2128
|
+
this.PageType = 'PageType' in params ? params.PageType : null;
|
|
2129
|
+
this.PageUrl = 'PageUrl' in params ? params.PageUrl : null;
|
|
2130
|
+
this.Duration = 'Duration' in params ? params.Duration : null;
|
|
2131
|
+
this.ContentType = 'ContentType' in params ? params.ContentType : null;
|
|
2132
|
+
this.ContentId = 'ContentId' in params ? params.ContentId : null;
|
|
2133
|
+
this.ReferPageType = 'ReferPageType' in params ? params.ReferPageType : null;
|
|
2134
|
+
this.ReferPageUrl = 'ReferPageUrl' in params ? params.ReferPageUrl : null;
|
|
2135
|
+
this.GuestId = 'GuestId' in params ? params.GuestId : null;
|
|
2136
|
+
|
|
2137
|
+
if (params.Cust) {
|
|
2138
|
+
this.Cust = new Array();
|
|
2139
|
+
for (let z in params.Cust) {
|
|
2140
|
+
let obj = new Cust();
|
|
2141
|
+
obj.deserialize(params.Cust[z]);
|
|
2142
|
+
this.Cust.push(obj);
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* AssessDeviceRiskPremiumPro response structure.
|
|
2151
|
+
* @class
|
|
2152
|
+
*/
|
|
2153
|
+
class AssessDeviceRiskPremiumProResponse extends AbstractModel {
|
|
2154
|
+
constructor(){
|
|
2155
|
+
super();
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* <p>The results of AssessDeviceRiskPremiumPro</p>
|
|
2159
|
+
* @type {AssessDeviceRiskPremiumRsp || null}
|
|
2160
|
+
*/
|
|
2161
|
+
this.Data = null;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2165
|
+
* @type {string || null}
|
|
2166
|
+
*/
|
|
2167
|
+
this.RequestId = null;
|
|
2168
|
+
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* @private
|
|
2173
|
+
*/
|
|
2174
|
+
deserialize(params) {
|
|
2175
|
+
if (!params) {
|
|
2176
|
+
return;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
if (params.Data) {
|
|
2180
|
+
let obj = new AssessDeviceRiskPremiumRsp();
|
|
2181
|
+
obj.deserialize(params.Data)
|
|
2182
|
+
this.Data = obj;
|
|
2183
|
+
}
|
|
2184
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2185
|
+
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* AssessDeviceRiskPro request structure.
|
|
2191
|
+
* @class
|
|
2192
|
+
*/
|
|
2193
|
+
class AssessDeviceRiskProRequest extends AbstractModel {
|
|
2194
|
+
constructor(){
|
|
2195
|
+
super();
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* <p>Device fingerprint token, obtained after integration of the device fingerprint SDK into your website or application</p>
|
|
2199
|
+
* @type {string || null}
|
|
2200
|
+
*/
|
|
2201
|
+
this.DeviceToken = null;
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* <p>User client IP address (IPv4 or IPv6)</p>
|
|
2205
|
+
* @type {string || null}
|
|
2206
|
+
*/
|
|
2207
|
+
this.UserIp = null;
|
|
2208
|
+
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* @private
|
|
2213
|
+
*/
|
|
2214
|
+
deserialize(params) {
|
|
2215
|
+
if (!params) {
|
|
2216
|
+
return;
|
|
2217
|
+
}
|
|
2218
|
+
this.DeviceToken = 'DeviceToken' in params ? params.DeviceToken : null;
|
|
2219
|
+
this.UserIp = 'UserIp' in params ? params.UserIp : null;
|
|
2220
|
+
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* The details of the point
|
|
2226
|
+
* @class
|
|
2227
|
+
*/
|
|
2228
|
+
class CreditPoint extends AbstractModel {
|
|
2229
|
+
constructor(){
|
|
2230
|
+
super();
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* <p>The value of the point</p>
|
|
2234
|
+
* @type {number || null}
|
|
2235
|
+
*/
|
|
2236
|
+
this.Point = null;
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* <p>The type of the point</p>
|
|
2240
|
+
* @type {string || null}
|
|
2241
|
+
*/
|
|
2242
|
+
this.PointType = null;
|
|
2243
|
+
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* @private
|
|
2248
|
+
*/
|
|
2249
|
+
deserialize(params) {
|
|
2250
|
+
if (!params) {
|
|
2251
|
+
return;
|
|
2252
|
+
}
|
|
2253
|
+
this.Point = 'Point' in params ? params.Point : null;
|
|
2254
|
+
this.PointType = 'PointType' in params ? params.PointType : null;
|
|
2255
|
+
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* The details of the item
|
|
2261
|
+
* @class
|
|
2262
|
+
*/
|
|
2263
|
+
class Item extends AbstractModel {
|
|
2264
|
+
constructor(){
|
|
2265
|
+
super();
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* <p>The unique ID of the item</p>
|
|
2269
|
+
* @type {string || null}
|
|
2270
|
+
*/
|
|
2271
|
+
this.ItemId = null;
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* <p>The name of the item</p>
|
|
2275
|
+
* @type {string || null}
|
|
2276
|
+
*/
|
|
2277
|
+
this.ItemName = null;
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* <p>The category of the item</p>
|
|
2281
|
+
* @type {string || null}
|
|
2282
|
+
*/
|
|
2283
|
+
this.Category = null;
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* <p>The price of the item</p>
|
|
2287
|
+
* @type {Amount || null}
|
|
2288
|
+
*/
|
|
2289
|
+
this.Price = null;
|
|
2290
|
+
|
|
2291
|
+
/**
|
|
2292
|
+
* <p>If the item has a UPC (Universal Product Code), please provide it here.</p>
|
|
2293
|
+
* @type {string || null}
|
|
2294
|
+
*/
|
|
2295
|
+
this.UPC = null;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* <p>If the item has an EAN (European Article Number), please provide it here.</p>
|
|
2299
|
+
* @type {string || null}
|
|
2300
|
+
*/
|
|
2301
|
+
this.EAN = null;
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* <p>If the item has an SKU (Stock Keeping Unit), please provide it here.</p>
|
|
2305
|
+
* @type {string || null}
|
|
2306
|
+
*/
|
|
2307
|
+
this.SKU = null;
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* <p>If the item has an ISBN (International Standard Book Number), please provide it here.</p>
|
|
2311
|
+
* @type {string || null}
|
|
2312
|
+
*/
|
|
2313
|
+
this.ISBN = null;
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* <p>The brand of the item</p>
|
|
2317
|
+
* @type {string || null}
|
|
2318
|
+
*/
|
|
2319
|
+
this.Brand = null;
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* <p>The quantity of the item</p>
|
|
2323
|
+
* @type {number || null}
|
|
2324
|
+
*/
|
|
2325
|
+
this.Quantity = null;
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* <p>The manufacture of the item</p>
|
|
2329
|
+
* @type {string || null}
|
|
2330
|
+
*/
|
|
2331
|
+
this.Manufacturer = null;
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* <p>The tags of the item in your system</p>
|
|
2335
|
+
* @type {string || null}
|
|
2336
|
+
*/
|
|
2337
|
+
this.Tags = null;
|
|
2338
|
+
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* @private
|
|
2343
|
+
*/
|
|
2344
|
+
deserialize(params) {
|
|
2345
|
+
if (!params) {
|
|
2346
|
+
return;
|
|
2347
|
+
}
|
|
2348
|
+
this.ItemId = 'ItemId' in params ? params.ItemId : null;
|
|
2349
|
+
this.ItemName = 'ItemName' in params ? params.ItemName : null;
|
|
2350
|
+
this.Category = 'Category' in params ? params.Category : null;
|
|
2351
|
+
|
|
2352
|
+
if (params.Price) {
|
|
2353
|
+
let obj = new Amount();
|
|
2354
|
+
obj.deserialize(params.Price)
|
|
2355
|
+
this.Price = obj;
|
|
2356
|
+
}
|
|
2357
|
+
this.UPC = 'UPC' in params ? params.UPC : null;
|
|
2358
|
+
this.EAN = 'EAN' in params ? params.EAN : null;
|
|
2359
|
+
this.SKU = 'SKU' in params ? params.SKU : null;
|
|
2360
|
+
this.ISBN = 'ISBN' in params ? params.ISBN : null;
|
|
2361
|
+
this.Brand = 'Brand' in params ? params.Brand : null;
|
|
2362
|
+
this.Quantity = 'Quantity' in params ? params.Quantity : null;
|
|
2363
|
+
this.Manufacturer = 'Manufacturer' in params ? params.Manufacturer : null;
|
|
2364
|
+
this.Tags = 'Tags' in params ? params.Tags : null;
|
|
2365
|
+
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Amount
|
|
2371
|
+
* @class
|
|
2372
|
+
*/
|
|
2373
|
+
class Amount extends AbstractModel {
|
|
2374
|
+
constructor(){
|
|
2375
|
+
super();
|
|
2376
|
+
|
|
2377
|
+
/**
|
|
2378
|
+
* <p>Currency code</p><p>Parameter format: Compliant with the ISO 4217 standard</p>
|
|
2379
|
+
* @type {string || null}
|
|
2380
|
+
*/
|
|
2381
|
+
this.Currency = null;
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* <p>Original amount in currency</p>
|
|
2385
|
+
* @type {number || null}
|
|
2386
|
+
*/
|
|
2387
|
+
this.OriginalAmount = null;
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* <p>Current exchange rate of base currency converted to USD</p>
|
|
2391
|
+
* @type {number || null}
|
|
2392
|
+
*/
|
|
2393
|
+
this.ExchangeRateUSD = null;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* <p>Current exchange rate of base currency converted to CNY</p>
|
|
2397
|
+
* @type {number || null}
|
|
2398
|
+
*/
|
|
2399
|
+
this.ExchangeRateCNY = null;
|
|
2400
|
+
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* @private
|
|
2405
|
+
*/
|
|
2406
|
+
deserialize(params) {
|
|
2407
|
+
if (!params) {
|
|
2408
|
+
return;
|
|
2409
|
+
}
|
|
2410
|
+
this.Currency = 'Currency' in params ? params.Currency : null;
|
|
2411
|
+
this.OriginalAmount = 'OriginalAmount' in params ? params.OriginalAmount : null;
|
|
2412
|
+
this.ExchangeRateUSD = 'ExchangeRateUSD' in params ? params.ExchangeRateUSD : null;
|
|
2413
|
+
this.ExchangeRateCNY = 'ExchangeRateCNY' in params ? params.ExchangeRateCNY : null;
|
|
2414
|
+
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* SMS event details
|
|
2420
|
+
* @class
|
|
2421
|
+
*/
|
|
2422
|
+
class SMSEvent extends AbstractModel {
|
|
2423
|
+
constructor(){
|
|
2424
|
+
super();
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* <p>The detail information of the user</p>
|
|
2428
|
+
* @type {User || null}
|
|
2429
|
+
*/
|
|
2430
|
+
this.UserInfo = null;
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* <p>The unique ID of the sms</p>
|
|
2434
|
+
* @type {string || null}
|
|
2435
|
+
*/
|
|
2436
|
+
this.SMSId = null;
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* <p>The time that the user received the sms</p><p>Parameter format: Millisecond-level time with UTC time zone compliant with ISO 8601 standard</p>
|
|
2440
|
+
* @type {string || null}
|
|
2441
|
+
*/
|
|
2442
|
+
this.ReceivedTime = null;
|
|
2443
|
+
|
|
2444
|
+
/**
|
|
2445
|
+
* <p>The action of the user after receiving the sms</p><ul><li>no_action: No action from the user</li><li>safe: User confirmation of the correct person's action</li><li>compromised: Feedback from real users indicates third-party action</li></ul>
|
|
2446
|
+
* @type {string || null}
|
|
2447
|
+
*/
|
|
2448
|
+
this.Action = null;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* <p>The result of the sms</p>
|
|
2452
|
+
* @type {Result || null}
|
|
2453
|
+
*/
|
|
2454
|
+
this.SMSResult = null;
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
2458
|
+
* @type {Array.<Cust> || null}
|
|
2459
|
+
*/
|
|
2460
|
+
this.Cust = null;
|
|
2461
|
+
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* @private
|
|
2466
|
+
*/
|
|
2467
|
+
deserialize(params) {
|
|
2468
|
+
if (!params) {
|
|
2469
|
+
return;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
if (params.UserInfo) {
|
|
2473
|
+
let obj = new User();
|
|
2474
|
+
obj.deserialize(params.UserInfo)
|
|
2475
|
+
this.UserInfo = obj;
|
|
2476
|
+
}
|
|
2477
|
+
this.SMSId = 'SMSId' in params ? params.SMSId : null;
|
|
2478
|
+
this.ReceivedTime = 'ReceivedTime' in params ? params.ReceivedTime : null;
|
|
2479
|
+
this.Action = 'Action' in params ? params.Action : null;
|
|
2480
|
+
|
|
2481
|
+
if (params.SMSResult) {
|
|
2482
|
+
let obj = new Result();
|
|
2483
|
+
obj.deserialize(params.SMSResult)
|
|
2484
|
+
this.SMSResult = obj;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
if (params.Cust) {
|
|
2488
|
+
this.Cust = new Array();
|
|
2489
|
+
for (let z in params.Cust) {
|
|
2490
|
+
let obj = new Cust();
|
|
2491
|
+
obj.deserialize(params.Cust[z]);
|
|
2492
|
+
this.Cust.push(obj);
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
* AssessEnvironmentRisk request structure.
|
|
2501
|
+
* @class
|
|
2502
|
+
*/
|
|
2503
|
+
class AssessEnvironmentRiskRequest extends AbstractModel {
|
|
2504
|
+
constructor(){
|
|
2505
|
+
super();
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* <p>User client IP address(IPv4 or IPv6)</p>
|
|
2509
|
+
* @type {string || null}
|
|
2510
|
+
*/
|
|
2511
|
+
this.UserIp = null;
|
|
2512
|
+
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* @private
|
|
2517
|
+
*/
|
|
2518
|
+
deserialize(params) {
|
|
2519
|
+
if (!params) {
|
|
2520
|
+
return;
|
|
2521
|
+
}
|
|
2522
|
+
this.UserIp = 'UserIp' in params ? params.UserIp : null;
|
|
2523
|
+
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* AddPromotion event details
|
|
2529
|
+
* @class
|
|
2530
|
+
*/
|
|
2531
|
+
class AddPromotionEvent extends AbstractModel {
|
|
2532
|
+
constructor(){
|
|
2533
|
+
super();
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* <p>The ID of the promotion</p>
|
|
2537
|
+
* @type {string || null}
|
|
2538
|
+
*/
|
|
2539
|
+
this.PromotionId = null;
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* <p>The name of the promotion</p>
|
|
2543
|
+
* @type {string || null}
|
|
2544
|
+
*/
|
|
2545
|
+
this.PromotionName = null;
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* <p>The description of the promotion</p>
|
|
2549
|
+
* @type {string || null}
|
|
2550
|
+
*/
|
|
2551
|
+
this.Description = null;
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* <p>The ID of the inviter</p>
|
|
2555
|
+
* @type {string || null}
|
|
2556
|
+
*/
|
|
2557
|
+
this.InviterUserId = null;
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* <p>The coupon associated with the promotion</p>
|
|
2561
|
+
* @type {Coupon || null}
|
|
2562
|
+
*/
|
|
2563
|
+
this.Coupon = null;
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* <p>The point associated with the promotion</p>
|
|
2567
|
+
* @type {CreditPoint || null}
|
|
2568
|
+
*/
|
|
2569
|
+
this.Point = null;
|
|
2570
|
+
|
|
2571
|
+
/**
|
|
2572
|
+
* <p>The result of participating the promotion</p>
|
|
2573
|
+
* @type {Result || null}
|
|
2574
|
+
*/
|
|
2575
|
+
this.Result = null;
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131***85678"}]</p>
|
|
2579
|
+
* @type {Array.<Cust> || null}
|
|
2580
|
+
*/
|
|
2581
|
+
this.Cust = null;
|
|
2582
|
+
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* @private
|
|
2587
|
+
*/
|
|
2588
|
+
deserialize(params) {
|
|
2589
|
+
if (!params) {
|
|
2590
|
+
return;
|
|
2591
|
+
}
|
|
2592
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
2593
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
2594
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
2595
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
2596
|
+
|
|
2597
|
+
if (params.Coupon) {
|
|
2598
|
+
let obj = new Coupon();
|
|
2599
|
+
obj.deserialize(params.Coupon)
|
|
2600
|
+
this.Coupon = obj;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
if (params.Point) {
|
|
2604
|
+
let obj = new CreditPoint();
|
|
2605
|
+
obj.deserialize(params.Point)
|
|
2606
|
+
this.Point = obj;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
if (params.Result) {
|
|
2610
|
+
let obj = new Result();
|
|
2611
|
+
obj.deserialize(params.Result)
|
|
2612
|
+
this.Result = obj;
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
if (params.Cust) {
|
|
2616
|
+
this.Cust = new Array();
|
|
2617
|
+
for (let z in params.Cust) {
|
|
2618
|
+
let obj = new Cust();
|
|
2619
|
+
obj.deserialize(params.Cust[z]);
|
|
2620
|
+
this.Cust.push(obj);
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* The details of the promotion
|
|
2629
|
+
* @class
|
|
2630
|
+
*/
|
|
2631
|
+
class Promotion extends AbstractModel {
|
|
2632
|
+
constructor(){
|
|
2633
|
+
super();
|
|
2634
|
+
|
|
2635
|
+
/**
|
|
2636
|
+
* <p>The ID of the promotion</p>
|
|
2637
|
+
* @type {string || null}
|
|
2638
|
+
*/
|
|
2639
|
+
this.PromotionId = null;
|
|
2640
|
+
|
|
2641
|
+
/**
|
|
2642
|
+
* <p>The name of the promotion</p>
|
|
2643
|
+
* @type {string || null}
|
|
2644
|
+
*/
|
|
2645
|
+
this.PromotionName = null;
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* <p>The description of the promotion</p>
|
|
2649
|
+
* @type {string || null}
|
|
2650
|
+
*/
|
|
2651
|
+
this.Description = null;
|
|
2652
|
+
|
|
2653
|
+
/**
|
|
2654
|
+
* <p>The ID of the inviter</p>
|
|
2655
|
+
* @type {string || null}
|
|
2656
|
+
*/
|
|
2657
|
+
this.InviterUserId = null;
|
|
2658
|
+
|
|
2659
|
+
/**
|
|
2660
|
+
* <p>The coupon(s) associated with the promotion</p>
|
|
2661
|
+
* @type {Coupon || null}
|
|
2662
|
+
*/
|
|
2663
|
+
this.Coupon = null;
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* <p>The point(s) associated with the promotion</p>
|
|
2667
|
+
* @type {CreditPoint || null}
|
|
2668
|
+
*/
|
|
2669
|
+
this.CreditPoint = null;
|
|
2670
|
+
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* @private
|
|
2675
|
+
*/
|
|
2676
|
+
deserialize(params) {
|
|
2677
|
+
if (!params) {
|
|
2678
|
+
return;
|
|
2679
|
+
}
|
|
2680
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
2681
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
2682
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
2683
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
2684
|
+
|
|
2685
|
+
if (params.Coupon) {
|
|
2686
|
+
let obj = new Coupon();
|
|
2687
|
+
obj.deserialize(params.Coupon)
|
|
2688
|
+
this.Coupon = obj;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
if (params.CreditPoint) {
|
|
2692
|
+
let obj = new CreditPoint();
|
|
2693
|
+
obj.deserialize(params.CreditPoint)
|
|
2694
|
+
this.CreditPoint = obj;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* ModifyAccount event details
|
|
2702
|
+
* @class
|
|
2703
|
+
*/
|
|
2704
|
+
class ModifyAccountEvent extends AbstractModel {
|
|
2705
|
+
constructor(){
|
|
2706
|
+
super();
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* <p>The detail information of the user</p>
|
|
2710
|
+
* @type {User || null}
|
|
2711
|
+
*/
|
|
2712
|
+
this.UserInfo = null;
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* <p>The personal information of the account when registered</p>
|
|
2716
|
+
* @type {Person || null}
|
|
2717
|
+
*/
|
|
2718
|
+
this.Person = null;
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* <p>The billing address the user provided when registered</p>
|
|
2722
|
+
* @type {Address || null}
|
|
2723
|
+
*/
|
|
2724
|
+
this.BillingAddress = null;
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* <p>The delivery address the user provided when registered</p>
|
|
2728
|
+
* @type {Address || null}
|
|
2729
|
+
*/
|
|
2730
|
+
this.DeliveryAddress = null;
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
2734
|
+
* @type {Array.<Cust> || null}
|
|
2735
|
+
*/
|
|
2736
|
+
this.Cust = null;
|
|
2737
|
+
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* @private
|
|
2742
|
+
*/
|
|
2743
|
+
deserialize(params) {
|
|
2744
|
+
if (!params) {
|
|
2745
|
+
return;
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
if (params.UserInfo) {
|
|
2749
|
+
let obj = new User();
|
|
2750
|
+
obj.deserialize(params.UserInfo)
|
|
2751
|
+
this.UserInfo = obj;
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
if (params.Person) {
|
|
2755
|
+
let obj = new Person();
|
|
2756
|
+
obj.deserialize(params.Person)
|
|
2757
|
+
this.Person = obj;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
if (params.BillingAddress) {
|
|
2761
|
+
let obj = new Address();
|
|
2762
|
+
obj.deserialize(params.BillingAddress)
|
|
2763
|
+
this.BillingAddress = obj;
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
if (params.DeliveryAddress) {
|
|
2767
|
+
let obj = new Address();
|
|
2768
|
+
obj.deserialize(params.DeliveryAddress)
|
|
2769
|
+
this.DeliveryAddress = obj;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
if (params.Cust) {
|
|
2773
|
+
this.Cust = new Array();
|
|
2774
|
+
for (let z in params.Cust) {
|
|
2775
|
+
let obj = new Cust();
|
|
2776
|
+
obj.deserialize(params.Cust[z]);
|
|
2777
|
+
this.Cust.push(obj);
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
/**
|
|
2785
|
+
* Inviter information
|
|
2786
|
+
* @class
|
|
2787
|
+
*/
|
|
2788
|
+
class Inviter extends AbstractModel {
|
|
2789
|
+
constructor(){
|
|
2790
|
+
super();
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* <p>The ID of the inviter</p>
|
|
2794
|
+
* @type {string || null}
|
|
2795
|
+
*/
|
|
2796
|
+
this.InviterUserId = null;
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* <p>The phone number of the inviter</p><p>Parameter format: Complies with the E.164 standard format, which includes "+", region code, and number.</p>
|
|
2800
|
+
* @type {string || null}
|
|
2801
|
+
*/
|
|
2802
|
+
this.InviterPhone = null;
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* <p>The code that the inviter sent to the user</p>
|
|
2806
|
+
* @type {string || null}
|
|
2807
|
+
*/
|
|
2808
|
+
this.InviteCode = null;
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* <p>The channel that inviter used to invite the user</p>
|
|
2812
|
+
* @type {string || null}
|
|
2813
|
+
*/
|
|
2814
|
+
this.InviteChannel = null;
|
|
2815
|
+
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* @private
|
|
2820
|
+
*/
|
|
2821
|
+
deserialize(params) {
|
|
2822
|
+
if (!params) {
|
|
2823
|
+
return;
|
|
2824
|
+
}
|
|
2825
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
2826
|
+
this.InviterPhone = 'InviterPhone' in params ? params.InviterPhone : null;
|
|
2827
|
+
this.InviteCode = 'InviteCode' in params ? params.InviteCode : null;
|
|
2828
|
+
this.InviteChannel = 'InviteChannel' in params ? params.InviteChannel : null;
|
|
2829
|
+
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Logout event details
|
|
2835
|
+
* @class
|
|
2836
|
+
*/
|
|
2837
|
+
class LogoutEvent extends AbstractModel {
|
|
2838
|
+
constructor(){
|
|
2839
|
+
super();
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* <p>The detail information of the user</p>
|
|
2843
|
+
* @type {User || null}
|
|
2844
|
+
*/
|
|
2845
|
+
this.UserInfo = null;
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* <p>The user name entered when the user logged in</p>
|
|
2849
|
+
* @type {string || null}
|
|
2850
|
+
*/
|
|
2851
|
+
this.UserLoginName = null;
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
2855
|
+
* @type {Array.<Cust> || null}
|
|
2856
|
+
*/
|
|
2857
|
+
this.Cust = null;
|
|
2858
|
+
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* @private
|
|
2863
|
+
*/
|
|
2864
|
+
deserialize(params) {
|
|
2865
|
+
if (!params) {
|
|
2866
|
+
return;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
if (params.UserInfo) {
|
|
2870
|
+
let obj = new User();
|
|
2871
|
+
obj.deserialize(params.UserInfo)
|
|
2872
|
+
this.UserInfo = obj;
|
|
2873
|
+
}
|
|
2874
|
+
this.UserLoginName = 'UserLoginName' in params ? params.UserLoginName : null;
|
|
2875
|
+
|
|
2876
|
+
if (params.Cust) {
|
|
2877
|
+
this.Cust = new Array();
|
|
2878
|
+
for (let z in params.Cust) {
|
|
2879
|
+
let obj = new Cust();
|
|
2880
|
+
obj.deserialize(params.Cust[z]);
|
|
2881
|
+
this.Cust.push(obj);
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* Browser information
|
|
2890
|
+
* @class
|
|
2891
|
+
*/
|
|
2892
|
+
class Browser extends AbstractModel {
|
|
2893
|
+
constructor(){
|
|
2894
|
+
super();
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* <p>The user agent of the browser that interacts with the website</p>
|
|
2898
|
+
* @type {string || null}
|
|
2899
|
+
*/
|
|
2900
|
+
this.UserAgent = null;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* <p>The language(s) that the client prefers</p><p>Parameter format: Complies with the ISO 3166 standard</p>
|
|
2904
|
+
* @type {string || null}
|
|
2905
|
+
*/
|
|
2906
|
+
this.AcceptLanguage = null;
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* <p>The language(s) intended for the audience</p><p>Parameter format: Compliant with ISO 3166 standard</p>
|
|
2910
|
+
* @type {string || null}
|
|
2911
|
+
*/
|
|
2912
|
+
this.ContentLanguage = null;
|
|
2913
|
+
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* @private
|
|
2918
|
+
*/
|
|
2919
|
+
deserialize(params) {
|
|
2920
|
+
if (!params) {
|
|
2921
|
+
return;
|
|
2922
|
+
}
|
|
2923
|
+
this.UserAgent = 'UserAgent' in params ? params.UserAgent : null;
|
|
2924
|
+
this.AcceptLanguage = 'AcceptLanguage' in params ? params.AcceptLanguage : null;
|
|
2925
|
+
this.ContentLanguage = 'ContentLanguage' in params ? params.ContentLanguage : null;
|
|
2926
|
+
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Payment result
|
|
2932
|
+
* @class
|
|
2933
|
+
*/
|
|
2934
|
+
class PaymentResult extends AbstractModel {
|
|
2935
|
+
constructor(){
|
|
2936
|
+
super();
|
|
2937
|
+
|
|
2938
|
+
/**
|
|
2939
|
+
* <p>The status of the payment</p><p>Enumeration values: </p><ul><li>success: Success, </li><li>failure: Failure.</li></ul>
|
|
2940
|
+
* @type {string || null}
|
|
2941
|
+
*/
|
|
2942
|
+
this.Status = null;
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* <p>The reason why the payment has been declined. e.g.card_declined</p>
|
|
2946
|
+
* @type {string || null}
|
|
2947
|
+
*/
|
|
2948
|
+
this.FailureReason = null;
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* <p>Whether the 3DS has been used in the payment, enumeration value:</p><ul><li>Yes: true</li><li>No: false</li></ul>
|
|
2952
|
+
* @type {boolean || null}
|
|
2953
|
+
*/
|
|
2954
|
+
this.ThreeDomainSecure = null;
|
|
2955
|
+
|
|
2956
|
+
/**
|
|
2957
|
+
* <p>The ECI code returned when 3DS used</p>
|
|
2958
|
+
* @type {string || null}
|
|
2959
|
+
*/
|
|
2960
|
+
this.ECICode = null;
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* <p>Response code from the AVS used for address verification</p>
|
|
2964
|
+
* @type {string || null}
|
|
2965
|
+
*/
|
|
2966
|
+
this.AVSCode = null;
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* <p>Response code from the CVC used for payment authenticity</p>
|
|
2970
|
+
* @type {string || null}
|
|
2971
|
+
*/
|
|
2972
|
+
this.CVCCode = null;
|
|
2973
|
+
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
/**
|
|
2977
|
+
* @private
|
|
2978
|
+
*/
|
|
2979
|
+
deserialize(params) {
|
|
2980
|
+
if (!params) {
|
|
2981
|
+
return;
|
|
2982
|
+
}
|
|
2983
|
+
this.Status = 'Status' in params ? params.Status : null;
|
|
2984
|
+
this.FailureReason = 'FailureReason' in params ? params.FailureReason : null;
|
|
2985
|
+
this.ThreeDomainSecure = 'ThreeDomainSecure' in params ? params.ThreeDomainSecure : null;
|
|
2986
|
+
this.ECICode = 'ECICode' in params ? params.ECICode : null;
|
|
2987
|
+
this.AVSCode = 'AVSCode' in params ? params.AVSCode : null;
|
|
2988
|
+
this.CVCCode = 'CVCCode' in params ? params.CVCCode : null;
|
|
2989
|
+
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
/**
|
|
2994
|
+
* Transaction event details
|
|
2995
|
+
* @class
|
|
2996
|
+
*/
|
|
2997
|
+
class TransactionEvent extends AbstractModel {
|
|
2998
|
+
constructor(){
|
|
2999
|
+
super();
|
|
3000
|
+
|
|
3001
|
+
/**
|
|
3002
|
+
* <p>The unique ID of the transaction</p>
|
|
3003
|
+
* @type {string || null}
|
|
3004
|
+
*/
|
|
3005
|
+
this.TransactionId = null;
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* <p>The ID(s) of the order associated with the transaction</p>
|
|
3009
|
+
* @type {Array.<string> || null}
|
|
3010
|
+
*/
|
|
3011
|
+
this.OrderId = null;
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* <p>The amount of the transaction</p>
|
|
3015
|
+
* @type {Amount || null}
|
|
3016
|
+
*/
|
|
3017
|
+
this.PaymentAmount = null;
|
|
3018
|
+
|
|
3019
|
+
/**
|
|
3020
|
+
* <p>The detail information of the payment method associated with the transaction</p>
|
|
3021
|
+
* @type {PaymentMethod || null}
|
|
3022
|
+
*/
|
|
3023
|
+
this.PaymentMethod = null;
|
|
3024
|
+
|
|
3025
|
+
/**
|
|
3026
|
+
* <p>Transaction type</p><p>Enumeration value:</p><ul><li>sale: One-time authorization and deduction (most common)</li><li>authorize: Authorization only (frozen amount)</li><li>capture: Execute deduction (after authorization)</li><li>void: Cancel pending authorization or deduction</li><li>refund: Refund (part or all)</li><li>deposit: Deposit to account</li><li>withdrawal: Withdrawal from account</li><li>transfer: Fund transfer between accounts</li><li>buy: Purchase asset (for example, crypto currency)</li><li>sell: Sell asset</li><li>send: Send fund/asset (for example, cross-wallet transfer)</li><li>receive: Receive fund/asset</li></ul><p>Default value: sale</p>
|
|
3027
|
+
* @type {string || null}
|
|
3028
|
+
*/
|
|
3029
|
+
this.TransactionType = null;
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* <p>Bill information</p>
|
|
3033
|
+
* @type {Billing || null}
|
|
3034
|
+
*/
|
|
3035
|
+
this.Billing = null;
|
|
3036
|
+
|
|
3037
|
+
/**
|
|
3038
|
+
* <p>Delivery information</p>
|
|
3039
|
+
* @type {Delivery || null}
|
|
3040
|
+
*/
|
|
3041
|
+
this.Delivery = null;
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* <p>Merchant information</p>
|
|
3045
|
+
* @type {Merchant || null}
|
|
3046
|
+
*/
|
|
3047
|
+
this.Merchant = null;
|
|
3048
|
+
|
|
3049
|
+
/**
|
|
3050
|
+
* <p>Payment result</p>
|
|
3051
|
+
* @type {PaymentResult || null}
|
|
3052
|
+
*/
|
|
3053
|
+
this.PaymentResult = null;
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* <p>The ID of the recipent in transfer transaction</p>
|
|
3057
|
+
* @type {string || null}
|
|
3058
|
+
*/
|
|
3059
|
+
this.TransferRecipientUserId = null;
|
|
3060
|
+
|
|
3061
|
+
/**
|
|
3062
|
+
* <p>The address of the sender in transfer transaction</p>
|
|
3063
|
+
* @type {Address || null}
|
|
3064
|
+
*/
|
|
3065
|
+
this.TransferSentAddress = null;
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* <p>Physical address of the recipient, applicable to the transfer transaction type.</p>
|
|
3069
|
+
* @type {Address || null}
|
|
3070
|
+
*/
|
|
3071
|
+
this.TransferReceivedAddress = null;
|
|
181
3072
|
|
|
182
3073
|
/**
|
|
183
|
-
* <p>The
|
|
184
|
-
* @type {
|
|
3074
|
+
* <p>The digital order(s) associated with the transaction</p>
|
|
3075
|
+
* @type {Array.<DigitalOrder> || null}
|
|
185
3076
|
*/
|
|
186
|
-
this.
|
|
3077
|
+
this.DigitalOrders = null;
|
|
187
3078
|
|
|
188
3079
|
/**
|
|
189
|
-
* <p>
|
|
190
|
-
* @type {
|
|
3080
|
+
* <p>Wallet to receive crypto currency</p>
|
|
3081
|
+
* @type {Wallet || null}
|
|
191
3082
|
*/
|
|
192
|
-
this.
|
|
3083
|
+
this.ReceiverWallet = null;
|
|
193
3084
|
|
|
194
3085
|
/**
|
|
195
|
-
* <p>The
|
|
196
|
-
* @type {
|
|
3086
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
3087
|
+
* @type {Array.<Cust> || null}
|
|
197
3088
|
*/
|
|
198
|
-
this.
|
|
3089
|
+
this.Cust = null;
|
|
199
3090
|
|
|
200
3091
|
}
|
|
201
3092
|
|
|
@@ -206,43 +3097,105 @@ class IPLocation extends AbstractModel {
|
|
|
206
3097
|
if (!params) {
|
|
207
3098
|
return;
|
|
208
3099
|
}
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
3100
|
+
this.TransactionId = 'TransactionId' in params ? params.TransactionId : null;
|
|
3101
|
+
this.OrderId = 'OrderId' in params ? params.OrderId : null;
|
|
3102
|
+
|
|
3103
|
+
if (params.PaymentAmount) {
|
|
3104
|
+
let obj = new Amount();
|
|
3105
|
+
obj.deserialize(params.PaymentAmount)
|
|
3106
|
+
this.PaymentAmount = obj;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
if (params.PaymentMethod) {
|
|
3110
|
+
let obj = new PaymentMethod();
|
|
3111
|
+
obj.deserialize(params.PaymentMethod)
|
|
3112
|
+
this.PaymentMethod = obj;
|
|
3113
|
+
}
|
|
3114
|
+
this.TransactionType = 'TransactionType' in params ? params.TransactionType : null;
|
|
3115
|
+
|
|
3116
|
+
if (params.Billing) {
|
|
3117
|
+
let obj = new Billing();
|
|
3118
|
+
obj.deserialize(params.Billing)
|
|
3119
|
+
this.Billing = obj;
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
if (params.Delivery) {
|
|
3123
|
+
let obj = new Delivery();
|
|
3124
|
+
obj.deserialize(params.Delivery)
|
|
3125
|
+
this.Delivery = obj;
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
if (params.Merchant) {
|
|
3129
|
+
let obj = new Merchant();
|
|
3130
|
+
obj.deserialize(params.Merchant)
|
|
3131
|
+
this.Merchant = obj;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
if (params.PaymentResult) {
|
|
3135
|
+
let obj = new PaymentResult();
|
|
3136
|
+
obj.deserialize(params.PaymentResult)
|
|
3137
|
+
this.PaymentResult = obj;
|
|
3138
|
+
}
|
|
3139
|
+
this.TransferRecipientUserId = 'TransferRecipientUserId' in params ? params.TransferRecipientUserId : null;
|
|
3140
|
+
|
|
3141
|
+
if (params.TransferSentAddress) {
|
|
3142
|
+
let obj = new Address();
|
|
3143
|
+
obj.deserialize(params.TransferSentAddress)
|
|
3144
|
+
this.TransferSentAddress = obj;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
if (params.TransferReceivedAddress) {
|
|
3148
|
+
let obj = new Address();
|
|
3149
|
+
obj.deserialize(params.TransferReceivedAddress)
|
|
3150
|
+
this.TransferReceivedAddress = obj;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
if (params.DigitalOrders) {
|
|
3154
|
+
this.DigitalOrders = new Array();
|
|
3155
|
+
for (let z in params.DigitalOrders) {
|
|
3156
|
+
let obj = new DigitalOrder();
|
|
3157
|
+
obj.deserialize(params.DigitalOrders[z]);
|
|
3158
|
+
this.DigitalOrders.push(obj);
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
if (params.ReceiverWallet) {
|
|
3163
|
+
let obj = new Wallet();
|
|
3164
|
+
obj.deserialize(params.ReceiverWallet)
|
|
3165
|
+
this.ReceiverWallet = obj;
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
if (params.Cust) {
|
|
3169
|
+
this.Cust = new Array();
|
|
3170
|
+
for (let z in params.Cust) {
|
|
3171
|
+
let obj = new Cust();
|
|
3172
|
+
obj.deserialize(params.Cust[z]);
|
|
3173
|
+
this.Cust.push(obj);
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
217
3176
|
|
|
218
3177
|
}
|
|
219
3178
|
}
|
|
220
3179
|
|
|
221
3180
|
/**
|
|
222
|
-
*
|
|
3181
|
+
* ModifyPassword event details
|
|
223
3182
|
* @class
|
|
224
3183
|
*/
|
|
225
|
-
class
|
|
3184
|
+
class ModifyPasswordEvent extends AbstractModel {
|
|
226
3185
|
constructor(){
|
|
227
3186
|
super();
|
|
228
3187
|
|
|
229
3188
|
/**
|
|
230
|
-
* <p>
|
|
231
|
-
* @type {
|
|
232
|
-
*/
|
|
233
|
-
this.RiskLevel = null;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* <p>Risk label</p>
|
|
237
|
-
* @type {Array.<RiskLabel> || null}
|
|
3189
|
+
* <p>The reason why the password was updated</p><p>Enumeration value:</p><ul><li>user_modify: User self-initiated modification</li><li>forgot_password: Forget password</li><li>forced_reset: System forcing reset</li></ul>
|
|
3190
|
+
* @type {string || null}
|
|
238
3191
|
*/
|
|
239
|
-
this.
|
|
3192
|
+
this.Reason = null;
|
|
240
3193
|
|
|
241
3194
|
/**
|
|
242
|
-
* <p>
|
|
243
|
-
* @type {
|
|
3195
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
3196
|
+
* @type {Array.<Cust> || null}
|
|
244
3197
|
*/
|
|
245
|
-
this.
|
|
3198
|
+
this.Cust = null;
|
|
246
3199
|
|
|
247
3200
|
}
|
|
248
3201
|
|
|
@@ -253,17 +3206,16 @@ class DataScore extends AbstractModel {
|
|
|
253
3206
|
if (!params) {
|
|
254
3207
|
return;
|
|
255
3208
|
}
|
|
256
|
-
this.
|
|
3209
|
+
this.Reason = 'Reason' in params ? params.Reason : null;
|
|
257
3210
|
|
|
258
|
-
if (params.
|
|
259
|
-
this.
|
|
260
|
-
for (let z in params.
|
|
261
|
-
let obj = new
|
|
262
|
-
obj.deserialize(params.
|
|
263
|
-
this.
|
|
3211
|
+
if (params.Cust) {
|
|
3212
|
+
this.Cust = new Array();
|
|
3213
|
+
for (let z in params.Cust) {
|
|
3214
|
+
let obj = new Cust();
|
|
3215
|
+
obj.deserialize(params.Cust[z]);
|
|
3216
|
+
this.Cust.push(obj);
|
|
264
3217
|
}
|
|
265
3218
|
}
|
|
266
|
-
this.RiskScore = 'RiskScore' in params ? params.RiskScore : null;
|
|
267
3219
|
|
|
268
3220
|
}
|
|
269
3221
|
}
|
|
@@ -326,24 +3278,54 @@ class AssessDeviceRiskRsp extends AbstractModel {
|
|
|
326
3278
|
}
|
|
327
3279
|
|
|
328
3280
|
/**
|
|
329
|
-
*
|
|
3281
|
+
* The details of the coupon
|
|
330
3282
|
* @class
|
|
331
3283
|
*/
|
|
332
|
-
class
|
|
3284
|
+
class Coupon extends AbstractModel {
|
|
333
3285
|
constructor(){
|
|
334
3286
|
super();
|
|
335
3287
|
|
|
336
3288
|
/**
|
|
337
|
-
* <p>The
|
|
338
|
-
* @type {
|
|
3289
|
+
* <p>The unique ID of each coupon</p>
|
|
3290
|
+
* @type {string || null}
|
|
339
3291
|
*/
|
|
340
|
-
this.
|
|
3292
|
+
this.CouponId = null;
|
|
341
3293
|
|
|
342
3294
|
/**
|
|
343
|
-
* The
|
|
3295
|
+
* <p>The name of the coupon</p>
|
|
344
3296
|
* @type {string || null}
|
|
345
3297
|
*/
|
|
346
|
-
this.
|
|
3298
|
+
this.CouponName = null;
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* <p>The start time of the coupon</p><p>Parameter format: Millisecond-level time with UTC time zone compliant with ISO 8601.</p>
|
|
3302
|
+
* @type {string || null}
|
|
3303
|
+
*/
|
|
3304
|
+
this.StartTime = null;
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* <p>The expiration time of the coupon</p><p>Parameter format: Millisecond-level time with UTC time zone compliant with ISO 8601 standard</p>
|
|
3308
|
+
* @type {string || null}
|
|
3309
|
+
*/
|
|
3310
|
+
this.ExpireTime = null;
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* <p>The percentage rate of the coupon. If discount off is 10%,please send 0.1</p>
|
|
3314
|
+
* @type {number || null}
|
|
3315
|
+
*/
|
|
3316
|
+
this.PercentageRate = null;
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* <p>The discount amount of the coupon</p>
|
|
3320
|
+
* @type {Amount || null}
|
|
3321
|
+
*/
|
|
3322
|
+
this.DiscountAmount = null;
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* <p>The threshold amount of the coupon</p>
|
|
3326
|
+
* @type {number || null}
|
|
3327
|
+
*/
|
|
3328
|
+
this.Threshold = null;
|
|
347
3329
|
|
|
348
3330
|
}
|
|
349
3331
|
|
|
@@ -354,36 +3336,71 @@ class AssessEnvironmentRiskResponse extends AbstractModel {
|
|
|
354
3336
|
if (!params) {
|
|
355
3337
|
return;
|
|
356
3338
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
3339
|
+
this.CouponId = 'CouponId' in params ? params.CouponId : null;
|
|
3340
|
+
this.CouponName = 'CouponName' in params ? params.CouponName : null;
|
|
3341
|
+
this.StartTime = 'StartTime' in params ? params.StartTime : null;
|
|
3342
|
+
this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null;
|
|
3343
|
+
this.PercentageRate = 'PercentageRate' in params ? params.PercentageRate : null;
|
|
3344
|
+
|
|
3345
|
+
if (params.DiscountAmount) {
|
|
3346
|
+
let obj = new Amount();
|
|
3347
|
+
obj.deserialize(params.DiscountAmount)
|
|
3348
|
+
this.DiscountAmount = obj;
|
|
362
3349
|
}
|
|
363
|
-
this.
|
|
3350
|
+
this.Threshold = 'Threshold' in params ? params.Threshold : null;
|
|
364
3351
|
|
|
365
3352
|
}
|
|
366
3353
|
}
|
|
367
3354
|
|
|
368
3355
|
/**
|
|
369
|
-
*
|
|
3356
|
+
* Register event details
|
|
370
3357
|
* @class
|
|
371
3358
|
*/
|
|
372
|
-
class
|
|
3359
|
+
class RegisterEvent extends AbstractModel {
|
|
373
3360
|
constructor(){
|
|
374
3361
|
super();
|
|
375
3362
|
|
|
376
3363
|
/**
|
|
377
|
-
* <p>The
|
|
378
|
-
* @type {
|
|
3364
|
+
* <p>The result of the register</p>
|
|
3365
|
+
* @type {Result || null}
|
|
379
3366
|
*/
|
|
380
|
-
this.
|
|
3367
|
+
this.RegisterResult = null;
|
|
381
3368
|
|
|
382
3369
|
/**
|
|
383
|
-
* The
|
|
384
|
-
* @type {
|
|
3370
|
+
* <p>The detail information of the user</p>
|
|
3371
|
+
* @type {User || null}
|
|
385
3372
|
*/
|
|
386
|
-
this.
|
|
3373
|
+
this.UserInfo = null;
|
|
3374
|
+
|
|
3375
|
+
/**
|
|
3376
|
+
* <p>The personal information of the account when registered</p>
|
|
3377
|
+
* @type {Person || null}
|
|
3378
|
+
*/
|
|
3379
|
+
this.Person = null;
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* <p>The billing address the user provided when registered</p>
|
|
3383
|
+
* @type {Address || null}
|
|
3384
|
+
*/
|
|
3385
|
+
this.BillingAddress = null;
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* <p>The delivery address the user provided when registered</p>
|
|
3389
|
+
* @type {Address || null}
|
|
3390
|
+
*/
|
|
3391
|
+
this.DeliveryAddress = null;
|
|
3392
|
+
|
|
3393
|
+
/**
|
|
3394
|
+
* <p>The detail information of the inviter who invited the user to your business</p>
|
|
3395
|
+
* @type {Inviter || null}
|
|
3396
|
+
*/
|
|
3397
|
+
this.Inviter = null;
|
|
3398
|
+
|
|
3399
|
+
/**
|
|
3400
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
3401
|
+
* @type {Array.<Cust> || null}
|
|
3402
|
+
*/
|
|
3403
|
+
this.Cust = null;
|
|
387
3404
|
|
|
388
3405
|
}
|
|
389
3406
|
|
|
@@ -395,35 +3412,109 @@ class AssessDeviceRiskPremiumProResponse extends AbstractModel {
|
|
|
395
3412
|
return;
|
|
396
3413
|
}
|
|
397
3414
|
|
|
398
|
-
if (params.
|
|
399
|
-
let obj = new
|
|
400
|
-
obj.deserialize(params.
|
|
401
|
-
this.
|
|
3415
|
+
if (params.RegisterResult) {
|
|
3416
|
+
let obj = new Result();
|
|
3417
|
+
obj.deserialize(params.RegisterResult)
|
|
3418
|
+
this.RegisterResult = obj;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
if (params.UserInfo) {
|
|
3422
|
+
let obj = new User();
|
|
3423
|
+
obj.deserialize(params.UserInfo)
|
|
3424
|
+
this.UserInfo = obj;
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
if (params.Person) {
|
|
3428
|
+
let obj = new Person();
|
|
3429
|
+
obj.deserialize(params.Person)
|
|
3430
|
+
this.Person = obj;
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
if (params.BillingAddress) {
|
|
3434
|
+
let obj = new Address();
|
|
3435
|
+
obj.deserialize(params.BillingAddress)
|
|
3436
|
+
this.BillingAddress = obj;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
if (params.DeliveryAddress) {
|
|
3440
|
+
let obj = new Address();
|
|
3441
|
+
obj.deserialize(params.DeliveryAddress)
|
|
3442
|
+
this.DeliveryAddress = obj;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
if (params.Inviter) {
|
|
3446
|
+
let obj = new Inviter();
|
|
3447
|
+
obj.deserialize(params.Inviter)
|
|
3448
|
+
this.Inviter = obj;
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
if (params.Cust) {
|
|
3452
|
+
this.Cust = new Array();
|
|
3453
|
+
for (let z in params.Cust) {
|
|
3454
|
+
let obj = new Cust();
|
|
3455
|
+
obj.deserialize(params.Cust[z]);
|
|
3456
|
+
this.Cust.push(obj);
|
|
3457
|
+
}
|
|
402
3458
|
}
|
|
403
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
404
3459
|
|
|
405
3460
|
}
|
|
406
3461
|
}
|
|
407
3462
|
|
|
408
3463
|
/**
|
|
409
|
-
*
|
|
3464
|
+
* The details of the app, os and device
|
|
410
3465
|
* @class
|
|
411
3466
|
*/
|
|
412
|
-
class
|
|
3467
|
+
class App extends AbstractModel {
|
|
413
3468
|
constructor(){
|
|
414
3469
|
super();
|
|
415
3470
|
|
|
416
3471
|
/**
|
|
417
|
-
* <p>
|
|
3472
|
+
* <p>The operating system your application is running on</p>
|
|
418
3473
|
* @type {string || null}
|
|
419
3474
|
*/
|
|
420
|
-
this.
|
|
3475
|
+
this.OS = null;
|
|
421
3476
|
|
|
422
3477
|
/**
|
|
423
|
-
* <p>
|
|
3478
|
+
* <p>The operating system version your application is running on</p>
|
|
424
3479
|
* @type {string || null}
|
|
425
3480
|
*/
|
|
426
|
-
this.
|
|
3481
|
+
this.OSVersion = null;
|
|
3482
|
+
|
|
3483
|
+
/**
|
|
3484
|
+
* <p>The manufacturer of the device your application is running on</p>
|
|
3485
|
+
* @type {string || null}
|
|
3486
|
+
*/
|
|
3487
|
+
this.DeviceManufacturer = null;
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* <p>The model of the device your application is running on</p>
|
|
3491
|
+
* @type {string || null}
|
|
3492
|
+
*/
|
|
3493
|
+
this.DeviceModel = null;
|
|
3494
|
+
|
|
3495
|
+
/**
|
|
3496
|
+
* <p>The ID of the device your application is running on</p>
|
|
3497
|
+
* @type {string || null}
|
|
3498
|
+
*/
|
|
3499
|
+
this.DeviceId = null;
|
|
3500
|
+
|
|
3501
|
+
/**
|
|
3502
|
+
* <p>The name of your application</p>
|
|
3503
|
+
* @type {string || null}
|
|
3504
|
+
*/
|
|
3505
|
+
this.AppName = null;
|
|
3506
|
+
|
|
3507
|
+
/**
|
|
3508
|
+
* <p>The version of your application</p>
|
|
3509
|
+
* @type {string || null}
|
|
3510
|
+
*/
|
|
3511
|
+
this.AppVersion = null;
|
|
3512
|
+
|
|
3513
|
+
/**
|
|
3514
|
+
* <p>The language of your application</p>
|
|
3515
|
+
* @type {string || null}
|
|
3516
|
+
*/
|
|
3517
|
+
this.ClientLanguage = null;
|
|
427
3518
|
|
|
428
3519
|
}
|
|
429
3520
|
|
|
@@ -434,31 +3525,49 @@ class AssessDeviceRiskProRequest extends AbstractModel {
|
|
|
434
3525
|
if (!params) {
|
|
435
3526
|
return;
|
|
436
3527
|
}
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
3528
|
+
this.OS = 'OS' in params ? params.OS : null;
|
|
3529
|
+
this.OSVersion = 'OSVersion' in params ? params.OSVersion : null;
|
|
3530
|
+
this.DeviceManufacturer = 'DeviceManufacturer' in params ? params.DeviceManufacturer : null;
|
|
3531
|
+
this.DeviceModel = 'DeviceModel' in params ? params.DeviceModel : null;
|
|
3532
|
+
this.DeviceId = 'DeviceId' in params ? params.DeviceId : null;
|
|
3533
|
+
this.AppName = 'AppName' in params ? params.AppName : null;
|
|
3534
|
+
this.AppVersion = 'AppVersion' in params ? params.AppVersion : null;
|
|
3535
|
+
this.ClientLanguage = 'ClientLanguage' in params ? params.ClientLanguage : null;
|
|
439
3536
|
|
|
440
3537
|
}
|
|
441
3538
|
}
|
|
442
3539
|
|
|
443
3540
|
/**
|
|
444
|
-
*
|
|
3541
|
+
* Login event detail
|
|
445
3542
|
* @class
|
|
446
3543
|
*/
|
|
447
|
-
class
|
|
3544
|
+
class LoginEvent extends AbstractModel {
|
|
448
3545
|
constructor(){
|
|
449
3546
|
super();
|
|
450
3547
|
|
|
451
3548
|
/**
|
|
452
|
-
* <p>
|
|
453
|
-
* @type {
|
|
3549
|
+
* <p>Basic user information</p>
|
|
3550
|
+
* @type {User || null}
|
|
454
3551
|
*/
|
|
455
|
-
this.
|
|
3552
|
+
this.UserInfo = null;
|
|
456
3553
|
|
|
457
3554
|
/**
|
|
458
|
-
* <p>
|
|
3555
|
+
* <p>The user name entered when the user logged in</p>
|
|
459
3556
|
* @type {string || null}
|
|
460
3557
|
*/
|
|
461
|
-
this.
|
|
3558
|
+
this.UserLoginName = null;
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* <p>Login result</p>
|
|
3562
|
+
* @type {Result || null}
|
|
3563
|
+
*/
|
|
3564
|
+
this.LoginResult = null;
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
3568
|
+
* @type {Array.<Cust> || null}
|
|
3569
|
+
*/
|
|
3570
|
+
this.Cust = null;
|
|
462
3571
|
|
|
463
3572
|
}
|
|
464
3573
|
|
|
@@ -469,31 +3578,159 @@ class AssessDeviceRiskPremiumProRequest extends AbstractModel {
|
|
|
469
3578
|
if (!params) {
|
|
470
3579
|
return;
|
|
471
3580
|
}
|
|
472
|
-
|
|
473
|
-
|
|
3581
|
+
|
|
3582
|
+
if (params.UserInfo) {
|
|
3583
|
+
let obj = new User();
|
|
3584
|
+
obj.deserialize(params.UserInfo)
|
|
3585
|
+
this.UserInfo = obj;
|
|
3586
|
+
}
|
|
3587
|
+
this.UserLoginName = 'UserLoginName' in params ? params.UserLoginName : null;
|
|
3588
|
+
|
|
3589
|
+
if (params.LoginResult) {
|
|
3590
|
+
let obj = new Result();
|
|
3591
|
+
obj.deserialize(params.LoginResult)
|
|
3592
|
+
this.LoginResult = obj;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
if (params.Cust) {
|
|
3596
|
+
this.Cust = new Array();
|
|
3597
|
+
for (let z in params.Cust) {
|
|
3598
|
+
let obj = new Cust();
|
|
3599
|
+
obj.deserialize(params.Cust[z]);
|
|
3600
|
+
this.Cust.push(obj);
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
474
3603
|
|
|
475
3604
|
}
|
|
476
3605
|
}
|
|
477
3606
|
|
|
478
|
-
/**
|
|
479
|
-
*
|
|
480
|
-
* @class
|
|
481
|
-
*/
|
|
482
|
-
class
|
|
483
|
-
constructor(){
|
|
484
|
-
super();
|
|
3607
|
+
/**
|
|
3608
|
+
* Event details
|
|
3609
|
+
* @class
|
|
3610
|
+
*/
|
|
3611
|
+
class EventDetail extends AbstractModel {
|
|
3612
|
+
constructor(){
|
|
3613
|
+
super();
|
|
3614
|
+
|
|
3615
|
+
/**
|
|
3616
|
+
* <p>Login</p>
|
|
3617
|
+
* @type {LoginEvent || null}
|
|
3618
|
+
*/
|
|
3619
|
+
this.Login = null;
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* <p>Registration</p>
|
|
3623
|
+
* @type {RegisterEvent || null}
|
|
3624
|
+
*/
|
|
3625
|
+
this.Register = null;
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* <p>Create an order</p>
|
|
3629
|
+
* @type {CreateOrderEvent || null}
|
|
3630
|
+
*/
|
|
3631
|
+
this.CreateOrder = null;
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* <p>Transaction</p>
|
|
3635
|
+
* @type {TransactionEvent || null}
|
|
3636
|
+
*/
|
|
3637
|
+
this.Transaction = null;
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* <p>SMS</p>
|
|
3641
|
+
* @type {SMSEvent || null}
|
|
3642
|
+
*/
|
|
3643
|
+
this.Sms = null;
|
|
3644
|
+
|
|
3645
|
+
/**
|
|
3646
|
+
* <p>Chargeback</p>
|
|
3647
|
+
* @type {ChargeBackEvent || null}
|
|
3648
|
+
*/
|
|
3649
|
+
this.ChargeBack = null;
|
|
3650
|
+
|
|
3651
|
+
/**
|
|
3652
|
+
* <p>Logout</p>
|
|
3653
|
+
* @type {LogoutEvent || null}
|
|
3654
|
+
*/
|
|
3655
|
+
this.Logout = null;
|
|
3656
|
+
|
|
3657
|
+
/**
|
|
3658
|
+
* <p>Modify account</p>
|
|
3659
|
+
* @type {ModifyAccountEvent || null}
|
|
3660
|
+
*/
|
|
3661
|
+
this.ModifyAccount = null;
|
|
3662
|
+
|
|
3663
|
+
/**
|
|
3664
|
+
* <p>Modify password</p>
|
|
3665
|
+
* @type {ModifyPasswordEvent || null}
|
|
3666
|
+
*/
|
|
3667
|
+
this.ModifyPassword = null;
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* <p>Security verification</p>
|
|
3671
|
+
* @type {SecurityVerificationEvent || null}
|
|
3672
|
+
*/
|
|
3673
|
+
this.SecurityVerification = null;
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* <p>Participate in promotion activities</p>
|
|
3677
|
+
* @type {AddPromotionEvent || null}
|
|
3678
|
+
*/
|
|
3679
|
+
this.AddPromotion = null;
|
|
3680
|
+
|
|
3681
|
+
/**
|
|
3682
|
+
* <p>Redeem a prize</p>
|
|
3683
|
+
* @type {RedeemEvent || null}
|
|
3684
|
+
*/
|
|
3685
|
+
this.Redeem = null;
|
|
3686
|
+
|
|
3687
|
+
/**
|
|
3688
|
+
* <p>Withdrawal</p>
|
|
3689
|
+
* @type {WithdrawEvent || null}
|
|
3690
|
+
*/
|
|
3691
|
+
this.Withdraw = null;
|
|
3692
|
+
|
|
3693
|
+
/**
|
|
3694
|
+
* <p>Custom event</p>
|
|
3695
|
+
* @type {CustEvent || null}
|
|
3696
|
+
*/
|
|
3697
|
+
this.CustEvent = null;
|
|
3698
|
+
|
|
3699
|
+
/**
|
|
3700
|
+
* <p>Scan the QR code</p>
|
|
3701
|
+
* @type {ScanCodeEvent || null}
|
|
3702
|
+
*/
|
|
3703
|
+
this.ScanCode = null;
|
|
3704
|
+
|
|
3705
|
+
/**
|
|
3706
|
+
* <p>Lucky draw</p>
|
|
3707
|
+
* @type {LuckyDrawEvent || null}
|
|
3708
|
+
*/
|
|
3709
|
+
this.LuckyDraw = null;
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* <p>Perform a task</p>
|
|
3713
|
+
* @type {TaskEvent || null}
|
|
3714
|
+
*/
|
|
3715
|
+
this.Task = null;
|
|
3716
|
+
|
|
3717
|
+
/**
|
|
3718
|
+
* <p>Invitation</p>
|
|
3719
|
+
* @type {InvitationEvent || null}
|
|
3720
|
+
*/
|
|
3721
|
+
this.Invitation = null;
|
|
485
3722
|
|
|
486
3723
|
/**
|
|
487
|
-
* <p>
|
|
488
|
-
* @type {
|
|
3724
|
+
* <p>Receive a red packet</p>
|
|
3725
|
+
* @type {ClaimRedPacketEvent || null}
|
|
489
3726
|
*/
|
|
490
|
-
this.
|
|
3727
|
+
this.ClaimRedPacket = null;
|
|
491
3728
|
|
|
492
3729
|
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {
|
|
3730
|
+
* <p>Browse</p>
|
|
3731
|
+
* @type {BrowseEvent || null}
|
|
495
3732
|
*/
|
|
496
|
-
this.
|
|
3733
|
+
this.Browse = null;
|
|
497
3734
|
|
|
498
3735
|
}
|
|
499
3736
|
|
|
@@ -505,12 +3742,125 @@ class AssessDeviceRiskProResponse extends AbstractModel {
|
|
|
505
3742
|
return;
|
|
506
3743
|
}
|
|
507
3744
|
|
|
508
|
-
if (params.
|
|
509
|
-
let obj = new
|
|
510
|
-
obj.deserialize(params.
|
|
511
|
-
this.
|
|
3745
|
+
if (params.Login) {
|
|
3746
|
+
let obj = new LoginEvent();
|
|
3747
|
+
obj.deserialize(params.Login)
|
|
3748
|
+
this.Login = obj;
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3751
|
+
if (params.Register) {
|
|
3752
|
+
let obj = new RegisterEvent();
|
|
3753
|
+
obj.deserialize(params.Register)
|
|
3754
|
+
this.Register = obj;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
if (params.CreateOrder) {
|
|
3758
|
+
let obj = new CreateOrderEvent();
|
|
3759
|
+
obj.deserialize(params.CreateOrder)
|
|
3760
|
+
this.CreateOrder = obj;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
if (params.Transaction) {
|
|
3764
|
+
let obj = new TransactionEvent();
|
|
3765
|
+
obj.deserialize(params.Transaction)
|
|
3766
|
+
this.Transaction = obj;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
if (params.Sms) {
|
|
3770
|
+
let obj = new SMSEvent();
|
|
3771
|
+
obj.deserialize(params.Sms)
|
|
3772
|
+
this.Sms = obj;
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
if (params.ChargeBack) {
|
|
3776
|
+
let obj = new ChargeBackEvent();
|
|
3777
|
+
obj.deserialize(params.ChargeBack)
|
|
3778
|
+
this.ChargeBack = obj;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
if (params.Logout) {
|
|
3782
|
+
let obj = new LogoutEvent();
|
|
3783
|
+
obj.deserialize(params.Logout)
|
|
3784
|
+
this.Logout = obj;
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
if (params.ModifyAccount) {
|
|
3788
|
+
let obj = new ModifyAccountEvent();
|
|
3789
|
+
obj.deserialize(params.ModifyAccount)
|
|
3790
|
+
this.ModifyAccount = obj;
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
if (params.ModifyPassword) {
|
|
3794
|
+
let obj = new ModifyPasswordEvent();
|
|
3795
|
+
obj.deserialize(params.ModifyPassword)
|
|
3796
|
+
this.ModifyPassword = obj;
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
if (params.SecurityVerification) {
|
|
3800
|
+
let obj = new SecurityVerificationEvent();
|
|
3801
|
+
obj.deserialize(params.SecurityVerification)
|
|
3802
|
+
this.SecurityVerification = obj;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
if (params.AddPromotion) {
|
|
3806
|
+
let obj = new AddPromotionEvent();
|
|
3807
|
+
obj.deserialize(params.AddPromotion)
|
|
3808
|
+
this.AddPromotion = obj;
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
if (params.Redeem) {
|
|
3812
|
+
let obj = new RedeemEvent();
|
|
3813
|
+
obj.deserialize(params.Redeem)
|
|
3814
|
+
this.Redeem = obj;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
if (params.Withdraw) {
|
|
3818
|
+
let obj = new WithdrawEvent();
|
|
3819
|
+
obj.deserialize(params.Withdraw)
|
|
3820
|
+
this.Withdraw = obj;
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
if (params.CustEvent) {
|
|
3824
|
+
let obj = new CustEvent();
|
|
3825
|
+
obj.deserialize(params.CustEvent)
|
|
3826
|
+
this.CustEvent = obj;
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
if (params.ScanCode) {
|
|
3830
|
+
let obj = new ScanCodeEvent();
|
|
3831
|
+
obj.deserialize(params.ScanCode)
|
|
3832
|
+
this.ScanCode = obj;
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
if (params.LuckyDraw) {
|
|
3836
|
+
let obj = new LuckyDrawEvent();
|
|
3837
|
+
obj.deserialize(params.LuckyDraw)
|
|
3838
|
+
this.LuckyDraw = obj;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
if (params.Task) {
|
|
3842
|
+
let obj = new TaskEvent();
|
|
3843
|
+
obj.deserialize(params.Task)
|
|
3844
|
+
this.Task = obj;
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
if (params.Invitation) {
|
|
3848
|
+
let obj = new InvitationEvent();
|
|
3849
|
+
obj.deserialize(params.Invitation)
|
|
3850
|
+
this.Invitation = obj;
|
|
3851
|
+
}
|
|
3852
|
+
|
|
3853
|
+
if (params.ClaimRedPacket) {
|
|
3854
|
+
let obj = new ClaimRedPacketEvent();
|
|
3855
|
+
obj.deserialize(params.ClaimRedPacket)
|
|
3856
|
+
this.ClaimRedPacket = obj;
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
if (params.Browse) {
|
|
3860
|
+
let obj = new BrowseEvent();
|
|
3861
|
+
obj.deserialize(params.Browse)
|
|
3862
|
+
this.Browse = obj;
|
|
512
3863
|
}
|
|
513
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
514
3864
|
|
|
515
3865
|
}
|
|
516
3866
|
}
|
|
@@ -655,6 +4005,75 @@ class IPNetwork extends AbstractModel {
|
|
|
655
4005
|
}
|
|
656
4006
|
}
|
|
657
4007
|
|
|
4008
|
+
/**
|
|
4009
|
+
* SecurityVerification event details
|
|
4010
|
+
* @class
|
|
4011
|
+
*/
|
|
4012
|
+
class SecurityVerificationEvent extends AbstractModel {
|
|
4013
|
+
constructor(){
|
|
4014
|
+
super();
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* <p>The event type being verified</p><p>Enumeration values:</p><ul><li>register</li><li>login</li><li>modify_account</li><li>modify_password</li><li>create_order</li><li>transaction</li><li>modify_order</li><li>withdraw</li><li>add_promotion</li><li>redeem</li></ul>
|
|
4018
|
+
* @type {string || null}
|
|
4019
|
+
*/
|
|
4020
|
+
this.VerificationEvent = null;
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* <p>The type of security verification: sms, phone call, email, captcha, shared knowledge, human face, fingerprint, etc</p>
|
|
4024
|
+
* @type {string || null}
|
|
4025
|
+
*/
|
|
4026
|
+
this.VerificationType = null;
|
|
4027
|
+
|
|
4028
|
+
/**
|
|
4029
|
+
* <p>The content of the security verifcation.This value should be passed when the verification type is set to sms, phone_call, email captcha or shared_knowledge</p>
|
|
4030
|
+
* @type {string || null}
|
|
4031
|
+
*/
|
|
4032
|
+
this.VerificationContent = null;
|
|
4033
|
+
|
|
4034
|
+
/**
|
|
4035
|
+
* <p>The result of security verification</p>
|
|
4036
|
+
* @type {Result || null}
|
|
4037
|
+
*/
|
|
4038
|
+
this.VerificationResult = null;
|
|
4039
|
+
|
|
4040
|
+
/**
|
|
4041
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
4042
|
+
* @type {Array.<Cust> || null}
|
|
4043
|
+
*/
|
|
4044
|
+
this.Cust = null;
|
|
4045
|
+
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
/**
|
|
4049
|
+
* @private
|
|
4050
|
+
*/
|
|
4051
|
+
deserialize(params) {
|
|
4052
|
+
if (!params) {
|
|
4053
|
+
return;
|
|
4054
|
+
}
|
|
4055
|
+
this.VerificationEvent = 'VerificationEvent' in params ? params.VerificationEvent : null;
|
|
4056
|
+
this.VerificationType = 'VerificationType' in params ? params.VerificationType : null;
|
|
4057
|
+
this.VerificationContent = 'VerificationContent' in params ? params.VerificationContent : null;
|
|
4058
|
+
|
|
4059
|
+
if (params.VerificationResult) {
|
|
4060
|
+
let obj = new Result();
|
|
4061
|
+
obj.deserialize(params.VerificationResult)
|
|
4062
|
+
this.VerificationResult = obj;
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4065
|
+
if (params.Cust) {
|
|
4066
|
+
this.Cust = new Array();
|
|
4067
|
+
for (let z in params.Cust) {
|
|
4068
|
+
let obj = new Cust();
|
|
4069
|
+
obj.deserialize(params.Cust[z]);
|
|
4070
|
+
this.Cust.push(obj);
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
|
|
658
4077
|
/**
|
|
659
4078
|
* The results of AssessDeviceRiskPremiumPro
|
|
660
4079
|
* @class
|
|
@@ -725,18 +4144,54 @@ class AssessDeviceRiskPremiumRsp extends AbstractModel {
|
|
|
725
4144
|
}
|
|
726
4145
|
|
|
727
4146
|
/**
|
|
728
|
-
*
|
|
4147
|
+
* Redeem event details
|
|
729
4148
|
* @class
|
|
730
4149
|
*/
|
|
731
|
-
class
|
|
4150
|
+
class RedeemEvent extends AbstractModel {
|
|
732
4151
|
constructor(){
|
|
733
4152
|
super();
|
|
734
4153
|
|
|
735
4154
|
/**
|
|
736
|
-
* <p>
|
|
4155
|
+
* <p>The ID of the promotion</p>
|
|
737
4156
|
* @type {string || null}
|
|
738
4157
|
*/
|
|
739
|
-
this.
|
|
4158
|
+
this.PromotionId = null;
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* <p>The name of the promotion</p>
|
|
4162
|
+
* @type {string || null}
|
|
4163
|
+
*/
|
|
4164
|
+
this.PromotionName = null;
|
|
4165
|
+
|
|
4166
|
+
/**
|
|
4167
|
+
* <p>The description of the promotion</p>
|
|
4168
|
+
* @type {string || null}
|
|
4169
|
+
*/
|
|
4170
|
+
this.Description = null;
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* <p>The ID of the inviter</p>
|
|
4174
|
+
* @type {string || null}
|
|
4175
|
+
*/
|
|
4176
|
+
this.InviterUserId = null;
|
|
4177
|
+
|
|
4178
|
+
/**
|
|
4179
|
+
* <p>Order information associated with the redemption</p>
|
|
4180
|
+
* @type {Order || null}
|
|
4181
|
+
*/
|
|
4182
|
+
this.Order = null;
|
|
4183
|
+
|
|
4184
|
+
/**
|
|
4185
|
+
* <p>The result of redemption</p>
|
|
4186
|
+
* @type {Result || null}
|
|
4187
|
+
*/
|
|
4188
|
+
this.Result = null;
|
|
4189
|
+
|
|
4190
|
+
/**
|
|
4191
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
4192
|
+
* @type {Array.<Cust> || null}
|
|
4193
|
+
*/
|
|
4194
|
+
this.Cust = null;
|
|
740
4195
|
|
|
741
4196
|
}
|
|
742
4197
|
|
|
@@ -747,90 +4202,170 @@ class AssessEnvironmentRiskRequest extends AbstractModel {
|
|
|
747
4202
|
if (!params) {
|
|
748
4203
|
return;
|
|
749
4204
|
}
|
|
750
|
-
this.
|
|
4205
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
4206
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
4207
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
4208
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
4209
|
+
|
|
4210
|
+
if (params.Order) {
|
|
4211
|
+
let obj = new Order();
|
|
4212
|
+
obj.deserialize(params.Order)
|
|
4213
|
+
this.Order = obj;
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
if (params.Result) {
|
|
4217
|
+
let obj = new Result();
|
|
4218
|
+
obj.deserialize(params.Result)
|
|
4219
|
+
this.Result = obj;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
if (params.Cust) {
|
|
4223
|
+
this.Cust = new Array();
|
|
4224
|
+
for (let z in params.Cust) {
|
|
4225
|
+
let obj = new Cust();
|
|
4226
|
+
obj.deserialize(params.Cust[z]);
|
|
4227
|
+
this.Cust.push(obj);
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
751
4230
|
|
|
752
4231
|
}
|
|
753
4232
|
}
|
|
754
4233
|
|
|
755
4234
|
/**
|
|
756
|
-
*
|
|
4235
|
+
* Invitation event details
|
|
757
4236
|
* @class
|
|
758
4237
|
*/
|
|
759
|
-
class
|
|
4238
|
+
class InvitationEvent extends AbstractModel {
|
|
760
4239
|
constructor(){
|
|
761
4240
|
super();
|
|
762
4241
|
|
|
763
4242
|
/**
|
|
764
|
-
* <p>The
|
|
4243
|
+
* <p>The ID of the invitee</p>
|
|
765
4244
|
* @type {string || null}
|
|
766
4245
|
*/
|
|
767
|
-
this.
|
|
4246
|
+
this.InviteeUserId = null;
|
|
768
4247
|
|
|
769
4248
|
/**
|
|
770
|
-
* <p>The
|
|
4249
|
+
* <p>The ID of the promotion</p>
|
|
771
4250
|
* @type {string || null}
|
|
772
4251
|
*/
|
|
773
|
-
this.
|
|
4252
|
+
this.PromotionId = null;
|
|
774
4253
|
|
|
775
4254
|
/**
|
|
776
|
-
* <p>
|
|
4255
|
+
* <p>The name of the promotion</p>
|
|
777
4256
|
* @type {string || null}
|
|
778
4257
|
*/
|
|
779
|
-
this.
|
|
4258
|
+
this.PromotionName = null;
|
|
780
4259
|
|
|
781
4260
|
/**
|
|
782
|
-
* <p>
|
|
4261
|
+
* <p>The description of the promotion</p>
|
|
783
4262
|
* @type {string || null}
|
|
784
4263
|
*/
|
|
785
|
-
this.
|
|
4264
|
+
this.Description = null;
|
|
786
4265
|
|
|
787
4266
|
/**
|
|
788
|
-
* <p>
|
|
4267
|
+
* <p>The phone number of the invitee</p><p>Parameter format: Complies with the E.164 standard format, which includes "+", region code, and number.</p>
|
|
789
4268
|
* @type {string || null}
|
|
790
4269
|
*/
|
|
791
|
-
this.
|
|
4270
|
+
this.InviteePhone = null;
|
|
792
4271
|
|
|
793
4272
|
/**
|
|
794
|
-
* <p>
|
|
4273
|
+
* <p>The code that the inviter sent to the user</p>
|
|
795
4274
|
* @type {string || null}
|
|
796
4275
|
*/
|
|
797
|
-
this.
|
|
4276
|
+
this.InvitationCode = null;
|
|
798
4277
|
|
|
799
4278
|
/**
|
|
800
|
-
* <p>The
|
|
4279
|
+
* <p>The url that the inviter sent to the user</p>
|
|
801
4280
|
* @type {string || null}
|
|
802
4281
|
*/
|
|
803
|
-
this.
|
|
4282
|
+
this.InvitationUrl = null;
|
|
804
4283
|
|
|
805
4284
|
/**
|
|
806
|
-
* <p>
|
|
4285
|
+
* <p>The channel that inviter used to invite the user </p>
|
|
807
4286
|
* @type {string || null}
|
|
808
4287
|
*/
|
|
809
|
-
this.
|
|
4288
|
+
this.InvitationChannel = null;
|
|
810
4289
|
|
|
811
4290
|
/**
|
|
812
|
-
* <p>
|
|
813
|
-
* @type {
|
|
4291
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
4292
|
+
* @type {Array.<Cust> || null}
|
|
814
4293
|
*/
|
|
815
|
-
this.
|
|
4294
|
+
this.Cust = null;
|
|
4295
|
+
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
/**
|
|
4299
|
+
* @private
|
|
4300
|
+
*/
|
|
4301
|
+
deserialize(params) {
|
|
4302
|
+
if (!params) {
|
|
4303
|
+
return;
|
|
4304
|
+
}
|
|
4305
|
+
this.InviteeUserId = 'InviteeUserId' in params ? params.InviteeUserId : null;
|
|
4306
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
4307
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
4308
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
4309
|
+
this.InviteePhone = 'InviteePhone' in params ? params.InviteePhone : null;
|
|
4310
|
+
this.InvitationCode = 'InvitationCode' in params ? params.InvitationCode : null;
|
|
4311
|
+
this.InvitationUrl = 'InvitationUrl' in params ? params.InvitationUrl : null;
|
|
4312
|
+
this.InvitationChannel = 'InvitationChannel' in params ? params.InvitationChannel : null;
|
|
4313
|
+
|
|
4314
|
+
if (params.Cust) {
|
|
4315
|
+
this.Cust = new Array();
|
|
4316
|
+
for (let z in params.Cust) {
|
|
4317
|
+
let obj = new Cust();
|
|
4318
|
+
obj.deserialize(params.Cust[z]);
|
|
4319
|
+
this.Cust.push(obj);
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
/**
|
|
4327
|
+
* Withdraw event details
|
|
4328
|
+
* @class
|
|
4329
|
+
*/
|
|
4330
|
+
class WithdrawEvent extends AbstractModel {
|
|
4331
|
+
constructor(){
|
|
4332
|
+
super();
|
|
816
4333
|
|
|
817
4334
|
/**
|
|
818
|
-
* <p>The
|
|
819
|
-
* @type {
|
|
4335
|
+
* <p>The amount of the withdraw</p>
|
|
4336
|
+
* @type {Amount || null}
|
|
820
4337
|
*/
|
|
821
|
-
this.
|
|
4338
|
+
this.Amount = null;
|
|
822
4339
|
|
|
823
4340
|
/**
|
|
824
|
-
* <p>
|
|
4341
|
+
* <p>The method of the withdraw</p><p>Enumeration value:</p><ul><li>card: bank card</li><li>wallet: digital wallet</li></ul>
|
|
825
4342
|
* @type {string || null}
|
|
826
4343
|
*/
|
|
827
|
-
this.
|
|
4344
|
+
this.Method = null;
|
|
828
4345
|
|
|
829
4346
|
/**
|
|
830
|
-
* <p>
|
|
831
|
-
* @type {
|
|
4347
|
+
* <p>The detail information of the card withdrawn to.Required while the withdraw method is card</p>
|
|
4348
|
+
* @type {Card || null}
|
|
832
4349
|
*/
|
|
833
|
-
this.
|
|
4350
|
+
this.Card = null;
|
|
4351
|
+
|
|
4352
|
+
/**
|
|
4353
|
+
* <p>The detail information of the wallet withdrawn to.Required while the withdraw method is wallet</p>
|
|
4354
|
+
* @type {Wallet || null}
|
|
4355
|
+
*/
|
|
4356
|
+
this.Wallet = null;
|
|
4357
|
+
|
|
4358
|
+
/**
|
|
4359
|
+
* <p>Withdraw result</p>
|
|
4360
|
+
* @type {Result || null}
|
|
4361
|
+
*/
|
|
4362
|
+
this.Result = null;
|
|
4363
|
+
|
|
4364
|
+
/**
|
|
4365
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
4366
|
+
* @type {Array.<Cust> || null}
|
|
4367
|
+
*/
|
|
4368
|
+
this.Cust = null;
|
|
834
4369
|
|
|
835
4370
|
}
|
|
836
4371
|
|
|
@@ -841,41 +4376,87 @@ class Device extends AbstractModel {
|
|
|
841
4376
|
if (!params) {
|
|
842
4377
|
return;
|
|
843
4378
|
}
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
this.
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
4379
|
+
|
|
4380
|
+
if (params.Amount) {
|
|
4381
|
+
let obj = new Amount();
|
|
4382
|
+
obj.deserialize(params.Amount)
|
|
4383
|
+
this.Amount = obj;
|
|
4384
|
+
}
|
|
4385
|
+
this.Method = 'Method' in params ? params.Method : null;
|
|
4386
|
+
|
|
4387
|
+
if (params.Card) {
|
|
4388
|
+
let obj = new Card();
|
|
4389
|
+
obj.deserialize(params.Card)
|
|
4390
|
+
this.Card = obj;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
if (params.Wallet) {
|
|
4394
|
+
let obj = new Wallet();
|
|
4395
|
+
obj.deserialize(params.Wallet)
|
|
4396
|
+
this.Wallet = obj;
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
if (params.Result) {
|
|
4400
|
+
let obj = new Result();
|
|
4401
|
+
obj.deserialize(params.Result)
|
|
4402
|
+
this.Result = obj;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
if (params.Cust) {
|
|
4406
|
+
this.Cust = new Array();
|
|
4407
|
+
for (let z in params.Cust) {
|
|
4408
|
+
let obj = new Cust();
|
|
4409
|
+
obj.deserialize(params.Cust[z]);
|
|
4410
|
+
this.Cust.push(obj);
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
856
4413
|
|
|
857
4414
|
}
|
|
858
4415
|
}
|
|
859
4416
|
|
|
860
4417
|
/**
|
|
861
|
-
*
|
|
4418
|
+
* ScanCode event details
|
|
862
4419
|
* @class
|
|
863
4420
|
*/
|
|
864
|
-
class
|
|
4421
|
+
class ScanCodeEvent extends AbstractModel {
|
|
865
4422
|
constructor(){
|
|
866
4423
|
super();
|
|
867
4424
|
|
|
868
4425
|
/**
|
|
869
|
-
* <p>
|
|
4426
|
+
* <p>Promotion code information</p>
|
|
4427
|
+
* @type {PromotionCode || null}
|
|
4428
|
+
*/
|
|
4429
|
+
this.PromotionCode = null;
|
|
4430
|
+
|
|
4431
|
+
/**
|
|
4432
|
+
* <p>The ID of the promotion</p>
|
|
870
4433
|
* @type {string || null}
|
|
871
4434
|
*/
|
|
872
|
-
this.
|
|
4435
|
+
this.PromotionId = null;
|
|
873
4436
|
|
|
874
4437
|
/**
|
|
875
|
-
* <p>
|
|
4438
|
+
* <p>The name of the promotion</p>
|
|
876
4439
|
* @type {string || null}
|
|
877
4440
|
*/
|
|
878
|
-
this.
|
|
4441
|
+
this.PromotionName = null;
|
|
4442
|
+
|
|
4443
|
+
/**
|
|
4444
|
+
* <p>The description of the promotion</p>
|
|
4445
|
+
* @type {string || null}
|
|
4446
|
+
*/
|
|
4447
|
+
this.Description = null;
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* <p>The ID of the inviter</p>
|
|
4451
|
+
* @type {string || null}
|
|
4452
|
+
*/
|
|
4453
|
+
this.InviterUserId = null;
|
|
4454
|
+
|
|
4455
|
+
/**
|
|
4456
|
+
* <p>The custom parameters agreed with RCE. An array of objects in K:V format. e.g.[{"Key": "ApproverName", "Value": "bob"},{"Key":"ApproverPhone","Value": "+86131****5678"}]</p>
|
|
4457
|
+
* @type {Array.<Cust> || null}
|
|
4458
|
+
*/
|
|
4459
|
+
this.Cust = null;
|
|
879
4460
|
|
|
880
4461
|
}
|
|
881
4462
|
|
|
@@ -886,28 +4467,91 @@ class Decision extends AbstractModel {
|
|
|
886
4467
|
if (!params) {
|
|
887
4468
|
return;
|
|
888
4469
|
}
|
|
889
|
-
|
|
890
|
-
|
|
4470
|
+
|
|
4471
|
+
if (params.PromotionCode) {
|
|
4472
|
+
let obj = new PromotionCode();
|
|
4473
|
+
obj.deserialize(params.PromotionCode)
|
|
4474
|
+
this.PromotionCode = obj;
|
|
4475
|
+
}
|
|
4476
|
+
this.PromotionId = 'PromotionId' in params ? params.PromotionId : null;
|
|
4477
|
+
this.PromotionName = 'PromotionName' in params ? params.PromotionName : null;
|
|
4478
|
+
this.Description = 'Description' in params ? params.Description : null;
|
|
4479
|
+
this.InviterUserId = 'InviterUserId' in params ? params.InviterUserId : null;
|
|
4480
|
+
|
|
4481
|
+
if (params.Cust) {
|
|
4482
|
+
this.Cust = new Array();
|
|
4483
|
+
for (let z in params.Cust) {
|
|
4484
|
+
let obj = new Cust();
|
|
4485
|
+
obj.deserialize(params.Cust[z]);
|
|
4486
|
+
this.Cust.push(obj);
|
|
4487
|
+
}
|
|
4488
|
+
}
|
|
891
4489
|
|
|
892
4490
|
}
|
|
893
4491
|
}
|
|
894
4492
|
|
|
895
4493
|
module.exports = {
|
|
896
|
-
|
|
4494
|
+
TaskEvent: TaskEvent,
|
|
4495
|
+
DigitalOrder: DigitalOrder,
|
|
4496
|
+
Billing: Billing,
|
|
4497
|
+
Decision: Decision,
|
|
4498
|
+
Person: Person,
|
|
897
4499
|
Environment: Environment,
|
|
4500
|
+
Wallet: Wallet,
|
|
4501
|
+
ClaimRedPacketEvent: ClaimRedPacketEvent,
|
|
4502
|
+
PromotionCode: PromotionCode,
|
|
4503
|
+
ChargeBackEvent: ChargeBackEvent,
|
|
4504
|
+
ReportEventRequest: ReportEventRequest,
|
|
4505
|
+
Merchant: Merchant,
|
|
4506
|
+
Delivery: Delivery,
|
|
4507
|
+
Cust: Cust,
|
|
898
4508
|
AssessEnvironmentRiskRsp: AssessEnvironmentRiskRsp,
|
|
4509
|
+
AssessEnvironmentRiskResponse: AssessEnvironmentRiskResponse,
|
|
4510
|
+
PaymentMethod: PaymentMethod,
|
|
4511
|
+
LuckyDrawEvent: LuckyDrawEvent,
|
|
4512
|
+
AssessDeviceRiskPremiumProRequest: AssessDeviceRiskPremiumProRequest,
|
|
4513
|
+
Order: Order,
|
|
4514
|
+
AssessDeviceRiskProResponse: AssessDeviceRiskProResponse,
|
|
4515
|
+
User: User,
|
|
4516
|
+
Address: Address,
|
|
4517
|
+
Device: Device,
|
|
4518
|
+
CreateOrderEvent: CreateOrderEvent,
|
|
4519
|
+
Card: Card,
|
|
4520
|
+
Result: Result,
|
|
4521
|
+
ReportEventResponse: ReportEventResponse,
|
|
4522
|
+
RiskLabel: RiskLabel,
|
|
4523
|
+
CustEvent: CustEvent,
|
|
899
4524
|
IPLocation: IPLocation,
|
|
900
4525
|
DataScore: DataScore,
|
|
901
|
-
|
|
902
|
-
AssessEnvironmentRiskResponse: AssessEnvironmentRiskResponse,
|
|
4526
|
+
BrowseEvent: BrowseEvent,
|
|
903
4527
|
AssessDeviceRiskPremiumProResponse: AssessDeviceRiskPremiumProResponse,
|
|
904
4528
|
AssessDeviceRiskProRequest: AssessDeviceRiskProRequest,
|
|
905
|
-
|
|
906
|
-
|
|
4529
|
+
CreditPoint: CreditPoint,
|
|
4530
|
+
Item: Item,
|
|
4531
|
+
Amount: Amount,
|
|
4532
|
+
SMSEvent: SMSEvent,
|
|
4533
|
+
AssessEnvironmentRiskRequest: AssessEnvironmentRiskRequest,
|
|
4534
|
+
AddPromotionEvent: AddPromotionEvent,
|
|
4535
|
+
Promotion: Promotion,
|
|
4536
|
+
ModifyAccountEvent: ModifyAccountEvent,
|
|
4537
|
+
Inviter: Inviter,
|
|
4538
|
+
LogoutEvent: LogoutEvent,
|
|
4539
|
+
Browser: Browser,
|
|
4540
|
+
PaymentResult: PaymentResult,
|
|
4541
|
+
TransactionEvent: TransactionEvent,
|
|
4542
|
+
ModifyPasswordEvent: ModifyPasswordEvent,
|
|
4543
|
+
AssessDeviceRiskRsp: AssessDeviceRiskRsp,
|
|
4544
|
+
Coupon: Coupon,
|
|
4545
|
+
RegisterEvent: RegisterEvent,
|
|
4546
|
+
App: App,
|
|
4547
|
+
LoginEvent: LoginEvent,
|
|
4548
|
+
EventDetail: EventDetail,
|
|
907
4549
|
IPNetwork: IPNetwork,
|
|
4550
|
+
SecurityVerificationEvent: SecurityVerificationEvent,
|
|
908
4551
|
AssessDeviceRiskPremiumRsp: AssessDeviceRiskPremiumRsp,
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
4552
|
+
RedeemEvent: RedeemEvent,
|
|
4553
|
+
InvitationEvent: InvitationEvent,
|
|
4554
|
+
WithdrawEvent: WithdrawEvent,
|
|
4555
|
+
ScanCodeEvent: ScanCodeEvent,
|
|
912
4556
|
|
|
913
4557
|
}
|