tencentcloud-sdk-essbasic 1.0.302 → 1.0.303
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210526/client.rb +48 -0
- data/lib/v20210526/models.rb +151 -0
- 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: a387bece8fd0a7fb5dea96756ee196c95568aa2d
|
4
|
+
data.tar.gz: c51ccda336623ffb84c1e5a1f2154e3058ff5feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3d8c3672e462968361eb4c28cb8afeb9326c1c00217ab686c6d85661ec3965a109dba9f7f5535f3c0e401f15c2727a2011ed6816f2a70b3eba978ac5f6ac190
|
7
|
+
data.tar.gz: 037a89da195f310b1ef2056e54089fe372b101f92af191e5aef9572ce11c3ddf4b0c36187c3c2adf03c775c7234f95d7f53c2d0a4b333fddf45c8181ef082b58
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.303
|
data/lib/v20210526/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 接口(ChannelCreateFlowByFiles)用于渠道版通过文件创建流程。此接口不可直接使用,需要运营申请
|
33
|
+
|
34
|
+
# @param request: Request instance for ChannelCreateFlowByFiles.
|
35
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateFlowByFilesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::ChannelCreateFlowByFilesResponse`
|
37
|
+
def ChannelCreateFlowByFiles(request)
|
38
|
+
body = send_request('ChannelCreateFlowByFiles', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ChannelCreateFlowByFilesResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 此接口(CreateConsoleLoginUrl)用于创建电子签控制台登录链接。若企业未激活,调用同步企业信息、同步经办人信息
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateConsoleLoginUrl.
|
@@ -77,6 +101,30 @@ module TencentCloud
|
|
77
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
102
|
end
|
79
103
|
|
104
|
+
# 渠道通过图片为子客代创建印章,图片最大5m;此接口不可直接使用,需要运营申请
|
105
|
+
|
106
|
+
# @param request: Request instance for CreateSealByImage.
|
107
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::CreateSealByImageRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::CreateSealByImageResponse`
|
109
|
+
def CreateSealByImage(request)
|
110
|
+
body = send_request('CreateSealByImage', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CreateSealByImageResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
80
128
|
# 创建参与者签署短链
|
81
129
|
|
82
130
|
# @param request: Request instance for CreateSignUrls.
|
data/lib/v20210526/models.rb
CHANGED
@@ -88,6 +88,103 @@ module TencentCloud
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
# ChannelCreateFlowByFiles请求参数结构体
|
92
|
+
class ChannelCreateFlowByFilesRequest < TencentCloud::Common::AbstractModel
|
93
|
+
# @param Agent: 渠道应用相关信息
|
94
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
95
|
+
# @param Operator: 操作者的信息
|
96
|
+
# @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
|
97
|
+
# @param FileIds: 签署文件资源Id列表,目前仅支持单个文件
|
98
|
+
# @type FileIds: Array
|
99
|
+
# @param FlowName: 流程名称,长度不超过200个字符
|
100
|
+
# @type FlowName: String
|
101
|
+
# @param Deadline: 流程截止时间,十位数时间戳,最大值为33162419560,即3020年
|
102
|
+
# @type Deadline: Integer
|
103
|
+
# @param FlowDescription: 流程的描述,长度不超过1000个字符
|
104
|
+
# @type FlowDescription: String
|
105
|
+
# @param FlowType: 流程的类型,长度不超过255个字符
|
106
|
+
# @type FlowType: String
|
107
|
+
# @param CallbackUrl: 流程回调地址,长度不超过255个字符
|
108
|
+
# @type CallbackUrl: String
|
109
|
+
# @param FlowApprovers: 流程签约方列表,最多不超过5个参与方
|
110
|
+
# @type FlowApprovers: Array
|
111
|
+
# @param Unordered: 合同签署顺序类型(无序签,顺序签),默认为false,即有序签署
|
112
|
+
# @type Unordered: Boolean
|
113
|
+
# @param Components: 签署文件中的控件,如:填写控件等
|
114
|
+
# @type Components: Array
|
115
|
+
|
116
|
+
attr_accessor :Agent, :Operator, :FileIds, :FlowName, :Deadline, :FlowDescription, :FlowType, :CallbackUrl, :FlowApprovers, :Unordered, :Components
|
117
|
+
|
118
|
+
def initialize(agent=nil, operator=nil, fileids=nil, flowname=nil, deadline=nil, flowdescription=nil, flowtype=nil, callbackurl=nil, flowapprovers=nil, unordered=nil, components=nil)
|
119
|
+
@Agent = agent
|
120
|
+
@Operator = operator
|
121
|
+
@FileIds = fileids
|
122
|
+
@FlowName = flowname
|
123
|
+
@Deadline = deadline
|
124
|
+
@FlowDescription = flowdescription
|
125
|
+
@FlowType = flowtype
|
126
|
+
@CallbackUrl = callbackurl
|
127
|
+
@FlowApprovers = flowapprovers
|
128
|
+
@Unordered = unordered
|
129
|
+
@Components = components
|
130
|
+
end
|
131
|
+
|
132
|
+
def deserialize(params)
|
133
|
+
unless params['Agent'].nil?
|
134
|
+
@Agent = Agent.new
|
135
|
+
@Agent.deserialize(params['Agent'])
|
136
|
+
end
|
137
|
+
unless params['Operator'].nil?
|
138
|
+
@Operator = UserInfo.new
|
139
|
+
@Operator.deserialize(params['Operator'])
|
140
|
+
end
|
141
|
+
@FileIds = params['FileIds']
|
142
|
+
@FlowName = params['FlowName']
|
143
|
+
@Deadline = params['Deadline']
|
144
|
+
@FlowDescription = params['FlowDescription']
|
145
|
+
@FlowType = params['FlowType']
|
146
|
+
@CallbackUrl = params['CallbackUrl']
|
147
|
+
unless params['FlowApprovers'].nil?
|
148
|
+
@FlowApprovers = []
|
149
|
+
params['FlowApprovers'].each do |i|
|
150
|
+
flowapproverinfo_tmp = FlowApproverInfo.new
|
151
|
+
flowapproverinfo_tmp.deserialize(i)
|
152
|
+
@FlowApprovers << flowapproverinfo_tmp
|
153
|
+
end
|
154
|
+
end
|
155
|
+
@Unordered = params['Unordered']
|
156
|
+
unless params['Components'].nil?
|
157
|
+
@Components = []
|
158
|
+
params['Components'].each do |i|
|
159
|
+
component_tmp = Component.new
|
160
|
+
component_tmp.deserialize(i)
|
161
|
+
@Components << component_tmp
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# ChannelCreateFlowByFiles返回参数结构体
|
168
|
+
class ChannelCreateFlowByFilesResponse < TencentCloud::Common::AbstractModel
|
169
|
+
# @param FlowId: 合同流程ID
|
170
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
171
|
+
# @type FlowId: String
|
172
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
173
|
+
# @type RequestId: String
|
174
|
+
|
175
|
+
attr_accessor :FlowId, :RequestId
|
176
|
+
|
177
|
+
def initialize(flowid=nil, requestid=nil)
|
178
|
+
@FlowId = flowid
|
179
|
+
@RequestId = requestid
|
180
|
+
end
|
181
|
+
|
182
|
+
def deserialize(params)
|
183
|
+
@FlowId = params['FlowId']
|
184
|
+
@RequestId = params['RequestId']
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
91
188
|
# 此结构体 (Component) 用于描述控件属性。
|
92
189
|
class Component < TencentCloud::Common::AbstractModel
|
93
190
|
# @param ComponentId: 控件编号
|
@@ -339,6 +436,60 @@ module TencentCloud
|
|
339
436
|
end
|
340
437
|
end
|
341
438
|
|
439
|
+
# CreateSealByImage请求参数结构体
|
440
|
+
class CreateSealByImageRequest < TencentCloud::Common::AbstractModel
|
441
|
+
# @param Agent: 渠道应用相关信息
|
442
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
443
|
+
# @param SealName: 印章名称
|
444
|
+
# @type SealName: String
|
445
|
+
# @param SealImage: 印章图片base64
|
446
|
+
# @type SealImage: String
|
447
|
+
# @param Operator: 操作者的信息
|
448
|
+
# @type Operator: :class:`Tencentcloud::Essbasic.v20210526.models.UserInfo`
|
449
|
+
|
450
|
+
attr_accessor :Agent, :SealName, :SealImage, :Operator
|
451
|
+
|
452
|
+
def initialize(agent=nil, sealname=nil, sealimage=nil, operator=nil)
|
453
|
+
@Agent = agent
|
454
|
+
@SealName = sealname
|
455
|
+
@SealImage = sealimage
|
456
|
+
@Operator = operator
|
457
|
+
end
|
458
|
+
|
459
|
+
def deserialize(params)
|
460
|
+
unless params['Agent'].nil?
|
461
|
+
@Agent = Agent.new
|
462
|
+
@Agent.deserialize(params['Agent'])
|
463
|
+
end
|
464
|
+
@SealName = params['SealName']
|
465
|
+
@SealImage = params['SealImage']
|
466
|
+
unless params['Operator'].nil?
|
467
|
+
@Operator = UserInfo.new
|
468
|
+
@Operator.deserialize(params['Operator'])
|
469
|
+
end
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
473
|
+
# CreateSealByImage返回参数结构体
|
474
|
+
class CreateSealByImageResponse < TencentCloud::Common::AbstractModel
|
475
|
+
# @param SealId: 印章id
|
476
|
+
# @type SealId: String
|
477
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
478
|
+
# @type RequestId: String
|
479
|
+
|
480
|
+
attr_accessor :SealId, :RequestId
|
481
|
+
|
482
|
+
def initialize(sealid=nil, requestid=nil)
|
483
|
+
@SealId = sealid
|
484
|
+
@RequestId = requestid
|
485
|
+
end
|
486
|
+
|
487
|
+
def deserialize(params)
|
488
|
+
@SealId = params['SealId']
|
489
|
+
@RequestId = params['RequestId']
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
342
493
|
# CreateSignUrls请求参数结构体
|
343
494
|
class CreateSignUrlsRequest < TencentCloud::Common::AbstractModel
|
344
495
|
# @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.303
|
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-04-
|
11
|
+
date: 2022-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|