tencentcloud-sdk-ess 3.0.587 → 3.0.588

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63aa3af266797914806c43cef269b41b5435a3b4
4
- data.tar.gz: 92e1dd6c4697bc4d8b79d9d7508f90b6ef88df65
3
+ metadata.gz: 9b2cc592637437a2e22161fcccf00166ddbeab36
4
+ data.tar.gz: da12a7f1b1a2b764d9f0277cdd5e5e8789611e66
5
5
  SHA512:
6
- metadata.gz: ab7a518a93447c17a52d77f5e8af8bab06f41737001f86bdcf4205820d96d75f4f4e9302a8468721fe79b691557e860b7cd3a44d9e2879a313dd85af98e31643
7
- data.tar.gz: b3c737e504cc2ec7abdf0278c250b5fdf368b9ef501de9ade987c93fe57e27f0208bc4edfb13242eb30ee59eedf477410a311d343596c9dc62d6a05779b3e041
6
+ metadata.gz: 99d3dd59a23fc32ca7c583871cd472af68288e28e9b089796965c08201f61d616c5f1c7660c280caf51673afd16f0d033bfaa90e189026a913c8d97539c6611d
7
+ data.tar.gz: 95c8a78fc4fb92f97de028ec1a50f446ddd7da3a750d1c5dad2255fc9535d29e316ca7dc125f5f3144e9d04751aba4086e3d816873db6ca823ea9d051548fc1b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.587
1
+ 3.0.588
@@ -393,6 +393,30 @@ module TencentCloud
393
393
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
394
394
  end
395
395
 
396
+ # 通过此接口,创建企业的部门,支持绑定客户系统部门ID。
397
+
398
+ # @param request: Request instance for CreateIntegrationDepartment.
399
+ # @type request: :class:`Tencentcloud::ess::V20201111::CreateIntegrationDepartmentRequest`
400
+ # @rtype: :class:`Tencentcloud::ess::V20201111::CreateIntegrationDepartmentResponse`
401
+ def CreateIntegrationDepartment(request)
402
+ body = send_request('CreateIntegrationDepartment', request.serialize)
403
+ response = JSON.parse(body)
404
+ if response['Response'].key?('Error') == false
405
+ model = CreateIntegrationDepartmentResponse.new
406
+ model.deserialize(response['Response'])
407
+ model
408
+ else
409
+ code = response['Response']['Error']['Code']
410
+ message = response['Response']['Error']['Message']
411
+ reqid = response['Response']['RequestId']
412
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
413
+ end
414
+ rescue TencentCloud::Common::TencentCloudSDKException => e
415
+ raise e
416
+ rescue StandardError => e
417
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
418
+ end
419
+
396
420
  # 创建员工,如需在此接口提醒员工实名,入参Employees的OpenId不传
397
421
 
398
422
  # @param request: Request instance for CreateIntegrationEmployees.
@@ -629,6 +653,30 @@ module TencentCloud
629
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
654
  end
631
655
 
656
+ # 通过此接口,删除企业的部门。
657
+
658
+ # @param request: Request instance for DeleteIntegrationDepartment.
659
+ # @type request: :class:`Tencentcloud::ess::V20201111::DeleteIntegrationDepartmentRequest`
660
+ # @rtype: :class:`Tencentcloud::ess::V20201111::DeleteIntegrationDepartmentResponse`
661
+ def DeleteIntegrationDepartment(request)
662
+ body = send_request('DeleteIntegrationDepartment', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DeleteIntegrationDepartmentResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
632
680
  # 移除员工
633
681
 
634
682
  # @param request: Request instance for DeleteIntegrationEmployees.
@@ -826,6 +874,30 @@ module TencentCloud
826
874
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
827
875
  end
828
876
 
877
+ # 通过此接口,查询企业的部门,支持查询单个部门节点或单个部门节点及一级子节点部门列表。
878
+
879
+ # @param request: Request instance for DescribeIntegrationDepartments.
880
+ # @type request: :class:`Tencentcloud::ess::V20201111::DescribeIntegrationDepartmentsRequest`
881
+ # @rtype: :class:`Tencentcloud::ess::V20201111::DescribeIntegrationDepartmentsResponse`
882
+ def DescribeIntegrationDepartments(request)
883
+ body = send_request('DescribeIntegrationDepartments', request.serialize)
884
+ response = JSON.parse(body)
885
+ if response['Response'].key?('Error') == false
886
+ model = DescribeIntegrationDepartmentsResponse.new
887
+ model.deserialize(response['Response'])
888
+ model
889
+ else
890
+ code = response['Response']['Error']['Code']
891
+ message = response['Response']['Error']['Message']
892
+ reqid = response['Response']['RequestId']
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
894
+ end
895
+ rescue TencentCloud::Common::TencentCloudSDKException => e
896
+ raise e
897
+ rescue StandardError => e
898
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
899
+ end
900
+
829
901
  # 查询企业员工列表,每次返回的数据量最大为20
830
902
 
831
903
  # @param request: Request instance for DescribeIntegrationEmployees.
@@ -1070,6 +1142,30 @@ module TencentCloud
1070
1142
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1071
1143
  end
1072
1144
 
1145
+ # 通过此接口,更新企业的部门信息,支持更新部门名、客户系统部门ID、部门序列号。
1146
+
1147
+ # @param request: Request instance for ModifyIntegrationDepartment.
1148
+ # @type request: :class:`Tencentcloud::ess::V20201111::ModifyIntegrationDepartmentRequest`
1149
+ # @rtype: :class:`Tencentcloud::ess::V20201111::ModifyIntegrationDepartmentResponse`
1150
+ def ModifyIntegrationDepartment(request)
1151
+ body = send_request('ModifyIntegrationDepartment', request.serialize)
1152
+ response = JSON.parse(body)
1153
+ if response['Response'].key?('Error') == false
1154
+ model = ModifyIntegrationDepartmentResponse.new
1155
+ model.deserialize(response['Response'])
1156
+ model
1157
+ else
1158
+ code = response['Response']['Error']['Code']
1159
+ message = response['Response']['Error']['Message']
1160
+ reqid = response['Response']['RequestId']
1161
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1162
+ end
1163
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1164
+ raise e
1165
+ rescue StandardError => e
1166
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1167
+ end
1168
+
1073
1169
  # 此接口用于发起流程
1074
1170
  # 适用场景:见创建签署流程接口。
1075
1171
  # 注:该接口是“创建电子文档”接口的后置接口,用于激活包含完整合同信息(模板及内容信息)的流程。激活后的流程就是一份待签署的电子合同。
@@ -1560,6 +1560,65 @@ module TencentCloud
1560
1560
  end
1561
1561
  end
1562
1562
 
1563
+ # CreateIntegrationDepartment请求参数结构体
1564
+ class CreateIntegrationDepartmentRequest < TencentCloud::Common::AbstractModel
1565
+ # @param Operator: 操作人信息,UserId必填且需拥有组织架构管理权限
1566
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
1567
+ # @param DeptName: 部门名称,不超过50个字符
1568
+ # @type DeptName: String
1569
+ # @param ParentDeptId: 电子签父部门ID,与ParentDeptOpenId二选一,优先ParentDeptId,都为空时自动填充至根节点下
1570
+ # @type ParentDeptId: String
1571
+ # @param ParentDeptOpenId: 第三方平台中父部门ID,与ParentDeptId二选一,优先ParentDeptId,都为空时自动填充至根节点下
1572
+ # @type ParentDeptOpenId: String
1573
+ # @param DeptOpenId: 客户系统部门ID,不超过64个字符
1574
+ # @type DeptOpenId: String
1575
+ # @param OrderNo: 排序号,1~30000范围内
1576
+ # @type OrderNo: Integer
1577
+
1578
+ attr_accessor :Operator, :DeptName, :ParentDeptId, :ParentDeptOpenId, :DeptOpenId, :OrderNo
1579
+
1580
+ def initialize(operator=nil, deptname=nil, parentdeptid=nil, parentdeptopenid=nil, deptopenid=nil, orderno=nil)
1581
+ @Operator = operator
1582
+ @DeptName = deptname
1583
+ @ParentDeptId = parentdeptid
1584
+ @ParentDeptOpenId = parentdeptopenid
1585
+ @DeptOpenId = deptopenid
1586
+ @OrderNo = orderno
1587
+ end
1588
+
1589
+ def deserialize(params)
1590
+ unless params['Operator'].nil?
1591
+ @Operator = UserInfo.new
1592
+ @Operator.deserialize(params['Operator'])
1593
+ end
1594
+ @DeptName = params['DeptName']
1595
+ @ParentDeptId = params['ParentDeptId']
1596
+ @ParentDeptOpenId = params['ParentDeptOpenId']
1597
+ @DeptOpenId = params['DeptOpenId']
1598
+ @OrderNo = params['OrderNo']
1599
+ end
1600
+ end
1601
+
1602
+ # CreateIntegrationDepartment返回参数结构体
1603
+ class CreateIntegrationDepartmentResponse < TencentCloud::Common::AbstractModel
1604
+ # @param DeptId: 电子签部门ID
1605
+ # @type DeptId: String
1606
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1607
+ # @type RequestId: String
1608
+
1609
+ attr_accessor :DeptId, :RequestId
1610
+
1611
+ def initialize(deptid=nil, requestid=nil)
1612
+ @DeptId = deptid
1613
+ @RequestId = requestid
1614
+ end
1615
+
1616
+ def deserialize(params)
1617
+ @DeptId = params['DeptId']
1618
+ @RequestId = params['RequestId']
1619
+ end
1620
+ end
1621
+
1563
1622
  # CreateIntegrationEmployees请求参数结构体
1564
1623
  class CreateIntegrationEmployeesRequest < TencentCloud::Common::AbstractModel
1565
1624
  # @param Operator: 操作人信息,userId必填
@@ -2297,6 +2356,49 @@ module TencentCloud
2297
2356
  end
2298
2357
  end
2299
2358
 
2359
+ # DeleteIntegrationDepartment请求参数结构体
2360
+ class DeleteIntegrationDepartmentRequest < TencentCloud::Common::AbstractModel
2361
+ # @param Operator: 操作人信息,UserId必填且需拥有组织架构管理权限
2362
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
2363
+ # @param DeptId: 电子签中的部门id
2364
+ # @type DeptId: String
2365
+ # @param ReceiveDeptId: 交接部门ID。待删除部门中的合同、印章和模版数据,交接至该部门ID下,未填写交接至公司根部门。
2366
+ # @type ReceiveDeptId: String
2367
+
2368
+ attr_accessor :Operator, :DeptId, :ReceiveDeptId
2369
+
2370
+ def initialize(operator=nil, deptid=nil, receivedeptid=nil)
2371
+ @Operator = operator
2372
+ @DeptId = deptid
2373
+ @ReceiveDeptId = receivedeptid
2374
+ end
2375
+
2376
+ def deserialize(params)
2377
+ unless params['Operator'].nil?
2378
+ @Operator = UserInfo.new
2379
+ @Operator.deserialize(params['Operator'])
2380
+ end
2381
+ @DeptId = params['DeptId']
2382
+ @ReceiveDeptId = params['ReceiveDeptId']
2383
+ end
2384
+ end
2385
+
2386
+ # DeleteIntegrationDepartment返回参数结构体
2387
+ class DeleteIntegrationDepartmentResponse < TencentCloud::Common::AbstractModel
2388
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2389
+ # @type RequestId: String
2390
+
2391
+ attr_accessor :RequestId
2392
+
2393
+ def initialize(requestid=nil)
2394
+ @RequestId = requestid
2395
+ end
2396
+
2397
+ def deserialize(params)
2398
+ @RequestId = params['RequestId']
2399
+ end
2400
+ end
2401
+
2300
2402
  # DeleteIntegrationEmployees请求参数结构体
2301
2403
  class DeleteIntegrationEmployeesRequest < TencentCloud::Common::AbstractModel
2302
2404
  # @param Operator: 操作人信息,userId必填
@@ -2894,6 +2996,64 @@ module TencentCloud
2894
2996
  end
2895
2997
  end
2896
2998
 
2999
+ # DescribeIntegrationDepartments请求参数结构体
3000
+ class DescribeIntegrationDepartmentsRequest < TencentCloud::Common::AbstractModel
3001
+ # @param Operator: 操作人信息,UserId必填且需拥有组织架构管理权限
3002
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
3003
+ # @param QueryType: 查询类型 0-查询单个部门节点 1-单个部门节点及一级子节点部门列表
3004
+ # @type QueryType: Integer
3005
+ # @param DeptId: 部门ID,与DeptOpenId二选一,优先DeptId,都为空时获取根节点数据
3006
+ # @type DeptId: String
3007
+ # @param DeptOpenId: 客户系统部门ID,与DeptId二选一,优先DeptId,都为空时获取根节点数据
3008
+ # @type DeptOpenId: String
3009
+
3010
+ attr_accessor :Operator, :QueryType, :DeptId, :DeptOpenId
3011
+
3012
+ def initialize(operator=nil, querytype=nil, deptid=nil, deptopenid=nil)
3013
+ @Operator = operator
3014
+ @QueryType = querytype
3015
+ @DeptId = deptid
3016
+ @DeptOpenId = deptopenid
3017
+ end
3018
+
3019
+ def deserialize(params)
3020
+ unless params['Operator'].nil?
3021
+ @Operator = UserInfo.new
3022
+ @Operator.deserialize(params['Operator'])
3023
+ end
3024
+ @QueryType = params['QueryType']
3025
+ @DeptId = params['DeptId']
3026
+ @DeptOpenId = params['DeptOpenId']
3027
+ end
3028
+ end
3029
+
3030
+ # DescribeIntegrationDepartments返回参数结构体
3031
+ class DescribeIntegrationDepartmentsResponse < TencentCloud::Common::AbstractModel
3032
+ # @param Departments: 部门列表
3033
+ # @type Departments: Array
3034
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3035
+ # @type RequestId: String
3036
+
3037
+ attr_accessor :Departments, :RequestId
3038
+
3039
+ def initialize(departments=nil, requestid=nil)
3040
+ @Departments = departments
3041
+ @RequestId = requestid
3042
+ end
3043
+
3044
+ def deserialize(params)
3045
+ unless params['Departments'].nil?
3046
+ @Departments = []
3047
+ params['Departments'].each do |i|
3048
+ integrationdepartment_tmp = IntegrationDepartment.new
3049
+ integrationdepartment_tmp.deserialize(i)
3050
+ @Departments << integrationdepartment_tmp
3051
+ end
3052
+ end
3053
+ @RequestId = params['RequestId']
3054
+ end
3055
+ end
3056
+
2897
3057
  # DescribeIntegrationEmployees请求参数结构体
2898
3058
  class DescribeIntegrationEmployeesRequest < TencentCloud::Common::AbstractModel
2899
3059
  # @param Operator: 操作人信息,userId必填
@@ -4330,6 +4490,43 @@ module TencentCloud
4330
4490
  end
4331
4491
  end
4332
4492
 
4493
+ # 部门信息
4494
+ class IntegrationDepartment < TencentCloud::Common::AbstractModel
4495
+ # @param DeptId: 部门ID
4496
+ # 注意:此字段可能返回 null,表示取不到有效值。
4497
+ # @type DeptId: String
4498
+ # @param DeptName: 部门名
4499
+ # 注意:此字段可能返回 null,表示取不到有效值。
4500
+ # @type DeptName: String
4501
+ # @param ParentDeptId: 父部门ID
4502
+ # 注意:此字段可能返回 null,表示取不到有效值。
4503
+ # @type ParentDeptId: String
4504
+ # @param DeptOpenId: 客户系统部门ID
4505
+ # 注意:此字段可能返回 null,表示取不到有效值。
4506
+ # @type DeptOpenId: String
4507
+ # @param OrderNo: 序列号
4508
+ # 注意:此字段可能返回 null,表示取不到有效值。
4509
+ # @type OrderNo: Integer
4510
+
4511
+ attr_accessor :DeptId, :DeptName, :ParentDeptId, :DeptOpenId, :OrderNo
4512
+
4513
+ def initialize(deptid=nil, deptname=nil, parentdeptid=nil, deptopenid=nil, orderno=nil)
4514
+ @DeptId = deptid
4515
+ @DeptName = deptname
4516
+ @ParentDeptId = parentdeptid
4517
+ @DeptOpenId = deptopenid
4518
+ @OrderNo = orderno
4519
+ end
4520
+
4521
+ def deserialize(params)
4522
+ @DeptId = params['DeptId']
4523
+ @DeptName = params['DeptName']
4524
+ @ParentDeptId = params['ParentDeptId']
4525
+ @DeptOpenId = params['DeptOpenId']
4526
+ @OrderNo = params['OrderNo']
4527
+ end
4528
+ end
4529
+
4333
4530
  # 主企业员工账号信息
4334
4531
  class IntegrationMainOrganizationUser < TencentCloud::Common::AbstractModel
4335
4532
  # @param MainOrganizationId: 主企业id
@@ -4403,6 +4600,61 @@ module TencentCloud
4403
4600
  end
4404
4601
  end
4405
4602
 
4603
+ # ModifyIntegrationDepartment请求参数结构体
4604
+ class ModifyIntegrationDepartmentRequest < TencentCloud::Common::AbstractModel
4605
+ # @param Operator: 操作人信息,UserId必填且需拥有组织架构管理权限
4606
+ # @type Operator: :class:`Tencentcloud::Ess.v20201111.models.UserInfo`
4607
+ # @param DeptId: 电子签部门ID
4608
+ # @type DeptId: String
4609
+ # @param ParentDeptId: 电子签父部门ID
4610
+ # @type ParentDeptId: String
4611
+ # @param DeptName: 部门名称,不超过50个字符
4612
+ # @type DeptName: String
4613
+ # @param DeptOpenId: 客户系统部门ID,不超过64个字符
4614
+ # @type DeptOpenId: String
4615
+ # @param OrderNo: 排序号,1~30000范围内
4616
+ # @type OrderNo: Integer
4617
+
4618
+ attr_accessor :Operator, :DeptId, :ParentDeptId, :DeptName, :DeptOpenId, :OrderNo
4619
+
4620
+ def initialize(operator=nil, deptid=nil, parentdeptid=nil, deptname=nil, deptopenid=nil, orderno=nil)
4621
+ @Operator = operator
4622
+ @DeptId = deptid
4623
+ @ParentDeptId = parentdeptid
4624
+ @DeptName = deptname
4625
+ @DeptOpenId = deptopenid
4626
+ @OrderNo = orderno
4627
+ end
4628
+
4629
+ def deserialize(params)
4630
+ unless params['Operator'].nil?
4631
+ @Operator = UserInfo.new
4632
+ @Operator.deserialize(params['Operator'])
4633
+ end
4634
+ @DeptId = params['DeptId']
4635
+ @ParentDeptId = params['ParentDeptId']
4636
+ @DeptName = params['DeptName']
4637
+ @DeptOpenId = params['DeptOpenId']
4638
+ @OrderNo = params['OrderNo']
4639
+ end
4640
+ end
4641
+
4642
+ # ModifyIntegrationDepartment返回参数结构体
4643
+ class ModifyIntegrationDepartmentResponse < TencentCloud::Common::AbstractModel
4644
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4645
+ # @type RequestId: String
4646
+
4647
+ attr_accessor :RequestId
4648
+
4649
+ def initialize(requestid=nil)
4650
+ @RequestId = requestid
4651
+ end
4652
+
4653
+ def deserialize(params)
4654
+ @RequestId = params['RequestId']
4655
+ end
4656
+ end
4657
+
4406
4658
  # 持有的电子印章信息
4407
4659
  class OccupiedSeal < TencentCloud::Common::AbstractModel
4408
4660
  # @param SealId: 电子印章编号
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ess
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.587
4
+ version: 3.0.588
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud