tencentcloud-sdk-essbasic 1.0.227 → 1.0.228
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/v20210526/client.rb +61 -0
- data/lib/v20210526/models.rb +199 -2
- 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: 1047742de950d4dc197d0c5caa3e21c6d7048ea3
|
4
|
+
data.tar.gz: 2b04e4534eaa8bbba11e9a5d2466719bbe108e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa31010753ae118c7994494128b68489fb12e410e367d9c3564d8fcd16fe5f3a6f99e8f94ab85371bef45517168c736c3b1adeb3a5abdc561c526a426f781ee
|
7
|
+
data.tar.gz: 744c192dd8299e3412e354a996595a78fb5ac1f2dc03c731fe7657ea23788ffaaf7608a80cb40b4c3d7c466d59498245b3c33bf5f53648d21432c15bc3889a9a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.228
|
data/lib/v20210526/client.rb
CHANGED
@@ -174,6 +174,67 @@ module TencentCloud
|
|
174
174
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
175
175
|
end
|
176
176
|
|
177
|
+
# 此接口(GetDownloadFlowUrl)用于创建电子签批量下载确认页面链接,支持客户合同(流程)归类打包下载。
|
178
|
+
|
179
|
+
# @param request: Request instance for GetDownloadFlowUrl.
|
180
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::GetDownloadFlowUrlRequest`
|
181
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::GetDownloadFlowUrlResponse`
|
182
|
+
def GetDownloadFlowUrl(request)
|
183
|
+
body = send_request('GetDownloadFlowUrl', request.serialize)
|
184
|
+
response = JSON.parse(body)
|
185
|
+
if response['Response'].key?('Error') == false
|
186
|
+
model = GetDownloadFlowUrlResponse.new
|
187
|
+
model.deserialize(response['Response'])
|
188
|
+
model
|
189
|
+
else
|
190
|
+
code = response['Response']['Error']['Code']
|
191
|
+
message = response['Response']['Error']['Message']
|
192
|
+
reqid = response['Response']['RequestId']
|
193
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
194
|
+
end
|
195
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
196
|
+
raise e
|
197
|
+
rescue StandardError => e
|
198
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
199
|
+
end
|
200
|
+
|
201
|
+
# 此接口(OperateChannelTemplate)用于渠道侧将模板库中的模板对合作企业进行查询和设置, 其中包括可见性的修改以及对合作企业的指定.
|
202
|
+
# 1、同步标识=select时:
|
203
|
+
# 输入规则:“可见标识”、“指定合作企业列表”为空。
|
204
|
+
# 处理规则:返回指定模版的可见标识、指定合作企业列表。
|
205
|
+
# 2、同步标识=update时:
|
206
|
+
# 输入规则:“可见标识”、“指定合作企业列表”非必填输入。
|
207
|
+
# 处理规则:
|
208
|
+
# 若“可见标识”=空,不做处理,返回当前的可见标识。
|
209
|
+
# 若“可见标识”=所有合作企业,不取“指定合作企业列表”的值处理。
|
210
|
+
# 若“可见标识”=指定合作企业,取“指定合作企业列表”的值进行更新/插入。
|
211
|
+
# 3、同步标识=delete时:
|
212
|
+
# 输入规则:“可见标识”、“指定合作企业列表”非必填输入。
|
213
|
+
# 处理规则:
|
214
|
+
# 仅取“指定合作企业列表”的值进行删除处理,为空时不做处。
|
215
|
+
|
216
|
+
# @param request: Request instance for OperateChannelTemplate.
|
217
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::OperateChannelTemplateRequest`
|
218
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::OperateChannelTemplateResponse`
|
219
|
+
def OperateChannelTemplate(request)
|
220
|
+
body = send_request('OperateChannelTemplate', request.serialize)
|
221
|
+
response = JSON.parse(body)
|
222
|
+
if response['Response'].key?('Error') == false
|
223
|
+
model = OperateChannelTemplateResponse.new
|
224
|
+
model.deserialize(response['Response'])
|
225
|
+
model
|
226
|
+
else
|
227
|
+
code = response['Response']['Error']['Code']
|
228
|
+
message = response['Response']['Error']['Message']
|
229
|
+
reqid = response['Response']['RequestId']
|
230
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
231
|
+
end
|
232
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
233
|
+
raise e
|
234
|
+
rescue StandardError => e
|
235
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
236
|
+
end
|
237
|
+
|
177
238
|
# 该接口 (PrepareFlows) 用于创建待发起文件
|
178
239
|
|
179
240
|
# @param request: Request instance for PrepareFlows.
|
data/lib/v20210526/models.rb
CHANGED
@@ -52,6 +52,26 @@ module TencentCloud
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
# 授权出错信息
|
56
|
+
class AuthFailMessage < TencentCloud::Common::AbstractModel
|
57
|
+
# @param ProxyOrganizationOpenId: 合作企业Id
|
58
|
+
# @type ProxyOrganizationOpenId: String
|
59
|
+
# @param Message: 出错信息
|
60
|
+
# @type Message: String
|
61
|
+
|
62
|
+
attr_accessor :ProxyOrganizationOpenId, :Message
|
63
|
+
|
64
|
+
def initialize(proxyorganizationopenid=nil, message=nil)
|
65
|
+
@ProxyOrganizationOpenId = proxyorganizationopenid
|
66
|
+
@Message = message
|
67
|
+
end
|
68
|
+
|
69
|
+
def deserialize(params)
|
70
|
+
@ProxyOrganizationOpenId = params['ProxyOrganizationOpenId']
|
71
|
+
@Message = params['Message']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
55
75
|
# 此结构体 (Component) 用于描述控件属性。
|
56
76
|
class Component < TencentCloud::Common::AbstractModel
|
57
77
|
# @param ComponentId: 控件编号
|
@@ -564,6 +584,26 @@ module TencentCloud
|
|
564
584
|
end
|
565
585
|
end
|
566
586
|
|
587
|
+
# 合同(流程)下载信息
|
588
|
+
class DownloadFlowInfo < TencentCloud::Common::AbstractModel
|
589
|
+
# @param FileName: 文件夹名称
|
590
|
+
# @type FileName: String
|
591
|
+
# @param FlowIdList: 合同(流程)的标识数组
|
592
|
+
# @type FlowIdList: Array
|
593
|
+
|
594
|
+
attr_accessor :FileName, :FlowIdList
|
595
|
+
|
596
|
+
def initialize(filename=nil, flowidlist=nil)
|
597
|
+
@FileName = filename
|
598
|
+
@FlowIdList = flowidlist
|
599
|
+
end
|
600
|
+
|
601
|
+
def deserialize(params)
|
602
|
+
@FileName = params['FileName']
|
603
|
+
@FlowIdList = params['FlowIdList']
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
567
607
|
# 创建流程签署人入参
|
568
608
|
class FlowApproverInfo < TencentCloud::Common::AbstractModel
|
569
609
|
# @param Name: 签署人姓名
|
@@ -582,10 +622,12 @@ module TencentCloud
|
|
582
622
|
# @type ApproverType: String
|
583
623
|
# @param OpenId: 用户侧第三方id
|
584
624
|
# @type OpenId: String
|
625
|
+
# @param PreReadTime: 合同的强制预览时间:3~300s,未指定则按合同页数计算
|
626
|
+
# @type PreReadTime: Integer
|
585
627
|
|
586
|
-
attr_accessor :Name, :Mobile, :IdCardNumber, :JumpUrl, :Deadline, :CallbackUrl, :ApproverType, :OpenId
|
628
|
+
attr_accessor :Name, :Mobile, :IdCardNumber, :JumpUrl, :Deadline, :CallbackUrl, :ApproverType, :OpenId, :PreReadTime
|
587
629
|
|
588
|
-
def initialize(name=nil, mobile=nil, idcardnumber=nil, jumpurl=nil, deadline=nil, callbackurl=nil, approvertype=nil, openid=nil)
|
630
|
+
def initialize(name=nil, mobile=nil, idcardnumber=nil, jumpurl=nil, deadline=nil, callbackurl=nil, approvertype=nil, openid=nil, prereadtime=nil)
|
589
631
|
@Name = name
|
590
632
|
@Mobile = mobile
|
591
633
|
@IdCardNumber = idcardnumber
|
@@ -594,6 +636,7 @@ module TencentCloud
|
|
594
636
|
@CallbackUrl = callbackurl
|
595
637
|
@ApproverType = approvertype
|
596
638
|
@OpenId = openid
|
639
|
+
@PreReadTime = prereadtime
|
597
640
|
end
|
598
641
|
|
599
642
|
def deserialize(params)
|
@@ -605,6 +648,7 @@ module TencentCloud
|
|
605
648
|
@CallbackUrl = params['CallbackUrl']
|
606
649
|
@ApproverType = params['ApproverType']
|
607
650
|
@OpenId = params['OpenId']
|
651
|
+
@PreReadTime = params['PreReadTime']
|
608
652
|
end
|
609
653
|
end
|
610
654
|
|
@@ -729,6 +773,159 @@ module TencentCloud
|
|
729
773
|
end
|
730
774
|
end
|
731
775
|
|
776
|
+
# GetDownloadFlowUrl请求参数结构体
|
777
|
+
class GetDownloadFlowUrlRequest < TencentCloud::Common::AbstractModel
|
778
|
+
# @param Agent: 应用信息
|
779
|
+
# 此接口Agent.ProxyOrganizationOpenId 和 Agent. ProxyOperator.OpenId 必填
|
780
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
781
|
+
# @param Operator: 操作者的信息
|
782
|
+
# @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
|
783
|
+
# @param DownLoadFlows: 文件夹数组,合同(流程)总数不能超过50个,一个文件夹下,不能超过20个合同(流程),
|
784
|
+
# @type DownLoadFlows: Array
|
785
|
+
|
786
|
+
attr_accessor :Agent, :Operator, :DownLoadFlows
|
787
|
+
|
788
|
+
def initialize(agent=nil, operator=nil, downloadflows=nil)
|
789
|
+
@Agent = agent
|
790
|
+
@Operator = operator
|
791
|
+
@DownLoadFlows = downloadflows
|
792
|
+
end
|
793
|
+
|
794
|
+
def deserialize(params)
|
795
|
+
unless params['Agent'].nil?
|
796
|
+
@Agent = Agent.new
|
797
|
+
@Agent.deserialize(params['Agent'])
|
798
|
+
end
|
799
|
+
unless params['Operator'].nil?
|
800
|
+
@Operator = UserInfo.new
|
801
|
+
@Operator.deserialize(params['Operator'])
|
802
|
+
end
|
803
|
+
unless params['DownLoadFlows'].nil?
|
804
|
+
@DownLoadFlows = []
|
805
|
+
params['DownLoadFlows'].each do |i|
|
806
|
+
downloadflowinfo_tmp = DownloadFlowInfo.new
|
807
|
+
downloadflowinfo_tmp.deserialize(i)
|
808
|
+
@DownLoadFlows << downloadflowinfo_tmp
|
809
|
+
end
|
810
|
+
end
|
811
|
+
end
|
812
|
+
end
|
813
|
+
|
814
|
+
# GetDownloadFlowUrl返回参数结构体
|
815
|
+
class GetDownloadFlowUrlResponse < TencentCloud::Common::AbstractModel
|
816
|
+
# @param DownLoadUrl: 进入合同(流程)下载确认页面链接
|
817
|
+
# @type DownLoadUrl: String
|
818
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
819
|
+
# @type RequestId: String
|
820
|
+
|
821
|
+
attr_accessor :DownLoadUrl, :RequestId
|
822
|
+
|
823
|
+
def initialize(downloadurl=nil, requestid=nil)
|
824
|
+
@DownLoadUrl = downloadurl
|
825
|
+
@RequestId = requestid
|
826
|
+
end
|
827
|
+
|
828
|
+
def deserialize(params)
|
829
|
+
@DownLoadUrl = params['DownLoadUrl']
|
830
|
+
@RequestId = params['RequestId']
|
831
|
+
end
|
832
|
+
end
|
833
|
+
|
834
|
+
# OperateChannelTemplate请求参数结构体
|
835
|
+
class OperateChannelTemplateRequest < TencentCloud::Common::AbstractModel
|
836
|
+
# @param Agent: 应用信息
|
837
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
838
|
+
# @param TemplateId: 渠道方模板库模板唯一标识
|
839
|
+
# @type TemplateId: String
|
840
|
+
# @param OperateType: 操作类型,查询:"SELECT",删除:"DELETE",更新:"UPDATE"
|
841
|
+
# @type OperateType: String
|
842
|
+
# @param Operator: 操作者的信息
|
843
|
+
# @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
|
844
|
+
# @param AuthTag: 模板可见性, 全部可见-"all", 部分可见-"part"
|
845
|
+
# @type AuthTag: String
|
846
|
+
# @param ProxyOrganizationOpenIds: 合作企业方第三方机构唯一标识数据
|
847
|
+
# @type ProxyOrganizationOpenIds: String
|
848
|
+
|
849
|
+
attr_accessor :Agent, :TemplateId, :OperateType, :Operator, :AuthTag, :ProxyOrganizationOpenIds
|
850
|
+
|
851
|
+
def initialize(agent=nil, templateid=nil, operatetype=nil, operator=nil, authtag=nil, proxyorganizationopenids=nil)
|
852
|
+
@Agent = agent
|
853
|
+
@TemplateId = templateid
|
854
|
+
@OperateType = operatetype
|
855
|
+
@Operator = operator
|
856
|
+
@AuthTag = authtag
|
857
|
+
@ProxyOrganizationOpenIds = proxyorganizationopenids
|
858
|
+
end
|
859
|
+
|
860
|
+
def deserialize(params)
|
861
|
+
unless params['Agent'].nil?
|
862
|
+
@Agent = Agent.new
|
863
|
+
@Agent.deserialize(params['Agent'])
|
864
|
+
end
|
865
|
+
@TemplateId = params['TemplateId']
|
866
|
+
@OperateType = params['OperateType']
|
867
|
+
unless params['Operator'].nil?
|
868
|
+
@Operator = UserInfo.new
|
869
|
+
@Operator.deserialize(params['Operator'])
|
870
|
+
end
|
871
|
+
@AuthTag = params['AuthTag']
|
872
|
+
@ProxyOrganizationOpenIds = params['ProxyOrganizationOpenIds']
|
873
|
+
end
|
874
|
+
end
|
875
|
+
|
876
|
+
# OperateChannelTemplate返回参数结构体
|
877
|
+
class OperateChannelTemplateResponse < TencentCloud::Common::AbstractModel
|
878
|
+
# @param AppId: 腾讯电子签颁发给渠道的应用ID
|
879
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
880
|
+
# @type AppId: String
|
881
|
+
# @param TemplateId: 渠道方模板库模板唯一标识
|
882
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
883
|
+
# @type TemplateId: String
|
884
|
+
# @param OperateResult: 全部成功-"all-success",部分成功-"part-success", 全部失败-"fail"失败的会在FailMessageList中展示
|
885
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
886
|
+
# @type OperateResult: String
|
887
|
+
# @param AuthTag: 模板可见性, 全部可见-"all", 部分可见-"part"
|
888
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
889
|
+
# @type AuthTag: String
|
890
|
+
# @param ProxyOrganizationOpenIds: 合作企业方第三方机构唯一标识数据
|
891
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
892
|
+
# @type ProxyOrganizationOpenIds: Array
|
893
|
+
# @param FailMessageList: 操作失败信息数组
|
894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
895
|
+
# @type FailMessageList: Array
|
896
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
897
|
+
# @type RequestId: String
|
898
|
+
|
899
|
+
attr_accessor :AppId, :TemplateId, :OperateResult, :AuthTag, :ProxyOrganizationOpenIds, :FailMessageList, :RequestId
|
900
|
+
|
901
|
+
def initialize(appid=nil, templateid=nil, operateresult=nil, authtag=nil, proxyorganizationopenids=nil, failmessagelist=nil, requestid=nil)
|
902
|
+
@AppId = appid
|
903
|
+
@TemplateId = templateid
|
904
|
+
@OperateResult = operateresult
|
905
|
+
@AuthTag = authtag
|
906
|
+
@ProxyOrganizationOpenIds = proxyorganizationopenids
|
907
|
+
@FailMessageList = failmessagelist
|
908
|
+
@RequestId = requestid
|
909
|
+
end
|
910
|
+
|
911
|
+
def deserialize(params)
|
912
|
+
@AppId = params['AppId']
|
913
|
+
@TemplateId = params['TemplateId']
|
914
|
+
@OperateResult = params['OperateResult']
|
915
|
+
@AuthTag = params['AuthTag']
|
916
|
+
@ProxyOrganizationOpenIds = params['ProxyOrganizationOpenIds']
|
917
|
+
unless params['FailMessageList'].nil?
|
918
|
+
@FailMessageList = []
|
919
|
+
params['FailMessageList'].each do |i|
|
920
|
+
authfailmessage_tmp = AuthFailMessage.new
|
921
|
+
authfailmessage_tmp.deserialize(i)
|
922
|
+
@FailMessageList << authfailmessage_tmp
|
923
|
+
end
|
924
|
+
end
|
925
|
+
@RequestId = params['RequestId']
|
926
|
+
end
|
927
|
+
end
|
928
|
+
|
732
929
|
# PrepareFlows请求参数结构体
|
733
930
|
class PrepareFlowsRequest < TencentCloud::Common::AbstractModel
|
734
931
|
# @param Agent: 渠道应用相关信息
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-essbasic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.228
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|