tencentcloud-sdk-nodejs-intl-en 3.0.1439 → 3.0.1440

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.
@@ -396,6 +396,49 @@ class Wallet extends AbstractModel {
396
396
  }
397
397
  }
398
398
 
399
+ /**
400
+ * Risk score
401
+ * @class
402
+ */
403
+ class Score extends AbstractModel {
404
+ constructor(){
405
+ super();
406
+
407
+ /**
408
+ * <p>Risk score. Range: 1–1000. The higher the score indicates the higher risk</p>
409
+ * @type {number || null}
410
+ */
411
+ this.RiskScore = null;
412
+
413
+ /**
414
+ * <p>Risk label</p>
415
+ * @type {Array.<RiskLabel> || null}
416
+ */
417
+ this.RiskLabels = null;
418
+
419
+ }
420
+
421
+ /**
422
+ * @private
423
+ */
424
+ deserialize(params) {
425
+ if (!params) {
426
+ return;
427
+ }
428
+ this.RiskScore = 'RiskScore' in params ? params.RiskScore : null;
429
+
430
+ if (params.RiskLabels) {
431
+ this.RiskLabels = new Array();
432
+ for (let z in params.RiskLabels) {
433
+ let obj = new RiskLabel();
434
+ obj.deserialize(params.RiskLabels[z]);
435
+ this.RiskLabels.push(obj);
436
+ }
437
+ }
438
+
439
+ }
440
+ }
441
+
399
442
  /**
400
443
  * ClaimRedPacket event details
401
444
  * @class
@@ -751,6 +794,97 @@ class ReportEventRequest extends AbstractModel {
751
794
  }
752
795
  }
753
796
 
797
+ /**
798
+ * Withdraw event details
799
+ * @class
800
+ */
801
+ class WithdrawEvent extends AbstractModel {
802
+ constructor(){
803
+ super();
804
+
805
+ /**
806
+ * <p>The amount of the withdraw</p>
807
+ * @type {Amount || null}
808
+ */
809
+ this.Amount = null;
810
+
811
+ /**
812
+ * <p>The method of the withdraw</p><p>Enumeration value:</p><ul><li>card: bank card</li><li>wallet: digital wallet</li></ul>
813
+ * @type {string || null}
814
+ */
815
+ this.Method = null;
816
+
817
+ /**
818
+ * <p>The detail information of the card withdrawn to.Required while the withdraw method is card</p>
819
+ * @type {Card || null}
820
+ */
821
+ this.Card = null;
822
+
823
+ /**
824
+ * <p>The detail information of the wallet withdrawn to.Required while the withdraw method is wallet</p>
825
+ * @type {Wallet || null}
826
+ */
827
+ this.Wallet = null;
828
+
829
+ /**
830
+ * <p>Withdraw result</p>
831
+ * @type {Result || null}
832
+ */
833
+ this.Result = null;
834
+
835
+ /**
836
+ * <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>
837
+ * @type {Array.<Cust> || null}
838
+ */
839
+ this.Cust = null;
840
+
841
+ }
842
+
843
+ /**
844
+ * @private
845
+ */
846
+ deserialize(params) {
847
+ if (!params) {
848
+ return;
849
+ }
850
+
851
+ if (params.Amount) {
852
+ let obj = new Amount();
853
+ obj.deserialize(params.Amount)
854
+ this.Amount = obj;
855
+ }
856
+ this.Method = 'Method' in params ? params.Method : null;
857
+
858
+ if (params.Card) {
859
+ let obj = new Card();
860
+ obj.deserialize(params.Card)
861
+ this.Card = obj;
862
+ }
863
+
864
+ if (params.Wallet) {
865
+ let obj = new Wallet();
866
+ obj.deserialize(params.Wallet)
867
+ this.Wallet = obj;
868
+ }
869
+
870
+ if (params.Result) {
871
+ let obj = new Result();
872
+ obj.deserialize(params.Result)
873
+ this.Result = obj;
874
+ }
875
+
876
+ if (params.Cust) {
877
+ this.Cust = new Array();
878
+ for (let z in params.Cust) {
879
+ let obj = new Cust();
880
+ obj.deserialize(params.Cust[z]);
881
+ this.Cust.push(obj);
882
+ }
883
+ }
884
+
885
+ }
886
+ }
887
+
754
888
  /**
755
889
  * The details of the merchant
756
890
  * @class
@@ -2496,6 +2630,46 @@ class SMSEvent extends AbstractModel {
2496
2630
  }
2497
2631
  }
2498
2632
 
2633
+ /**
2634
+ * AssessRisk response structure.
2635
+ * @class
2636
+ */
2637
+ class AssessRiskResponse extends AbstractModel {
2638
+ constructor(){
2639
+ super();
2640
+
2641
+ /**
2642
+ * <p>The results of AssessRisk</p>
2643
+ * @type {AssessRiskRsp || null}
2644
+ */
2645
+ this.Data = null;
2646
+
2647
+ /**
2648
+ * 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.
2649
+ * @type {string || null}
2650
+ */
2651
+ this.RequestId = null;
2652
+
2653
+ }
2654
+
2655
+ /**
2656
+ * @private
2657
+ */
2658
+ deserialize(params) {
2659
+ if (!params) {
2660
+ return;
2661
+ }
2662
+
2663
+ if (params.Data) {
2664
+ let obj = new AssessRiskRsp();
2665
+ obj.deserialize(params.Data)
2666
+ this.Data = obj;
2667
+ }
2668
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2669
+
2670
+ }
2671
+ }
2672
+
2499
2673
  /**
2500
2674
  * AssessEnvironmentRisk request structure.
2501
2675
  * @class
@@ -3177,6 +3351,66 @@ class TransactionEvent extends AbstractModel {
3177
3351
  }
3178
3352
  }
3179
3353
 
3354
+ /**
3355
+ * The results of AssessRisk
3356
+ * @class
3357
+ */
3358
+ class AssessRiskRsp extends AbstractModel {
3359
+ constructor(){
3360
+ super();
3361
+
3362
+ /**
3363
+ * <p>Decision information</p>
3364
+ * @type {Decision || null}
3365
+ */
3366
+ this.Decision = null;
3367
+
3368
+ /**
3369
+ * <p>Risk score, a scoring result calculated based on the product services you have enabled</p>
3370
+ * @type {Score || null}
3371
+ */
3372
+ this.Score = null;
3373
+
3374
+ /**
3375
+ * <p>Extended information</p>
3376
+ * @type {Array.<Cust> || null}
3377
+ */
3378
+ this.ExtraInfo = null;
3379
+
3380
+ }
3381
+
3382
+ /**
3383
+ * @private
3384
+ */
3385
+ deserialize(params) {
3386
+ if (!params) {
3387
+ return;
3388
+ }
3389
+
3390
+ if (params.Decision) {
3391
+ let obj = new Decision();
3392
+ obj.deserialize(params.Decision)
3393
+ this.Decision = obj;
3394
+ }
3395
+
3396
+ if (params.Score) {
3397
+ let obj = new Score();
3398
+ obj.deserialize(params.Score)
3399
+ this.Score = obj;
3400
+ }
3401
+
3402
+ if (params.ExtraInfo) {
3403
+ this.ExtraInfo = new Array();
3404
+ for (let z in params.ExtraInfo) {
3405
+ let obj = new Cust();
3406
+ obj.deserialize(params.ExtraInfo[z]);
3407
+ this.ExtraInfo.push(obj);
3408
+ }
3409
+ }
3410
+
3411
+ }
3412
+ }
3413
+
3180
3414
  /**
3181
3415
  * ModifyPassword event details
3182
3416
  * @class
@@ -4324,48 +4558,78 @@ class InvitationEvent extends AbstractModel {
4324
4558
  }
4325
4559
 
4326
4560
  /**
4327
- * Withdraw event details
4561
+ * AssessRisk request structure.
4328
4562
  * @class
4329
4563
  */
4330
- class WithdrawEvent extends AbstractModel {
4564
+ class AssessRiskRequest extends AbstractModel {
4331
4565
  constructor(){
4332
4566
  super();
4333
4567
 
4334
4568
  /**
4335
- * <p>The amount of the withdraw</p>
4336
- * @type {Amount || null}
4569
+ * <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>
4570
+ * @type {string || null}
4337
4571
  */
4338
- this.Amount = null;
4572
+ this.EventCode = null;
4339
4573
 
4340
4574
  /**
4341
- * <p>The method of the withdraw</p><p>Enumeration value:</p><ul><li>card: bank card</li><li>wallet: digital wallet</li></ul>
4575
+ * <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>
4342
4576
  * @type {string || null}
4343
4577
  */
4344
- this.Method = null;
4578
+ this.EventTime = null;
4345
4579
 
4346
4580
  /**
4347
- * <p>The detail information of the card withdrawn to.Required while the withdraw method is card</p>
4348
- * @type {Card || null}
4581
+ * <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>
4582
+ * @type {string || null}
4349
4583
  */
4350
- this.Card = null;
4584
+ this.SessionId = null;
4351
4585
 
4352
4586
  /**
4353
- * <p>The detail information of the wallet withdrawn to.Required while the withdraw method is wallet</p>
4354
- * @type {Wallet || null}
4587
+ * <p>Device fingerprint token, obtained after integration of the device fingerprint SDK into your website or application</p>
4588
+ * @type {string || null}
4355
4589
  */
4356
- this.Wallet = null;
4590
+ this.DeviceToken = null;
4357
4591
 
4358
4592
  /**
4359
- * <p>Withdraw result</p>
4360
- * @type {Result || null}
4593
+ * <p>Client IP address (IPv4 or IPv6)</p>
4594
+ * @type {string || null}
4361
4595
  */
4362
- this.Result = null;
4596
+ this.UserIp = null;
4363
4597
 
4364
4598
  /**
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}
4599
+ * <p>Event details. The event information is imported based on the event code you input.</p>
4600
+ * @type {EventDetail || null}
4367
4601
  */
4368
- this.Cust = null;
4602
+ this.EventDetail = null;
4603
+
4604
+ /**
4605
+ * <p>The user's account ID in your system</p>
4606
+ * @type {string || null}
4607
+ */
4608
+ this.UserId = null;
4609
+
4610
+ /**
4611
+ * <p>Email of the user</p>
4612
+ * @type {string || null}
4613
+ */
4614
+ this.UserEmail = null;
4615
+
4616
+ /**
4617
+ * <p>Phone number of the user.</p><p>Parameter format: Complies with the E.164 standard format, which includes "+", region code, and number</p>
4618
+ * @type {string || null}
4619
+ */
4620
+ this.UserPhone = null;
4621
+
4622
+ /**
4623
+ * <p>The details of the browser. If you've already integrated our device SDK, this field is not required</p>
4624
+ * @type {Browser || null}
4625
+ */
4626
+ this.Browser = null;
4627
+
4628
+ /**
4629
+ * <p>The details of the app, os and device.If you've already integrated our device SDK, this field is not required</p>
4630
+ * @type {App || null}
4631
+ */
4632
+ this.App = null;
4369
4633
 
4370
4634
  }
4371
4635
 
@@ -4376,39 +4640,31 @@ class WithdrawEvent extends AbstractModel {
4376
4640
  if (!params) {
4377
4641
  return;
4378
4642
  }
4643
+ this.EventCode = 'EventCode' in params ? params.EventCode : null;
4644
+ this.EventTime = 'EventTime' in params ? params.EventTime : null;
4645
+ this.SessionId = 'SessionId' in params ? params.SessionId : null;
4646
+ this.DeviceToken = 'DeviceToken' in params ? params.DeviceToken : null;
4647
+ this.UserIp = 'UserIp' in params ? params.UserIp : null;
4379
4648
 
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;
4649
+ if (params.EventDetail) {
4650
+ let obj = new EventDetail();
4651
+ obj.deserialize(params.EventDetail)
4652
+ this.EventDetail = obj;
4397
4653
  }
4654
+ this.UserId = 'UserId' in params ? params.UserId : null;
4655
+ this.UserEmail = 'UserEmail' in params ? params.UserEmail : null;
4656
+ this.UserPhone = 'UserPhone' in params ? params.UserPhone : null;
4398
4657
 
4399
- if (params.Result) {
4400
- let obj = new Result();
4401
- obj.deserialize(params.Result)
4402
- this.Result = obj;
4658
+ if (params.Browser) {
4659
+ let obj = new Browser();
4660
+ obj.deserialize(params.Browser)
4661
+ this.Browser = obj;
4403
4662
  }
4404
4663
 
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
- }
4664
+ if (params.App) {
4665
+ let obj = new App();
4666
+ obj.deserialize(params.App)
4667
+ this.App = obj;
4412
4668
  }
4413
4669
 
4414
4670
  }
@@ -4498,10 +4754,12 @@ module.exports = {
4498
4754
  Person: Person,
4499
4755
  Environment: Environment,
4500
4756
  Wallet: Wallet,
4757
+ Score: Score,
4501
4758
  ClaimRedPacketEvent: ClaimRedPacketEvent,
4502
4759
  PromotionCode: PromotionCode,
4503
4760
  ChargeBackEvent: ChargeBackEvent,
4504
4761
  ReportEventRequest: ReportEventRequest,
4762
+ WithdrawEvent: WithdrawEvent,
4505
4763
  Merchant: Merchant,
4506
4764
  Delivery: Delivery,
4507
4765
  Cust: Cust,
@@ -4530,6 +4788,7 @@ module.exports = {
4530
4788
  Item: Item,
4531
4789
  Amount: Amount,
4532
4790
  SMSEvent: SMSEvent,
4791
+ AssessRiskResponse: AssessRiskResponse,
4533
4792
  AssessEnvironmentRiskRequest: AssessEnvironmentRiskRequest,
4534
4793
  AddPromotionEvent: AddPromotionEvent,
4535
4794
  Promotion: Promotion,
@@ -4539,6 +4798,7 @@ module.exports = {
4539
4798
  Browser: Browser,
4540
4799
  PaymentResult: PaymentResult,
4541
4800
  TransactionEvent: TransactionEvent,
4801
+ AssessRiskRsp: AssessRiskRsp,
4542
4802
  ModifyPasswordEvent: ModifyPasswordEvent,
4543
4803
  AssessDeviceRiskRsp: AssessDeviceRiskRsp,
4544
4804
  Coupon: Coupon,
@@ -4551,7 +4811,7 @@ module.exports = {
4551
4811
  AssessDeviceRiskPremiumRsp: AssessDeviceRiskPremiumRsp,
4552
4812
  RedeemEvent: RedeemEvent,
4553
4813
  InvitationEvent: InvitationEvent,
4554
- WithdrawEvent: WithdrawEvent,
4814
+ AssessRiskRequest: AssessRiskRequest,
4555
4815
  ScanCodeEvent: ScanCodeEvent,
4556
4816
 
4557
4817
  }
@@ -23,10 +23,12 @@ const Decision = models.Decision;
23
23
  const Person = models.Person;
24
24
  const Environment = models.Environment;
25
25
  const Wallet = models.Wallet;
26
+ const Score = models.Score;
26
27
  const ClaimRedPacketEvent = models.ClaimRedPacketEvent;
27
28
  const PromotionCode = models.PromotionCode;
28
29
  const ChargeBackEvent = models.ChargeBackEvent;
29
30
  const ReportEventRequest = models.ReportEventRequest;
31
+ const WithdrawEvent = models.WithdrawEvent;
30
32
  const Merchant = models.Merchant;
31
33
  const Delivery = models.Delivery;
32
34
  const Cust = models.Cust;
@@ -55,6 +57,7 @@ const CreditPoint = models.CreditPoint;
55
57
  const Item = models.Item;
56
58
  const Amount = models.Amount;
57
59
  const SMSEvent = models.SMSEvent;
60
+ const AssessRiskResponse = models.AssessRiskResponse;
58
61
  const AssessEnvironmentRiskRequest = models.AssessEnvironmentRiskRequest;
59
62
  const AddPromotionEvent = models.AddPromotionEvent;
60
63
  const Promotion = models.Promotion;
@@ -64,6 +67,7 @@ const LogoutEvent = models.LogoutEvent;
64
67
  const Browser = models.Browser;
65
68
  const PaymentResult = models.PaymentResult;
66
69
  const TransactionEvent = models.TransactionEvent;
70
+ const AssessRiskRsp = models.AssessRiskRsp;
67
71
  const ModifyPasswordEvent = models.ModifyPasswordEvent;
68
72
  const AssessDeviceRiskRsp = models.AssessDeviceRiskRsp;
69
73
  const Coupon = models.Coupon;
@@ -76,7 +80,7 @@ const SecurityVerificationEvent = models.SecurityVerificationEvent;
76
80
  const AssessDeviceRiskPremiumRsp = models.AssessDeviceRiskPremiumRsp;
77
81
  const RedeemEvent = models.RedeemEvent;
78
82
  const InvitationEvent = models.InvitationEvent;
79
- const WithdrawEvent = models.WithdrawEvent;
83
+ const AssessRiskRequest = models.AssessRiskRequest;
80
84
  const ScanCodeEvent = models.ScanCodeEvent;
81
85
 
82
86
 
@@ -112,6 +116,17 @@ class RceClient extends AbstractClient {
112
116
  this.request("AssessDeviceRiskPremiumPro", req, resp, cb);
113
117
  }
114
118
 
119
+ /**
120
+ * Used to report events that do not require real-time decision-making in your business. Our engine will perform computations and apply machine learning to mine risk features from these events, which are then used to support real-time event risk assessment.
121
+ * @param {ReportEventRequest} req
122
+ * @param {function(string, ReportEventResponse):void} cb
123
+ * @public
124
+ */
125
+ ReportEvent(req, cb) {
126
+ let resp = new ReportEventResponse();
127
+ this.request("ReportEvent", req, resp, cb);
128
+ }
129
+
115
130
  /**
116
131
  * Environment Risk Assessment
117
132
  * @param {AssessEnvironmentRiskRequest} req
@@ -124,14 +139,14 @@ class RceClient extends AbstractClient {
124
139
  }
125
140
 
126
141
  /**
127
- * Used to report events that do not require real-time decision-making in your business. Our engine will perform computations and apply machine learning to mine risk features from these events, which are then used to support real-time event risk assessment.
128
- * @param {ReportEventRequest} req
129
- * @param {function(string, ReportEventResponse):void} cb
142
+ * Used to obtain real-time risk information for events. It evaluates and returns risk decision results, risk scores, and risk tags based on device risk, environmental risk, account risk, behavioral risk, and historical reported event data for critical events in your business.
143
+ * @param {AssessRiskRequest} req
144
+ * @param {function(string, AssessRiskResponse):void} cb
130
145
  * @public
131
146
  */
132
- ReportEvent(req, cb) {
133
- let resp = new ReportEventResponse();
134
- this.request("ReportEvent", req, resp, cb);
147
+ AssessRisk(req, cb) {
148
+ let resp = new AssessRiskResponse();
149
+ this.request("AssessRisk", req, resp, cb);
135
150
  }
136
151
 
137
152
 
@@ -2856,6 +2856,12 @@ class DescribeMNPTeamMerchantInfoRes extends AbstractModel {
2856
2856
  */
2857
2857
  this.MerchantName = null;
2858
2858
 
2859
+ /**
2860
+ * <p>Payment currency.</p>
2861
+ * @type {string || null}
2862
+ */
2863
+ this.Currency = null;
2864
+
2859
2865
  }
2860
2866
 
2861
2867
  /**
@@ -2869,6 +2875,7 @@ class DescribeMNPTeamMerchantInfoRes extends AbstractModel {
2869
2875
  this.ApprovalStatus = 'ApprovalStatus' in params ? params.ApprovalStatus : null;
2870
2876
  this.ID = 'ID' in params ? params.ID : null;
2871
2877
  this.MerchantName = 'MerchantName' in params ? params.MerchantName : null;
2878
+ this.Currency = 'Currency' in params ? params.Currency : null;
2872
2879
 
2873
2880
  }
2874
2881
  }