@antchain/ato 1.10.37 → 1.11.2

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.37",
3
+ "version": "1.11.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -7860,7 +7860,7 @@ export class CreateInnerCustomerserviceRequest extends $tea.Model {
7860
7860
  // 客服人员名称
7861
7861
  customerServiceName: string;
7862
7862
  // 在线客服网址
7863
- onlineSupportSiteUrl: string;
7863
+ onlineSupportSiteUrl?: string;
7864
7864
  // 投诉问题
7865
7865
  customerComplaintIssues: string;
7866
7866
  // 进件类型
@@ -7963,7 +7963,7 @@ export class UpdateInnerCustomerserviceRequest extends $tea.Model {
7963
7963
  // 客服人员名称
7964
7964
  customerServiceName: string;
7965
7965
  // 在线客服网址
7966
- onlineSupportSiteUrl: string;
7966
+ onlineSupportSiteUrl?: string;
7967
7967
  // 投诉问题
7968
7968
  customerComplaintIssues: string;
7969
7969
  // 进件类型
@@ -8323,6 +8323,77 @@ export class GetInnerCustomerservicetemplateResponse extends $tea.Model {
8323
8323
  }
8324
8324
  }
8325
8325
 
8326
+ export class QueryInnerTemplateinstanceRequest extends $tea.Model {
8327
+ // OAuth模式下的授权token
8328
+ authToken?: string;
8329
+ productInstanceId?: string;
8330
+ // 租户8位id
8331
+ tenantId: string;
8332
+ // 模板code
8333
+ templateCode: string;
8334
+ // 业务唯一实例id(模板实例化时的业务id)
8335
+ businessId: string;
8336
+ // 实例化文件是否需要pdf格式
8337
+ needPdfFile: boolean;
8338
+ static names(): { [key: string]: string } {
8339
+ return {
8340
+ authToken: 'auth_token',
8341
+ productInstanceId: 'product_instance_id',
8342
+ tenantId: 'tenant_id',
8343
+ templateCode: 'template_code',
8344
+ businessId: 'business_id',
8345
+ needPdfFile: 'need_pdf_file',
8346
+ };
8347
+ }
8348
+
8349
+ static types(): { [key: string]: any } {
8350
+ return {
8351
+ authToken: 'string',
8352
+ productInstanceId: 'string',
8353
+ tenantId: 'string',
8354
+ templateCode: 'string',
8355
+ businessId: 'string',
8356
+ needPdfFile: 'boolean',
8357
+ };
8358
+ }
8359
+
8360
+ constructor(map?: { [key: string]: any }) {
8361
+ super(map);
8362
+ }
8363
+ }
8364
+
8365
+ export class QueryInnerTemplateinstanceResponse extends $tea.Model {
8366
+ // 请求唯一ID,用于链路跟踪和问题排查
8367
+ reqMsgId?: string;
8368
+ // 结果码,一般OK表示调用成功
8369
+ resultCode?: string;
8370
+ // 异常信息的文本描述
8371
+ resultMsg?: string;
8372
+ // 模板实例化后的信息
8373
+ data?: string;
8374
+ static names(): { [key: string]: string } {
8375
+ return {
8376
+ reqMsgId: 'req_msg_id',
8377
+ resultCode: 'result_code',
8378
+ resultMsg: 'result_msg',
8379
+ data: 'data',
8380
+ };
8381
+ }
8382
+
8383
+ static types(): { [key: string]: any } {
8384
+ return {
8385
+ reqMsgId: 'string',
8386
+ resultCode: 'string',
8387
+ resultMsg: 'string',
8388
+ data: 'string',
8389
+ };
8390
+ }
8391
+
8392
+ constructor(map?: { [key: string]: any }) {
8393
+ super(map);
8394
+ }
8395
+ }
8396
+
8326
8397
  export class CreateInsureRequest extends $tea.Model {
8327
8398
  // OAuth模式下的授权token
8328
8399
  authToken?: string;
@@ -8353,6 +8424,8 @@ export class CreateInsureRequest extends $tea.Model {
8353
8424
  tradeTime?: string;
8354
8425
  // 公司地址信息,此处填写的地址信息为投保时最高优先级地址,其次为公司进件时填写的地址信息。如果取不到明确地址信息,投保会失败。
8355
8426
  address?: string;
8427
+ // 保险投保期数
8428
+ period?: number;
8356
8429
  static names(): { [key: string]: string } {
8357
8430
  return {
8358
8431
  authToken: 'auth_token',
@@ -8369,6 +8442,7 @@ export class CreateInsureRequest extends $tea.Model {
8369
8442
  logisticsNumber: 'logistics_number',
8370
8443
  tradeTime: 'trade_time',
8371
8444
  address: 'address',
8445
+ period: 'period',
8372
8446
  };
8373
8447
  }
8374
8448
 
@@ -8388,6 +8462,7 @@ export class CreateInsureRequest extends $tea.Model {
8388
8462
  logisticsNumber: 'string',
8389
8463
  tradeTime: 'string',
8390
8464
  address: 'string',
8465
+ period: 'number',
8391
8466
  };
8392
8467
  }
8393
8468
 
@@ -9268,14 +9343,14 @@ export class SubmitSignFlowRequest extends $tea.Model {
9268
9343
  userOpenId?: string;
9269
9344
  // 商户支付宝应用 id
9270
9345
  merchantAppId?: string;
9346
+ // 用户类型,个人或企业,默认是个人
9347
+ userType?: string;
9271
9348
  // (企业作为消费者时)公司名称
9272
9349
  userOrgName?: string;
9273
9350
  // (企业作为消费者时)公司证件类型
9274
9351
  userOrgIdType?: string;
9275
9352
  // (企业作为消费者时)公司证件号,无需加密
9276
9353
  userOrgIdNumber?: string;
9277
- // 用户类型,个人或企业,默认是个人
9278
- userType?: string;
9279
9354
  static names(): { [key: string]: string } {
9280
9355
  return {
9281
9356
  authToken: 'auth_token',
@@ -9303,10 +9378,10 @@ export class SubmitSignFlowRequest extends $tea.Model {
9303
9378
  thirdSigner: 'third_signer',
9304
9379
  userOpenId: 'user_open_id',
9305
9380
  merchantAppId: 'merchant_app_id',
9381
+ userType: 'user_type',
9306
9382
  userOrgName: 'user_org_name',
9307
9383
  userOrgIdType: 'user_org_id_type',
9308
9384
  userOrgIdNumber: 'user_org_id_number',
9309
- userType: 'user_type',
9310
9385
  };
9311
9386
  }
9312
9387
 
@@ -9337,10 +9412,10 @@ export class SubmitSignFlowRequest extends $tea.Model {
9337
9412
  thirdSigner: 'string',
9338
9413
  userOpenId: 'string',
9339
9414
  merchantAppId: 'string',
9415
+ userType: 'string',
9340
9416
  userOrgName: 'string',
9341
9417
  userOrgIdType: 'string',
9342
9418
  userOrgIdNumber: 'string',
9343
- userType: 'string',
9344
9419
  };
9345
9420
  }
9346
9421
 
@@ -9594,7 +9669,7 @@ export class SubmitFrontSignRequest extends $tea.Model {
9594
9669
  // 签署完成跳转链接
9595
9670
  //
9596
9671
  signedRedirectUrl?: string;
9597
- // 签署的电子合同模板信息,List<Object>的JSON格式,Object如下: { templateId:__, // String格式 templateArgs: { "模板参数key":"模板参数值", // 必须为String } }
9672
+ // 签署的电子合同模板信息,JSONArray格式,可以传入多个templateIdtemplateArgs。注意templateArgs的格式为key-value,其中key为模板文件中表单域的名称,value为需要填充的值。
9598
9673
  templateList: string;
9599
9674
  // 用户的支付宝uid
9600
9675
  alipayUserId?: string;
@@ -9618,12 +9693,20 @@ export class SubmitFrontSignRequest extends $tea.Model {
9618
9693
  // 法人证件号,需要采用RSA加密传输
9619
9694
  //
9620
9695
  merchantLegalIdNumber?: string;
9621
- // 多方签署的其他参与方的签署信息,json的array格式,参考:[{"tag":"zf_a","orgName":"上海网络科技有限公司","orgIdType":"CRED_ORG_REGCODE","orgIdNumber":"12098760923","orgLegalName":"王大浪","orgLegalIdNumber":"107120196708289012","sealIds":["12b2317-0000-3333-2222-ec087dc97d8b"]}],其中:orgIdNumber、orgLegalName、orgLegalIdNumber需要加密传输。
9696
+ // 除商户以外的第三方签署信息,需要通过此字段传入,需要使用JSONArray格式。注意其中orgIdNumber、orgLegalName、orgLegalIdNumber需要RSA加密。
9622
9697
  thirdSigner?: string;
9623
9698
  // 用户在支付宝开放平台下应用的 open_id
9624
9699
  userOpenId?: string;
9625
9700
  // 商户支付宝应用 id
9626
9701
  merchantAppId?: string;
9702
+ // 用户类型,个人或企业,默认是个人
9703
+ userType?: string;
9704
+ // (企业作为消费者时)公司证件号,无需加密
9705
+ userOrgIdNumber?: string;
9706
+ // (企业作为消费者时)公司证件类型
9707
+ userOrgIdType?: string;
9708
+ // (企业作为消费者时)公司名称
9709
+ userOrgName?: string;
9627
9710
  static names(): { [key: string]: string } {
9628
9711
  return {
9629
9712
  authToken: 'auth_token',
@@ -9651,6 +9734,10 @@ export class SubmitFrontSignRequest extends $tea.Model {
9651
9734
  thirdSigner: 'third_signer',
9652
9735
  userOpenId: 'user_open_id',
9653
9736
  merchantAppId: 'merchant_app_id',
9737
+ userType: 'user_type',
9738
+ userOrgIdNumber: 'user_org_id_number',
9739
+ userOrgIdType: 'user_org_id_type',
9740
+ userOrgName: 'user_org_name',
9654
9741
  };
9655
9742
  }
9656
9743
 
@@ -9681,6 +9768,10 @@ export class SubmitFrontSignRequest extends $tea.Model {
9681
9768
  thirdSigner: 'string',
9682
9769
  userOpenId: 'string',
9683
9770
  merchantAppId: 'string',
9771
+ userType: 'string',
9772
+ userOrgIdNumber: 'string',
9773
+ userOrgIdType: 'string',
9774
+ userOrgName: 'string',
9684
9775
  };
9685
9776
  }
9686
9777
 
@@ -9705,7 +9796,7 @@ export class SubmitFrontSignResponse extends $tea.Model {
9705
9796
  // 签署用户ID
9706
9797
  //
9707
9798
  accountId?: string;
9708
- // 签署扩展信息,用于获取签署链接等。JSON格式字符串。
9799
+ // 签署信息,包括短链接、长链接、小程序链接等。
9709
9800
  signInfo?: string;
9710
9801
  static names(): { [key: string]: string } {
9711
9802
  return {
@@ -10130,12 +10221,12 @@ export class GetSignContractcertificateRequest extends $tea.Model {
10130
10221
  authToken?: string;
10131
10222
  productInstanceId?: string;
10132
10223
  // 流程id
10133
- flowId: string;
10224
+ signNo: string;
10134
10225
  static names(): { [key: string]: string } {
10135
10226
  return {
10136
10227
  authToken: 'auth_token',
10137
10228
  productInstanceId: 'product_instance_id',
10138
- flowId: 'flow_id',
10229
+ signNo: 'sign_no',
10139
10230
  };
10140
10231
  }
10141
10232
 
@@ -10143,7 +10234,7 @@ export class GetSignContractcertificateRequest extends $tea.Model {
10143
10234
  return {
10144
10235
  authToken: 'string',
10145
10236
  productInstanceId: 'string',
10146
- flowId: 'string',
10237
+ signNo: 'string',
10147
10238
  };
10148
10239
  }
10149
10240
 
@@ -11006,6 +11097,93 @@ export class ApplyTradeFinanceprecheckResponse extends $tea.Model {
11006
11097
  }
11007
11098
  }
11008
11099
 
11100
+ export class TransferTradeFinanceRequest extends $tea.Model {
11101
+ // OAuth模式下的授权token
11102
+ authToken?: string;
11103
+ productInstanceId?: string;
11104
+ // 订单id
11105
+ orderId: string;
11106
+ // 公司社会信用代码
11107
+ merchantId: string;
11108
+ // 待预审资方列表
11109
+ fundIdList: string[];
11110
+ // 融资签署模式
11111
+ fundSignMode: string;
11112
+ // 商户分账起始期数
11113
+ divideStartTermIndex: number;
11114
+ static names(): { [key: string]: string } {
11115
+ return {
11116
+ authToken: 'auth_token',
11117
+ productInstanceId: 'product_instance_id',
11118
+ orderId: 'order_id',
11119
+ merchantId: 'merchant_id',
11120
+ fundIdList: 'fund_id_list',
11121
+ fundSignMode: 'fund_sign_mode',
11122
+ divideStartTermIndex: 'divide_start_term_index',
11123
+ };
11124
+ }
11125
+
11126
+ static types(): { [key: string]: any } {
11127
+ return {
11128
+ authToken: 'string',
11129
+ productInstanceId: 'string',
11130
+ orderId: 'string',
11131
+ merchantId: 'string',
11132
+ fundIdList: { 'type': 'array', 'itemType': 'string' },
11133
+ fundSignMode: 'string',
11134
+ divideStartTermIndex: 'number',
11135
+ };
11136
+ }
11137
+
11138
+ constructor(map?: { [key: string]: any }) {
11139
+ super(map);
11140
+ }
11141
+ }
11142
+
11143
+ export class TransferTradeFinanceResponse extends $tea.Model {
11144
+ // 请求唯一ID,用于链路跟踪和问题排查
11145
+ reqMsgId?: string;
11146
+ // 结果码,一般OK表示调用成功
11147
+ resultCode?: string;
11148
+ // 异常信息的文本描述
11149
+ resultMsg?: string;
11150
+ // order_id
11151
+ orderId?: string;
11152
+ // merchant_id
11153
+ merchantId?: string;
11154
+ // jsonArray.toString
11155
+ fundCandidates?: string;
11156
+ // 转融资结果
11157
+ transferResult?: string;
11158
+ static names(): { [key: string]: string } {
11159
+ return {
11160
+ reqMsgId: 'req_msg_id',
11161
+ resultCode: 'result_code',
11162
+ resultMsg: 'result_msg',
11163
+ orderId: 'order_id',
11164
+ merchantId: 'merchant_id',
11165
+ fundCandidates: 'fund_candidates',
11166
+ transferResult: 'transfer_result',
11167
+ };
11168
+ }
11169
+
11170
+ static types(): { [key: string]: any } {
11171
+ return {
11172
+ reqMsgId: 'string',
11173
+ resultCode: 'string',
11174
+ resultMsg: 'string',
11175
+ orderId: 'string',
11176
+ merchantId: 'string',
11177
+ fundCandidates: 'string',
11178
+ transferResult: 'string',
11179
+ };
11180
+ }
11181
+
11182
+ constructor(map?: { [key: string]: any }) {
11183
+ super(map);
11184
+ }
11185
+ }
11186
+
11009
11187
  export class CreateWithholdSignRequest extends $tea.Model {
11010
11188
  // OAuth模式下的授权token
11011
11189
  authToken?: string;
@@ -12219,7 +12397,7 @@ export default class Client {
12219
12397
  req_msg_id: AntchainUtil.getNonce(),
12220
12398
  access_key: this._accessKeyId,
12221
12399
  base_sdk_version: "TeaSDK-2.0",
12222
- sdk_version: "1.10.37",
12400
+ sdk_version: "1.11.2",
12223
12401
  _prod_code: "ATO",
12224
12402
  _prod_channel: "undefined",
12225
12403
  };
@@ -13944,6 +14122,25 @@ export default class Client {
13944
14122
  return $tea.cast<GetInnerCustomerservicetemplateResponse>(await this.doRequest("1.0", "antchain.ato.inner.customerservicetemplate.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetInnerCustomerservicetemplateResponse({}));
13945
14123
  }
13946
14124
 
14125
+ /**
14126
+ * Description: 获取模板实例化后的模板信息,包括pdf下载链接
14127
+ * Summary: 获取模板实例化后的模板信息
14128
+ */
14129
+ async queryInnerTemplateinstance(request: QueryInnerTemplateinstanceRequest): Promise<QueryInnerTemplateinstanceResponse> {
14130
+ let runtime = new $Util.RuntimeOptions({ });
14131
+ let headers : {[key: string ]: string} = { };
14132
+ return await this.queryInnerTemplateinstanceEx(request, headers, runtime);
14133
+ }
14134
+
14135
+ /**
14136
+ * Description: 获取模板实例化后的模板信息,包括pdf下载链接
14137
+ * Summary: 获取模板实例化后的模板信息
14138
+ */
14139
+ async queryInnerTemplateinstanceEx(request: QueryInnerTemplateinstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryInnerTemplateinstanceResponse> {
14140
+ Util.validateModel(request);
14141
+ return $tea.cast<QueryInnerTemplateinstanceResponse>(await this.doRequest("1.0", "antchain.ato.inner.templateinstance.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryInnerTemplateinstanceResponse({}));
14142
+ }
14143
+
13947
14144
  /**
13948
14145
  * Description: 一键投保
13949
14146
  * Summary: 投保
@@ -14615,6 +14812,25 @@ export default class Client {
14615
14812
  return $tea.cast<ApplyTradeFinanceprecheckResponse>(await this.doRequest("1.0", "antchain.ato.trade.financeprecheck.apply", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ApplyTradeFinanceprecheckResponse({}));
14616
14813
  }
14617
14814
 
14815
+ /**
14816
+ * Description: 非融转融资
14817
+ * Summary: 非融转融资
14818
+ */
14819
+ async transferTradeFinance(request: TransferTradeFinanceRequest): Promise<TransferTradeFinanceResponse> {
14820
+ let runtime = new $Util.RuntimeOptions({ });
14821
+ let headers : {[key: string ]: string} = { };
14822
+ return await this.transferTradeFinanceEx(request, headers, runtime);
14823
+ }
14824
+
14825
+ /**
14826
+ * Description: 非融转融资
14827
+ * Summary: 非融转融资
14828
+ */
14829
+ async transferTradeFinanceEx(request: TransferTradeFinanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<TransferTradeFinanceResponse> {
14830
+ Util.validateModel(request);
14831
+ return $tea.cast<TransferTradeFinanceResponse>(await this.doRequest("1.0", "antchain.ato.trade.finance.transfer", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new TransferTradeFinanceResponse({}));
14832
+ }
14833
+
14618
14834
  /**
14619
14835
  * Description: 代扣签约创建
14620
14836
  * Summary: 代扣签约