tencentcloud-sdk-ccc 3.0.1077 → 3.0.1087
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200210/client.rb +24 -0
- data/lib/v20200210/models.rb +128 -8
- 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: a34e3a44560000a5181995ee682e4358a5314605
|
4
|
+
data.tar.gz: 663dc912375a092e75374fe53a847838ab437ed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8be9afdbcbd3beed5af367ab8b3e03b15556fc7d513571828e8a9a97bd099b675236b2f4bcf1c59f904cc5c1cbc4bbb2a9afa607d3018cb8eeb529d8a8402177
|
7
|
+
data.tar.gz: ef9944a61f1be3e900ccc4774f5d2532157b99f9ef861109665273d0080c00463035df1432da3ba6a42542923914cbdf1b69dbe8a974aa32ef2b4abe2f4ba296
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1087
|
data/lib/v20200210/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 绑定号码呼入回调接口
|
81
|
+
|
82
|
+
# @param request: Request instance for BindNumberCallInInterface.
|
83
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::BindNumberCallInInterfaceRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::BindNumberCallInInterfaceResponse`
|
85
|
+
def BindNumberCallInInterface(request)
|
86
|
+
body = send_request('BindNumberCallInInterface', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = BindNumberCallInInterfaceResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 绑定号码外呼技能组
|
81
105
|
|
82
106
|
# @param request: Request instance for BindNumberCallOutSkillGroup.
|
data/lib/v20200210/models.rb
CHANGED
@@ -477,6 +477,49 @@ module TencentCloud
|
|
477
477
|
end
|
478
478
|
end
|
479
479
|
|
480
|
+
# BindNumberCallInInterface请求参数结构体
|
481
|
+
class BindNumberCallInInterfaceRequest < TencentCloud::Common::AbstractModel
|
482
|
+
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
483
|
+
# @type SdkAppId: Integer
|
484
|
+
# @param Number: 待绑定的号码
|
485
|
+
# @type Number: String
|
486
|
+
# @param CallInInterface: 待绑定的回调地址
|
487
|
+
# @type CallInInterface: :class:`Tencentcloud::Ccc.v20200210.models.Interface`
|
488
|
+
|
489
|
+
attr_accessor :SdkAppId, :Number, :CallInInterface
|
490
|
+
|
491
|
+
def initialize(sdkappid=nil, number=nil, callininterface=nil)
|
492
|
+
@SdkAppId = sdkappid
|
493
|
+
@Number = number
|
494
|
+
@CallInInterface = callininterface
|
495
|
+
end
|
496
|
+
|
497
|
+
def deserialize(params)
|
498
|
+
@SdkAppId = params['SdkAppId']
|
499
|
+
@Number = params['Number']
|
500
|
+
unless params['CallInInterface'].nil?
|
501
|
+
@CallInInterface = Interface.new
|
502
|
+
@CallInInterface.deserialize(params['CallInInterface'])
|
503
|
+
end
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
# BindNumberCallInInterface返回参数结构体
|
508
|
+
class BindNumberCallInInterfaceResponse < TencentCloud::Common::AbstractModel
|
509
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
510
|
+
# @type RequestId: String
|
511
|
+
|
512
|
+
attr_accessor :RequestId
|
513
|
+
|
514
|
+
def initialize(requestid=nil)
|
515
|
+
@RequestId = requestid
|
516
|
+
end
|
517
|
+
|
518
|
+
def deserialize(params)
|
519
|
+
@RequestId = params['RequestId']
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
480
523
|
# BindNumberCallOutSkillGroup请求参数结构体
|
481
524
|
class BindNumberCallOutSkillGroupRequest < TencentCloud::Common::AbstractModel
|
482
525
|
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
@@ -764,7 +807,7 @@ module TencentCloud
|
|
764
807
|
end
|
765
808
|
|
766
809
|
# 座席登录的终端信息
|
767
|
-
class
|
810
|
+
class ClientInfo < TencentCloud::Common::AbstractModel
|
768
811
|
# @param ClientType: 登录的端类型,"Web"表示web工作台,"WeChatMiniProgram"表示微信小程序
|
769
812
|
# @type ClientType: String
|
770
813
|
# @param IsConnected: 当前登录的端是否在前台。若登录的端是Web,则该值为true;若登录的端是WeChatMiniProgram,true表示打开着微信小程序,false表示微信小程序退到后台
|
@@ -4516,6 +4559,61 @@ module TencentCloud
|
|
4516
4559
|
end
|
4517
4560
|
end
|
4518
4561
|
|
4562
|
+
# 呼转配置
|
4563
|
+
class ForwardingConfig < TencentCloud::Common::AbstractModel
|
4564
|
+
# @param Enabled: 是否启用
|
4565
|
+
# @type Enabled: Boolean
|
4566
|
+
# @param Condition: 1 无条件呼转 2 有条件呼转
|
4567
|
+
# @type Condition: Integer
|
4568
|
+
# @param Target: 呼转目标
|
4569
|
+
# @type Target: :class:`Tencentcloud::Ccc.v20200210.models.ForwardingTarget`
|
4570
|
+
|
4571
|
+
attr_accessor :Enabled, :Condition, :Target
|
4572
|
+
|
4573
|
+
def initialize(enabled=nil, condition=nil, target=nil)
|
4574
|
+
@Enabled = enabled
|
4575
|
+
@Condition = condition
|
4576
|
+
@Target = target
|
4577
|
+
end
|
4578
|
+
|
4579
|
+
def deserialize(params)
|
4580
|
+
@Enabled = params['Enabled']
|
4581
|
+
@Condition = params['Condition']
|
4582
|
+
unless params['Target'].nil?
|
4583
|
+
@Target = ForwardingTarget.new
|
4584
|
+
@Target.deserialize(params['Target'])
|
4585
|
+
end
|
4586
|
+
end
|
4587
|
+
end
|
4588
|
+
|
4589
|
+
# 呼转目标
|
4590
|
+
class ForwardingTarget < TencentCloud::Common::AbstractModel
|
4591
|
+
# @param Type: 呼转目标类型 1 座席 2 技能组 3 分机
|
4592
|
+
# @type Type: Integer
|
4593
|
+
# @param StaffUserId: 呼转目标为座席的账号 Type 为 1 时填写
|
4594
|
+
# @type StaffUserId: String
|
4595
|
+
# @param SkillGroupId: 呼转目标为技能组的 ID,Type 为 2 时填写
|
4596
|
+
# @type SkillGroupId: Integer
|
4597
|
+
# @param Extension: 呼转目标为分机的账号,Type 为 3 时填写
|
4598
|
+
# @type Extension: String
|
4599
|
+
|
4600
|
+
attr_accessor :Type, :StaffUserId, :SkillGroupId, :Extension
|
4601
|
+
|
4602
|
+
def initialize(type=nil, staffuserid=nil, skillgroupid=nil, extension=nil)
|
4603
|
+
@Type = type
|
4604
|
+
@StaffUserId = staffuserid
|
4605
|
+
@SkillGroupId = skillgroupid
|
4606
|
+
@Extension = extension
|
4607
|
+
end
|
4608
|
+
|
4609
|
+
def deserialize(params)
|
4610
|
+
@Type = params['Type']
|
4611
|
+
@StaffUserId = params['StaffUserId']
|
4612
|
+
@SkillGroupId = params['SkillGroupId']
|
4613
|
+
@Extension = params['Extension']
|
4614
|
+
end
|
4615
|
+
end
|
4616
|
+
|
4519
4617
|
# HangUpCall请求参数结构体
|
4520
4618
|
class HangUpCallRequest < TencentCloud::Common::AbstractModel
|
4521
4619
|
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
@@ -4681,6 +4779,22 @@ module TencentCloud
|
|
4681
4779
|
end
|
4682
4780
|
end
|
4683
4781
|
|
4782
|
+
# 回调接口
|
4783
|
+
class Interface < TencentCloud::Common::AbstractModel
|
4784
|
+
# @param URL: 接口地址
|
4785
|
+
# @type URL: String
|
4786
|
+
|
4787
|
+
attr_accessor :URL
|
4788
|
+
|
4789
|
+
def initialize(url=nil)
|
4790
|
+
@URL = url
|
4791
|
+
end
|
4792
|
+
|
4793
|
+
def deserialize(params)
|
4794
|
+
@URL = params['URL']
|
4795
|
+
end
|
4796
|
+
end
|
4797
|
+
|
4684
4798
|
# 单条消息
|
4685
4799
|
class Message < TencentCloud::Common::AbstractModel
|
4686
4800
|
# @param Type: 消息类型
|
@@ -5695,8 +5809,7 @@ module TencentCloud
|
|
5695
5809
|
# @type Nick: String
|
5696
5810
|
# @param StaffNumber: 座席工号
|
5697
5811
|
# @type StaffNumber: String
|
5698
|
-
# @param RoleId: 用户角色
|
5699
|
-
# 一个用户绑定了多个角色时以RoleIdList为准
|
5812
|
+
# @param RoleId: 用户角色 ID,一个用户绑定了多个角色时以RoleIdList为准
|
5700
5813
|
# @type RoleId: Integer
|
5701
5814
|
# @param RoleIdList: 用户角色id列表
|
5702
5815
|
# @type RoleIdList: Integer
|
@@ -5708,15 +5821,17 @@ module TencentCloud
|
|
5708
5821
|
# @type LastModifyTimestamp: Integer
|
5709
5822
|
# @param ExtensionNumber: 座席分机号(1 到 8 打头,4 - 6 位)
|
5710
5823
|
# @type ExtensionNumber: String
|
5824
|
+
# @param ForwardingConfig: 呼叫转移配置
|
5825
|
+
# @type ForwardingConfig: :class:`Tencentcloud::Ccc.v20200210.models.ForwardingConfig`
|
5711
5826
|
|
5712
|
-
attr_accessor :Name, :Mail, :Phone, :Nick, :StaffNumber, :RoleId, :RoleIdList, :RoleList, :SkillGroupList, :LastModifyTimestamp, :ExtensionNumber
|
5827
|
+
attr_accessor :Name, :Mail, :Phone, :Nick, :StaffNumber, :RoleId, :RoleIdList, :RoleList, :SkillGroupList, :LastModifyTimestamp, :ExtensionNumber, :ForwardingConfig
|
5713
5828
|
extend Gem::Deprecate
|
5714
5829
|
deprecate :RoleId, :none, 2025, 6
|
5715
5830
|
deprecate :RoleId=, :none, 2025, 6
|
5716
5831
|
deprecate :RoleIdList, :none, 2025, 6
|
5717
5832
|
deprecate :RoleIdList=, :none, 2025, 6
|
5718
5833
|
|
5719
|
-
def initialize(name=nil, mail=nil, phone=nil, nick=nil, staffnumber=nil, roleid=nil, roleidlist=nil, rolelist=nil, skillgrouplist=nil, lastmodifytimestamp=nil, extensionnumber=nil)
|
5834
|
+
def initialize(name=nil, mail=nil, phone=nil, nick=nil, staffnumber=nil, roleid=nil, roleidlist=nil, rolelist=nil, skillgrouplist=nil, lastmodifytimestamp=nil, extensionnumber=nil, forwardingconfig=nil)
|
5720
5835
|
@Name = name
|
5721
5836
|
@Mail = mail
|
5722
5837
|
@Phone = phone
|
@@ -5728,6 +5843,7 @@ module TencentCloud
|
|
5728
5843
|
@SkillGroupList = skillgrouplist
|
5729
5844
|
@LastModifyTimestamp = lastmodifytimestamp
|
5730
5845
|
@ExtensionNumber = extensionnumber
|
5846
|
+
@ForwardingConfig = forwardingconfig
|
5731
5847
|
end
|
5732
5848
|
|
5733
5849
|
def deserialize(params)
|
@@ -5749,6 +5865,10 @@ module TencentCloud
|
|
5749
5865
|
end
|
5750
5866
|
@LastModifyTimestamp = params['LastModifyTimestamp']
|
5751
5867
|
@ExtensionNumber = params['ExtensionNumber']
|
5868
|
+
unless params['ForwardingConfig'].nil?
|
5869
|
+
@ForwardingConfig = ForwardingConfig.new
|
5870
|
+
@ForwardingConfig.deserialize(params['ForwardingConfig'])
|
5871
|
+
end
|
5752
5872
|
end
|
5753
5873
|
end
|
5754
5874
|
|
@@ -5876,9 +5996,9 @@ module TencentCloud
|
|
5876
5996
|
unless params['ClientInfo'].nil?
|
5877
5997
|
@ClientInfo = []
|
5878
5998
|
params['ClientInfo'].each do |i|
|
5879
|
-
|
5880
|
-
|
5881
|
-
@ClientInfo <<
|
5999
|
+
clientinfo_tmp = ClientInfo.new
|
6000
|
+
clientinfo_tmp.deserialize(i)
|
6001
|
+
@ClientInfo << clientinfo_tmp
|
5882
6002
|
end
|
5883
6003
|
end
|
5884
6004
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ccc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1087
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|