tencentcloud-sdk-ess 3.0.594 → 3.0.596

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: abb47d087dac375460df285e0cc78afca287d4de
4
- data.tar.gz: 55bc2673a6f2dc6cbba1b5a55b39e19ac1349fd9
3
+ metadata.gz: 2e9307097d415401f2eb1402b9e2bfaca676b557
4
+ data.tar.gz: b036e88afdf9de8a55bc3ca42c36795b37389a5b
5
5
  SHA512:
6
- metadata.gz: e8b8e81d026f80acc0508eb8d2c565f6185fbe32d10569a65c4f8ab5a8da24719480df5adc6df83c905be444be410af54b01aa405d8dab7c3c045e134c460a4d
7
- data.tar.gz: 11b26c12b02329b919eb1ff83afe5a81c53cb228c18c249401287ae9c330da49388218ec299c37e9b89185f999ca076f4142b50c2c2c8de022103e52596396c6
6
+ metadata.gz: b4c4ae39e9623d6cd35d58611498f3ac62cdaf405c040040f229e582b78848b258afbd748830c93e820dc009b27fc0fed060267c0f38e37fc760a073fa127f83
7
+ data.tar.gz: d1e9111a6daa0047396d226cdb9c2fe839948e0cdecf302848c0747e07ae71cef336139cc7d6115e72fe5ff5c01806d4025d8cf835a0f3a606b6583c4c7e377a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.594
1
+ 3.0.596
@@ -629,6 +629,30 @@ module TencentCloud
629
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
630
  end
631
631
 
632
+ # 创建电子印章
633
+
634
+ # @param request: Request instance for CreateSeal.
635
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateSealRequest`
636
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateSealResponse`
637
+ def CreateSeal(request)
638
+ body = send_request('CreateSeal', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = CreateSealResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
632
656
  # 对企业员工进行印章授权
633
657
 
634
658
  # @param request: Request instance for CreateSealPolicy.
@@ -573,7 +573,7 @@ module TencentCloud
573
573
  # CHECK_BOX - 勾选框控件,若选中填写ComponentValue 填写 true或者 false 字符串;
574
574
  # FILL_IMAGE - 图片控件,ComponentValue 填写图片的资源 ID;
575
575
  # DYNAMIC_TABLE - 动态表格控件;
576
- # ATTACHMENT - 附件控件,ComponentValue 填写附件图片的资源 ID列表,以逗号分割;
576
+ # ATTACHMENT - 附件控件,ComponentValue 填写附件图片的资源 ID列表,以逗号分隔;
577
577
  # SELECTOR - 选择器控件,ComponentValue填写选择的字符串内容;
578
578
  # DATE - 日期控件;默认是格式化为xxxx年xx月xx日字符串;
579
579
  # DISTRICT - 省市区行政区控件,ComponentValue填写省市区行政区字符串内容;
@@ -630,7 +630,7 @@ module TencentCloud
630
630
  # 2 FontSize: 数字类型,范围6-72,默认值为12
631
631
  # 3 FontAlign: 字符串类型,可取Left/Right/Center,对应左对齐/居中/右对齐
632
632
  # 4 Format: 字符串类型,日期格式,必须是以下五种之一 “yyyy m d”,”yyyy年m月d日”,”yyyy/m/d”,”yyyy-m-d”,”yyyy.m.d”。
633
- # 5 Gaps:: 字符串类型,仅在Format为“yyyy m d”时起作用,格式为用逗号分开的两个整数,例如”2,2”,两个数字分别是日期格式的前后两个空隙钟的空格个数
633
+ # 5 Gaps:: 字符串类型,仅在Format为“yyyy m d”时起作用,格式为用逗号分开的两个整数,例如”2,2”,两个数字分别是日期格式的前后两个空隙中的空格个数
634
634
  # 如果extra参数为空,默认为”yyyy年m月d日”格式的居中日期
635
635
  # 特别地,如果extra中Format字段为空或无法被识别,则extra参数会被当作默认值处理(Font,FontSize,Gaps和FontAlign都不会起效)
636
636
  # 参数样例: "ComponentExtra": "{\"Format\":“yyyy m d”,\"FontSize\":12,\"Gaps\":\"2,2\", \"FontAlign\":\"Right\"}",
@@ -2328,6 +2328,108 @@ module TencentCloud
2328
2328
  end
2329
2329
  end
2330
2330
 
2331
+ # CreateSeal请求参数结构体
2332
+ class CreateSealRequest < TencentCloud::Common::AbstractModel
2333
+ # @param Operator: 操作人信息
2334
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
2335
+ # @param SealName: 电子印章名字
2336
+ # @type SealName: String
2337
+ # @param Agent: 应用相关信息
2338
+ # @type Agent: :class:`Tencentcloud::Ess.v20201111.models.Agent`
2339
+ # @param SealType: 电子印章类型,PERSONAL-个人私章,OFFICIAL-公章,SPECIAL_FINANCIAL-财务专用章,CONTRACT-合同专用章,LEGAL_REPRESENTATIVE-法定代表人章,SPECIAL_NATIONWIDE_INVOICE-发票专用章
2340
+ # @type SealType: String
2341
+ # @param FileName: 电子印章图片文件名称
2342
+ # @type FileName: String
2343
+ # @param Image: 电子印章图片base64编码
2344
+ # 参数Image,FileToken或GenerateSource=SealGenerateSourceSystem三选一。
2345
+ # @type Image: String
2346
+ # @param Width: 电子印章宽度,单位px
2347
+ # 参数不再启用,系统会设置印章大小为标准尺寸。
2348
+ # @type Width: Integer
2349
+ # @param Height: 电子印章高度,单位px
2350
+ # 参数不再启用,系统会设置印章大小为标准尺寸。
2351
+ # @type Height: Integer
2352
+ # @param Color: 电子印章印章颜色(默认红色RED),RED-红色
2353
+
2354
+ # 系统目前只支持红色印章创建。
2355
+ # @type Color: String
2356
+ # @param SealHorizontalText: 电子印章生成时的横向文字。
2357
+ # @type SealHorizontalText: String
2358
+ # @param SealChordText: 电子印章下弦文字
2359
+ # @type SealChordText: String
2360
+ # @param SealCentralType: 电子印章中心图案类型,STAR-圆形有五角星,NONE-圆形无五角星
2361
+ # 系统生成的印章只支持STAR
2362
+ # @type SealCentralType: String
2363
+ # @param FileToken: 通过文件上传时,服务端生成的电子印章上传图片的token
2364
+ # @type FileToken: String
2365
+ # @param GenerateSource: 印章生成来源方式
2366
+ # 取值:
2367
+ # SealGenerateSourceSystem 表示系统生成企业印章
2368
+ # @type GenerateSource: String
2369
+
2370
+ attr_accessor :Operator, :SealName, :Agent, :SealType, :FileName, :Image, :Width, :Height, :Color, :SealHorizontalText, :SealChordText, :SealCentralType, :FileToken, :GenerateSource
2371
+
2372
+ def initialize(operator=nil, sealname=nil, agent=nil, sealtype=nil, filename=nil, image=nil, width=nil, height=nil, color=nil, sealhorizontaltext=nil, sealchordtext=nil, sealcentraltype=nil, filetoken=nil, generatesource=nil)
2373
+ @Operator = operator
2374
+ @SealName = sealname
2375
+ @Agent = agent
2376
+ @SealType = sealtype
2377
+ @FileName = filename
2378
+ @Image = image
2379
+ @Width = width
2380
+ @Height = height
2381
+ @Color = color
2382
+ @SealHorizontalText = sealhorizontaltext
2383
+ @SealChordText = sealchordtext
2384
+ @SealCentralType = sealcentraltype
2385
+ @FileToken = filetoken
2386
+ @GenerateSource = generatesource
2387
+ end
2388
+
2389
+ def deserialize(params)
2390
+ unless params['Operator'].nil?
2391
+ @Operator = UserInfo.new
2392
+ @Operator.deserialize(params['Operator'])
2393
+ end
2394
+ @SealName = params['SealName']
2395
+ unless params['Agent'].nil?
2396
+ @Agent = Agent.new
2397
+ @Agent.deserialize(params['Agent'])
2398
+ end
2399
+ @SealType = params['SealType']
2400
+ @FileName = params['FileName']
2401
+ @Image = params['Image']
2402
+ @Width = params['Width']
2403
+ @Height = params['Height']
2404
+ @Color = params['Color']
2405
+ @SealHorizontalText = params['SealHorizontalText']
2406
+ @SealChordText = params['SealChordText']
2407
+ @SealCentralType = params['SealCentralType']
2408
+ @FileToken = params['FileToken']
2409
+ @GenerateSource = params['GenerateSource']
2410
+ end
2411
+ end
2412
+
2413
+ # CreateSeal返回参数结构体
2414
+ class CreateSealResponse < TencentCloud::Common::AbstractModel
2415
+ # @param SealId: 电子印章编号
2416
+ # @type SealId: String
2417
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2418
+ # @type RequestId: String
2419
+
2420
+ attr_accessor :SealId, :RequestId
2421
+
2422
+ def initialize(sealid=nil, requestid=nil)
2423
+ @SealId = sealid
2424
+ @RequestId = requestid
2425
+ end
2426
+
2427
+ def deserialize(params)
2428
+ @SealId = params['SealId']
2429
+ @RequestId = params['RequestId']
2430
+ end
2431
+ end
2432
+
2331
2433
  # 创建员工的结果
2332
2434
  class CreateStaffResult < TencentCloud::Common::AbstractModel
2333
2435
  # @param SuccessEmployeeData: 创建员工的成功列表
@@ -2457,7 +2559,7 @@ module TencentCloud
2457
2559
  # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
2458
2560
  # @param DeptId: 电子签中的部门id
2459
2561
  # @type DeptId: String
2460
- # @param ReceiveDeptId: 交接部门ID。待删除部门中的合同、印章和模版数据,交接至该部门ID下,未填写交接至公司根部门。
2562
+ # @param ReceiveDeptId: 交接部门ID。待删除部门中的合同、印章和模板数据,交接至该部门ID下,未填写交接至公司根部门。
2461
2563
  # @type ReceiveDeptId: String
2462
2564
 
2463
2565
  attr_accessor :Operator, :DeptId, :ReceiveDeptId
@@ -5478,7 +5580,7 @@ module TencentCloud
5478
5580
  # @type Mobile: String
5479
5581
  # @param UserId: 员工在电子签平台的id
5480
5582
  # @type UserId: String
5481
- # @param Note: 提示,当创建已存在未实名用户时,改字段有值
5583
+ # @param Note: 提示,当创建已存在未实名用户时,该字段有值
5482
5584
  # 注意:此字段可能返回 null,表示取不到有效值。
5483
5585
  # @type Note: String
5484
5586
 
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.594
4
+ version: 3.0.596
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-16 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common