@antchain/ato 1.9.19 → 1.9.29

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.29",
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,51 @@ export class FileInfo extends $tea.Model {
128
157
  }
129
158
  }
130
159
 
160
+ // 智租风控模型结构体
161
+ export class AppletRiskModel extends $tea.Model {
162
+ // 智租风控调用结果码,10000 表示调用成功。
163
+ code: string;
164
+ // 风险咨询事件ID
165
+ recordId: string;
166
+ // 风险等级。枚举值:RANK0-无法判断;RANK1-极低风险;RANK2-低风险;RANK3-中风险;RANK4-高风险;RANK5-极高风险
167
+ riskRank: string;
168
+ // 风险名称
169
+ riskName: string;
170
+ // 风险等级中文描述
171
+ riskDesc: string;
172
+ // 子风险结果列表
173
+ subRiskResultList?: SubRentRiskItem[];
174
+ // 调用失败错误提示信息,仅调用失败时返回该字段信息。
175
+ errorMsg?: string;
176
+ static names(): { [key: string]: string } {
177
+ return {
178
+ code: 'code',
179
+ recordId: 'record_id',
180
+ riskRank: 'risk_rank',
181
+ riskName: 'risk_name',
182
+ riskDesc: 'risk_desc',
183
+ subRiskResultList: 'sub_risk_result_list',
184
+ errorMsg: 'error_msg',
185
+ };
186
+ }
187
+
188
+ static types(): { [key: string]: any } {
189
+ return {
190
+ code: 'string',
191
+ recordId: 'string',
192
+ riskRank: 'string',
193
+ riskName: 'string',
194
+ riskDesc: 'string',
195
+ subRiskResultList: { 'type': 'array', 'itemType': SubRentRiskItem },
196
+ errorMsg: 'string',
197
+ };
198
+ }
199
+
200
+ constructor(map?: { [key: string]: any }) {
201
+ super(map);
202
+ }
203
+ }
204
+
131
205
  // 同步订单中的下单人信息
132
206
  export class UserSyncInfo extends $tea.Model {
133
207
  static names(): { [key: string]: string } {
@@ -345,6 +419,39 @@ export class MerchantAgentPage extends $tea.Model {
345
419
  }
346
420
  }
347
421
 
422
+ // 智租风控-商品价格
423
+ export class PriceDetail extends $tea.Model {
424
+ // 商品租赁期数
425
+ periodNum: number;
426
+ // 押金,单位:分。
427
+ depositPrice: number;
428
+ // 买断价格,单位:分
429
+ buyoutPrice: number;
430
+ // 首期租金,单位:分
431
+ initialRentPrice: number;
432
+ static names(): { [key: string]: string } {
433
+ return {
434
+ periodNum: 'period_num',
435
+ depositPrice: 'deposit_price',
436
+ buyoutPrice: 'buyout_price',
437
+ initialRentPrice: 'initial_rent_price',
438
+ };
439
+ }
440
+
441
+ static types(): { [key: string]: any } {
442
+ return {
443
+ periodNum: 'number',
444
+ depositPrice: 'number',
445
+ buyoutPrice: 'number',
446
+ initialRentPrice: 'number',
447
+ };
448
+ }
449
+
450
+ constructor(map?: { [key: string]: any }) {
451
+ super(map);
452
+ }
453
+ }
454
+
348
455
  // 订单消息结构体
349
456
  export class OrderMsgInfo extends $tea.Model {
350
457
  // 订单id
@@ -569,6 +676,35 @@ export class PromiseInfo extends $tea.Model {
569
676
  }
570
677
  }
571
678
 
679
+ // 智租风控-物流信息
680
+ export class DeliveryDetail extends $tea.Model {
681
+ // 收件人姓名
682
+ receiverName?: string;
683
+ // 收件人手机号
684
+ receiverMobile?: string;
685
+ // 收件人地址
686
+ receiverAddress?: string;
687
+ static names(): { [key: string]: string } {
688
+ return {
689
+ receiverName: 'receiver_name',
690
+ receiverMobile: 'receiver_mobile',
691
+ receiverAddress: 'receiver_address',
692
+ };
693
+ }
694
+
695
+ static types(): { [key: string]: any } {
696
+ return {
697
+ receiverName: 'string',
698
+ receiverMobile: 'string',
699
+ receiverAddress: 'string',
700
+ };
701
+ }
702
+
703
+ constructor(map?: { [key: string]: any }) {
704
+ super(map);
705
+ }
706
+ }
707
+
572
708
  // 租户协议分页对象
573
709
  export class AgreementPage extends $tea.Model {
574
710
  // 协议id
@@ -645,12 +781,18 @@ export class RelationPage extends $tea.Model {
645
781
  merchantId: string;
646
782
  // 审核状态
647
783
  status: string;
784
+ // 商户公司统一社会信用代码
785
+ subjectMerchantId: string;
786
+ // 商户公司名称
787
+ subjectCompanyName: string;
648
788
  static names(): { [key: string]: string } {
649
789
  return {
650
790
  relationId: 'relation_id',
651
791
  companyName: 'company_name',
652
792
  merchantId: 'merchant_id',
653
793
  status: 'status',
794
+ subjectMerchantId: 'subject_merchant_id',
795
+ subjectCompanyName: 'subject_company_name',
654
796
  };
655
797
  }
656
798
 
@@ -660,6 +802,8 @@ export class RelationPage extends $tea.Model {
660
802
  companyName: 'string',
661
803
  merchantId: 'string',
662
804
  status: 'string',
805
+ subjectMerchantId: 'string',
806
+ subjectCompanyName: 'string',
663
807
  };
664
808
  }
665
809
 
@@ -874,6 +1018,36 @@ export class PageQuery extends $tea.Model {
874
1018
  }
875
1019
  }
876
1020
 
1021
+ // 智租风控-商品详情
1022
+ export class ItemDetail extends $tea.Model {
1023
+ // 租赁商品类目,可选类型:
1024
+ // RENT_PHONE - 手机租赁;RENT_COMPUTER - 电脑/平板租赁;RENT_CAMERA - 数码摄像租赁;RENT_DIGITAL - 数码其他租赁;RENT_STATIONERY - 电子词典/电纸书/文化用品租赁;RENT_CLOTHING - 服装租赁
1025
+ goodsCategory?: string;
1026
+ // 租赁商品名称
1027
+ itemName?: string;
1028
+ // 租赁商品数量
1029
+ quantity?: number;
1030
+ static names(): { [key: string]: string } {
1031
+ return {
1032
+ goodsCategory: 'goods_category',
1033
+ itemName: 'item_name',
1034
+ quantity: 'quantity',
1035
+ };
1036
+ }
1037
+
1038
+ static types(): { [key: string]: any } {
1039
+ return {
1040
+ goodsCategory: 'string',
1041
+ itemName: 'string',
1042
+ quantity: 'number',
1043
+ };
1044
+ }
1045
+
1046
+ constructor(map?: { [key: string]: any }) {
1047
+ super(map);
1048
+ }
1049
+ }
1050
+
877
1051
  // 法人信息
878
1052
  export class LegalInfo extends $tea.Model {
879
1053
  // 法人名称
@@ -3983,6 +4157,12 @@ export class CreateInnerFunddividerelationRequest extends $tea.Model {
3983
4157
  submit: string;
3984
4158
  // 操作人名称
3985
4159
  userName: string;
4160
+ // 商户公司社会统一信用代码,
4161
+ // 如果expandMode=AGENT, 非空,长度不超过32位
4162
+ subjectMerchantId?: string;
4163
+ // 进件模式 :DIRECT(直连进件) ,AGENT(代理进件)
4164
+ // 默认值:DIRECT
4165
+ expandMode?: string;
3986
4166
  static names(): { [key: string]: string } {
3987
4167
  return {
3988
4168
  authToken: 'auth_token',
@@ -3997,6 +4177,8 @@ export class CreateInnerFunddividerelationRequest extends $tea.Model {
3997
4177
  alipayAccount: 'alipay_account',
3998
4178
  submit: 'submit',
3999
4179
  userName: 'user_name',
4180
+ subjectMerchantId: 'subject_merchant_id',
4181
+ expandMode: 'expand_mode',
4000
4182
  };
4001
4183
  }
4002
4184
 
@@ -4014,6 +4196,8 @@ export class CreateInnerFunddividerelationRequest extends $tea.Model {
4014
4196
  alipayAccount: 'string',
4015
4197
  submit: 'string',
4016
4198
  userName: 'string',
4199
+ subjectMerchantId: 'string',
4200
+ expandMode: 'string',
4017
4201
  };
4018
4202
  }
4019
4203
 
@@ -4159,6 +4343,8 @@ export class QueryInnerFunddividerelationResponse extends $tea.Model {
4159
4343
  companyName?: string;
4160
4344
  // 分账主体企业统一社会信用代码
4161
4345
  subjectMerchantId?: string;
4346
+ // 分账主体公司名称
4347
+ subjectCompanyName?: string;
4162
4348
  // 分账对象统一社会信用代码
4163
4349
  merchantId?: string;
4164
4350
  // 分账合同或协议
@@ -4182,6 +4368,7 @@ export class QueryInnerFunddividerelationResponse extends $tea.Model {
4182
4368
  resultMsg: 'result_msg',
4183
4369
  companyName: 'company_name',
4184
4370
  subjectMerchantId: 'subject_merchant_id',
4371
+ subjectCompanyName: 'subject_company_name',
4185
4372
  merchantId: 'merchant_id',
4186
4373
  contractFiles: 'contract_files',
4187
4374
  desc: 'desc',
@@ -4200,6 +4387,7 @@ export class QueryInnerFunddividerelationResponse extends $tea.Model {
4200
4387
  resultMsg: 'string',
4201
4388
  companyName: 'string',
4202
4389
  subjectMerchantId: 'string',
4390
+ subjectCompanyName: 'string',
4203
4391
  merchantId: 'string',
4204
4392
  contractFiles: { 'type': 'array', 'itemType': FileInfo },
4205
4393
  desc: 'string',
@@ -4224,12 +4412,24 @@ export class PagequeryInnerFunddividerelationRequest extends $tea.Model {
4224
4412
  tenantId: string;
4225
4413
  // 分页查询对象
4226
4414
  pageInfo: PageQuery;
4415
+ // 商户公司社会统一信用代码
4416
+ subjectMerchantId?: string;
4417
+ // 商户公司名称
4418
+ subjectCompanyName?: string;
4419
+ // 状态
4420
+ // NIT:待提交
4421
+ // AUDIT:审批中 AUDIT_PASSED:审批通过
4422
+ // AUDIT_NOT_PASSED:审批不通过
4423
+ status?: string;
4227
4424
  static names(): { [key: string]: string } {
4228
4425
  return {
4229
4426
  authToken: 'auth_token',
4230
4427
  productInstanceId: 'product_instance_id',
4231
4428
  tenantId: 'tenant_id',
4232
4429
  pageInfo: 'page_info',
4430
+ subjectMerchantId: 'subject_merchant_id',
4431
+ subjectCompanyName: 'subject_company_name',
4432
+ status: 'status',
4233
4433
  };
4234
4434
  }
4235
4435
 
@@ -4239,6 +4439,9 @@ export class PagequeryInnerFunddividerelationRequest extends $tea.Model {
4239
4439
  productInstanceId: 'string',
4240
4440
  tenantId: 'string',
4241
4441
  pageInfo: PageQuery,
4442
+ subjectMerchantId: 'string',
4443
+ subjectCompanyName: 'string',
4444
+ status: 'string',
4242
4445
  };
4243
4446
  }
4244
4447
 
@@ -5980,6 +6183,69 @@ export class GetInnerMerchantstaticdataResponse extends $tea.Model {
5980
6183
  }
5981
6184
  }
5982
6185
 
6186
+ export class GetInnerFunddividemerchantRequest extends $tea.Model {
6187
+ // OAuth模式下的授权token
6188
+ authToken?: string;
6189
+ productInstanceId?: string;
6190
+ // 租户id
6191
+ tenantId: string;
6192
+ static names(): { [key: string]: string } {
6193
+ return {
6194
+ authToken: 'auth_token',
6195
+ productInstanceId: 'product_instance_id',
6196
+ tenantId: 'tenant_id',
6197
+ };
6198
+ }
6199
+
6200
+ static types(): { [key: string]: any } {
6201
+ return {
6202
+ authToken: 'string',
6203
+ productInstanceId: 'string',
6204
+ tenantId: 'string',
6205
+ };
6206
+ }
6207
+
6208
+ constructor(map?: { [key: string]: any }) {
6209
+ super(map);
6210
+ }
6211
+ }
6212
+
6213
+ export class GetInnerFunddividemerchantResponse extends $tea.Model {
6214
+ // 请求唯一ID,用于链路跟踪和问题排查
6215
+ reqMsgId?: string;
6216
+ // 结果码,一般OK表示调用成功
6217
+ resultCode?: string;
6218
+ // 异常信息的文本描述
6219
+ resultMsg?: string;
6220
+ // 分账方公司名称
6221
+ companyName?: string;
6222
+ // 分账方公司统一社会信用代码
6223
+ merchantId?: string;
6224
+ static names(): { [key: string]: string } {
6225
+ return {
6226
+ reqMsgId: 'req_msg_id',
6227
+ resultCode: 'result_code',
6228
+ resultMsg: 'result_msg',
6229
+ companyName: 'company_name',
6230
+ merchantId: 'merchant_id',
6231
+ };
6232
+ }
6233
+
6234
+ static types(): { [key: string]: any } {
6235
+ return {
6236
+ reqMsgId: 'string',
6237
+ resultCode: 'string',
6238
+ resultMsg: 'string',
6239
+ companyName: 'string',
6240
+ merchantId: 'string',
6241
+ };
6242
+ }
6243
+
6244
+ constructor(map?: { [key: string]: any }) {
6245
+ super(map);
6246
+ }
6247
+ }
6248
+
5983
6249
  export class RegisterMerchantexpandMerchantRequest extends $tea.Model {
5984
6250
  // OAuth模式下的授权token
5985
6251
  authToken?: string;
@@ -6439,6 +6705,16 @@ export class QueryRiskRequest extends $tea.Model {
6439
6705
  certNo: string;
6440
6706
  // 用户手机号码
6441
6707
  mobile: string;
6708
+ // 支付宝账户 UserId,智租版可选
6709
+ alipayUserId?: string;
6710
+ // 下单渠道,智租版必选。枚举值:ALIPAY-支付宝;微信-WECHAT;独立APP-APP;抖音-DOUYIN;美团-MEITUAN;其他:-OTHER
6711
+ source?: string;
6712
+ // 商品详情,智租版可选
6713
+ itemDetail?: ItemDetail;
6714
+ // 价格详情,智租版可选
6715
+ priceDetail?: PriceDetail;
6716
+ // 物流信息,智租版可选
6717
+ deliveryDetail?: DeliveryDetail;
6442
6718
  static names(): { [key: string]: string } {
6443
6719
  return {
6444
6720
  authToken: 'auth_token',
@@ -6447,6 +6723,11 @@ export class QueryRiskRequest extends $tea.Model {
6447
6723
  userName: 'user_name',
6448
6724
  certNo: 'cert_no',
6449
6725
  mobile: 'mobile',
6726
+ alipayUserId: 'alipay_user_id',
6727
+ source: 'source',
6728
+ itemDetail: 'item_detail',
6729
+ priceDetail: 'price_detail',
6730
+ deliveryDetail: 'delivery_detail',
6450
6731
  };
6451
6732
  }
6452
6733
 
@@ -6458,6 +6739,11 @@ export class QueryRiskRequest extends $tea.Model {
6458
6739
  userName: 'string',
6459
6740
  certNo: 'string',
6460
6741
  mobile: 'string',
6742
+ alipayUserId: 'string',
6743
+ source: 'string',
6744
+ itemDetail: ItemDetail,
6745
+ priceDetail: PriceDetail,
6746
+ deliveryDetail: DeliveryDetail,
6461
6747
  };
6462
6748
  }
6463
6749
 
@@ -6475,12 +6761,15 @@ export class QueryRiskResponse extends $tea.Model {
6475
6761
  resultMsg?: string;
6476
6762
  // 模型结果详情
6477
6763
  models?: RiskModel[];
6764
+ // 智租风控-风控模型结果
6765
+ appletModel?: AppletRiskModel;
6478
6766
  static names(): { [key: string]: string } {
6479
6767
  return {
6480
6768
  reqMsgId: 'req_msg_id',
6481
6769
  resultCode: 'result_code',
6482
6770
  resultMsg: 'result_msg',
6483
6771
  models: 'models',
6772
+ appletModel: 'applet_model',
6484
6773
  };
6485
6774
  }
6486
6775
 
@@ -6490,6 +6779,7 @@ export class QueryRiskResponse extends $tea.Model {
6490
6779
  resultCode: 'string',
6491
6780
  resultMsg: 'string',
6492
6781
  models: { 'type': 'array', 'itemType': RiskModel },
6782
+ appletModel: AppletRiskModel,
6493
6783
  };
6494
6784
  }
6495
6785
 
@@ -9395,7 +9685,7 @@ export default class Client {
9395
9685
  req_msg_id: AntchainUtil.getNonce(),
9396
9686
  access_key: this._accessKeyId,
9397
9687
  base_sdk_version: "TeaSDK-2.0",
9398
- sdk_version: "1.9.19",
9688
+ sdk_version: "1.9.29",
9399
9689
  _prod_code: "ATO",
9400
9690
  _prod_channel: "undefined",
9401
9691
  };
@@ -9572,6 +9862,7 @@ export default class Client {
9572
9862
  let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
9573
9863
  await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
9574
9864
  request.fileId = uploadResp.fileId;
9865
+ request.fileObject = null;
9575
9866
  }
9576
9867
 
9577
9868
  Util.validateModel(request);
@@ -10775,6 +11066,27 @@ export default class Client {
10775
11066
  return $tea.cast<GetInnerMerchantstaticdataResponse>(await this.doRequest("1.0", "antchain.ato.inner.merchantstaticdata.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetInnerMerchantstaticdataResponse({}));
10776
11067
  }
10777
11068
 
11069
+ /**
11070
+ * Description: 查询已有绑定关系分账方数据
11071
+ 包括分账方名称,社会统一信用代码
11072
+ * Summary: 间连查询已有绑定关系分账方数据
11073
+ */
11074
+ async getInnerFunddividemerchant(request: GetInnerFunddividemerchantRequest): Promise<GetInnerFunddividemerchantResponse> {
11075
+ let runtime = new $Util.RuntimeOptions({ });
11076
+ let headers : {[key: string ]: string} = { };
11077
+ return await this.getInnerFunddividemerchantEx(request, headers, runtime);
11078
+ }
11079
+
11080
+ /**
11081
+ * Description: 查询已有绑定关系分账方数据
11082
+ 包括分账方名称,社会统一信用代码
11083
+ * Summary: 间连查询已有绑定关系分账方数据
11084
+ */
11085
+ async getInnerFunddividemerchantEx(request: GetInnerFunddividemerchantRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetInnerFunddividemerchantResponse> {
11086
+ Util.validateModel(request);
11087
+ return $tea.cast<GetInnerFunddividemerchantResponse>(await this.doRequest("1.0", "antchain.ato.inner.funddividemerchant.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetInnerFunddividemerchantResponse({}));
11088
+ }
11089
+
10778
11090
  /**
10779
11091
  * Description: 商户入驻
10780
11092
  * Summary: 商户入驻
@@ -11037,6 +11349,7 @@ export default class Client {
11037
11349
  let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
11038
11350
  await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
11039
11351
  request.fileId = uploadResp.fileId;
11352
+ request.fileObject = null;
11040
11353
  }
11041
11354
 
11042
11355
  Util.validateModel(request);
@@ -11077,6 +11390,7 @@ export default class Client {
11077
11390
  let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
11078
11391
  await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
11079
11392
  request.fileId = uploadResp.fileId;
11393
+ request.fileObject = null;
11080
11394
  }
11081
11395
 
11082
11396
  Util.validateModel(request);