tencentcloud-sdk-ess 1.0.324 → 1.0.325

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: 5bbddfd3edc1ab46472408e107ed6c478a4a1e52
4
- data.tar.gz: 647e983890fe0747105eb98388b4ed51263c8dbc
3
+ metadata.gz: 563ae42aec8de91040de59c9e12f2cb7b6cafb02
4
+ data.tar.gz: 26d5fcc6dc72a76868bc85fe82e061dc60f4d6df
5
5
  SHA512:
6
- metadata.gz: 7c424f6f2e5fefa400be54cd15e26c08e65b74e0730214150f563ca75faa4f1d82385ae42484d0fbf83a39e606f80fd3349c78704cd997a29e516d27dffdd72c
7
- data.tar.gz: a42c30f0eb445ee50dd541187fb1540c8b9ba8ddfdedba6ad00914c941ca04f99782df7ded89bdc1893f9ce3f93bf5e0a814dc4a6616e5314a02c28d68a391b8
6
+ metadata.gz: f06ecebfda5325b4b13ff624140b24c84d494bc0f73c94e0fa450b60d8f7851a00d6efa6cc3bef36dcdcc7bd5b71b9ae1a638a06778ac5147dafecce523c2af6
7
+ data.tar.gz: 9a03e2d2ad80265f9eb1fe6355e9642071b8655284ea7f9fce96f4aff8ce7dce02402db2372204c4092a4520736b76505494b09cf06000ee671262883f6ecdd0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.324
1
+ 1.0.325
@@ -127,6 +127,11 @@ module TencentCloud
127
127
 
128
128
  # 获取小程序跳转链接
129
129
 
130
+ # 跳转到小程序的实现,参考官方文档(分为<a href="https://developers.weixin.qq.com/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.html">全屏</a>、<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html">半屏</a>两种方式)
131
+
132
+
133
+ # 如您需要自主配置小程序跳转链接,请参考: <a href="https://tcloud-doc.isd.com/document/product/1323/74774">跳转小程序链接配置说明</a>
134
+
130
135
  # @param request: Request instance for CreateSchemeUrl.
131
136
  # @type request: :class:`Tencentcloud::ess::V20201111::CreateSchemeUrlRequest`
132
137
  # @rtype: :class:`Tencentcloud::ess::V20201111::CreateSchemeUrlResponse`
@@ -197,6 +202,30 @@ module TencentCloud
197
202
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
203
  end
199
204
 
205
+ # 二期接口-查询模板
206
+
207
+ # @param request: Request instance for DescribeFlowTemplates.
208
+ # @type request: :class:`Tencentcloud::ess::V20201111::DescribeFlowTemplatesRequest`
209
+ # @rtype: :class:`Tencentcloud::ess::V20201111::DescribeFlowTemplatesResponse`
210
+ def DescribeFlowTemplates(request)
211
+ body = send_request('DescribeFlowTemplates', request.serialize)
212
+ response = JSON.parse(body)
213
+ if response['Response'].key?('Error') == false
214
+ model = DescribeFlowTemplatesResponse.new
215
+ model.deserialize(response['Response'])
216
+ model
217
+ else
218
+ code = response['Response']['Error']['Code']
219
+ message = response['Response']['Error']['Message']
220
+ reqid = response['Response']['RequestId']
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
222
+ end
223
+ rescue TencentCloud::Common::TencentCloudSDKException => e
224
+ raise e
225
+ rescue StandardError => e
226
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
227
+ end
228
+
200
229
  # 通过AuthCode查询用户是否实名
201
230
 
202
231
  # @param request: Request instance for DescribeThirdPartyAuthCode.
@@ -599,7 +599,10 @@ module TencentCloud
599
599
  # @type FlowId: String
600
600
  # @param OrganizationName: 企业名称
601
601
  # @type OrganizationName: String
602
- # @param EndPoint: 链接类型 HTTP:跳转电子签小程序的http_url,APP:第三方APP或小程序跳转电子签小程序,默认为HTTP类型
602
+ # @param EndPoint: 链接类型
603
+ # HTTP:跳转电子签小程序的http_url,
604
+ # APP:第三方APP或小程序跳转电子签小程序的path。
605
+ # 默认为HTTP类型
603
606
  # @type EndPoint: String
604
607
  # @param AutoJumpBack: 是否自动回跳 true:是, false:否。该参数只针对"APP" 类型的签署链接有效
605
608
  # @type AutoJumpBack: Boolean
@@ -811,6 +814,90 @@ module TencentCloud
811
814
  end
812
815
  end
813
816
 
817
+ # DescribeFlowTemplates请求参数结构体
818
+ class DescribeFlowTemplatesRequest < TencentCloud::Common::AbstractModel
819
+ # @param Operator: 操作人信息
820
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
821
+ # @param Offset: 查询偏移位置,默认0
822
+ # @type Offset: Integer
823
+ # @param Limit: 查询个数,默认20,最大100
824
+ # @type Limit: Integer
825
+ # @param Filters: 搜索条件,具体参考Filter结构体。本接口取值:template-id:按照【 **模板唯一标识** 】进行过滤
826
+ # @type Filters: Array
827
+ # @param Agent: 应用相关信息
828
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
829
+ # @param GenerateSource: 暂未开放
830
+ # @type GenerateSource: Integer
831
+ # @param ContentType: 查询内容:0-模版列表及详情(默认),1-仅模版列表
832
+ # @type ContentType: Integer
833
+
834
+ attr_accessor :Operator, :Offset, :Limit, :Filters, :Agent, :GenerateSource, :ContentType
835
+
836
+ def initialize(operator=nil, offset=nil, limit=nil, filters=nil, agent=nil, generatesource=nil, contenttype=nil)
837
+ @Operator = operator
838
+ @Offset = offset
839
+ @Limit = limit
840
+ @Filters = filters
841
+ @Agent = agent
842
+ @GenerateSource = generatesource
843
+ @ContentType = contenttype
844
+ end
845
+
846
+ def deserialize(params)
847
+ unless params['Operator'].nil?
848
+ @Operator = UserInfo.new
849
+ @Operator.deserialize(params['Operator'])
850
+ end
851
+ @Offset = params['Offset']
852
+ @Limit = params['Limit']
853
+ unless params['Filters'].nil?
854
+ @Filters = []
855
+ params['Filters'].each do |i|
856
+ filter_tmp = Filter.new
857
+ filter_tmp.deserialize(i)
858
+ @Filters << filter_tmp
859
+ end
860
+ end
861
+ unless params['Agent'].nil?
862
+ @Agent = Agent.new
863
+ @Agent.deserialize(params['Agent'])
864
+ end
865
+ @GenerateSource = params['GenerateSource']
866
+ @ContentType = params['ContentType']
867
+ end
868
+ end
869
+
870
+ # DescribeFlowTemplates返回参数结构体
871
+ class DescribeFlowTemplatesResponse < TencentCloud::Common::AbstractModel
872
+ # @param Templates: 模板详情列表
873
+ # @type Templates: Array
874
+ # @param TotalCount: 查询到的总个数
875
+ # @type TotalCount: Integer
876
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
877
+ # @type RequestId: String
878
+
879
+ attr_accessor :Templates, :TotalCount, :RequestId
880
+
881
+ def initialize(templates=nil, totalcount=nil, requestid=nil)
882
+ @Templates = templates
883
+ @TotalCount = totalcount
884
+ @RequestId = requestid
885
+ end
886
+
887
+ def deserialize(params)
888
+ unless params['Templates'].nil?
889
+ @Templates = []
890
+ params['Templates'].each do |i|
891
+ templateinfo_tmp = TemplateInfo.new
892
+ templateinfo_tmp.deserialize(i)
893
+ @Templates << templateinfo_tmp
894
+ end
895
+ end
896
+ @TotalCount = params['TotalCount']
897
+ @RequestId = params['RequestId']
898
+ end
899
+ end
900
+
814
901
  # DescribeThirdPartyAuthCode请求参数结构体
815
902
  class DescribeThirdPartyAuthCodeRequest < TencentCloud::Common::AbstractModel
816
903
  # @param AuthCode: AuthCode 值
@@ -847,6 +934,34 @@ module TencentCloud
847
934
  end
848
935
  end
849
936
 
937
+ # 二期接口返回的模板中文件的信息结构
938
+ class FileInfo < TencentCloud::Common::AbstractModel
939
+ # @param FileId: 文件Id
940
+ # @type FileId: String
941
+ # @param FileName: 文件名
942
+ # @type FileName: String
943
+ # @param FileSize: 文件大小,单位为Byte
944
+ # @type FileSize: Integer
945
+ # @param CreatedOn: 文件上传时间,10位时间戳(精确到秒)
946
+ # @type CreatedOn: Integer
947
+
948
+ attr_accessor :FileId, :FileName, :FileSize, :CreatedOn
949
+
950
+ def initialize(fileid=nil, filename=nil, filesize=nil, createdon=nil)
951
+ @FileId = fileid
952
+ @FileName = filename
953
+ @FileSize = filesize
954
+ @CreatedOn = createdon
955
+ end
956
+
957
+ def deserialize(params)
958
+ @FileId = params['FileId']
959
+ @FileName = params['FileName']
960
+ @FileSize = params['FileSize']
961
+ @CreatedOn = params['CreatedOn']
962
+ end
963
+ end
964
+
850
965
  # 下载文件的URL信息
851
966
  class FileUrl < TencentCloud::Common::AbstractModel
852
967
  # @param Url: 下载文件的URL
@@ -868,6 +983,26 @@ module TencentCloud
868
983
  end
869
984
  end
870
985
 
986
+ # 查询过滤条件
987
+ class Filter < TencentCloud::Common::AbstractModel
988
+ # @param Key: 查询过滤条件的Key
989
+ # @type Key: String
990
+ # @param Values: 查询过滤条件的Value列表
991
+ # @type Values: Array
992
+
993
+ attr_accessor :Key, :Values
994
+
995
+ def initialize(key=nil, values=nil)
996
+ @Key = key
997
+ @Values = values
998
+ end
999
+
1000
+ def deserialize(params)
1001
+ @Key = params['Key']
1002
+ @Values = params['Values']
1003
+ end
1004
+ end
1005
+
871
1006
  # 流程信息摘要
872
1007
  class FlowBrief < TencentCloud::Common::AbstractModel
873
1008
  # @param FlowId: 流程的编号
@@ -1014,6 +1149,70 @@ module TencentCloud
1014
1149
  end
1015
1150
  end
1016
1151
 
1152
+ # 签署参与者信息
1153
+ class Recipient < TencentCloud::Common::AbstractModel
1154
+ # @param RecipientId: 签署参与者ID
1155
+ # @type RecipientId: String
1156
+ # @param RecipientType: 参与者类型(ENTERPRISE/INDIVIDUAL)
1157
+ # @type RecipientType: String
1158
+ # @param Description: 描述信息
1159
+ # @type Description: String
1160
+ # @param RoleName: 角色名称
1161
+ # @type RoleName: String
1162
+ # @param RequireValidation: 是否需要验证,默认为false
1163
+ # @type RequireValidation: Boolean
1164
+ # @param RequireSign: 是否需要签署,默认为true
1165
+ # @type RequireSign: Boolean
1166
+ # @param RoutingOrder: 添加序列
1167
+ # @type RoutingOrder: Integer
1168
+ # @param RequireDelivery: 是否需要发送,默认为true
1169
+ # @type RequireDelivery: Boolean
1170
+ # @param Email: 邮箱地址
1171
+ # @type Email: String
1172
+ # @param Mobile: 电话号码
1173
+ # @type Mobile: String
1174
+ # @param UserId: 关联的用户ID
1175
+ # @type UserId: String
1176
+ # @param DeliveryMethod: 发送方式(EMAIL/MOBILE)
1177
+ # @type DeliveryMethod: String
1178
+ # @param RecipientExtra: 附属信息
1179
+ # @type RecipientExtra: String
1180
+
1181
+ attr_accessor :RecipientId, :RecipientType, :Description, :RoleName, :RequireValidation, :RequireSign, :RoutingOrder, :RequireDelivery, :Email, :Mobile, :UserId, :DeliveryMethod, :RecipientExtra
1182
+
1183
+ def initialize(recipientid=nil, recipienttype=nil, description=nil, rolename=nil, requirevalidation=nil, requiresign=nil, routingorder=nil, requiredelivery=nil, email=nil, mobile=nil, userid=nil, deliverymethod=nil, recipientextra=nil)
1184
+ @RecipientId = recipientid
1185
+ @RecipientType = recipienttype
1186
+ @Description = description
1187
+ @RoleName = rolename
1188
+ @RequireValidation = requirevalidation
1189
+ @RequireSign = requiresign
1190
+ @RoutingOrder = routingorder
1191
+ @RequireDelivery = requiredelivery
1192
+ @Email = email
1193
+ @Mobile = mobile
1194
+ @UserId = userid
1195
+ @DeliveryMethod = deliverymethod
1196
+ @RecipientExtra = recipientextra
1197
+ end
1198
+
1199
+ def deserialize(params)
1200
+ @RecipientId = params['RecipientId']
1201
+ @RecipientType = params['RecipientType']
1202
+ @Description = params['Description']
1203
+ @RoleName = params['RoleName']
1204
+ @RequireValidation = params['RequireValidation']
1205
+ @RequireSign = params['RequireSign']
1206
+ @RoutingOrder = params['RoutingOrder']
1207
+ @RequireDelivery = params['RequireDelivery']
1208
+ @Email = params['Email']
1209
+ @Mobile = params['Mobile']
1210
+ @UserId = params['UserId']
1211
+ @DeliveryMethod = params['DeliveryMethod']
1212
+ @RecipientExtra = params['RecipientExtra']
1213
+ end
1214
+ end
1215
+
1017
1216
  # StartFlow请求参数结构体
1018
1217
  class StartFlowRequest < TencentCloud::Common::AbstractModel
1019
1218
  # @param Operator: 用户信息
@@ -1068,6 +1267,105 @@ module TencentCloud
1068
1267
  end
1069
1268
  end
1070
1269
 
1270
+ # 二期接口返回的模板的信息结构
1271
+ class TemplateInfo < TencentCloud::Common::AbstractModel
1272
+ # @param TemplateId: 模板ID
1273
+ # @type TemplateId: String
1274
+ # @param TemplateName: 模板名字
1275
+ # @type TemplateName: String
1276
+ # @param Description: 模板描述信息
1277
+ # @type Description: String
1278
+ # @param DocumentResourceIds: 模板关联的资源IDs
1279
+ # @type DocumentResourceIds: Array
1280
+ # @param FileInfos: 返回的文件信息结构
1281
+ # @type FileInfos: Array
1282
+ # @param AttachmentResourceIds: 附件关联的资源ID是
1283
+ # @type AttachmentResourceIds: Array
1284
+ # @param SignOrder: 签署顺序
1285
+ # @type SignOrder: Array
1286
+ # @param Recipients: 签署参与者的信息
1287
+ # @type Recipients: Array
1288
+ # @param Components: 模板信息结构
1289
+ # @type Components: Array
1290
+ # @param SignComponents: 签署区模板信息结构
1291
+ # @type SignComponents: Array
1292
+ # @param Status: 模板状态(-1:不可用;0:草稿态;1:正式态)
1293
+ # @type Status: Integer
1294
+ # @param Creator: 模板的创建人
1295
+ # @type Creator: String
1296
+ # @param CreatedOn: 模板创建的时间戳(精确到秒)
1297
+ # @type CreatedOn: Integer
1298
+ # @param Promoter: 发起人角色信息
1299
+ # @type Promoter: :class:`Tencentcloud::Ess.v20201111.models.Recipient`
1300
+
1301
+ attr_accessor :TemplateId, :TemplateName, :Description, :DocumentResourceIds, :FileInfos, :AttachmentResourceIds, :SignOrder, :Recipients, :Components, :SignComponents, :Status, :Creator, :CreatedOn, :Promoter
1302
+
1303
+ def initialize(templateid=nil, templatename=nil, description=nil, documentresourceids=nil, fileinfos=nil, attachmentresourceids=nil, signorder=nil, recipients=nil, components=nil, signcomponents=nil, status=nil, creator=nil, createdon=nil, promoter=nil)
1304
+ @TemplateId = templateid
1305
+ @TemplateName = templatename
1306
+ @Description = description
1307
+ @DocumentResourceIds = documentresourceids
1308
+ @FileInfos = fileinfos
1309
+ @AttachmentResourceIds = attachmentresourceids
1310
+ @SignOrder = signorder
1311
+ @Recipients = recipients
1312
+ @Components = components
1313
+ @SignComponents = signcomponents
1314
+ @Status = status
1315
+ @Creator = creator
1316
+ @CreatedOn = createdon
1317
+ @Promoter = promoter
1318
+ end
1319
+
1320
+ def deserialize(params)
1321
+ @TemplateId = params['TemplateId']
1322
+ @TemplateName = params['TemplateName']
1323
+ @Description = params['Description']
1324
+ @DocumentResourceIds = params['DocumentResourceIds']
1325
+ unless params['FileInfos'].nil?
1326
+ @FileInfos = []
1327
+ params['FileInfos'].each do |i|
1328
+ fileinfo_tmp = FileInfo.new
1329
+ fileinfo_tmp.deserialize(i)
1330
+ @FileInfos << fileinfo_tmp
1331
+ end
1332
+ end
1333
+ @AttachmentResourceIds = params['AttachmentResourceIds']
1334
+ @SignOrder = params['SignOrder']
1335
+ unless params['Recipients'].nil?
1336
+ @Recipients = []
1337
+ params['Recipients'].each do |i|
1338
+ recipient_tmp = Recipient.new
1339
+ recipient_tmp.deserialize(i)
1340
+ @Recipients << recipient_tmp
1341
+ end
1342
+ end
1343
+ unless params['Components'].nil?
1344
+ @Components = []
1345
+ params['Components'].each do |i|
1346
+ component_tmp = Component.new
1347
+ component_tmp.deserialize(i)
1348
+ @Components << component_tmp
1349
+ end
1350
+ end
1351
+ unless params['SignComponents'].nil?
1352
+ @SignComponents = []
1353
+ params['SignComponents'].each do |i|
1354
+ component_tmp = Component.new
1355
+ component_tmp.deserialize(i)
1356
+ @SignComponents << component_tmp
1357
+ end
1358
+ end
1359
+ @Status = params['Status']
1360
+ @Creator = params['Creator']
1361
+ @CreatedOn = params['CreatedOn']
1362
+ unless params['Promoter'].nil?
1363
+ @Promoter = Recipient.new
1364
+ @Promoter.deserialize(params['Promoter'])
1365
+ end
1366
+ end
1367
+ end
1368
+
1071
1369
  # 此结构体 (UploadFile) 用于描述多文件上传的文件信息。
1072
1370
  class UploadFile < TencentCloud::Common::AbstractModel
1073
1371
  # @param FileBody: Base64编码后的文件内容
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: 1.0.324
4
+ version: 1.0.325
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-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common