@antchain/ato 1.8.86 → 1.8.95

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.8.86",
3
+ "version": "1.8.95",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -151,6 +151,9 @@ export class CompanyInfo extends $tea.Model {
151
151
  tenantId?: string;
152
152
  // 统一社会信用代码
153
153
  merchantId: string;
154
+ // 商户类型: 01:企业;07:个体工商户
155
+ // 默认不填为01
156
+ merchantType?: string;
154
157
  // 公司联系电话
155
158
  companyMobile: string;
156
159
  // 公司联系地址
@@ -173,6 +176,7 @@ export class CompanyInfo extends $tea.Model {
173
176
  companyAliasName: 'company_alias_name',
174
177
  tenantId: 'tenant_id',
175
178
  merchantId: 'merchant_id',
179
+ merchantType: 'merchant_type',
176
180
  companyMobile: 'company_mobile',
177
181
  companyAddress: 'company_address',
178
182
  contactName: 'contact_name',
@@ -191,6 +195,7 @@ export class CompanyInfo extends $tea.Model {
191
195
  companyAliasName: 'string',
192
196
  tenantId: 'string',
193
197
  merchantId: 'string',
198
+ merchantType: 'string',
194
199
  companyMobile: 'string',
195
200
  companyAddress: 'string',
196
201
  contactName: 'string',
@@ -341,23 +346,23 @@ export class RelationPage extends $tea.Model {
341
346
  // 公司信息修改
342
347
  export class CompanyInfoUpdate extends $tea.Model {
343
348
  // 营业执照文件信息
344
- businessLicenseFile: FileInfo;
349
+ businessLicenseFile?: FileInfo;
345
350
  // 业务类型 枚举
346
- productMainClass: string;
351
+ productMainClass?: string;
347
352
  // 公司名称
348
- companyName: string;
353
+ companyName?: string;
349
354
  // 公司别名
350
- companyAliasName: string;
355
+ companyAliasName?: string;
351
356
  // 公司数科租户id
352
357
  tenantId?: string;
353
358
  // 公司联系电话
354
- companyMobile: string;
359
+ companyMobile?: string;
355
360
  // 公司联系地址
356
- companyAddress: string;
361
+ companyAddress?: string;
357
362
  // 联系人姓名
358
- contactName: string;
363
+ contactName?: string;
359
364
  // 联系人手机号码
360
- contactMobile: string;
365
+ contactMobile?: string;
361
366
  static names(): { [key: string]: string } {
362
367
  return {
363
368
  businessLicenseFile: 'business_license_file',
@@ -573,11 +578,14 @@ export class ApplicationInfo extends $tea.Model {
573
578
  siteName: string;
574
579
  // 网站地址
575
580
  sitUrl: string;
576
- // 商户名称
581
+ // 商户名称。
582
+ // 修改后的商户名称,将同步支付宝代扣签约页面字段展示
577
583
  merchantName: string;
578
- // 商户服务名称
584
+ // 商户服务名称。
585
+ // 修改后的商户服务名称,将同步支付宝代扣签约页面字段展示
579
586
  merchantServiceName: string;
580
- // 商户服务描述
587
+ // 商户服务描述。
588
+ // 修改后的商户服务描述,将同步支付宝代扣签约页面字段展示
581
589
  merchantServiceDesc: string;
582
590
  static names(): { [key: string]: string } {
583
591
  return {
@@ -650,6 +658,51 @@ export class PageQuery extends $tea.Model {
650
658
  }
651
659
  }
652
660
 
661
+ // 应用信息修改
662
+ export class ApplicationInfoUpdate extends $tea.Model {
663
+ // 应用场景 MINI_APP 小程序 APP 自有app ALL 两种都有
664
+ applicationScene?: string;
665
+ // 小程序id
666
+ tinyAppId?: string;
667
+ // 小程序名称
668
+ siteName?: string;
669
+ // http://asdasas.com
670
+ sitUrl?: string;
671
+ // 商户名称。 修改后的商户名称,将同步支付宝代扣签约页面字段展示
672
+ merchantName?: string;
673
+ // 商户服务名称。 修改后的商户服务名称,将同步支付宝代扣签约页面字段展示
674
+ merchantServiceName?: string;
675
+ // 商户服务描述。 修改后的商户服务描述,将同步支付宝代扣签约页面字段展示
676
+ merchantServiceDesc?: string;
677
+ static names(): { [key: string]: string } {
678
+ return {
679
+ applicationScene: 'application_scene',
680
+ tinyAppId: 'tiny_app_id',
681
+ siteName: 'site_name',
682
+ sitUrl: 'sit_url',
683
+ merchantName: 'merchant_name',
684
+ merchantServiceName: 'merchant_service_name',
685
+ merchantServiceDesc: 'merchant_service_desc',
686
+ };
687
+ }
688
+
689
+ static types(): { [key: string]: any } {
690
+ return {
691
+ applicationScene: 'string',
692
+ tinyAppId: 'string',
693
+ siteName: 'string',
694
+ sitUrl: 'string',
695
+ merchantName: 'string',
696
+ merchantServiceName: 'string',
697
+ merchantServiceDesc: 'string',
698
+ };
699
+ }
700
+
701
+ constructor(map?: { [key: string]: any }) {
702
+ super(map);
703
+ }
704
+ }
705
+
653
706
  // 法人信息
654
707
  export class LegalInfo extends $tea.Model {
655
708
  // 法人名称
@@ -762,6 +815,39 @@ export class OrderGoodsModel extends $tea.Model {
762
815
  }
763
816
  }
764
817
 
818
+ // 法人信息修改
819
+ export class LegalInfoUpdate extends $tea.Model {
820
+ // 法人名称
821
+ legalName?: string;
822
+ // 法人证件号
823
+ legalCertNo?: string;
824
+ // 法人证件正面
825
+ legalCertFrontFile?: FileInfo;
826
+ // 法人证件反面
827
+ legalCertBackFile?: FileInfo;
828
+ static names(): { [key: string]: string } {
829
+ return {
830
+ legalName: 'legal_name',
831
+ legalCertNo: 'legal_cert_no',
832
+ legalCertFrontFile: 'legal_cert_front_file',
833
+ legalCertBackFile: 'legal_cert_back_file',
834
+ };
835
+ }
836
+
837
+ static types(): { [key: string]: any } {
838
+ return {
839
+ legalName: 'string',
840
+ legalCertNo: 'string',
841
+ legalCertFrontFile: FileInfo,
842
+ legalCertBackFile: FileInfo,
843
+ };
844
+ }
845
+
846
+ constructor(map?: { [key: string]: any }) {
847
+ super(map);
848
+ }
849
+ }
850
+
765
851
  // 键值对
766
852
  export class XNameValuePair extends $tea.Model {
767
853
  // 键名
@@ -5169,11 +5255,14 @@ export class RetryInnerOrdermsgResponse extends $tea.Model {
5169
5255
  resultCode?: string;
5170
5256
  // 异常信息的文本描述
5171
5257
  resultMsg?: string;
5258
+ // 消息重试结果
5259
+ retryResult?: string;
5172
5260
  static names(): { [key: string]: string } {
5173
5261
  return {
5174
5262
  reqMsgId: 'req_msg_id',
5175
5263
  resultCode: 'result_code',
5176
5264
  resultMsg: 'result_msg',
5265
+ retryResult: 'retry_result',
5177
5266
  };
5178
5267
  }
5179
5268
 
@@ -5182,6 +5271,7 @@ export class RetryInnerOrdermsgResponse extends $tea.Model {
5182
5271
  reqMsgId: 'string',
5183
5272
  resultCode: 'string',
5184
5273
  resultMsg: 'string',
5274
+ retryResult: 'string',
5185
5275
  };
5186
5276
  }
5187
5277
 
@@ -5405,15 +5495,13 @@ export class UpdateMerchantexpandMerchantRequest extends $tea.Model {
5405
5495
  // 公司信息
5406
5496
  companyInfo: CompanyInfoUpdate;
5407
5497
  // 法人信息
5408
- legalInfo: LegalInfo;
5498
+ legalInfo: LegalInfoUpdate;
5409
5499
  // 应用信息
5410
- applicationInfo: ApplicationInfo;
5411
- // 进件模式 DIRECT(直连进件) AGENT(代理进件)
5412
- expandMode: string;
5413
- // expand_mode=_AGENT_ 必填
5414
- subTenantId?: string;
5500
+ applicationInfo: ApplicationInfoUpdate;
5415
5501
  // 进件流水号
5416
5502
  payExpandId: string;
5503
+ // 社会统一信用代码
5504
+ merchantId: string;
5417
5505
  static names(): { [key: string]: string } {
5418
5506
  return {
5419
5507
  authToken: 'auth_token',
@@ -5421,9 +5509,8 @@ export class UpdateMerchantexpandMerchantRequest extends $tea.Model {
5421
5509
  companyInfo: 'company_info',
5422
5510
  legalInfo: 'legal_info',
5423
5511
  applicationInfo: 'application_info',
5424
- expandMode: 'expand_mode',
5425
- subTenantId: 'sub_tenant_id',
5426
5512
  payExpandId: 'pay_expand_id',
5513
+ merchantId: 'merchant_id',
5427
5514
  };
5428
5515
  }
5429
5516
 
@@ -5432,11 +5519,10 @@ export class UpdateMerchantexpandMerchantRequest extends $tea.Model {
5432
5519
  authToken: 'string',
5433
5520
  productInstanceId: 'string',
5434
5521
  companyInfo: CompanyInfoUpdate,
5435
- legalInfo: LegalInfo,
5436
- applicationInfo: ApplicationInfo,
5437
- expandMode: 'string',
5438
- subTenantId: 'string',
5522
+ legalInfo: LegalInfoUpdate,
5523
+ applicationInfo: ApplicationInfoUpdate,
5439
5524
  payExpandId: 'string',
5525
+ merchantId: 'string',
5440
5526
  };
5441
5527
  }
5442
5528
 
@@ -5492,8 +5578,6 @@ export class CreateRealpersonFacevrfRequest extends $tea.Model {
5492
5578
  certNo: string;
5493
5579
  // 身份信息来源类型
5494
5580
  // IDENTITY_CARD(身份证)
5495
- // RESIDENCE_HK_MC(港澳居民居住证)
5496
- // RESIDENCE_TAIWAN(台湾居民居住证)
5497
5581
  certType: string;
5498
5582
  // 【solution_type=ZFB使用】
5499
5583
  // reserve(保存活体人脸 默认值)
@@ -6636,6 +6720,69 @@ export class QuerySignCreditResponse extends $tea.Model {
6636
6720
  }
6637
6721
  }
6638
6722
 
6723
+ export class CancelSignFlowRequest extends $tea.Model {
6724
+ // OAuth模式下的授权token
6725
+ authToken?: string;
6726
+ productInstanceId?: string;
6727
+ // 签署合同单号
6728
+ signNo: string;
6729
+ // 默认:“撤销”
6730
+ revokeReason?: string;
6731
+ // 发起人账户id,即发起本次签署的操作人个人账号id;如不传,默认由对接平台发起
6732
+ operatorId?: string;
6733
+ static names(): { [key: string]: string } {
6734
+ return {
6735
+ authToken: 'auth_token',
6736
+ productInstanceId: 'product_instance_id',
6737
+ signNo: 'sign_no',
6738
+ revokeReason: 'revoke_reason',
6739
+ operatorId: 'operator_id',
6740
+ };
6741
+ }
6742
+
6743
+ static types(): { [key: string]: any } {
6744
+ return {
6745
+ authToken: 'string',
6746
+ productInstanceId: 'string',
6747
+ signNo: 'string',
6748
+ revokeReason: 'string',
6749
+ operatorId: 'string',
6750
+ };
6751
+ }
6752
+
6753
+ constructor(map?: { [key: string]: any }) {
6754
+ super(map);
6755
+ }
6756
+ }
6757
+
6758
+ export class CancelSignFlowResponse extends $tea.Model {
6759
+ // 请求唯一ID,用于链路跟踪和问题排查
6760
+ reqMsgId?: string;
6761
+ // 结果码,一般OK表示调用成功
6762
+ resultCode?: string;
6763
+ // 异常信息的文本描述
6764
+ resultMsg?: string;
6765
+ static names(): { [key: string]: string } {
6766
+ return {
6767
+ reqMsgId: 'req_msg_id',
6768
+ resultCode: 'result_code',
6769
+ resultMsg: 'result_msg',
6770
+ };
6771
+ }
6772
+
6773
+ static types(): { [key: string]: any } {
6774
+ return {
6775
+ reqMsgId: 'string',
6776
+ resultCode: 'string',
6777
+ resultMsg: 'string',
6778
+ };
6779
+ }
6780
+
6781
+ constructor(map?: { [key: string]: any }) {
6782
+ super(map);
6783
+ }
6784
+ }
6785
+
6639
6786
  export class SyncTradeRequest extends $tea.Model {
6640
6787
  // OAuth模式下的授权token
6641
6788
  authToken?: string;
@@ -7443,6 +7590,8 @@ export class QueryWithholdSignResponse extends $tea.Model {
7443
7590
  validTime?: string;
7444
7591
  // 协议失效时间
7445
7592
  invalidTime?: string;
7593
+ // 代扣协议号
7594
+ agreementNo?: string;
7446
7595
  static names(): { [key: string]: string } {
7447
7596
  return {
7448
7597
  reqMsgId: 'req_msg_id',
@@ -7452,6 +7601,7 @@ export class QueryWithholdSignResponse extends $tea.Model {
7452
7601
  signTime: 'sign_time',
7453
7602
  validTime: 'valid_time',
7454
7603
  invalidTime: 'invalid_time',
7604
+ agreementNo: 'agreement_no',
7455
7605
  };
7456
7606
  }
7457
7607
 
@@ -7464,6 +7614,7 @@ export class QueryWithholdSignResponse extends $tea.Model {
7464
7614
  signTime: 'string',
7465
7615
  validTime: 'string',
7466
7616
  invalidTime: 'string',
7617
+ agreementNo: 'string',
7467
7618
  };
7468
7619
  }
7469
7620
 
@@ -8393,7 +8544,7 @@ export default class Client {
8393
8544
  req_msg_id: AntchainUtil.getNonce(),
8394
8545
  access_key: this._accessKeyId,
8395
8546
  base_sdk_version: "TeaSDK-2.0",
8396
- sdk_version: "1.8.86",
8547
+ sdk_version: "1.8.95",
8397
8548
  _prod_code: "ATO",
8398
8549
  _prod_channel: "undefined",
8399
8550
  };
@@ -9948,6 +10099,25 @@ export default class Client {
9948
10099
  return $tea.cast<QuerySignCreditResponse>(await this.doRequest("1.0", "antchain.ato.sign.credit.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QuerySignCreditResponse({}));
9949
10100
  }
9950
10101
 
10102
+ /**
10103
+ * Description: 撤销签署流程
10104
+ * Summary: 撤销签署流程
10105
+ */
10106
+ async cancelSignFlow(request: CancelSignFlowRequest): Promise<CancelSignFlowResponse> {
10107
+ let runtime = new $Util.RuntimeOptions({ });
10108
+ let headers : {[key: string ]: string} = { };
10109
+ return await this.cancelSignFlowEx(request, headers, runtime);
10110
+ }
10111
+
10112
+ /**
10113
+ * Description: 撤销签署流程
10114
+ * Summary: 撤销签署流程
10115
+ */
10116
+ async cancelSignFlowEx(request: CancelSignFlowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelSignFlowResponse> {
10117
+ Util.validateModel(request);
10118
+ 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({}));
10119
+ }
10120
+
9951
10121
  /**
9952
10122
  * Description: 对账saas交易信息同步接口
9953
10123
  * Summary: 对账saas交易信息同步接口