@antchain/ato 1.9.20 → 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.20",
3
+ "version": "1.9.29",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -159,6 +159,8 @@ export class FileInfo extends $tea.Model {
159
159
 
160
160
  // 智租风控模型结构体
161
161
  export class AppletRiskModel extends $tea.Model {
162
+ // 智租风控调用结果码,10000 表示调用成功。
163
+ code: string;
162
164
  // 风险咨询事件ID
163
165
  recordId: string;
164
166
  // 风险等级。枚举值:RANK0-无法判断;RANK1-极低风险;RANK2-低风险;RANK3-中风险;RANK4-高风险;RANK5-极高风险
@@ -168,24 +170,30 @@ export class AppletRiskModel extends $tea.Model {
168
170
  // 风险等级中文描述
169
171
  riskDesc: string;
170
172
  // 子风险结果列表
171
- subRiskResultList: SubRentRiskItem[];
173
+ subRiskResultList?: SubRentRiskItem[];
174
+ // 调用失败错误提示信息,仅调用失败时返回该字段信息。
175
+ errorMsg?: string;
172
176
  static names(): { [key: string]: string } {
173
177
  return {
178
+ code: 'code',
174
179
  recordId: 'record_id',
175
180
  riskRank: 'risk_rank',
176
181
  riskName: 'risk_name',
177
182
  riskDesc: 'risk_desc',
178
183
  subRiskResultList: 'sub_risk_result_list',
184
+ errorMsg: 'error_msg',
179
185
  };
180
186
  }
181
187
 
182
188
  static types(): { [key: string]: any } {
183
189
  return {
190
+ code: 'string',
184
191
  recordId: 'string',
185
192
  riskRank: 'string',
186
193
  riskName: 'string',
187
194
  riskDesc: 'string',
188
195
  subRiskResultList: { 'type': 'array', 'itemType': SubRentRiskItem },
196
+ errorMsg: 'string',
189
197
  };
190
198
  }
191
199
 
@@ -415,12 +423,12 @@ export class MerchantAgentPage extends $tea.Model {
415
423
  export class PriceDetail extends $tea.Model {
416
424
  // 商品租赁期数
417
425
  periodNum: number;
418
- // 押金,单位:元。精度:分。
419
- depositPrice: string;
420
- // 买断价格,单位:元,精度:分
421
- buyoutPrice: string;
422
- // 首期租金,单位:元,精度:分
423
- initialRentPrice: string;
426
+ // 押金,单位:分。
427
+ depositPrice: number;
428
+ // 买断价格,单位:分
429
+ buyoutPrice: number;
430
+ // 首期租金,单位:分
431
+ initialRentPrice: number;
424
432
  static names(): { [key: string]: string } {
425
433
  return {
426
434
  periodNum: 'period_num',
@@ -433,9 +441,9 @@ export class PriceDetail extends $tea.Model {
433
441
  static types(): { [key: string]: any } {
434
442
  return {
435
443
  periodNum: 'number',
436
- depositPrice: 'string',
437
- buyoutPrice: 'string',
438
- initialRentPrice: 'string',
444
+ depositPrice: 'number',
445
+ buyoutPrice: 'number',
446
+ initialRentPrice: 'number',
439
447
  };
440
448
  }
441
449
 
@@ -668,6 +676,35 @@ export class PromiseInfo extends $tea.Model {
668
676
  }
669
677
  }
670
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
+
671
708
  // 租户协议分页对象
672
709
  export class AgreementPage extends $tea.Model {
673
710
  // 协议id
@@ -744,12 +781,18 @@ export class RelationPage extends $tea.Model {
744
781
  merchantId: string;
745
782
  // 审核状态
746
783
  status: string;
784
+ // 商户公司统一社会信用代码
785
+ subjectMerchantId: string;
786
+ // 商户公司名称
787
+ subjectCompanyName: string;
747
788
  static names(): { [key: string]: string } {
748
789
  return {
749
790
  relationId: 'relation_id',
750
791
  companyName: 'company_name',
751
792
  merchantId: 'merchant_id',
752
793
  status: 'status',
794
+ subjectMerchantId: 'subject_merchant_id',
795
+ subjectCompanyName: 'subject_company_name',
753
796
  };
754
797
  }
755
798
 
@@ -759,6 +802,8 @@ export class RelationPage extends $tea.Model {
759
802
  companyName: 'string',
760
803
  merchantId: 'string',
761
804
  status: 'string',
805
+ subjectMerchantId: 'string',
806
+ subjectCompanyName: 'string',
762
807
  };
763
808
  }
764
809
 
@@ -975,12 +1020,13 @@ export class PageQuery extends $tea.Model {
975
1020
 
976
1021
  // 智租风控-商品详情
977
1022
  export class ItemDetail extends $tea.Model {
978
- // 租赁商品类目,可选项见 https://opendocs.alipay.com/open/10719
979
- goodsCategory: string;
1023
+ // 租赁商品类目,可选类型:
1024
+ // RENT_PHONE - 手机租赁;RENT_COMPUTER - 电脑/平板租赁;RENT_CAMERA - 数码摄像租赁;RENT_DIGITAL - 数码其他租赁;RENT_STATIONERY - 电子词典/电纸书/文化用品租赁;RENT_CLOTHING - 服装租赁
1025
+ goodsCategory?: string;
980
1026
  // 租赁商品名称
981
- itemName: string;
1027
+ itemName?: string;
982
1028
  // 租赁商品数量
983
- quantity: number;
1029
+ quantity?: number;
984
1030
  static names(): { [key: string]: string } {
985
1031
  return {
986
1032
  goodsCategory: 'goods_category',
@@ -4111,6 +4157,12 @@ export class CreateInnerFunddividerelationRequest extends $tea.Model {
4111
4157
  submit: string;
4112
4158
  // 操作人名称
4113
4159
  userName: string;
4160
+ // 商户公司社会统一信用代码,
4161
+ // 如果expandMode=AGENT, 非空,长度不超过32位
4162
+ subjectMerchantId?: string;
4163
+ // 进件模式 :DIRECT(直连进件) ,AGENT(代理进件)
4164
+ // 默认值:DIRECT
4165
+ expandMode?: string;
4114
4166
  static names(): { [key: string]: string } {
4115
4167
  return {
4116
4168
  authToken: 'auth_token',
@@ -4125,6 +4177,8 @@ export class CreateInnerFunddividerelationRequest extends $tea.Model {
4125
4177
  alipayAccount: 'alipay_account',
4126
4178
  submit: 'submit',
4127
4179
  userName: 'user_name',
4180
+ subjectMerchantId: 'subject_merchant_id',
4181
+ expandMode: 'expand_mode',
4128
4182
  };
4129
4183
  }
4130
4184
 
@@ -4142,6 +4196,8 @@ export class CreateInnerFunddividerelationRequest extends $tea.Model {
4142
4196
  alipayAccount: 'string',
4143
4197
  submit: 'string',
4144
4198
  userName: 'string',
4199
+ subjectMerchantId: 'string',
4200
+ expandMode: 'string',
4145
4201
  };
4146
4202
  }
4147
4203
 
@@ -4287,6 +4343,8 @@ export class QueryInnerFunddividerelationResponse extends $tea.Model {
4287
4343
  companyName?: string;
4288
4344
  // 分账主体企业统一社会信用代码
4289
4345
  subjectMerchantId?: string;
4346
+ // 分账主体公司名称
4347
+ subjectCompanyName?: string;
4290
4348
  // 分账对象统一社会信用代码
4291
4349
  merchantId?: string;
4292
4350
  // 分账合同或协议
@@ -4310,6 +4368,7 @@ export class QueryInnerFunddividerelationResponse extends $tea.Model {
4310
4368
  resultMsg: 'result_msg',
4311
4369
  companyName: 'company_name',
4312
4370
  subjectMerchantId: 'subject_merchant_id',
4371
+ subjectCompanyName: 'subject_company_name',
4313
4372
  merchantId: 'merchant_id',
4314
4373
  contractFiles: 'contract_files',
4315
4374
  desc: 'desc',
@@ -4328,6 +4387,7 @@ export class QueryInnerFunddividerelationResponse extends $tea.Model {
4328
4387
  resultMsg: 'string',
4329
4388
  companyName: 'string',
4330
4389
  subjectMerchantId: 'string',
4390
+ subjectCompanyName: 'string',
4331
4391
  merchantId: 'string',
4332
4392
  contractFiles: { 'type': 'array', 'itemType': FileInfo },
4333
4393
  desc: 'string',
@@ -4352,12 +4412,24 @@ export class PagequeryInnerFunddividerelationRequest extends $tea.Model {
4352
4412
  tenantId: string;
4353
4413
  // 分页查询对象
4354
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;
4355
4424
  static names(): { [key: string]: string } {
4356
4425
  return {
4357
4426
  authToken: 'auth_token',
4358
4427
  productInstanceId: 'product_instance_id',
4359
4428
  tenantId: 'tenant_id',
4360
4429
  pageInfo: 'page_info',
4430
+ subjectMerchantId: 'subject_merchant_id',
4431
+ subjectCompanyName: 'subject_company_name',
4432
+ status: 'status',
4361
4433
  };
4362
4434
  }
4363
4435
 
@@ -4367,6 +4439,9 @@ export class PagequeryInnerFunddividerelationRequest extends $tea.Model {
4367
4439
  productInstanceId: 'string',
4368
4440
  tenantId: 'string',
4369
4441
  pageInfo: PageQuery,
4442
+ subjectMerchantId: 'string',
4443
+ subjectCompanyName: 'string',
4444
+ status: 'string',
4370
4445
  };
4371
4446
  }
4372
4447
 
@@ -6108,6 +6183,69 @@ export class GetInnerMerchantstaticdataResponse extends $tea.Model {
6108
6183
  }
6109
6184
  }
6110
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
+
6111
6249
  export class RegisterMerchantexpandMerchantRequest extends $tea.Model {
6112
6250
  // OAuth模式下的授权token
6113
6251
  authToken?: string;
@@ -6571,12 +6709,12 @@ export class QueryRiskRequest extends $tea.Model {
6571
6709
  alipayUserId?: string;
6572
6710
  // 下单渠道,智租版必选。枚举值:ALIPAY-支付宝;微信-WECHAT;独立APP-APP;抖音-DOUYIN;美团-MEITUAN;其他:-OTHER
6573
6711
  source?: string;
6574
- // 收件人地址,智租版必选
6575
- receiverAddress?: string;
6576
6712
  // 商品详情,智租版可选
6577
6713
  itemDetail?: ItemDetail;
6578
6714
  // 价格详情,智租版可选
6579
6715
  priceDetail?: PriceDetail;
6716
+ // 物流信息,智租版可选
6717
+ deliveryDetail?: DeliveryDetail;
6580
6718
  static names(): { [key: string]: string } {
6581
6719
  return {
6582
6720
  authToken: 'auth_token',
@@ -6587,9 +6725,9 @@ export class QueryRiskRequest extends $tea.Model {
6587
6725
  mobile: 'mobile',
6588
6726
  alipayUserId: 'alipay_user_id',
6589
6727
  source: 'source',
6590
- receiverAddress: 'receiver_address',
6591
6728
  itemDetail: 'item_detail',
6592
6729
  priceDetail: 'price_detail',
6730
+ deliveryDetail: 'delivery_detail',
6593
6731
  };
6594
6732
  }
6595
6733
 
@@ -6603,9 +6741,9 @@ export class QueryRiskRequest extends $tea.Model {
6603
6741
  mobile: 'string',
6604
6742
  alipayUserId: 'string',
6605
6743
  source: 'string',
6606
- receiverAddress: 'string',
6607
6744
  itemDetail: ItemDetail,
6608
6745
  priceDetail: PriceDetail,
6746
+ deliveryDetail: DeliveryDetail,
6609
6747
  };
6610
6748
  }
6611
6749
 
@@ -9547,7 +9685,7 @@ export default class Client {
9547
9685
  req_msg_id: AntchainUtil.getNonce(),
9548
9686
  access_key: this._accessKeyId,
9549
9687
  base_sdk_version: "TeaSDK-2.0",
9550
- sdk_version: "1.9.20",
9688
+ sdk_version: "1.9.29",
9551
9689
  _prod_code: "ATO",
9552
9690
  _prod_channel: "undefined",
9553
9691
  };
@@ -9724,6 +9862,7 @@ export default class Client {
9724
9862
  let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
9725
9863
  await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
9726
9864
  request.fileId = uploadResp.fileId;
9865
+ request.fileObject = null;
9727
9866
  }
9728
9867
 
9729
9868
  Util.validateModel(request);
@@ -10927,6 +11066,27 @@ export default class Client {
10927
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({}));
10928
11067
  }
10929
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
+
10930
11090
  /**
10931
11091
  * Description: 商户入驻
10932
11092
  * Summary: 商户入驻
@@ -11189,6 +11349,7 @@ export default class Client {
11189
11349
  let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
11190
11350
  await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
11191
11351
  request.fileId = uploadResp.fileId;
11352
+ request.fileObject = null;
11192
11353
  }
11193
11354
 
11194
11355
  Util.validateModel(request);
@@ -11229,6 +11390,7 @@ export default class Client {
11229
11390
  let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
11230
11391
  await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
11231
11392
  request.fileId = uploadResp.fileId;
11393
+ request.fileObject = null;
11232
11394
  }
11233
11395
 
11234
11396
  Util.validateModel(request);