tencentcloud-sdk-ess 3.0.995 → 3.0.997
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201111/client.rb +76 -0
- data/lib/v20201111/models.rb +254 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1afd589e37ad10b9c6a6b6ebe12386c0bdd2852b
|
4
|
+
data.tar.gz: f00ce4d0cd77207e867e45c70148af29a70a3650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 566055f6f59a17d9ad5ac26c5d6cbf7e5306be9c296ef422799333bbfa5f2cff923064e8d316be0958f5cc3daefaa7c9658af8d1eaa2671b01796331d0c581da
|
7
|
+
data.tar.gz: 787c9b25cde95f127bddc2dba9633f822727f8337bbb5f78f2dd34c01c15293b7999ee522274a4360b799bba54a397f2b088a3cb35ef0d3290920d4d759947aa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.997
|
data/lib/v20201111/client.rb
CHANGED
@@ -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
|
|
data/lib/v20201111/models.rb
CHANGED
@@ -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
|
@@ -8216,22 +8340,16 @@ module TencentCloud
|
|
8216
8340
|
# DescribeOrganizationGroupOrganizations返回参数结构体
|
8217
8341
|
class DescribeOrganizationGroupOrganizationsResponse < TencentCloud::Common::AbstractModel
|
8218
8342
|
# @param Total: 符合查询条件的资源实例总数量。
|
8219
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8220
8343
|
# @type Total: Integer
|
8221
8344
|
# @param JoinedTotal: 已授权待激活的子企业总数量
|
8222
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8223
8345
|
# @type JoinedTotal: Integer
|
8224
8346
|
# @param ActivedTotal: 已加入的企业数量(废弃,请使用ActivatedTotal)
|
8225
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8226
8347
|
# @type ActivedTotal: Integer
|
8227
8348
|
# @param ExportUrl: 如果入参Export为 true 时使用,表示导出Excel的url
|
8228
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8229
8349
|
# @type ExportUrl: String
|
8230
8350
|
# @param List: 成员企业信息列表
|
8231
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8232
8351
|
# @type List: Array
|
8233
8352
|
# @param ActivatedTotal: 已加入的子企业总数量
|
8234
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8235
8353
|
# @type ActivatedTotal: Integer
|
8236
8354
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8237
8355
|
# @type RequestId: String
|
@@ -13245,6 +13363,121 @@ module TencentCloud
|
|
13245
13363
|
end
|
13246
13364
|
end
|
13247
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
|
+
|
13248
13481
|
# VerifyPdf请求参数结构体
|
13249
13482
|
class VerifyPdfRequest < TencentCloud::Common::AbstractModel
|
13250
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.
|
4
|
+
version: 3.0.997
|
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
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|