@antchain/ato 1.10.24 → 1.10.37

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.10.24",
3
+ "version": "1.10.37",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1136,55 +1136,6 @@ export class LegalInfoUpdate extends $tea.Model {
1136
1136
  }
1137
1137
  }
1138
1138
 
1139
- // 订单信息
1140
- export class MerchantOrderInfo extends $tea.Model {
1141
- // 支付宝代扣协议号
1142
- agreementNo?: string;
1143
- // 订单id
1144
- orderId?: string;
1145
- // 订单创建时间
1146
- orderCreateTime?: string;
1147
- // 租金总额(单位分)
1148
- totalRentMoney?: number;
1149
- // 租期
1150
- rentRerm?: number;
1151
- // 订单状态
1152
- orderStatus?: string;
1153
- // 承租人名称
1154
- userName?: string;
1155
- // 承租人手机号
1156
- userPhoneNumber?: string;
1157
- static names(): { [key: string]: string } {
1158
- return {
1159
- agreementNo: 'agreement_no',
1160
- orderId: 'order_id',
1161
- orderCreateTime: 'order_create_time',
1162
- totalRentMoney: 'total_rent_money',
1163
- rentRerm: 'rent_rerm',
1164
- orderStatus: 'order_status',
1165
- userName: 'user_name',
1166
- userPhoneNumber: 'user_phone_number',
1167
- };
1168
- }
1169
-
1170
- static types(): { [key: string]: any } {
1171
- return {
1172
- agreementNo: 'string',
1173
- orderId: 'string',
1174
- orderCreateTime: 'string',
1175
- totalRentMoney: 'number',
1176
- rentRerm: 'number',
1177
- orderStatus: 'string',
1178
- userName: 'string',
1179
- userPhoneNumber: 'string',
1180
- };
1181
- }
1182
-
1183
- constructor(map?: { [key: string]: any }) {
1184
- super(map);
1185
- }
1186
- }
1187
-
1188
1139
  // 订单还款计划
1189
1140
  export class PromiseInfo extends $tea.Model {
1190
1141
  static names(): { [key: string]: string } {
@@ -1237,7 +1188,9 @@ export class CustomerServiceInfo extends $tea.Model {
1237
1188
  merchantId?: string;
1238
1189
  // 公司名称
1239
1190
  merchantName?: string;
1240
- // 处理类型: 商家处理 服务商代处理
1191
+ // 处理类型:
1192
+ // MERCHANT_PROCESS("MERCHANT_PROCESS", "商家处理"),
1193
+ // PROXY_PROCESS("PROXY_PROCESS", "服务商代处理"),
1241
1194
  processType?: string;
1242
1195
  static names(): { [key: string]: string } {
1243
1196
  return {
@@ -1491,6 +1444,59 @@ export class CompanyInfoUpdate extends $tea.Model {
1491
1444
  }
1492
1445
  }
1493
1446
 
1447
+ // 订单搜索信息
1448
+ export class OrderSearchInfo extends $tea.Model {
1449
+ // 订单id
1450
+ orderId?: string;
1451
+ // 支付宝代扣协议号
1452
+ agreementNo?: string;
1453
+ // 订单创建时间
1454
+ orderCreateTime?: string;
1455
+ // 租金总额(单位分)
1456
+ totalRentMoney?: number;
1457
+ // 租期
1458
+ rentTerm?: number;
1459
+ // 租期单位
1460
+ rentUnit?: string;
1461
+ // 订单状态
1462
+ orderStatus?: string;
1463
+ // 承租人名称
1464
+ userName?: string;
1465
+ // 承租人手机号
1466
+ userPhoneNumber?: string;
1467
+ static names(): { [key: string]: string } {
1468
+ return {
1469
+ orderId: 'order_id',
1470
+ agreementNo: 'agreement_no',
1471
+ orderCreateTime: 'order_create_time',
1472
+ totalRentMoney: 'total_rent_money',
1473
+ rentTerm: 'rent_term',
1474
+ rentUnit: 'rent_unit',
1475
+ orderStatus: 'order_status',
1476
+ userName: 'user_name',
1477
+ userPhoneNumber: 'user_phone_number',
1478
+ };
1479
+ }
1480
+
1481
+ static types(): { [key: string]: any } {
1482
+ return {
1483
+ orderId: 'string',
1484
+ agreementNo: 'string',
1485
+ orderCreateTime: 'string',
1486
+ totalRentMoney: 'number',
1487
+ rentTerm: 'number',
1488
+ rentUnit: 'string',
1489
+ orderStatus: 'string',
1490
+ userName: 'string',
1491
+ userPhoneNumber: 'string',
1492
+ };
1493
+ }
1494
+
1495
+ constructor(map?: { [key: string]: any }) {
1496
+ super(map);
1497
+ }
1498
+ }
1499
+
1494
1500
  // 订单商品
1495
1501
  export class OrderProductInfo extends $tea.Model {
1496
1502
  // 商品编码
@@ -2548,6 +2554,10 @@ export class CancelFundPlanRequest extends $tea.Model {
2548
2554
  cancelReason: string;
2549
2555
  // 融资单的资方社会信用代码
2550
2556
  fundId?: string;
2557
+ // 操作
2558
+ operation?: string;
2559
+ // 赎回金额,单位为分,取消并赎回时必填
2560
+ redeemAmount?: number;
2551
2561
  static names(): { [key: string]: string } {
2552
2562
  return {
2553
2563
  authToken: 'auth_token',
@@ -2556,6 +2566,8 @@ export class CancelFundPlanRequest extends $tea.Model {
2556
2566
  merchantId: 'merchant_id',
2557
2567
  cancelReason: 'cancel_reason',
2558
2568
  fundId: 'fund_id',
2569
+ operation: 'operation',
2570
+ redeemAmount: 'redeem_amount',
2559
2571
  };
2560
2572
  }
2561
2573
 
@@ -2567,6 +2579,8 @@ export class CancelFundPlanRequest extends $tea.Model {
2567
2579
  merchantId: 'string',
2568
2580
  cancelReason: 'string',
2569
2581
  fundId: 'string',
2582
+ operation: 'string',
2583
+ redeemAmount: 'number',
2570
2584
  };
2571
2585
  }
2572
2586
 
@@ -4723,6 +4737,10 @@ export class CreateInnerTemplatetextareaRequest extends $tea.Model {
4723
4737
  componentName: string;
4724
4738
  // 是否必填
4725
4739
  required: boolean;
4740
+ // 预估文本行数
4741
+ line?: number;
4742
+ // 多行文本域名称
4743
+ multiName?: string;
4726
4744
  static names(): { [key: string]: string } {
4727
4745
  return {
4728
4746
  authToken: 'auth_token',
@@ -4733,6 +4751,8 @@ export class CreateInnerTemplatetextareaRequest extends $tea.Model {
4733
4751
  componentType: 'component_type',
4734
4752
  componentName: 'component_name',
4735
4753
  required: 'required',
4754
+ line: 'line',
4755
+ multiName: 'multi_name',
4736
4756
  };
4737
4757
  }
4738
4758
 
@@ -4746,6 +4766,8 @@ export class CreateInnerTemplatetextareaRequest extends $tea.Model {
4746
4766
  componentType: 'string',
4747
4767
  componentName: 'string',
4748
4768
  required: 'boolean',
4769
+ line: 'number',
4770
+ multiName: 'string',
4749
4771
  };
4750
4772
  }
4751
4773
 
@@ -5640,8 +5662,8 @@ export class QueryInnerMerchantpayexpandResponse extends $tea.Model {
5640
5662
  expandStatus?: string;
5641
5663
  // 进件失败描述
5642
5664
  expandFailReason?: string;
5643
- // 是否展示进件信息登记入口
5644
- showCustomerComplaintRegistPortal?: boolean;
5665
+ // 是否展示客服信息登记入口
5666
+ showCustomerServiceBanner?: boolean;
5645
5667
  static names(): { [key: string]: string } {
5646
5668
  return {
5647
5669
  reqMsgId: 'req_msg_id',
@@ -5655,7 +5677,7 @@ export class QueryInnerMerchantpayexpandResponse extends $tea.Model {
5655
5677
  expandMode: 'expand_mode',
5656
5678
  expandStatus: 'expand_status',
5657
5679
  expandFailReason: 'expand_fail_reason',
5658
- showCustomerComplaintRegistPortal: 'show_customer_complaint_regist_portal',
5680
+ showCustomerServiceBanner: 'show_customer_service_banner',
5659
5681
  };
5660
5682
  }
5661
5683
 
@@ -5672,7 +5694,7 @@ export class QueryInnerMerchantpayexpandResponse extends $tea.Model {
5672
5694
  expandMode: 'string',
5673
5695
  expandStatus: 'string',
5674
5696
  expandFailReason: 'string',
5675
- showCustomerComplaintRegistPortal: 'boolean',
5697
+ showCustomerServiceBanner: 'boolean',
5676
5698
  };
5677
5699
  }
5678
5700
 
@@ -7560,7 +7582,7 @@ export class PagequeryInnerOrderResponse extends $tea.Model {
7560
7582
  // 异常信息的文本描述
7561
7583
  resultMsg?: string;
7562
7584
  // 订单列表信息
7563
- orderInfoList?: MerchantOrderInfo[];
7585
+ orderInfoList?: OrderSearchInfo[];
7564
7586
  // 总量
7565
7587
  total?: number;
7566
7588
  static names(): { [key: string]: string } {
@@ -7578,7 +7600,7 @@ export class PagequeryInnerOrderResponse extends $tea.Model {
7578
7600
  reqMsgId: 'string',
7579
7601
  resultCode: 'string',
7580
7602
  resultMsg: 'string',
7581
- orderInfoList: { 'type': 'array', 'itemType': MerchantOrderInfo },
7603
+ orderInfoList: { 'type': 'array', 'itemType': OrderSearchInfo },
7582
7604
  total: 'number',
7583
7605
  };
7584
7606
  }
@@ -7824,8 +7846,8 @@ export class CreateInnerCustomerserviceRequest extends $tea.Model {
7824
7846
  // 公司名称
7825
7847
  merchantName?: string;
7826
7848
  // 处理类型:
7827
- // 商家处理
7828
- // 服务商代处理
7849
+ // MERCHANT_PROCESS("MERCHANT_PROCESS", "商家处理"),
7850
+ // PROXY_PROCESS("PROXY_PROCESS", "服务商代处理"),
7829
7851
  processType: string;
7830
7852
  // 服务商名称
7831
7853
  serviceProviderName?: string;
@@ -7926,7 +7948,9 @@ export class UpdateInnerCustomerserviceRequest extends $tea.Model {
7926
7948
  merchantId?: string;
7927
7949
  // 公司名称
7928
7950
  merchantName: string;
7929
- // 处理类型: 商家处理 服务商代处理
7951
+ // 处理类型:
7952
+ // MERCHANT_PROCESS("MERCHANT_PROCESS", "商家处理"),
7953
+ // PROXY_PROCESS("PROXY_PROCESS", "服务商代处理"),
7930
7954
  processType: string;
7931
7955
  // 服务商名称
7932
7956
  serviceProviderName?: string;
@@ -8024,7 +8048,9 @@ export class PagequeryInnerCustomerserviceRequest extends $tea.Model {
8024
8048
  tenantId: string;
8025
8049
  // 分页信息
8026
8050
  pageInfo: PageQuery;
8027
- // 处理类型: 商家处理 服务商代处理
8051
+ // 处理类型:
8052
+ // MERCHANT_PROCESS("MERCHANT_PROCESS", "商家处理"),
8053
+ // PROXY_PROCESS("PROXY_PROCESS", "服务商代处理"),
8028
8054
  processType?: string;
8029
8055
  // 公司社会统一信息代码
8030
8056
  merchantId?: string;
@@ -8143,7 +8169,9 @@ export class DetailInnerCustomerserviceResponse extends $tea.Model {
8143
8169
  merchantId?: string;
8144
8170
  // 公司名称
8145
8171
  merchantName?: string;
8146
- // 处理类型: 商家处理;服务商代处理
8172
+ // 处理类型:
8173
+ // MERCHANT_PROCESS("MERCHANT_PROCESS", "商家处理"),
8174
+ // PROXY_PROCESS("PROXY_PROCESS", "服务商代处理"),
8147
8175
  processType?: string;
8148
8176
  // 服务商名称
8149
8177
  serviceProviderName?: string;
@@ -8210,7 +8238,9 @@ export class GetInnerCustomerservicetemplateRequest extends $tea.Model {
8210
8238
  // DIRECT("DIRECT", "直连进件模式")
8211
8239
  // AGENT("AGENT", "代理商进件模式")
8212
8240
  expandMode: string;
8213
- // 处理类型: 商家处理;服务商代处理
8241
+ // 处理类型:
8242
+ // MERCHANT_PROCESS("MERCHANT_PROCESS", "商家处理"),
8243
+ // PROXY_PROCESS("PROXY_PROCESS", "服务商代处理"),
8214
8244
  processType: string;
8215
8245
  static names(): { [key: string]: string } {
8216
8246
  return {
@@ -8321,6 +8351,8 @@ export class CreateInsureRequest extends $tea.Model {
8321
8351
  logisticsNumber?: string;
8322
8352
  // 交易时间,非必填参数。如果发货方式为 OFFLINE(线下交易),则该字段必填。
8323
8353
  tradeTime?: string;
8354
+ // 公司地址信息,此处填写的地址信息为投保时最高优先级地址,其次为公司进件时填写的地址信息。如果取不到明确地址信息,投保会失败。
8355
+ address?: string;
8324
8356
  static names(): { [key: string]: string } {
8325
8357
  return {
8326
8358
  authToken: 'auth_token',
@@ -8336,6 +8368,7 @@ export class CreateInsureRequest extends $tea.Model {
8336
8368
  facevrfFlowId: 'facevrf_flow_id',
8337
8369
  logisticsNumber: 'logistics_number',
8338
8370
  tradeTime: 'trade_time',
8371
+ address: 'address',
8339
8372
  };
8340
8373
  }
8341
8374
 
@@ -8354,6 +8387,7 @@ export class CreateInsureRequest extends $tea.Model {
8354
8387
  facevrfFlowId: 'string',
8355
8388
  logisticsNumber: 'string',
8356
8389
  tradeTime: 'string',
8390
+ address: 'string',
8357
8391
  };
8358
8392
  }
8359
8393
 
@@ -9208,13 +9242,7 @@ export class SubmitSignFlowRequest extends $tea.Model {
9208
9242
  businessScene: string;
9209
9243
  // 签署完成跳转链接
9210
9244
  signedRedirectUrl?: string;
9211
- // 签署的电子合同模板信息,List<Object>的JSON格式,Object如下:
9212
- // {
9213
- // templateId:__, // String格式
9214
- // templateArgs: {
9215
- // "模板参数key":"模板参数值", // 必须为String
9216
- // }
9217
- // }
9245
+ // 签署的电子合同模板信息,JSONArray格式,可以传入多个templateId和templateArgs。注意templateArgs的格式为key-value,其中key为模板文件中表单域的名称,value为需要填充的值。
9218
9246
  templateList: string;
9219
9247
  // 用户的支付宝uid
9220
9248
  alipayUserId?: string;
@@ -9234,12 +9262,20 @@ export class SubmitSignFlowRequest extends $tea.Model {
9234
9262
  merchantLegalName?: string;
9235
9263
  // 法人证件号,需要采用RSA加密传输
9236
9264
  merchantLegalIdNumber?: string;
9237
- // 多方签署的其他参与方的签署信息,json的array格式,参考:[{"tag":"zf_a","orgName":"上海网络科技有限公司","orgIdType":"CRED_ORG_REGCODE","orgIdNumber":"12098760923","orgLegalName":"王大浪","orgLegalIdNumber":"107120196708289012"}],其中:orgIdNumber、orgLegalName、orgLegalIdNumber需要加密传输。
9265
+ // 除商户以外的第三方签署信息,需要通过此字段传入,需要使用JSONArray格式。注意其中orgIdNumber、orgLegalName、orgLegalIdNumber需要RSA加密。
9238
9266
  thirdSigner?: string;
9239
9267
  // 支付宝用户 open_id
9240
9268
  userOpenId?: string;
9241
9269
  // 商户支付宝应用 id
9242
9270
  merchantAppId?: string;
9271
+ // (企业作为消费者时)公司名称
9272
+ userOrgName?: string;
9273
+ // (企业作为消费者时)公司证件类型
9274
+ userOrgIdType?: string;
9275
+ // (企业作为消费者时)公司证件号,无需加密
9276
+ userOrgIdNumber?: string;
9277
+ // 用户类型,个人或企业,默认是个人
9278
+ userType?: string;
9243
9279
  static names(): { [key: string]: string } {
9244
9280
  return {
9245
9281
  authToken: 'auth_token',
@@ -9267,6 +9303,10 @@ export class SubmitSignFlowRequest extends $tea.Model {
9267
9303
  thirdSigner: 'third_signer',
9268
9304
  userOpenId: 'user_open_id',
9269
9305
  merchantAppId: 'merchant_app_id',
9306
+ userOrgName: 'user_org_name',
9307
+ userOrgIdType: 'user_org_id_type',
9308
+ userOrgIdNumber: 'user_org_id_number',
9309
+ userType: 'user_type',
9270
9310
  };
9271
9311
  }
9272
9312
 
@@ -9297,6 +9337,10 @@ export class SubmitSignFlowRequest extends $tea.Model {
9297
9337
  thirdSigner: 'string',
9298
9338
  userOpenId: 'string',
9299
9339
  merchantAppId: 'string',
9340
+ userOrgName: 'string',
9341
+ userOrgIdType: 'string',
9342
+ userOrgIdNumber: 'string',
9343
+ userType: 'string',
9300
9344
  };
9301
9345
  }
9302
9346
 
@@ -9318,7 +9362,7 @@ export class SubmitSignFlowResponse extends $tea.Model {
9318
9362
  flowId?: string;
9319
9363
  // 签署用户ID
9320
9364
  accountId?: string;
9321
- // 签署附加信息,用于获取签署链接等。JSON格式的字符串。
9365
+ // 签署信息,包括短链接、长链接、小程序链接等。
9322
9366
  signInfo?: string;
9323
9367
  static names(): { [key: string]: string } {
9324
9368
  return {
@@ -10081,6 +10125,65 @@ export class CancelSignFlowResponse extends $tea.Model {
10081
10125
  }
10082
10126
  }
10083
10127
 
10128
+ export class GetSignContractcertificateRequest extends $tea.Model {
10129
+ // OAuth模式下的授权token
10130
+ authToken?: string;
10131
+ productInstanceId?: string;
10132
+ // 流程id
10133
+ flowId: string;
10134
+ static names(): { [key: string]: string } {
10135
+ return {
10136
+ authToken: 'auth_token',
10137
+ productInstanceId: 'product_instance_id',
10138
+ flowId: 'flow_id',
10139
+ };
10140
+ }
10141
+
10142
+ static types(): { [key: string]: any } {
10143
+ return {
10144
+ authToken: 'string',
10145
+ productInstanceId: 'string',
10146
+ flowId: 'string',
10147
+ };
10148
+ }
10149
+
10150
+ constructor(map?: { [key: string]: any }) {
10151
+ super(map);
10152
+ }
10153
+ }
10154
+
10155
+ export class GetSignContractcertificateResponse extends $tea.Model {
10156
+ // 请求唯一ID,用于链路跟踪和问题排查
10157
+ reqMsgId?: string;
10158
+ // 结果码,一般OK表示调用成功
10159
+ resultCode?: string;
10160
+ // 异常信息的文本描述
10161
+ resultMsg?: string;
10162
+ // 下载文件地址(一小时内有效)
10163
+ url?: string;
10164
+ static names(): { [key: string]: string } {
10165
+ return {
10166
+ reqMsgId: 'req_msg_id',
10167
+ resultCode: 'result_code',
10168
+ resultMsg: 'result_msg',
10169
+ url: 'url',
10170
+ };
10171
+ }
10172
+
10173
+ static types(): { [key: string]: any } {
10174
+ return {
10175
+ reqMsgId: 'string',
10176
+ resultCode: 'string',
10177
+ resultMsg: 'string',
10178
+ url: 'string',
10179
+ };
10180
+ }
10181
+
10182
+ constructor(map?: { [key: string]: any }) {
10183
+ super(map);
10184
+ }
10185
+ }
10186
+
10084
10187
  export class SyncTradeRequest extends $tea.Model {
10085
10188
  // OAuth模式下的授权token
10086
10189
  authToken?: string;
@@ -11513,6 +11616,8 @@ export class QueryWithholdActivepayRequest extends $tea.Model {
11513
11616
  tradeNo?: string;
11514
11617
  // 支付类型
11515
11618
  payType?: string;
11619
+ // 支付渠道,非必填。可选值:JSAPI-JSAPI支付,APP-APP支付。默认值:JSAPI
11620
+ payChannel?: string;
11516
11621
  static names(): { [key: string]: string } {
11517
11622
  return {
11518
11623
  authToken: 'auth_token',
@@ -11521,6 +11626,7 @@ export class QueryWithholdActivepayRequest extends $tea.Model {
11521
11626
  periodNum: 'period_num',
11522
11627
  tradeNo: 'trade_no',
11523
11628
  payType: 'pay_type',
11629
+ payChannel: 'pay_channel',
11524
11630
  };
11525
11631
  }
11526
11632
 
@@ -11532,6 +11638,7 @@ export class QueryWithholdActivepayRequest extends $tea.Model {
11532
11638
  periodNum: 'number',
11533
11639
  tradeNo: 'string',
11534
11640
  payType: 'string',
11641
+ payChannel: 'string',
11535
11642
  };
11536
11643
  }
11537
11644
 
@@ -12112,7 +12219,7 @@ export default class Client {
12112
12219
  req_msg_id: AntchainUtil.getNonce(),
12113
12220
  access_key: this._accessKeyId,
12114
12221
  base_sdk_version: "TeaSDK-2.0",
12115
- sdk_version: "1.10.24",
12222
+ sdk_version: "1.10.37",
12116
12223
  _prod_code: "ATO",
12117
12224
  _prod_channel: "undefined",
12118
12225
  };
@@ -14261,6 +14368,25 @@ export default class Client {
14261
14368
  return $tea.cast<CancelSignFlowResponse>(await this.doRequest("1.0", "antchain.ato.sign.flow.cancel", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CancelSignFlowResponse({}));
14262
14369
  }
14263
14370
 
14371
+ /**
14372
+ * Description: 获取合同存证证明
14373
+ * Summary: 获取合同存证证明
14374
+ */
14375
+ async getSignContractcertificate(request: GetSignContractcertificateRequest): Promise<GetSignContractcertificateResponse> {
14376
+ let runtime = new $Util.RuntimeOptions({ });
14377
+ let headers : {[key: string ]: string} = { };
14378
+ return await this.getSignContractcertificateEx(request, headers, runtime);
14379
+ }
14380
+
14381
+ /**
14382
+ * Description: 获取合同存证证明
14383
+ * Summary: 获取合同存证证明
14384
+ */
14385
+ async getSignContractcertificateEx(request: GetSignContractcertificateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetSignContractcertificateResponse> {
14386
+ Util.validateModel(request);
14387
+ return $tea.cast<GetSignContractcertificateResponse>(await this.doRequest("1.0", "antchain.ato.sign.contractcertificate.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetSignContractcertificateResponse({}));
14388
+ }
14389
+
14264
14390
  /**
14265
14391
  * Description: 对账saas交易信息同步接口
14266
14392
  * Summary: 对账saas交易信息同步接口