tencentcloud-sdk-essbasic 3.0.919 → 3.0.921
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 +38 -0
- data/lib/v20210526/models.rb +68 -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: ad3ebd62240865318a3d61c3bf72228379389b37
|
4
|
+
data.tar.gz: 57da36f09fb31c16d4283c0c34110f6fc5dfe615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a9cf2de3ac3f7d0c2ab8c33935a1acdd5179325a60167aed277cf308926305452ec0d70fe3c29e5813d1127d108da897855be47682a7a7ad05413d625dc22ec
|
7
|
+
data.tar.gz: fed9853d3f049d4b11b1856d3c60562b2532d1d31c9ce0ae880b10afbb632cf9752becc621028f20a4a1bd3df3cc60fb367002a9f30500c5d4fcaf77eef89b41
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.921
|
data/lib/v20210526/client.rb
CHANGED
@@ -1728,6 +1728,44 @@ module TencentCloud
|
|
1728
1728
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1729
1729
|
end
|
1730
1730
|
|
1731
|
+
# 激活或续期子客企业, 在激活状态下,企业可以正常发起合同;在非激活状态下,企业仅能查看和签署合同。
|
1732
|
+
|
1733
|
+
# **1. 激活**:使用一个许可证将子客企业从未激活状态转变为激活状态。**激活状态的有效期为一年,一年后将自动回到未激活状态**。
|
1734
|
+
|
1735
|
+
# **2. 续期**:使用一个许可证将已激活的子客企业的有效期延长一年。只有处于激活状态的子企业才能进行续期操作(**若处于非激活状态,则需先激活**)。您可以使用多个许可证对同一子客企业进行多次续费。
|
1736
|
+
|
1737
|
+
|
1738
|
+
# 该接口的效果同:**【企业应用管理】 -> 【子客企业管理】 -> 【激活】或者【续期】**
|
1739
|
+
|
1740
|
+
# ![image](https://qcloudimg.tencent-cloud.cn/raw/cd63761ca6e814c64b4ecf131555b74e.png)
|
1741
|
+
|
1742
|
+
|
1743
|
+
# 如果不想调用此接口或者页面点击进行激活或续期,可以在【应用扩展服务】中打开自动激活或续期,在许可证充足的情况下会自动激活或续期子客企业
|
1744
|
+
|
1745
|
+
# ![image](https://qcloudimg.tencent-cloud.cn/raw/2ccb37ef6bde463c15c39fdda789216f.png)
|
1746
|
+
|
1747
|
+
# @param request: Request instance for CreateChannelSubOrganizationActive.
|
1748
|
+
# @type request: :class:`Tencentcloud::essbasic::V20210526::CreateChannelSubOrganizationActiveRequest`
|
1749
|
+
# @rtype: :class:`Tencentcloud::essbasic::V20210526::CreateChannelSubOrganizationActiveResponse`
|
1750
|
+
def CreateChannelSubOrganizationActive(request)
|
1751
|
+
body = send_request('CreateChannelSubOrganizationActive', request.serialize)
|
1752
|
+
response = JSON.parse(body)
|
1753
|
+
if response['Response'].key?('Error') == false
|
1754
|
+
model = CreateChannelSubOrganizationActiveResponse.new
|
1755
|
+
model.deserialize(response['Response'])
|
1756
|
+
model
|
1757
|
+
else
|
1758
|
+
code = response['Response']['Error']['Code']
|
1759
|
+
message = response['Response']['Error']['Message']
|
1760
|
+
reqid = response['Response']['RequestId']
|
1761
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1762
|
+
end
|
1763
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1764
|
+
raise e
|
1765
|
+
rescue StandardError => e
|
1766
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1767
|
+
end
|
1768
|
+
|
1731
1769
|
# 此接口(CreateConsoleLoginUrl)用于创建第三方平台子客企业控制台Web/移动登录链接。支持web控制台、电子签小程序和H5链接。登录链接是进入子客web企业控制台的唯一入口。
|
1732
1770
|
|
1733
1771
|
# Web链接访问后,会根据子客企业(**Agent中ProxyOrganizationOpenId表示**)和员工(**Agent中OpenId表示**)的状态,进入不同的流程,主要情况分类如下:
|
data/lib/v20210526/models.rb
CHANGED
@@ -4304,10 +4304,18 @@ module TencentCloud
|
|
4304
4304
|
# <li>**"AuthorizationLegalIdentity"**: 法人直接认证</li>
|
4305
4305
|
# </ul>
|
4306
4306
|
# @type AuthorizationType: String
|
4307
|
+
# @param ActiveStatus: 子企业激活状态。值如下:
|
4308
|
+
# <ul>
|
4309
|
+
# <li>**0**: 未激活</li>
|
4310
|
+
# <li>**1**: 已激活</li>
|
4311
|
+
# </ul>
|
4312
|
+
# @type ActiveStatus: Integer
|
4313
|
+
# @param LicenseExpireTime: 账号过期时间,时间戳
|
4314
|
+
# @type LicenseExpireTime: Integer
|
4307
4315
|
|
4308
|
-
attr_accessor :OrganizationId, :OrganizationOpenId, :OrganizationName, :UnifiedSocialCreditCode, :LegalName, :LegalOpenId, :AdminName, :AdminOpenId, :AdminMobile, :AuthorizationStatus, :AuthorizationType
|
4316
|
+
attr_accessor :OrganizationId, :OrganizationOpenId, :OrganizationName, :UnifiedSocialCreditCode, :LegalName, :LegalOpenId, :AdminName, :AdminOpenId, :AdminMobile, :AuthorizationStatus, :AuthorizationType, :ActiveStatus, :LicenseExpireTime
|
4309
4317
|
|
4310
|
-
def initialize(organizationid=nil, organizationopenid=nil, organizationname=nil, unifiedsocialcreditcode=nil, legalname=nil, legalopenid=nil, adminname=nil, adminopenid=nil, adminmobile=nil, authorizationstatus=nil, authorizationtype=nil)
|
4318
|
+
def initialize(organizationid=nil, organizationopenid=nil, organizationname=nil, unifiedsocialcreditcode=nil, legalname=nil, legalopenid=nil, adminname=nil, adminopenid=nil, adminmobile=nil, authorizationstatus=nil, authorizationtype=nil, activestatus=nil, licenseexpiretime=nil)
|
4311
4319
|
@OrganizationId = organizationid
|
4312
4320
|
@OrganizationOpenId = organizationopenid
|
4313
4321
|
@OrganizationName = organizationname
|
@@ -4319,6 +4327,8 @@ module TencentCloud
|
|
4319
4327
|
@AdminMobile = adminmobile
|
4320
4328
|
@AuthorizationStatus = authorizationstatus
|
4321
4329
|
@AuthorizationType = authorizationtype
|
4330
|
+
@ActiveStatus = activestatus
|
4331
|
+
@LicenseExpireTime = licenseexpiretime
|
4322
4332
|
end
|
4323
4333
|
|
4324
4334
|
def deserialize(params)
|
@@ -4333,6 +4343,8 @@ module TencentCloud
|
|
4333
4343
|
@AdminMobile = params['AdminMobile']
|
4334
4344
|
@AuthorizationStatus = params['AuthorizationStatus']
|
4335
4345
|
@AuthorizationType = params['AuthorizationType']
|
4346
|
+
@ActiveStatus = params['ActiveStatus']
|
4347
|
+
@LicenseExpireTime = params['LicenseExpireTime']
|
4336
4348
|
end
|
4337
4349
|
end
|
4338
4350
|
|
@@ -5343,6 +5355,60 @@ module TencentCloud
|
|
5343
5355
|
end
|
5344
5356
|
end
|
5345
5357
|
|
5358
|
+
# CreateChannelSubOrganizationActive请求参数结构体
|
5359
|
+
class CreateChannelSubOrganizationActiveRequest < TencentCloud::Common::AbstractModel
|
5360
|
+
# @param Agent: 关于渠道应用的相关信息,包括渠道应用标识、第三方平台子客企业标识及第三方平台子客企业中的员工标识等内容,您可以参阅开发者中心所提供的 Agent 结构体以获取详细定义。
|
5361
|
+
|
5362
|
+
# 此接口下面信息必填。
|
5363
|
+
# <ul>
|
5364
|
+
# <li>渠道应用标识: Agent.AppId</li>
|
5365
|
+
# <li>第三方平台子客企业标识: Agent.ProxyOrganizationOpenId</li>
|
5366
|
+
# <li>第三方平台子客企业中的员工标识: Agent. ProxyOperator.OpenId</li>
|
5367
|
+
# </ul>
|
5368
|
+
# 第三方平台子客企业和员工必须已经经过实名认证
|
5369
|
+
# @type Agent: :class:`Tencentcloud::Essbasic.v20210526.models.Agent`
|
5370
|
+
# @param SubOrganizationOpenIds: 要进行激活或者续期的子客企业OrganizationOpenId列表,请确保所有列出的子客企业均已完成认证。
|
5371
|
+
# @type SubOrganizationOpenIds: Array
|
5372
|
+
# @param Renew: 操作类型,可以选择如下:
|
5373
|
+
|
5374
|
+
# **false**:(默认)激活子客企业
|
5375
|
+
# **true**:续期子客企业
|
5376
|
+
# @type Renew: Boolean
|
5377
|
+
|
5378
|
+
attr_accessor :Agent, :SubOrganizationOpenIds, :Renew
|
5379
|
+
|
5380
|
+
def initialize(agent=nil, suborganizationopenids=nil, renew=nil)
|
5381
|
+
@Agent = agent
|
5382
|
+
@SubOrganizationOpenIds = suborganizationopenids
|
5383
|
+
@Renew = renew
|
5384
|
+
end
|
5385
|
+
|
5386
|
+
def deserialize(params)
|
5387
|
+
unless params['Agent'].nil?
|
5388
|
+
@Agent = Agent.new
|
5389
|
+
@Agent.deserialize(params['Agent'])
|
5390
|
+
end
|
5391
|
+
@SubOrganizationOpenIds = params['SubOrganizationOpenIds']
|
5392
|
+
@Renew = params['Renew']
|
5393
|
+
end
|
5394
|
+
end
|
5395
|
+
|
5396
|
+
# CreateChannelSubOrganizationActive返回参数结构体
|
5397
|
+
class CreateChannelSubOrganizationActiveResponse < TencentCloud::Common::AbstractModel
|
5398
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5399
|
+
# @type RequestId: String
|
5400
|
+
|
5401
|
+
attr_accessor :RequestId
|
5402
|
+
|
5403
|
+
def initialize(requestid=nil)
|
5404
|
+
@RequestId = requestid
|
5405
|
+
end
|
5406
|
+
|
5407
|
+
def deserialize(params)
|
5408
|
+
@RequestId = params['RequestId']
|
5409
|
+
end
|
5410
|
+
end
|
5411
|
+
|
5346
5412
|
# CreateConsoleLoginUrl请求参数结构体
|
5347
5413
|
class CreateConsoleLoginUrlRequest < TencentCloud::Common::AbstractModel
|
5348
5414
|
# @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: 3.0.
|
4
|
+
version: 3.0.921
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|