@antchain/ato 1.9.19 → 1.9.20

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antchain/ato",
3
- "version": "1.9.19",
3
+ "version": "1.9.20",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -78,6 +78,35 @@ export class Config extends $tea.Model {
78
78
  }
79
79
  }
80
80
 
81
+ // 智租风控-子风险项
82
+ export class SubRentRiskItem extends $tea.Model {
83
+ // 风险名称。枚举值:BASE_PERFORMANCE - 基础履约风险;OVERDUE - 逾期风险;MULTI_RENT - 共租风险。
84
+ riskName: string;
85
+ // 风险等级。枚举值:RANK0-无法判断;RANK1-极低风险;RANK2-低风险;RANK3-中风险;RANK4-高风险;RANK5-极高风险。
86
+ riskRank: string;
87
+ // 风险描述
88
+ riskDesc: string;
89
+ static names(): { [key: string]: string } {
90
+ return {
91
+ riskName: 'risk_name',
92
+ riskRank: 'risk_rank',
93
+ riskDesc: 'risk_desc',
94
+ };
95
+ }
96
+
97
+ static types(): { [key: string]: any } {
98
+ return {
99
+ riskName: 'string',
100
+ riskRank: 'string',
101
+ riskDesc: 'string',
102
+ };
103
+ }
104
+
105
+ constructor(map?: { [key: string]: any }) {
106
+ super(map);
107
+ }
108
+ }
109
+
81
110
  // 静态数据模块详情
82
111
  export class StaticDataModuleDetail extends $tea.Model {
83
112
  // 描述
@@ -128,6 +157,43 @@ export class FileInfo extends $tea.Model {
128
157
  }
129
158
  }
130
159
 
160
+ // 智租风控模型结构体
161
+ export class AppletRiskModel extends $tea.Model {
162
+ // 风险咨询事件ID
163
+ recordId: string;
164
+ // 风险等级。枚举值:RANK0-无法判断;RANK1-极低风险;RANK2-低风险;RANK3-中风险;RANK4-高风险;RANK5-极高风险
165
+ riskRank: string;
166
+ // 风险名称
167
+ riskName: string;
168
+ // 风险等级中文描述
169
+ riskDesc: string;
170
+ // 子风险结果列表
171
+ subRiskResultList: SubRentRiskItem[];
172
+ static names(): { [key: string]: string } {
173
+ return {
174
+ recordId: 'record_id',
175
+ riskRank: 'risk_rank',
176
+ riskName: 'risk_name',
177
+ riskDesc: 'risk_desc',
178
+ subRiskResultList: 'sub_risk_result_list',
179
+ };
180
+ }
181
+
182
+ static types(): { [key: string]: any } {
183
+ return {
184
+ recordId: 'string',
185
+ riskRank: 'string',
186
+ riskName: 'string',
187
+ riskDesc: 'string',
188
+ subRiskResultList: { 'type': 'array', 'itemType': SubRentRiskItem },
189
+ };
190
+ }
191
+
192
+ constructor(map?: { [key: string]: any }) {
193
+ super(map);
194
+ }
195
+ }
196
+
131
197
  // 同步订单中的下单人信息
132
198
  export class UserSyncInfo extends $tea.Model {
133
199
  static names(): { [key: string]: string } {
@@ -345,6 +411,39 @@ export class MerchantAgentPage extends $tea.Model {
345
411
  }
346
412
  }
347
413
 
414
+ // 智租风控-商品价格
415
+ export class PriceDetail extends $tea.Model {
416
+ // 商品租赁期数
417
+ periodNum: number;
418
+ // 押金,单位:元。精度:分。
419
+ depositPrice: string;
420
+ // 买断价格,单位:元,精度:分
421
+ buyoutPrice: string;
422
+ // 首期租金,单位:元,精度:分
423
+ initialRentPrice: string;
424
+ static names(): { [key: string]: string } {
425
+ return {
426
+ periodNum: 'period_num',
427
+ depositPrice: 'deposit_price',
428
+ buyoutPrice: 'buyout_price',
429
+ initialRentPrice: 'initial_rent_price',
430
+ };
431
+ }
432
+
433
+ static types(): { [key: string]: any } {
434
+ return {
435
+ periodNum: 'number',
436
+ depositPrice: 'string',
437
+ buyoutPrice: 'string',
438
+ initialRentPrice: 'string',
439
+ };
440
+ }
441
+
442
+ constructor(map?: { [key: string]: any }) {
443
+ super(map);
444
+ }
445
+ }
446
+
348
447
  // 订单消息结构体
349
448
  export class OrderMsgInfo extends $tea.Model {
350
449
  // 订单id
@@ -874,6 +973,35 @@ export class PageQuery extends $tea.Model {
874
973
  }
875
974
  }
876
975
 
976
+ // 智租风控-商品详情
977
+ export class ItemDetail extends $tea.Model {
978
+ // 租赁商品类目,可选项见 https://opendocs.alipay.com/open/10719
979
+ goodsCategory: string;
980
+ // 租赁商品名称
981
+ itemName: string;
982
+ // 租赁商品数量
983
+ quantity: number;
984
+ static names(): { [key: string]: string } {
985
+ return {
986
+ goodsCategory: 'goods_category',
987
+ itemName: 'item_name',
988
+ quantity: 'quantity',
989
+ };
990
+ }
991
+
992
+ static types(): { [key: string]: any } {
993
+ return {
994
+ goodsCategory: 'string',
995
+ itemName: 'string',
996
+ quantity: 'number',
997
+ };
998
+ }
999
+
1000
+ constructor(map?: { [key: string]: any }) {
1001
+ super(map);
1002
+ }
1003
+ }
1004
+
877
1005
  // 法人信息
878
1006
  export class LegalInfo extends $tea.Model {
879
1007
  // 法人名称
@@ -6439,6 +6567,16 @@ export class QueryRiskRequest extends $tea.Model {
6439
6567
  certNo: string;
6440
6568
  // 用户手机号码
6441
6569
  mobile: string;
6570
+ // 支付宝账户 UserId,智租版可选
6571
+ alipayUserId?: string;
6572
+ // 下单渠道,智租版必选。枚举值:ALIPAY-支付宝;微信-WECHAT;独立APP-APP;抖音-DOUYIN;美团-MEITUAN;其他:-OTHER
6573
+ source?: string;
6574
+ // 收件人地址,智租版必选
6575
+ receiverAddress?: string;
6576
+ // 商品详情,智租版可选
6577
+ itemDetail?: ItemDetail;
6578
+ // 价格详情,智租版可选
6579
+ priceDetail?: PriceDetail;
6442
6580
  static names(): { [key: string]: string } {
6443
6581
  return {
6444
6582
  authToken: 'auth_token',
@@ -6447,6 +6585,11 @@ export class QueryRiskRequest extends $tea.Model {
6447
6585
  userName: 'user_name',
6448
6586
  certNo: 'cert_no',
6449
6587
  mobile: 'mobile',
6588
+ alipayUserId: 'alipay_user_id',
6589
+ source: 'source',
6590
+ receiverAddress: 'receiver_address',
6591
+ itemDetail: 'item_detail',
6592
+ priceDetail: 'price_detail',
6450
6593
  };
6451
6594
  }
6452
6595
 
@@ -6458,6 +6601,11 @@ export class QueryRiskRequest extends $tea.Model {
6458
6601
  userName: 'string',
6459
6602
  certNo: 'string',
6460
6603
  mobile: 'string',
6604
+ alipayUserId: 'string',
6605
+ source: 'string',
6606
+ receiverAddress: 'string',
6607
+ itemDetail: ItemDetail,
6608
+ priceDetail: PriceDetail,
6461
6609
  };
6462
6610
  }
6463
6611
 
@@ -6475,12 +6623,15 @@ export class QueryRiskResponse extends $tea.Model {
6475
6623
  resultMsg?: string;
6476
6624
  // 模型结果详情
6477
6625
  models?: RiskModel[];
6626
+ // 智租风控-风控模型结果
6627
+ appletModel?: AppletRiskModel;
6478
6628
  static names(): { [key: string]: string } {
6479
6629
  return {
6480
6630
  reqMsgId: 'req_msg_id',
6481
6631
  resultCode: 'result_code',
6482
6632
  resultMsg: 'result_msg',
6483
6633
  models: 'models',
6634
+ appletModel: 'applet_model',
6484
6635
  };
6485
6636
  }
6486
6637
 
@@ -6490,6 +6641,7 @@ export class QueryRiskResponse extends $tea.Model {
6490
6641
  resultCode: 'string',
6491
6642
  resultMsg: 'string',
6492
6643
  models: { 'type': 'array', 'itemType': RiskModel },
6644
+ appletModel: AppletRiskModel,
6493
6645
  };
6494
6646
  }
6495
6647
 
@@ -9395,7 +9547,7 @@ export default class Client {
9395
9547
  req_msg_id: AntchainUtil.getNonce(),
9396
9548
  access_key: this._accessKeyId,
9397
9549
  base_sdk_version: "TeaSDK-2.0",
9398
- sdk_version: "1.9.19",
9550
+ sdk_version: "1.9.20",
9399
9551
  _prod_code: "ATO",
9400
9552
  _prod_channel: "undefined",
9401
9553
  };