tencentcloud-sdk-ess 3.0.414 → 3.0.415
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 +24 -0
- data/lib/v20201111/models.rb +129 -10
- 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: 744e5c5f67e5335b0448f5ecbfa0cd53d4be4eec
|
4
|
+
data.tar.gz: 0c4af210312db9539a833e0ae1c8d4d6f50a1567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c7f20747c779b43319b2b6abd8f0b1382cded48f74d429d776e08055776c2a6ac171f88931510adbcf1874316a92e102c55e53fda07d251086761cbf089efbc
|
7
|
+
data.tar.gz: f4db789edf6624cd45f330f3dda8f8b0a64aa9c60a314753990313b2943c45e4a11492512f40f7c789d100b2a8a72f626dd226e3dd564a7e4abd59a46e015258
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.415
|
data/lib/v20201111/client.rb
CHANGED
@@ -549,6 +549,30 @@ module TencentCloud
|
|
549
549
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
550
550
|
end
|
551
551
|
|
552
|
+
# 验证合同文件
|
553
|
+
|
554
|
+
# @param request: Request instance for VerifyPdf.
|
555
|
+
# @type request: :class:`Tencentcloud::ess::V20201111::VerifyPdfRequest`
|
556
|
+
# @rtype: :class:`Tencentcloud::ess::V20201111::VerifyPdfResponse`
|
557
|
+
def VerifyPdf(request)
|
558
|
+
body = send_request('VerifyPdf', request.serialize)
|
559
|
+
response = JSON.parse(body)
|
560
|
+
if response['Response'].key?('Error') == false
|
561
|
+
model = VerifyPdfResponse.new
|
562
|
+
model.deserialize(response['Response'])
|
563
|
+
model
|
564
|
+
else
|
565
|
+
code = response['Response']['Error']['Code']
|
566
|
+
message = response['Response']['Error']['Message']
|
567
|
+
reqid = response['Response']['RequestId']
|
568
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
569
|
+
end
|
570
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
571
|
+
raise e
|
572
|
+
rescue StandardError => e
|
573
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
574
|
+
end
|
575
|
+
|
552
576
|
|
553
577
|
end
|
554
578
|
end
|
data/lib/v20201111/models.rb
CHANGED
@@ -832,8 +832,8 @@ module TencentCloud
|
|
832
832
|
# @type FlowType: String
|
833
833
|
# @param ClientToken: 客户端Token,保持接口幂等性,最大长度64个字符
|
834
834
|
# @type ClientToken: String
|
835
|
-
# @param
|
836
|
-
# @type
|
835
|
+
# @param RelatedFlowId: 暂未开放
|
836
|
+
# @type RelatedFlowId: String
|
837
837
|
# @param DeadLine: 签署流程的签署截止时间。
|
838
838
|
# 值为unix时间戳,精确到秒,不传默认为当前时间一年后
|
839
839
|
# @type DeadLine: Integer
|
@@ -853,27 +853,27 @@ module TencentCloud
|
|
853
853
|
|
854
854
|
# 注:企业可以通过此功能与企业内部的审批流程进行关联,支持手动、静默签署合同。
|
855
855
|
# @type NeedSignReview: Boolean
|
856
|
-
# @param
|
857
|
-
# @type
|
856
|
+
# @param CallbackUrl: 暂未开放
|
857
|
+
# @type CallbackUrl: String
|
858
858
|
# @param Agent: 应用相关信息
|
859
859
|
# @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
|
860
860
|
|
861
|
-
attr_accessor :Operator, :FlowName, :Approvers, :FlowType, :ClientToken, :
|
861
|
+
attr_accessor :Operator, :FlowName, :Approvers, :FlowType, :ClientToken, :RelatedFlowId, :DeadLine, :UserData, :FlowDescription, :Unordered, :CustomShowMap, :NeedSignReview, :CallbackUrl, :Agent
|
862
862
|
|
863
|
-
def initialize(operator=nil, flowname=nil, approvers=nil, flowtype=nil, clienttoken=nil,
|
863
|
+
def initialize(operator=nil, flowname=nil, approvers=nil, flowtype=nil, clienttoken=nil, relatedflowid=nil, deadline=nil, userdata=nil, flowdescription=nil, unordered=nil, customshowmap=nil, needsignreview=nil, callbackurl=nil, agent=nil)
|
864
864
|
@Operator = operator
|
865
865
|
@FlowName = flowname
|
866
866
|
@Approvers = approvers
|
867
867
|
@FlowType = flowtype
|
868
868
|
@ClientToken = clienttoken
|
869
|
-
@
|
869
|
+
@RelatedFlowId = relatedflowid
|
870
870
|
@DeadLine = deadline
|
871
871
|
@UserData = userdata
|
872
872
|
@FlowDescription = flowdescription
|
873
873
|
@Unordered = unordered
|
874
874
|
@CustomShowMap = customshowmap
|
875
875
|
@NeedSignReview = needsignreview
|
876
|
-
@
|
876
|
+
@CallbackUrl = callbackurl
|
877
877
|
@Agent = agent
|
878
878
|
end
|
879
879
|
|
@@ -893,14 +893,14 @@ module TencentCloud
|
|
893
893
|
end
|
894
894
|
@FlowType = params['FlowType']
|
895
895
|
@ClientToken = params['ClientToken']
|
896
|
-
@
|
896
|
+
@RelatedFlowId = params['RelatedFlowId']
|
897
897
|
@DeadLine = params['DeadLine']
|
898
898
|
@UserData = params['UserData']
|
899
899
|
@FlowDescription = params['FlowDescription']
|
900
900
|
@Unordered = params['Unordered']
|
901
901
|
@CustomShowMap = params['CustomShowMap']
|
902
902
|
@NeedSignReview = params['NeedSignReview']
|
903
|
-
@
|
903
|
+
@CallbackUrl = params['CallbackUrl']
|
904
904
|
unless params['Agent'].nil?
|
905
905
|
@Agent = Agent.new
|
906
906
|
@Agent.deserialize(params['Agent'])
|
@@ -1996,6 +1996,70 @@ module TencentCloud
|
|
1996
1996
|
end
|
1997
1997
|
end
|
1998
1998
|
|
1999
|
+
# 合同文件验签单个结果结构体
|
2000
|
+
class PdfVerifyResult < TencentCloud::Common::AbstractModel
|
2001
|
+
# @param VerifyResult: 验签结果
|
2002
|
+
# @type VerifyResult: Integer
|
2003
|
+
# @param SignPlatform: 签署平台
|
2004
|
+
# @type SignPlatform: String
|
2005
|
+
# @param SignerName: 签署人名称
|
2006
|
+
# @type SignerName: String
|
2007
|
+
# @param SignTime: 签署时间
|
2008
|
+
# @type SignTime: Integer
|
2009
|
+
# @param SignAlgorithm: 签名算法
|
2010
|
+
# @type SignAlgorithm: String
|
2011
|
+
# @param CertSn: 签名证书序列号
|
2012
|
+
# @type CertSn: String
|
2013
|
+
# @param CertNotBefore: 证书起始时间
|
2014
|
+
# @type CertNotBefore: Integer
|
2015
|
+
# @param CertNotAfter: 证书过期时间
|
2016
|
+
# @type CertNotAfter: Integer
|
2017
|
+
# @param ComponentPosX: 签名域横坐标
|
2018
|
+
# @type ComponentPosX: Float
|
2019
|
+
# @param ComponentPosY: 签名域纵坐标
|
2020
|
+
# @type ComponentPosY: Float
|
2021
|
+
# @param ComponentWidth: 签名域宽度
|
2022
|
+
# @type ComponentWidth: Float
|
2023
|
+
# @param ComponentHeight: 签名域高度
|
2024
|
+
# @type ComponentHeight: Float
|
2025
|
+
# @param ComponentPage: 签名域所在页码
|
2026
|
+
# @type ComponentPage: Integer
|
2027
|
+
|
2028
|
+
attr_accessor :VerifyResult, :SignPlatform, :SignerName, :SignTime, :SignAlgorithm, :CertSn, :CertNotBefore, :CertNotAfter, :ComponentPosX, :ComponentPosY, :ComponentWidth, :ComponentHeight, :ComponentPage
|
2029
|
+
|
2030
|
+
def initialize(verifyresult=nil, signplatform=nil, signername=nil, signtime=nil, signalgorithm=nil, certsn=nil, certnotbefore=nil, certnotafter=nil, componentposx=nil, componentposy=nil, componentwidth=nil, componentheight=nil, componentpage=nil)
|
2031
|
+
@VerifyResult = verifyresult
|
2032
|
+
@SignPlatform = signplatform
|
2033
|
+
@SignerName = signername
|
2034
|
+
@SignTime = signtime
|
2035
|
+
@SignAlgorithm = signalgorithm
|
2036
|
+
@CertSn = certsn
|
2037
|
+
@CertNotBefore = certnotbefore
|
2038
|
+
@CertNotAfter = certnotafter
|
2039
|
+
@ComponentPosX = componentposx
|
2040
|
+
@ComponentPosY = componentposy
|
2041
|
+
@ComponentWidth = componentwidth
|
2042
|
+
@ComponentHeight = componentheight
|
2043
|
+
@ComponentPage = componentpage
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
def deserialize(params)
|
2047
|
+
@VerifyResult = params['VerifyResult']
|
2048
|
+
@SignPlatform = params['SignPlatform']
|
2049
|
+
@SignerName = params['SignerName']
|
2050
|
+
@SignTime = params['SignTime']
|
2051
|
+
@SignAlgorithm = params['SignAlgorithm']
|
2052
|
+
@CertSn = params['CertSn']
|
2053
|
+
@CertNotBefore = params['CertNotBefore']
|
2054
|
+
@CertNotAfter = params['CertNotAfter']
|
2055
|
+
@ComponentPosX = params['ComponentPosX']
|
2056
|
+
@ComponentPosY = params['ComponentPosY']
|
2057
|
+
@ComponentWidth = params['ComponentWidth']
|
2058
|
+
@ComponentHeight = params['ComponentHeight']
|
2059
|
+
@ComponentPage = params['ComponentPage']
|
2060
|
+
end
|
2061
|
+
end
|
2062
|
+
|
1999
2063
|
# 签署参与者信息
|
2000
2064
|
class Recipient < TencentCloud::Common::AbstractModel
|
2001
2065
|
# @param RecipientId: 签署参与者ID
|
@@ -2413,6 +2477,61 @@ module TencentCloud
|
|
2413
2477
|
end
|
2414
2478
|
end
|
2415
2479
|
|
2480
|
+
# VerifyPdf请求参数结构体
|
2481
|
+
class VerifyPdfRequest < TencentCloud::Common::AbstractModel
|
2482
|
+
# @param FlowId: 合同Id,流程Id
|
2483
|
+
# @type FlowId: String
|
2484
|
+
# @param Operator: 调用方用户信息,userId 必填
|
2485
|
+
# @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
|
2486
|
+
|
2487
|
+
attr_accessor :FlowId, :Operator
|
2488
|
+
|
2489
|
+
def initialize(flowid=nil, operator=nil)
|
2490
|
+
@FlowId = flowid
|
2491
|
+
@Operator = operator
|
2492
|
+
end
|
2493
|
+
|
2494
|
+
def deserialize(params)
|
2495
|
+
@FlowId = params['FlowId']
|
2496
|
+
unless params['Operator'].nil?
|
2497
|
+
@Operator = UserInfo.new
|
2498
|
+
@Operator.deserialize(params['Operator'])
|
2499
|
+
end
|
2500
|
+
end
|
2501
|
+
end
|
2502
|
+
|
2503
|
+
# VerifyPdf返回参数结构体
|
2504
|
+
class VerifyPdfResponse < TencentCloud::Common::AbstractModel
|
2505
|
+
# @param VerifyResult: 验签结果,1-文件未被篡改,全部签名在腾讯电子签完成; 2-文件未被篡改,部分签名在腾讯电子签完成;3-文件被篡改;4-异常:文件内没有签名域;5-异常:文件签名格式错误
|
2506
|
+
# @type VerifyResult: Integer
|
2507
|
+
# @param PdfVerifyResults: 验签结果详情,内部状态1-验签成功,在电子签签署;2-验签成功,在其他平台签署;3-验签失败;4-pdf文件没有签名域
|
2508
|
+
# ;5-文件签名格式错误
|
2509
|
+
# @type PdfVerifyResults: Array
|
2510
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2511
|
+
# @type RequestId: String
|
2512
|
+
|
2513
|
+
attr_accessor :VerifyResult, :PdfVerifyResults, :RequestId
|
2514
|
+
|
2515
|
+
def initialize(verifyresult=nil, pdfverifyresults=nil, requestid=nil)
|
2516
|
+
@VerifyResult = verifyresult
|
2517
|
+
@PdfVerifyResults = pdfverifyresults
|
2518
|
+
@RequestId = requestid
|
2519
|
+
end
|
2520
|
+
|
2521
|
+
def deserialize(params)
|
2522
|
+
@VerifyResult = params['VerifyResult']
|
2523
|
+
unless params['PdfVerifyResults'].nil?
|
2524
|
+
@PdfVerifyResults = []
|
2525
|
+
params['PdfVerifyResults'].each do |i|
|
2526
|
+
pdfverifyresult_tmp = PdfVerifyResult.new
|
2527
|
+
pdfverifyresult_tmp.deserialize(i)
|
2528
|
+
@PdfVerifyResults << pdfverifyresult_tmp
|
2529
|
+
end
|
2530
|
+
end
|
2531
|
+
@RequestId = params['RequestId']
|
2532
|
+
end
|
2533
|
+
end
|
2534
|
+
|
2416
2535
|
end
|
2417
2536
|
end
|
2418
2537
|
end
|
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.415
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|