tencentcloud-sdk-ess 3.0.996 → 3.0.998

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a7ac5ba3c172e2b2c7664a50cb076291e1dc675
4
- data.tar.gz: 0e2bc3e36d768ec7eb49cfecb89cba2ebbd48605
3
+ metadata.gz: ff80fe6e4e939262cc6be5b105020929719fe54e
4
+ data.tar.gz: c70084b7a66b97221c19ab8d33a899a0f51ec916
5
5
  SHA512:
6
- metadata.gz: aadca64259b63c8de582419ce00f15128f74fdbf715f62da78692c0e1c6e4571c562c203a99f1d714d3d8b60a3bf2107fcd1376ea21b2fded3cd33f4a12358d1
7
- data.tar.gz: 020e1b2bdb6b1bdcace65716aefe98cc60eba315f5d0f1101e9c3241eb9e3bc914af4049a4ba0392ae93a69e4a6a690784e9bc5461cbe868e5905b36fcb714f2
6
+ metadata.gz: af1acf4b964360e1c8fbfe6a2b1b0758d9baa37d0de128ced8084f75e0996aa50fff8b3438ef82fe39a539ada1863148d080e5287deeb3b5eee6b31eeadac004
7
+ data.tar.gz: eb09f4a914368c883234aa9666d6b6be8c8074c2836ec02fa96fd25ad6b8ef05dbe611464ebf2c9ba70b6f207c79927151acfe231962f8e71dbb4956be84a106
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.996
1
+ 3.0.998
@@ -620,6 +620,32 @@ module TencentCloud
620
620
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
621
621
  end
622
622
 
623
+ # 此接口用于发起数字文件CA加签操作。可以使用同步或者异步模式进行。
624
+
625
+ # **注意: 1. 文件类型暂时仅支持PDF类型文件。2. 此接口为『数字文件CA加签服务』白名单功能,使用前请联系对接的客户经理沟通。**
626
+
627
+ # @param request: Request instance for CreateFileCounterSign.
628
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateFileCounterSignRequest`
629
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateFileCounterSignResponse`
630
+ def CreateFileCounterSign(request)
631
+ body = send_request('CreateFileCounterSign', request.serialize)
632
+ response = JSON.parse(body)
633
+ if response['Response'].key?('Error') == false
634
+ model = CreateFileCounterSignResponse.new
635
+ model.deserialize(response['Response'])
636
+ model
637
+ else
638
+ code = response['Response']['Error']['Code']
639
+ message = response['Response']['Error']['Message']
640
+ reqid = response['Response']['RequestId']
641
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
642
+ end
643
+ rescue TencentCloud::Common::TencentCloudSDKException => e
644
+ raise e
645
+ rescue StandardError => e
646
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
647
+ end
648
+
623
649
  # 通过模板创建签署流程<br/>
624
650
  # 适用场景:在标准制式的合同场景中,可通过提前预制好模板文件,每次调用模板文件的id,补充合同内容信息及签署信息生成电子合同。
625
651
  # <table>
@@ -2278,6 +2304,32 @@ module TencentCloud
2278
2304
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2279
2305
  end
2280
2306
 
2307
+ # 文件CA加签任务结果查询接口,用于查询 CreateFileCounterSign接口 发起的异步加签任务。
2308
+
2309
+ # 注意:`此接口为『数字文件CA加签服务』白名单功能,使用前请联系对接的客户经理沟通。`
2310
+
2311
+ # @param request: Request instance for DescribeFileCounterSignResult.
2312
+ # @type request: :class:`Tencentcloud::ess::V20201111::DescribeFileCounterSignResultRequest`
2313
+ # @rtype: :class:`Tencentcloud::ess::V20201111::DescribeFileCounterSignResultResponse`
2314
+ def DescribeFileCounterSignResult(request)
2315
+ body = send_request('DescribeFileCounterSignResult', request.serialize)
2316
+ response = JSON.parse(body)
2317
+ if response['Response'].key?('Error') == false
2318
+ model = DescribeFileCounterSignResultResponse.new
2319
+ model.deserialize(response['Response'])
2320
+ model
2321
+ else
2322
+ code = response['Response']['Error']['Code']
2323
+ message = response['Response']['Error']['Message']
2324
+ reqid = response['Response']['RequestId']
2325
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2326
+ end
2327
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2328
+ raise e
2329
+ rescue StandardError => e
2330
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2331
+ end
2332
+
2281
2333
  # 本接口(DescribeFileUrls)用于查询文件的下载URL。
2282
2334
  # 适用场景:通过传参合同流程编号,下载对应的合同PDF文件流到本地。
2283
2335
 
@@ -3200,6 +3252,30 @@ module TencentCloud
3200
3252
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3201
3253
  end
3202
3254
 
3255
+ # 对加签后的文件进行数字签名验证,判断数字签名是否有效。
3256
+
3257
+ # @param request: Request instance for VerifyDigitFile.
3258
+ # @type request: :class:`Tencentcloud::ess::V20201111::VerifyDigitFileRequest`
3259
+ # @rtype: :class:`Tencentcloud::ess::V20201111::VerifyDigitFileResponse`
3260
+ def VerifyDigitFile(request)
3261
+ body = send_request('VerifyDigitFile', request.serialize)
3262
+ response = JSON.parse(body)
3263
+ if response['Response'].key?('Error') == false
3264
+ model = VerifyDigitFileResponse.new
3265
+ model.deserialize(response['Response'])
3266
+ model
3267
+ else
3268
+ code = response['Response']['Error']['Code']
3269
+ message = response['Response']['Error']['Message']
3270
+ reqid = response['Response']['RequestId']
3271
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3272
+ end
3273
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3274
+ raise e
3275
+ rescue StandardError => e
3276
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3277
+ end
3278
+
3203
3279
  # 对合同流程文件进行数字签名验证,判断数字签名是否有效,合同文件内容是否被篡改。
3204
3280
 
3205
3281
 
@@ -2646,6 +2646,79 @@ module TencentCloud
2646
2646
  end
2647
2647
  end
2648
2648
 
2649
+ # CreateFileCounterSign请求参数结构体
2650
+ class CreateFileCounterSignRequest < TencentCloud::Common::AbstractModel
2651
+ # @param FileId: 需要加签的文件Id。
2652
+
2653
+ # 注: `暂时只支持pdf类型的文件`
2654
+ # @type FileId: String
2655
+ # @param Operator: 执行本接口操作的员工信息。注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
2656
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
2657
+ # @param Agent: 代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
2658
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
2659
+ # @param SyncMode: 是否使用同步模式。
2660
+ # <ul><li><b>false</b>:异步模式,返回taskId。需要使用taskId轮询结果查询接口。</li>
2661
+ # <li><b>true</b>: 同步模式,此接口将直接返回taskId和ResultFileId(加签后文件id)。</li></ul>
2662
+ # 注:
2663
+ # 1. 当加签文件较大的时候,建议使用异步接口进行操作。否则文件加签时间过长会导致接口超时。
2664
+ # @type SyncMode: Boolean
2665
+
2666
+ attr_accessor :FileId, :Operator, :Agent, :SyncMode
2667
+
2668
+ def initialize(fileid=nil, operator=nil, agent=nil, syncmode=nil)
2669
+ @FileId = fileid
2670
+ @Operator = operator
2671
+ @Agent = agent
2672
+ @SyncMode = syncmode
2673
+ end
2674
+
2675
+ def deserialize(params)
2676
+ @FileId = params['FileId']
2677
+ unless params['Operator'].nil?
2678
+ @Operator = UserInfo.new
2679
+ @Operator.deserialize(params['Operator'])
2680
+ end
2681
+ unless params['Agent'].nil?
2682
+ @Agent = Agent.new
2683
+ @Agent.deserialize(params['Agent'])
2684
+ end
2685
+ @SyncMode = params['SyncMode']
2686
+ end
2687
+ end
2688
+
2689
+ # CreateFileCounterSign返回参数结构体
2690
+ class CreateFileCounterSignResponse < TencentCloud::Common::AbstractModel
2691
+ # @param Status: 加签任务的状态。
2692
+
2693
+ # <ul>
2694
+ # <li><b>PROCESSING</b>: 任务正在执行中。</li>
2695
+ # <li><b>FINISHED</b>: 已执行成功</li>
2696
+ # </ul>
2697
+ # @type Status: String
2698
+ # @param ResultFileId: 加签完成后新的文件Id
2699
+ # @type ResultFileId: String
2700
+ # @param TaskId: 异步模式下用于轮询状态的任务Id
2701
+ # @type TaskId: String
2702
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2703
+ # @type RequestId: String
2704
+
2705
+ attr_accessor :Status, :ResultFileId, :TaskId, :RequestId
2706
+
2707
+ def initialize(status=nil, resultfileid=nil, taskid=nil, requestid=nil)
2708
+ @Status = status
2709
+ @ResultFileId = resultfileid
2710
+ @TaskId = taskid
2711
+ @RequestId = requestid
2712
+ end
2713
+
2714
+ def deserialize(params)
2715
+ @Status = params['Status']
2716
+ @ResultFileId = params['ResultFileId']
2717
+ @TaskId = params['TaskId']
2718
+ @RequestId = params['RequestId']
2719
+ end
2720
+ end
2721
+
2649
2722
  # CreateFlowApprovers请求参数结构体
2650
2723
  class CreateFlowApproversRequest < TencentCloud::Common::AbstractModel
2651
2724
  # @param Operator: 执行本接口操作的员工信息。
@@ -7303,27 +7376,78 @@ module TencentCloud
7303
7376
  end
7304
7377
  end
7305
7378
 
7379
+ # DescribeFileCounterSignResult请求参数结构体
7380
+ class DescribeFileCounterSignResultRequest < TencentCloud::Common::AbstractModel
7381
+ # @param Operator: 执行本接口操作的员工信息。注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
7382
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
7383
+ # @param Agent: 代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
7384
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
7385
+ # @param TaskId: 加签任务Id
7386
+ # @type TaskId: String
7387
+
7388
+ attr_accessor :Operator, :Agent, :TaskId
7389
+
7390
+ def initialize(operator=nil, agent=nil, taskid=nil)
7391
+ @Operator = operator
7392
+ @Agent = agent
7393
+ @TaskId = taskid
7394
+ end
7395
+
7396
+ def deserialize(params)
7397
+ unless params['Operator'].nil?
7398
+ @Operator = UserInfo.new
7399
+ @Operator.deserialize(params['Operator'])
7400
+ end
7401
+ unless params['Agent'].nil?
7402
+ @Agent = Agent.new
7403
+ @Agent.deserialize(params['Agent'])
7404
+ end
7405
+ @TaskId = params['TaskId']
7406
+ end
7407
+ end
7408
+
7409
+ # DescribeFileCounterSignResult返回参数结构体
7410
+ class DescribeFileCounterSignResultResponse < TencentCloud::Common::AbstractModel
7411
+ # @param Status: 加签任务的状态。
7412
+
7413
+ # <ul>
7414
+ # <li><b>PROCESSING</b>: 任务正在执行中。</li>
7415
+ # <li><b>FINISHED</b>: 已执行成功</li>
7416
+ # <li><b>FAILED</b>: 执行失败</li>
7417
+ # </ul>
7418
+ # @type Status: String
7419
+ # @param ResultFileId: 加签完成后新的文件Id
7420
+ # @type ResultFileId: String
7421
+ # @param ErrorDetail: 失败的错误信息,加签任务失败的情况下会返回。
7422
+ # @type ErrorDetail: String
7423
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7424
+ # @type RequestId: String
7425
+
7426
+ attr_accessor :Status, :ResultFileId, :ErrorDetail, :RequestId
7427
+
7428
+ def initialize(status=nil, resultfileid=nil, errordetail=nil, requestid=nil)
7429
+ @Status = status
7430
+ @ResultFileId = resultfileid
7431
+ @ErrorDetail = errordetail
7432
+ @RequestId = requestid
7433
+ end
7434
+
7435
+ def deserialize(params)
7436
+ @Status = params['Status']
7437
+ @ResultFileId = params['ResultFileId']
7438
+ @ErrorDetail = params['ErrorDetail']
7439
+ @RequestId = params['RequestId']
7440
+ end
7441
+ end
7442
+
7306
7443
  # DescribeFileUrls请求参数结构体
7307
7444
  class DescribeFileUrlsRequest < TencentCloud::Common::AbstractModel
7308
7445
  # @param Operator: 执行本接口操作的员工信息。
7309
7446
  # 注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`
7310
7447
  # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
7311
- # @param BusinessType: 文件对应的业务类型,目前支持:
7312
- # <ul>
7313
- # <li>**FLOW ** : <font color="red">如需下载合同文件请选择此项</font></li>
7314
- # <li>**TEMPLATE ** : 如需下载模板文件请选择此项</li>
7315
- # <li>**DOCUMENT **: 如需下载文档文件请选择此项</li>
7316
- # <li>**SEAL **: 如需下载印章图片请选择此项</li>
7317
- # </ul>
7448
+ # @param BusinessType: 文件对应的业务类型,目前支持:<ul><li>**FLOW ** : <font color="red">如需下载合同文件请选择此项</font></li><li>**TEMPLATE ** : 如需下载模板文件请选择此项</li><li>**DOCUMENT **: 如需下载文档文件请选择此项</li><li>**SEAL **: 如需下载印章图片请选择此项</li><li>**DIGITFILE**: 如需下载加签文件请选择此项</li></ul>
7318
7449
  # @type BusinessType: String
7319
- # @param BusinessIds: 业务编号的数组,取值如下:
7320
- # <ul>
7321
- # <li>流程编号</li>
7322
- # <li>模板编号</li>
7323
- # <li>文档编号</li>
7324
- # <li>印章编号</li>
7325
- # <li>如需下载合同文件请传入FlowId,最大支持20个资源</li>
7326
- # </ul>
7450
+ # @param BusinessIds: 业务编号的数组,取值如下:<ul><li>流程编号</li><li>模板编号</li><li>文档编号</li><li>印章编号</li><li>加签文件编号</li><li>如需下载合同文件请传入FlowId,最大支持20个资源</li></ul>
7327
7451
  # @type BusinessIds: Array
7328
7452
  # @param FileName: 下载后的文件命名,只有FileType为zip的时候生效
7329
7453
  # @type FileName: String
@@ -13239,6 +13363,121 @@ module TencentCloud
13239
13363
  end
13240
13364
  end
13241
13365
 
13366
+ # VerifyDigitFile请求参数结构体
13367
+ class VerifyDigitFileRequest < TencentCloud::Common::AbstractModel
13368
+ # @param Operator: 执行本接口操作的员工信息。注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。
13369
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
13370
+ # @param Agent: 代理企业和员工的信息。在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
13371
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
13372
+ # @param FileId: 加签接口返回的文件Id
13373
+ # @type FileId: String
13374
+
13375
+ attr_accessor :Operator, :Agent, :FileId
13376
+
13377
+ def initialize(operator=nil, agent=nil, fileid=nil)
13378
+ @Operator = operator
13379
+ @Agent = agent
13380
+ @FileId = fileid
13381
+ end
13382
+
13383
+ def deserialize(params)
13384
+ unless params['Operator'].nil?
13385
+ @Operator = UserInfo.new
13386
+ @Operator.deserialize(params['Operator'])
13387
+ end
13388
+ unless params['Agent'].nil?
13389
+ @Agent = Agent.new
13390
+ @Agent.deserialize(params['Agent'])
13391
+ end
13392
+ @FileId = params['FileId']
13393
+ end
13394
+ end
13395
+
13396
+ # VerifyDigitFile返回参数结构体
13397
+ class VerifyDigitFileResponse < TencentCloud::Common::AbstractModel
13398
+ # @param PdfResourceMd5: 加签文件MD5哈希值
13399
+ # @type PdfResourceMd5: String
13400
+ # @param VerifyResult: 验签结果代码,代码的含义如下:<ul><li>**1**:文件验证成功。</li><li>**2**:文件验证失败。</li></ul>
13401
+ # @type VerifyResult: Integer
13402
+ # @param VerifySerialNo: 验签序列号, 为11为数组组成的字符串
13403
+ # @type VerifySerialNo: String
13404
+ # @param VerifyDigitFileResults: 验签结果详情,每个签名域对应的验签结果。
13405
+ # @type VerifyDigitFileResults: Array
13406
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13407
+ # @type RequestId: String
13408
+
13409
+ attr_accessor :PdfResourceMd5, :VerifyResult, :VerifySerialNo, :VerifyDigitFileResults, :RequestId
13410
+
13411
+ def initialize(pdfresourcemd5=nil, verifyresult=nil, verifyserialno=nil, verifydigitfileresults=nil, requestid=nil)
13412
+ @PdfResourceMd5 = pdfresourcemd5
13413
+ @VerifyResult = verifyresult
13414
+ @VerifySerialNo = verifyserialno
13415
+ @VerifyDigitFileResults = verifydigitfileresults
13416
+ @RequestId = requestid
13417
+ end
13418
+
13419
+ def deserialize(params)
13420
+ @PdfResourceMd5 = params['PdfResourceMd5']
13421
+ @VerifyResult = params['VerifyResult']
13422
+ @VerifySerialNo = params['VerifySerialNo']
13423
+ unless params['VerifyDigitFileResults'].nil?
13424
+ @VerifyDigitFileResults = []
13425
+ params['VerifyDigitFileResults'].each do |i|
13426
+ verifydigitfileresult_tmp = VerifyDigitFileResult.new
13427
+ verifydigitfileresult_tmp.deserialize(i)
13428
+ @VerifyDigitFileResults << verifydigitfileresult_tmp
13429
+ end
13430
+ end
13431
+ @RequestId = params['RequestId']
13432
+ end
13433
+ end
13434
+
13435
+ # 数字加签文件验签结果
13436
+ class VerifyDigitFileResult < TencentCloud::Common::AbstractModel
13437
+ # @param CertNotBefore: 证书起始时间的Unix时间戳,单位毫秒
13438
+ # @type CertNotBefore: Integer
13439
+ # @param CertNotAfter: 证书过期时间的时间戳,单位毫秒
13440
+ # @type CertNotAfter: Integer
13441
+ # @param CertSn: 证书序列号,在数字证书申请过程中,系统会自动生成一个独一无二的序号。
13442
+ # @type CertSn: String
13443
+ # @param SignAlgorithm: 证书签名算法, 如SHA1withRSA等算法
13444
+ # @type SignAlgorithm: String
13445
+ # @param SignTime: 签署时间的Unix时间戳,单位毫秒
13446
+ # @type SignTime: Integer
13447
+ # @param SignType: 签名类型。0表示带签章的数字签名,1表示仅数字签名
13448
+ # @type SignType: Integer
13449
+ # @param SignerName: 申请证书的主体的名字
13450
+
13451
+ # 如果是在腾讯电子签平台签署, 则对应的主体的名字个数如下
13452
+ # **企业**: ESS@企业名称@编码
13453
+ # **个人**: ESS@个人姓名@证件号@808854
13454
+
13455
+ # 如果在其他平台签署的, 主体的名字参考其他平台的说明
13456
+ # @type SignerName: String
13457
+
13458
+ attr_accessor :CertNotBefore, :CertNotAfter, :CertSn, :SignAlgorithm, :SignTime, :SignType, :SignerName
13459
+
13460
+ def initialize(certnotbefore=nil, certnotafter=nil, certsn=nil, signalgorithm=nil, signtime=nil, signtype=nil, signername=nil)
13461
+ @CertNotBefore = certnotbefore
13462
+ @CertNotAfter = certnotafter
13463
+ @CertSn = certsn
13464
+ @SignAlgorithm = signalgorithm
13465
+ @SignTime = signtime
13466
+ @SignType = signtype
13467
+ @SignerName = signername
13468
+ end
13469
+
13470
+ def deserialize(params)
13471
+ @CertNotBefore = params['CertNotBefore']
13472
+ @CertNotAfter = params['CertNotAfter']
13473
+ @CertSn = params['CertSn']
13474
+ @SignAlgorithm = params['SignAlgorithm']
13475
+ @SignTime = params['SignTime']
13476
+ @SignType = params['SignType']
13477
+ @SignerName = params['SignerName']
13478
+ end
13479
+ end
13480
+
13242
13481
  # VerifyPdf请求参数结构体
13243
13482
  class VerifyPdfRequest < TencentCloud::Common::AbstractModel
13244
13483
  # @param FlowId: 合同流程ID,为32位字符串。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ess
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.996
4
+ version: 3.0.998
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-11 00:00:00.000000000 Z
11
+ date: 2025-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common