# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module TencentCloud module Ccc module V20200210 # 生效运营商白名单号码 class ActiveCarrierPrivilegeNumber < TencentCloud::Common::AbstractModel # @param SdkAppId: 实例Id # @type SdkAppId: Integer # @param Caller: 主叫号码 # @type Caller: String # @param Callee: 被叫号码 # @type Callee: String # @param CreateTime: 生效unix时间戳(秒) # @type CreateTime: Integer attr_accessor :SdkAppId, :Caller, :Callee, :CreateTime def initialize(sdkappid=nil, caller=nil, callee=nil, createtime=nil) @SdkAppId = sdkappid @Caller = caller @Callee = callee @CreateTime = createtime end def deserialize(params) @SdkAppId = params['SdkAppId'] @Caller = params['Caller'] @Callee = params['Callee'] @CreateTime = params['CreateTime'] end end # 外呼任务被叫信息 class AutoCalloutTaskCalleeInfo < TencentCloud::Common::AbstractModel # @param Callee: 被叫号码 # @type Callee: String # @param State: 呼叫状态 0初始 1已接听 2未接听 3呼叫中 4待重试 # @type State: Integer # @param Sessions: 会话ID列表 # @type Sessions: Array attr_accessor :Callee, :State, :Sessions def initialize(callee=nil, state=nil, sessions=nil) @Callee = callee @State = state @Sessions = sessions end def deserialize(params) @Callee = params['Callee'] @State = params['State'] @Sessions = params['Sessions'] end end # 自动外呼任务列表项 class AutoCalloutTaskInfo < TencentCloud::Common::AbstractModel # @param Name: 任务名 # @type Name: String # @param CalleeCount: 被叫数量 # @type CalleeCount: Integer # @param Callers: 主叫号码列表 # @type Callers: Array # @param NotBefore: 起始时间戳 # @type NotBefore: Integer # @param NotAfter: 结束时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NotAfter: Integer # @param IvrId: 任务使用的IvrId # @type IvrId: Integer # @param State: 任务状态0初始 1运行中 2已完成 3结束中 4已结束 # @type State: Integer # @param TaskId: 任务Id # @type TaskId: Integer attr_accessor :Name, :CalleeCount, :Callers, :NotBefore, :NotAfter, :IvrId, :State, :TaskId def initialize(name=nil, calleecount=nil, callers=nil, notbefore=nil, notafter=nil, ivrid=nil, state=nil, taskid=nil) @Name = name @CalleeCount = calleecount @Callers = callers @NotBefore = notbefore @NotAfter = notafter @IvrId = ivrid @State = state @TaskId = taskid end def deserialize(params) @Name = params['Name'] @CalleeCount = params['CalleeCount'] @Callers = params['Callers'] @NotBefore = params['NotBefore'] @NotAfter = params['NotAfter'] @IvrId = params['IvrId'] @State = params['State'] @TaskId = params['TaskId'] end end # BindNumberCallOutSkillGroup请求参数结构体 class BindNumberCallOutSkillGroupRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param Number: 待绑定的号码 # @type Number: String # @param SkillGroupIds: 待绑定的技能组Id列表 # @type SkillGroupIds: Array attr_accessor :SdkAppId, :Number, :SkillGroupIds def initialize(sdkappid=nil, number=nil, skillgroupids=nil) @SdkAppId = sdkappid @Number = number @SkillGroupIds = skillgroupids end def deserialize(params) @SdkAppId = params['SdkAppId'] @Number = params['Number'] @SkillGroupIds = params['SkillGroupIds'] end end # BindNumberCallOutSkillGroup返回参数结构体 class BindNumberCallOutSkillGroupResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # BindStaffSkillGroupList请求参数结构体 class BindStaffSkillGroupListRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param StaffEmail: 座席邮箱 # @type StaffEmail: String # @param SkillGroupList: 绑定技能组列表 # @type SkillGroupList: Array # @param StaffSkillGroupList: 绑定技能组列表(必填) # @type StaffSkillGroupList: Array attr_accessor :SdkAppId, :StaffEmail, :SkillGroupList, :StaffSkillGroupList extend Gem::Deprecate deprecate :SkillGroupList, :none, 2023, 9 deprecate :SkillGroupList=, :none, 2023, 9 def initialize(sdkappid=nil, staffemail=nil, skillgrouplist=nil, staffskillgrouplist=nil) @SdkAppId = sdkappid @StaffEmail = staffemail @SkillGroupList = skillgrouplist @StaffSkillGroupList = staffskillgrouplist end def deserialize(params) @SdkAppId = params['SdkAppId'] @StaffEmail = params['StaffEmail'] @SkillGroupList = params['SkillGroupList'] unless params['StaffSkillGroupList'].nil? @StaffSkillGroupList = [] params['StaffSkillGroupList'].each do |i| staffskillgrouplist_tmp = StaffSkillGroupList.new staffskillgrouplist_tmp.deserialize(i) @StaffSkillGroupList << staffskillgrouplist_tmp end end end end # BindStaffSkillGroupList返回参数结构体 class BindStaffSkillGroupListResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 呼入实时指标 class CallInMetrics < TencentCloud::Common::AbstractModel # @param IvrCount: IVR驻留数量 # @type IvrCount: Integer # @param QueueCount: 排队中数量 # @type QueueCount: Integer # @param RingCount: 振铃中数量 # @type RingCount: Integer # @param AcceptCount: 接通中数量 # @type AcceptCount: Integer # @param TransferOuterCount: 客服转接外线中数量 # @type TransferOuterCount: Integer # @param MaxQueueDuration: 最大排队时长 # @type MaxQueueDuration: Integer # @param AvgQueueDuration: 平均排队时长 # @type AvgQueueDuration: Integer # @param MaxRingDuration: 最大振铃时长 # @type MaxRingDuration: Integer # @param AvgRingDuration: 平均振铃时长 # @type AvgRingDuration: Integer # @param MaxAcceptDuration: 最大接通时长 # @type MaxAcceptDuration: Integer # @param AvgAcceptDuration: 平均接通时长 # @type AvgAcceptDuration: Integer attr_accessor :IvrCount, :QueueCount, :RingCount, :AcceptCount, :TransferOuterCount, :MaxQueueDuration, :AvgQueueDuration, :MaxRingDuration, :AvgRingDuration, :MaxAcceptDuration, :AvgAcceptDuration def initialize(ivrcount=nil, queuecount=nil, ringcount=nil, acceptcount=nil, transferoutercount=nil, maxqueueduration=nil, avgqueueduration=nil, maxringduration=nil, avgringduration=nil, maxacceptduration=nil, avgacceptduration=nil) @IvrCount = ivrcount @QueueCount = queuecount @RingCount = ringcount @AcceptCount = acceptcount @TransferOuterCount = transferoutercount @MaxQueueDuration = maxqueueduration @AvgQueueDuration = avgqueueduration @MaxRingDuration = maxringduration @AvgRingDuration = avgringduration @MaxAcceptDuration = maxacceptduration @AvgAcceptDuration = avgacceptduration end def deserialize(params) @IvrCount = params['IvrCount'] @QueueCount = params['QueueCount'] @RingCount = params['RingCount'] @AcceptCount = params['AcceptCount'] @TransferOuterCount = params['TransferOuterCount'] @MaxQueueDuration = params['MaxQueueDuration'] @AvgQueueDuration = params['AvgQueueDuration'] @MaxRingDuration = params['MaxRingDuration'] @AvgRingDuration = params['AvgRingDuration'] @MaxAcceptDuration = params['MaxAcceptDuration'] @AvgAcceptDuration = params['AvgAcceptDuration'] end end # 呼入线路维度相关指标 class CallInNumberMetrics < TencentCloud::Common::AbstractModel # @param Number: 线路号码 # @type Number: String # @param Metrics: 线路相关指标 # @type Metrics: :class:`Tencentcloud::Ccc.v20200210.models.CallInMetrics` # @param SkillGroupMetrics: 所属技能组相关指标 # @type SkillGroupMetrics: Array attr_accessor :Number, :Metrics, :SkillGroupMetrics def initialize(number=nil, metrics=nil, skillgroupmetrics=nil) @Number = number @Metrics = metrics @SkillGroupMetrics = skillgroupmetrics end def deserialize(params) @Number = params['Number'] unless params['Metrics'].nil? @Metrics = CallInMetrics.new @Metrics.deserialize(params['Metrics']) end unless params['SkillGroupMetrics'].nil? @SkillGroupMetrics = [] params['SkillGroupMetrics'].each do |i| callinskillgroupmetrics_tmp = CallInSkillGroupMetrics.new callinskillgroupmetrics_tmp.deserialize(i) @SkillGroupMetrics << callinskillgroupmetrics_tmp end end end end # 呼入技能组相关指标 class CallInSkillGroupMetrics < TencentCloud::Common::AbstractModel # @param SkillGroupId: 技能组ID # @type SkillGroupId: Integer # @param Metrics: 数据指标 # @type Metrics: :class:`Tencentcloud::Ccc.v20200210.models.CallInMetrics` # @param Name: 技能组名称 # @type Name: String attr_accessor :SkillGroupId, :Metrics, :Name def initialize(skillgroupid=nil, metrics=nil, name=nil) @SkillGroupId = skillgroupid @Metrics = metrics @Name = name end def deserialize(params) @SkillGroupId = params['SkillGroupId'] unless params['Metrics'].nil? @Metrics = CallInMetrics.new @Metrics.deserialize(params['Metrics']) end @Name = params['Name'] end end # 被叫属性 class CalleeAttribute < TencentCloud::Common::AbstractModel # @param Callee: 被叫号码 # @type Callee: String # @param UUI: 随路数据 # @type UUI: String # @param Variables: 参数 # @type Variables: Array attr_accessor :Callee, :UUI, :Variables def initialize(callee=nil, uui=nil, variables=nil) @Callee = callee @UUI = uui @Variables = variables end def deserialize(params) @Callee = params['Callee'] @UUI = params['UUI'] unless params['Variables'].nil? @Variables = [] params['Variables'].each do |i| variable_tmp = Variable.new variable_tmp.deserialize(i) @Variables << variable_tmp end end end end # 运营商白名单号码申请单 class CarrierPrivilegeNumberApplicant < TencentCloud::Common::AbstractModel # @param SdkAppId: 实例Id # @type SdkAppId: Integer # @param ApplicantId: 申请单Id # @type ApplicantId: Integer # @param Callers: 主叫号码列表 # @type Callers: Array # @param Callees: 被叫号码列表 # @type Callees: Array # @param Description: 描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Description: String # @param State: 审批状态:1 待审核、2 通过、3 拒绝 # @type State: Integer # @param CreateTime: 创建时间,unix时间戳(秒) # @type CreateTime: Integer # @param UpdateTime: 更新时间,unix时间戳(秒) # @type UpdateTime: Integer attr_accessor :SdkAppId, :ApplicantId, :Callers, :Callees, :Description, :State, :CreateTime, :UpdateTime def initialize(sdkappid=nil, applicantid=nil, callers=nil, callees=nil, description=nil, state=nil, createtime=nil, updatetime=nil) @SdkAppId = sdkappid @ApplicantId = applicantid @Callers = callers @Callees = callees @Description = description @State = state @CreateTime = createtime @UpdateTime = updatetime end def deserialize(params) @SdkAppId = params['SdkAppId'] @ApplicantId = params['ApplicantId'] @Callers = params['Callers'] @Callees = params['Callees'] @Description = params['Description'] @State = params['State'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] end end # CreateAdminURL请求参数结构体 class CreateAdminURLRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param SeatUserId: 管理员账号 # @type SeatUserId: String attr_accessor :SdkAppId, :SeatUserId def initialize(sdkappid=nil, seatuserid=nil) @SdkAppId = sdkappid @SeatUserId = seatuserid end def deserialize(params) @SdkAppId = params['SdkAppId'] @SeatUserId = params['SeatUserId'] end end # CreateAdminURL返回参数结构体 class CreateAdminURLResponse < TencentCloud::Common::AbstractModel # @param URL: 登录链接 # @type URL: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :URL, :RequestId def initialize(url=nil, requestid=nil) @URL = url @RequestId = requestid end def deserialize(params) @URL = params['URL'] @RequestId = params['RequestId'] end end # CreateAutoCalloutTask请求参数结构体 class CreateAutoCalloutTaskRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param NotBefore: 任务起始时间戳,Unix 秒级时间戳 # @type NotBefore: Integer # @param Callees: 被叫号码列表 # @type Callees: Array # @param Callers: 主叫号码列表 # @type Callers: Array # @param IvrId: 呼叫使用的Ivr # @type IvrId: Integer # @param Name: 任务名 # @type Name: String # @param Description: 任务描述 # @type Description: String # @param NotAfter: 任务停止时间戳,Unix 秒级时间戳 # @type NotAfter: Integer # @param Tries: 最大尝试次数 # @type Tries: Integer # @param Variables: 自定义变量(仅高级版支持) # @type Variables: Array # @param UUI: UUI # @type UUI: String # @param CalleeAttributes: 被叫属性 # @type CalleeAttributes: Array attr_accessor :SdkAppId, :NotBefore, :Callees, :Callers, :IvrId, :Name, :Description, :NotAfter, :Tries, :Variables, :UUI, :CalleeAttributes def initialize(sdkappid=nil, notbefore=nil, callees=nil, callers=nil, ivrid=nil, name=nil, description=nil, notafter=nil, tries=nil, variables=nil, uui=nil, calleeattributes=nil) @SdkAppId = sdkappid @NotBefore = notbefore @Callees = callees @Callers = callers @IvrId = ivrid @Name = name @Description = description @NotAfter = notafter @Tries = tries @Variables = variables @UUI = uui @CalleeAttributes = calleeattributes end def deserialize(params) @SdkAppId = params['SdkAppId'] @NotBefore = params['NotBefore'] @Callees = params['Callees'] @Callers = params['Callers'] @IvrId = params['IvrId'] @Name = params['Name'] @Description = params['Description'] @NotAfter = params['NotAfter'] @Tries = params['Tries'] unless params['Variables'].nil? @Variables = [] params['Variables'].each do |i| variable_tmp = Variable.new variable_tmp.deserialize(i) @Variables << variable_tmp end end @UUI = params['UUI'] unless params['CalleeAttributes'].nil? @CalleeAttributes = [] params['CalleeAttributes'].each do |i| calleeattribute_tmp = CalleeAttribute.new calleeattribute_tmp.deserialize(i) @CalleeAttributes << calleeattribute_tmp end end end end # CreateAutoCalloutTask返回参数结构体 class CreateAutoCalloutTaskResponse < TencentCloud::Common::AbstractModel # @param TaskId: 任务Id # @type TaskId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TaskId, :RequestId def initialize(taskid=nil, requestid=nil) @TaskId = taskid @RequestId = requestid end def deserialize(params) @TaskId = params['TaskId'] @RequestId = params['RequestId'] end end # CreateCCCSkillGroup请求参数结构体 class CreateCCCSkillGroupRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填) # @type SdkAppId: Integer # @param SkillGroupName: 技能组名称 # @type SkillGroupName: String # @param SkillGroupType: 技能组类型0-电话,1-在线,3-音频,4-视频 # @type SkillGroupType: Integer # @param MaxConcurrency: 技能组接待人数上限(该技能组中1个座席可接待的人数上限)默认为1。1、若技能组类型为在线,则接待上限可设置为1及以上 # 2、若技能组类型为电话、音频、视频,则接待上线必须只能为1 # @type MaxConcurrency: Integer attr_accessor :SdkAppId, :SkillGroupName, :SkillGroupType, :MaxConcurrency def initialize(sdkappid=nil, skillgroupname=nil, skillgrouptype=nil, maxconcurrency=nil) @SdkAppId = sdkappid @SkillGroupName = skillgroupname @SkillGroupType = skillgrouptype @MaxConcurrency = maxconcurrency end def deserialize(params) @SdkAppId = params['SdkAppId'] @SkillGroupName = params['SkillGroupName'] @SkillGroupType = params['SkillGroupType'] @MaxConcurrency = params['MaxConcurrency'] end end # CreateCCCSkillGroup返回参数结构体 class CreateCCCSkillGroupResponse < TencentCloud::Common::AbstractModel # @param SkillGroupId: 技能组ID # @type SkillGroupId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SkillGroupId, :RequestId def initialize(skillgroupid=nil, requestid=nil) @SkillGroupId = skillgroupid @RequestId = requestid end def deserialize(params) @SkillGroupId = params['SkillGroupId'] @RequestId = params['RequestId'] end end # CreateCallOutSession请求参数结构体 class CreateCallOutSessionRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID # @type SdkAppId: Integer # @param UserId: 客服用户 ID,一般为客服邮箱 # @type UserId: String # @param Callee: 被叫号码,须带 0086 前缀 # @type Callee: String # @param Caller: 主叫号码(废弃,使用Callers),须带 0086 前缀 # @type Caller: String # @param Callers: 指定主叫号码列表,如果前面的号码失败了会自动换成下一个号码,须带 0086 前缀 # @type Callers: Array # @param IsForceUseMobile: 是否强制使用手机外呼,当前只支持 true,若为 true 请确保已配置白名单 # @type IsForceUseMobile: Boolean # @param Uui: 自定义数据,长度限制 1024 字节 # @type Uui: String attr_accessor :SdkAppId, :UserId, :Callee, :Caller, :Callers, :IsForceUseMobile, :Uui def initialize(sdkappid=nil, userid=nil, callee=nil, caller=nil, callers=nil, isforceusemobile=nil, uui=nil) @SdkAppId = sdkappid @UserId = userid @Callee = callee @Caller = caller @Callers = callers @IsForceUseMobile = isforceusemobile @Uui = uui end def deserialize(params) @SdkAppId = params['SdkAppId'] @UserId = params['UserId'] @Callee = params['Callee'] @Caller = params['Caller'] @Callers = params['Callers'] @IsForceUseMobile = params['IsForceUseMobile'] @Uui = params['Uui'] end end # CreateCallOutSession返回参数结构体 class CreateCallOutSessionResponse < TencentCloud::Common::AbstractModel # @param SessionId: 新创建的会话 ID # @type SessionId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SessionId, :RequestId def initialize(sessionid=nil, requestid=nil) @SessionId = sessionid @RequestId = requestid end def deserialize(params) @SessionId = params['SessionId'] @RequestId = params['RequestId'] end end # CreateCarrierPrivilegeNumberApplicant请求参数结构体 class CreateCarrierPrivilegeNumberApplicantRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: SdkAppId # @type SdkAppId: Integer # @param Callers: 主叫号码,必须为实例中存在的号码,格式为0086xxxx(暂时只支持国内号码) # @type Callers: Array # @param Callees: 被叫号码,必须为实例中坐席绑定的手机号码,格式为0086xxxx(暂时只支持国内号码) # @type Callees: Array # @param Description: 描述 # @type Description: String attr_accessor :SdkAppId, :Callers, :Callees, :Description def initialize(sdkappid=nil, callers=nil, callees=nil, description=nil) @SdkAppId = sdkappid @Callers = callers @Callees = callees @Description = description end def deserialize(params) @SdkAppId = params['SdkAppId'] @Callers = params['Callers'] @Callees = params['Callees'] @Description = params['Description'] end end # CreateCarrierPrivilegeNumberApplicant返回参数结构体 class CreateCarrierPrivilegeNumberApplicantResponse < TencentCloud::Common::AbstractModel # @param ApplicantId: 申请单Id # @type ApplicantId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ApplicantId, :RequestId def initialize(applicantid=nil, requestid=nil) @ApplicantId = applicantid @RequestId = requestid end def deserialize(params) @ApplicantId = params['ApplicantId'] @RequestId = params['RequestId'] end end # CreateExtension请求参数结构体 class CreateExtensionRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param ExtensionId: 分机号 # @type ExtensionId: String # @param ExtensionName: 分机名称 # @type ExtensionName: String # @param SkillGroupIds: 绑定的技能组列表 # @type SkillGroupIds: Array # @param Relation: 绑定的坐席邮箱 # @type Relation: String attr_accessor :SdkAppId, :ExtensionId, :ExtensionName, :SkillGroupIds, :Relation def initialize(sdkappid=nil, extensionid=nil, extensionname=nil, skillgroupids=nil, relation=nil) @SdkAppId = sdkappid @ExtensionId = extensionid @ExtensionName = extensionname @SkillGroupIds = skillgroupids @Relation = relation end def deserialize(params) @SdkAppId = params['SdkAppId'] @ExtensionId = params['ExtensionId'] @ExtensionName = params['ExtensionName'] @SkillGroupIds = params['SkillGroupIds'] @Relation = params['Relation'] end end # CreateExtension返回参数结构体 class CreateExtensionResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # CreateSDKLoginToken请求参数结构体 class CreateSDKLoginTokenRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param SeatUserId: 座席账号。 # @type SeatUserId: String # @param OnlyOnce: 生成的token是否一次性校验 # @type OnlyOnce: Boolean attr_accessor :SdkAppId, :SeatUserId, :OnlyOnce def initialize(sdkappid=nil, seatuserid=nil, onlyonce=nil) @SdkAppId = sdkappid @SeatUserId = seatuserid @OnlyOnce = onlyonce end def deserialize(params) @SdkAppId = params['SdkAppId'] @SeatUserId = params['SeatUserId'] @OnlyOnce = params['OnlyOnce'] end end # CreateSDKLoginToken返回参数结构体 class CreateSDKLoginTokenResponse < TencentCloud::Common::AbstractModel # @param Token: SDK 登录 Token。 # @type Token: String # @param ExpiredTime: 过期时间戳,Unix 时间戳。 # @type ExpiredTime: Integer # @param SdkURL: SDK 加载路径会随着 SDK 的发布而变动。 # @type SdkURL: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Token, :ExpiredTime, :SdkURL, :RequestId def initialize(token=nil, expiredtime=nil, sdkurl=nil, requestid=nil) @Token = token @ExpiredTime = expiredtime @SdkURL = sdkurl @RequestId = requestid end def deserialize(params) @Token = params['Token'] @ExpiredTime = params['ExpiredTime'] @SdkURL = params['SdkURL'] @RequestId = params['RequestId'] end end # CreateStaff请求参数结构体 class CreateStaffRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param Staffs: 客服信息,个数不超过 10 # @type Staffs: Array # @param SendPassword: 是否发送密码邮件,默认true # @type SendPassword: Boolean attr_accessor :SdkAppId, :Staffs, :SendPassword def initialize(sdkappid=nil, staffs=nil, sendpassword=nil) @SdkAppId = sdkappid @Staffs = staffs @SendPassword = sendpassword end def deserialize(params) @SdkAppId = params['SdkAppId'] unless params['Staffs'].nil? @Staffs = [] params['Staffs'].each do |i| seatuserinfo_tmp = SeatUserInfo.new seatuserinfo_tmp.deserialize(i) @Staffs << seatuserinfo_tmp end end @SendPassword = params['SendPassword'] end end # CreateStaff返回参数结构体 class CreateStaffResponse < TencentCloud::Common::AbstractModel # @param ErrorStaffList: 错误坐席列表及错误信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ErrorStaffList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ErrorStaffList, :RequestId def initialize(errorstafflist=nil, requestid=nil) @ErrorStaffList = errorstafflist @RequestId = requestid end def deserialize(params) unless params['ErrorStaffList'].nil? @ErrorStaffList = [] params['ErrorStaffList'].each do |i| errstaffitem_tmp = ErrStaffItem.new errstaffitem_tmp.deserialize(i) @ErrorStaffList << errstaffitem_tmp end end @RequestId = params['RequestId'] end end # CreateUserSig请求参数结构体 class CreateUserSigRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param Uid: 用户 ID,该值必须与 ClientData 字段中 Uid 的值一致 # @type Uid: String # @param ExpiredTime: 有效期,单位秒,不超过 1 小时 # @type ExpiredTime: Integer # @param ClientData: 用户签名数据,必填字段,为标准 JSON 格式 # @type ClientData: String attr_accessor :SdkAppId, :Uid, :ExpiredTime, :ClientData def initialize(sdkappid=nil, uid=nil, expiredtime=nil, clientdata=nil) @SdkAppId = sdkappid @Uid = uid @ExpiredTime = expiredtime @ClientData = clientdata end def deserialize(params) @SdkAppId = params['SdkAppId'] @Uid = params['Uid'] @ExpiredTime = params['ExpiredTime'] @ClientData = params['ClientData'] end end # CreateUserSig返回参数结构体 class CreateUserSigResponse < TencentCloud::Common::AbstractModel # @param UserSig: 签名结果 # @type UserSig: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :UserSig, :RequestId def initialize(usersig=nil, requestid=nil) @UserSig = usersig @RequestId = requestid end def deserialize(params) @UserSig = params['UserSig'] @RequestId = params['RequestId'] end end # DeleteExtension请求参数结构体 class DeleteExtensionRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param ExtensionId: 分机号 # @type ExtensionId: String attr_accessor :SdkAppId, :ExtensionId def initialize(sdkappid=nil, extensionid=nil) @SdkAppId = sdkappid @ExtensionId = extensionid end def deserialize(params) @SdkAppId = params['SdkAppId'] @ExtensionId = params['ExtensionId'] end end # DeleteExtension返回参数结构体 class DeleteExtensionResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DeleteStaff请求参数结构体 class DeleteStaffRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param StaffList: 待删除客服邮箱列表 # @type StaffList: Array attr_accessor :SdkAppId, :StaffList def initialize(sdkappid=nil, stafflist=nil) @SdkAppId = sdkappid @StaffList = stafflist end def deserialize(params) @SdkAppId = params['SdkAppId'] @StaffList = params['StaffList'] end end # DeleteStaff返回参数结构体 class DeleteStaffResponse < TencentCloud::Common::AbstractModel # @param OnlineStaffList: 无法删除的状态为在线的客服列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OnlineStaffList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OnlineStaffList, :RequestId def initialize(onlinestafflist=nil, requestid=nil) @OnlineStaffList = onlinestafflist @RequestId = requestid end def deserialize(params) @OnlineStaffList = params['OnlineStaffList'] @RequestId = params['RequestId'] end end # DescribeActiveCarrierPrivilegeNumber请求参数结构体 class DescribeActiveCarrierPrivilegeNumberRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 实例Id # @type SdkAppId: Integer # @param PageNumber: 默认0 # @type PageNumber: Integer # @param PageSize: 默认10,最大100 # @type PageSize: Integer # @param Filters: 筛选条件 Name支持PhoneNumber(按号码模糊查找) # @type Filters: Array attr_accessor :SdkAppId, :PageNumber, :PageSize, :Filters def initialize(sdkappid=nil, pagenumber=nil, pagesize=nil, filters=nil) @SdkAppId = sdkappid @PageNumber = pagenumber @PageSize = pagesize @Filters = filters end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageNumber = params['PageNumber'] @PageSize = params['PageSize'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end end end # DescribeActiveCarrierPrivilegeNumber返回参数结构体 class DescribeActiveCarrierPrivilegeNumberResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 总数量 # @type TotalCount: Integer # @param ActiveCarrierPrivilegeNumbers: 生效列表 # @type ActiveCarrierPrivilegeNumbers: Array # @param PendingApplicantIds: 待审核单号 # @type PendingApplicantIds: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :ActiveCarrierPrivilegeNumbers, :PendingApplicantIds, :RequestId def initialize(totalcount=nil, activecarrierprivilegenumbers=nil, pendingapplicantids=nil, requestid=nil) @TotalCount = totalcount @ActiveCarrierPrivilegeNumbers = activecarrierprivilegenumbers @PendingApplicantIds = pendingapplicantids @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['ActiveCarrierPrivilegeNumbers'].nil? @ActiveCarrierPrivilegeNumbers = [] params['ActiveCarrierPrivilegeNumbers'].each do |i| activecarrierprivilegenumber_tmp = ActiveCarrierPrivilegeNumber.new activecarrierprivilegenumber_tmp.deserialize(i) @ActiveCarrierPrivilegeNumbers << activecarrierprivilegenumber_tmp end end @PendingApplicantIds = params['PendingApplicantIds'] @RequestId = params['RequestId'] end end # DescribeAutoCalloutTask请求参数结构体 class DescribeAutoCalloutTaskRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param TaskId: 任务Id # @type TaskId: Integer attr_accessor :SdkAppId, :TaskId def initialize(sdkappid=nil, taskid=nil) @SdkAppId = sdkappid @TaskId = taskid end def deserialize(params) @SdkAppId = params['SdkAppId'] @TaskId = params['TaskId'] end end # DescribeAutoCalloutTask返回参数结构体 class DescribeAutoCalloutTaskResponse < TencentCloud::Common::AbstractModel # @param Name: 任务名 # @type Name: String # @param Description: 任务描述 # @type Description: String # @param NotBefore: 任务起始时间戳 # @type NotBefore: Integer # @param NotAfter: 任务结束时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NotAfter: Integer # @param Callers: 主叫列表 # @type Callers: Array # @param Callees: 被叫信息列表 # @type Callees: Array # @param IvrId: 任务使用的IvrId # @type IvrId: Integer # @param State: 任务状态 0初始 1运行中 2已完成 3结束中 4已终止 # @type State: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Name, :Description, :NotBefore, :NotAfter, :Callers, :Callees, :IvrId, :State, :RequestId def initialize(name=nil, description=nil, notbefore=nil, notafter=nil, callers=nil, callees=nil, ivrid=nil, state=nil, requestid=nil) @Name = name @Description = description @NotBefore = notbefore @NotAfter = notafter @Callers = callers @Callees = callees @IvrId = ivrid @State = state @RequestId = requestid end def deserialize(params) @Name = params['Name'] @Description = params['Description'] @NotBefore = params['NotBefore'] @NotAfter = params['NotAfter'] @Callers = params['Callers'] unless params['Callees'].nil? @Callees = [] params['Callees'].each do |i| autocallouttaskcalleeinfo_tmp = AutoCalloutTaskCalleeInfo.new autocallouttaskcalleeinfo_tmp.deserialize(i) @Callees << autocallouttaskcalleeinfo_tmp end end @IvrId = params['IvrId'] @State = params['State'] @RequestId = params['RequestId'] end end # DescribeAutoCalloutTasks请求参数结构体 class DescribeAutoCalloutTasksRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param PageSize: 分页大小 # @type PageSize: Integer # @param PageNumber: 页数 # @type PageNumber: Integer attr_accessor :SdkAppId, :PageSize, :PageNumber def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil) @SdkAppId = sdkappid @PageSize = pagesize @PageNumber = pagenumber end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] end end # DescribeAutoCalloutTasks返回参数结构体 class DescribeAutoCalloutTasksResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 总数 # @type TotalCount: Integer # @param Tasks: 任务列表 # @type Tasks: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Tasks, :RequestId def initialize(totalcount=nil, tasks=nil, requestid=nil) @TotalCount = totalcount @Tasks = tasks @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Tasks'].nil? @Tasks = [] params['Tasks'].each do |i| autocallouttaskinfo_tmp = AutoCalloutTaskInfo.new autocallouttaskinfo_tmp.deserialize(i) @Tasks << autocallouttaskinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeCCCBuyInfoList请求参数结构体 class DescribeCCCBuyInfoListRequest < TencentCloud::Common::AbstractModel # @param SdkAppIds: 应用ID列表,不传时查询所有应用 # @type SdkAppIds: Array attr_accessor :SdkAppIds def initialize(sdkappids=nil) @SdkAppIds = sdkappids end def deserialize(params) @SdkAppIds = params['SdkAppIds'] end end # DescribeCCCBuyInfoList返回参数结构体 class DescribeCCCBuyInfoListResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 应用总数 # @type TotalCount: Integer # @param SdkAppIdBuyList: 应用购买信息列表 # @type SdkAppIdBuyList: Array # @param PackageBuyList: 套餐包购买信息列表 # @type PackageBuyList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :SdkAppIdBuyList, :PackageBuyList, :RequestId def initialize(totalcount=nil, sdkappidbuylist=nil, packagebuylist=nil, requestid=nil) @TotalCount = totalcount @SdkAppIdBuyList = sdkappidbuylist @PackageBuyList = packagebuylist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['SdkAppIdBuyList'].nil? @SdkAppIdBuyList = [] params['SdkAppIdBuyList'].each do |i| sdkappidbuyinfo_tmp = SdkAppIdBuyInfo.new sdkappidbuyinfo_tmp.deserialize(i) @SdkAppIdBuyList << sdkappidbuyinfo_tmp end end unless params['PackageBuyList'].nil? @PackageBuyList = [] params['PackageBuyList'].each do |i| packagebuyinfo_tmp = PackageBuyInfo.new packagebuyinfo_tmp.deserialize(i) @PackageBuyList << packagebuyinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeCallInMetrics请求参数结构体 class DescribeCallInMetricsRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param EnabledSkillGroup: 是否返回技能组维度信息,默认“是” # @type EnabledSkillGroup: Boolean # @param EnabledNumber: 是否返回线路维度信息,默认“否” # @type EnabledNumber: Boolean # @param GroupIdList: 筛选技能组列表 # @type GroupIdList: Array attr_accessor :SdkAppId, :EnabledSkillGroup, :EnabledNumber, :GroupIdList def initialize(sdkappid=nil, enabledskillgroup=nil, enablednumber=nil, groupidlist=nil) @SdkAppId = sdkappid @EnabledSkillGroup = enabledskillgroup @EnabledNumber = enablednumber @GroupIdList = groupidlist end def deserialize(params) @SdkAppId = params['SdkAppId'] @EnabledSkillGroup = params['EnabledSkillGroup'] @EnabledNumber = params['EnabledNumber'] @GroupIdList = params['GroupIdList'] end end # DescribeCallInMetrics返回参数结构体 class DescribeCallInMetricsResponse < TencentCloud::Common::AbstractModel # @param Timestamp: 时间戳 # @type Timestamp: Integer # @param TotalMetrics: 总体指标 # @type TotalMetrics: :class:`Tencentcloud::Ccc.v20200210.models.CallInMetrics` # @param NumberMetrics: 线路维度指标 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NumberMetrics: Array # @param SkillGroupMetrics: 技能组维度指标 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupMetrics: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Timestamp, :TotalMetrics, :NumberMetrics, :SkillGroupMetrics, :RequestId def initialize(timestamp=nil, totalmetrics=nil, numbermetrics=nil, skillgroupmetrics=nil, requestid=nil) @Timestamp = timestamp @TotalMetrics = totalmetrics @NumberMetrics = numbermetrics @SkillGroupMetrics = skillgroupmetrics @RequestId = requestid end def deserialize(params) @Timestamp = params['Timestamp'] unless params['TotalMetrics'].nil? @TotalMetrics = CallInMetrics.new @TotalMetrics.deserialize(params['TotalMetrics']) end unless params['NumberMetrics'].nil? @NumberMetrics = [] params['NumberMetrics'].each do |i| callinnumbermetrics_tmp = CallInNumberMetrics.new callinnumbermetrics_tmp.deserialize(i) @NumberMetrics << callinnumbermetrics_tmp end end unless params['SkillGroupMetrics'].nil? @SkillGroupMetrics = [] params['SkillGroupMetrics'].each do |i| callinskillgroupmetrics_tmp = CallInSkillGroupMetrics.new callinskillgroupmetrics_tmp.deserialize(i) @SkillGroupMetrics << callinskillgroupmetrics_tmp end end @RequestId = params['RequestId'] end end # DescribeCarrierPrivilegeNumberApplicants请求参数结构体 class DescribeCarrierPrivilegeNumberApplicantsRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 实例Id # @type SdkAppId: Integer # @param PageNumber: 默认0,从0开始 # @type PageNumber: Integer # @param PageSize: 默认10,最大100 # @type PageSize: Integer # @param Filters: 筛选条件,Name支持ApplicantId,PhoneNumber(按号码模糊查找) # @type Filters: Array attr_accessor :SdkAppId, :PageNumber, :PageSize, :Filters def initialize(sdkappid=nil, pagenumber=nil, pagesize=nil, filters=nil) @SdkAppId = sdkappid @PageNumber = pagenumber @PageSize = pagesize @Filters = filters end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageNumber = params['PageNumber'] @PageSize = params['PageSize'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end end end # DescribeCarrierPrivilegeNumberApplicants返回参数结构体 class DescribeCarrierPrivilegeNumberApplicantsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 筛选出的总申请单数量 # @type TotalCount: Integer # @param Applicants: 申请单列表 # @type Applicants: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Applicants, :RequestId def initialize(totalcount=nil, applicants=nil, requestid=nil) @TotalCount = totalcount @Applicants = applicants @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Applicants'].nil? @Applicants = [] params['Applicants'].each do |i| carrierprivilegenumberapplicant_tmp = CarrierPrivilegeNumberApplicant.new carrierprivilegenumberapplicant_tmp.deserialize(i) @Applicants << carrierprivilegenumberapplicant_tmp end end @RequestId = params['RequestId'] end end # DescribeChatMessages请求参数结构体 class DescribeChatMessagesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID(废弃) # @type InstanceId: Integer # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param CdrId: 服务记录ID(废弃) # @type CdrId: String # @param Limit: 返回记录条数,最大为100 默认20 # @type Limit: Integer # @param Offset: 返回记录偏移,默认为 0 # @type Offset: Integer # @param Order: 1为从早到晚,2为从晚到早,默认为2 # @type Order: Integer # @param SessionId: 服务记录 SessionID(必填) # @type SessionId: String attr_accessor :InstanceId, :SdkAppId, :CdrId, :Limit, :Offset, :Order, :SessionId def initialize(instanceid=nil, sdkappid=nil, cdrid=nil, limit=nil, offset=nil, order=nil, sessionid=nil) @InstanceId = instanceid @SdkAppId = sdkappid @CdrId = cdrid @Limit = limit @Offset = offset @Order = order @SessionId = sessionid end def deserialize(params) @InstanceId = params['InstanceId'] @SdkAppId = params['SdkAppId'] @CdrId = params['CdrId'] @Limit = params['Limit'] @Offset = params['Offset'] @Order = params['Order'] @SessionId = params['SessionId'] end end # DescribeChatMessages返回参数结构体 class DescribeChatMessagesResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 总记录数 # @type TotalCount: Integer # @param Messages: 消息列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Messages: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Messages, :RequestId def initialize(totalcount=nil, messages=nil, requestid=nil) @TotalCount = totalcount @Messages = messages @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Messages'].nil? @Messages = [] params['Messages'].each do |i| messagebody_tmp = MessageBody.new messagebody_tmp.deserialize(i) @Messages << messagebody_tmp end end @RequestId = params['RequestId'] end end # DescribeExtension请求参数结构体 class DescribeExtensionRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param ExtensionId: 分机号 # @type ExtensionId: String attr_accessor :SdkAppId, :ExtensionId def initialize(sdkappid=nil, extensionid=nil) @SdkAppId = sdkappid @ExtensionId = extensionid end def deserialize(params) @SdkAppId = params['SdkAppId'] @ExtensionId = params['ExtensionId'] end end # DescribeExtension返回参数结构体 class DescribeExtensionResponse < TencentCloud::Common::AbstractModel # @param ExtensionId: 分机号 # @type ExtensionId: String # @param ExtensionDomain: 域名 # @type ExtensionDomain: String # @param Password: 注册密码 # @type Password: String # @param OutboundProxy: 代理服务器地址 # @type OutboundProxy: String # @param Transport: 传输协议 # @type Transport: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ExtensionId, :ExtensionDomain, :Password, :OutboundProxy, :Transport, :RequestId def initialize(extensionid=nil, extensiondomain=nil, password=nil, outboundproxy=nil, transport=nil, requestid=nil) @ExtensionId = extensionid @ExtensionDomain = extensiondomain @Password = password @OutboundProxy = outboundproxy @Transport = transport @RequestId = requestid end def deserialize(params) @ExtensionId = params['ExtensionId'] @ExtensionDomain = params['ExtensionDomain'] @Password = params['Password'] @OutboundProxy = params['OutboundProxy'] @Transport = params['Transport'] @RequestId = params['RequestId'] end end # DescribeExtensions请求参数结构体 class DescribeExtensionsRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param PageNumber: 分页页号(从0开始) # @type PageNumber: Integer # @param ExtensionIds: 筛选分机号列表 # @type ExtensionIds: Array # @param PageSize: 分页大小 # @type PageSize: Integer # @param FuzzingKeyWord: 模糊查询字段(模糊查询分机号、分机名称、坐席邮箱、坐席名称) # @type FuzzingKeyWord: String # @param IsNeedStatus: 是否需要返回话机当前状态 # @type IsNeedStatus: Boolean attr_accessor :SdkAppId, :PageNumber, :ExtensionIds, :PageSize, :FuzzingKeyWord, :IsNeedStatus def initialize(sdkappid=nil, pagenumber=nil, extensionids=nil, pagesize=nil, fuzzingkeyword=nil, isneedstatus=nil) @SdkAppId = sdkappid @PageNumber = pagenumber @ExtensionIds = extensionids @PageSize = pagesize @FuzzingKeyWord = fuzzingkeyword @IsNeedStatus = isneedstatus end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageNumber = params['PageNumber'] @ExtensionIds = params['ExtensionIds'] @PageSize = params['PageSize'] @FuzzingKeyWord = params['FuzzingKeyWord'] @IsNeedStatus = params['IsNeedStatus'] end end # DescribeExtensions返回参数结构体 class DescribeExtensionsResponse < TencentCloud::Common::AbstractModel # @param Total: 查询总数 # @type Total: Integer # @param ExtensionList: 话机信息列表 # @type ExtensionList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Total, :ExtensionList, :RequestId def initialize(total=nil, extensionlist=nil, requestid=nil) @Total = total @ExtensionList = extensionlist @RequestId = requestid end def deserialize(params) @Total = params['Total'] unless params['ExtensionList'].nil? @ExtensionList = [] params['ExtensionList'].each do |i| extensioninfo_tmp = ExtensionInfo.new extensioninfo_tmp.deserialize(i) @ExtensionList << extensioninfo_tmp end end @RequestId = params['RequestId'] end end # DescribeIMCdrs请求参数结构体 class DescribeIMCdrsRequest < TencentCloud::Common::AbstractModel # @param StartTimestamp: 起始时间(必填),Unix 秒级时间戳 # @type StartTimestamp: Integer # @param EndTimestamp: 结束时间(必填),Unix 秒级时间戳 # @type EndTimestamp: Integer # @param InstanceId: 实例 ID(废弃) # @type InstanceId: Integer # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param Limit: 返回记录条数,最大为100默认20 # @type Limit: Integer # @param Offset: 返回记录偏移,默认为 0 # @type Offset: Integer # @param Type: 1为全媒体,2为文本客服,不填则查询全部 # @type Type: Integer attr_accessor :StartTimestamp, :EndTimestamp, :InstanceId, :SdkAppId, :Limit, :Offset, :Type def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, sdkappid=nil, limit=nil, offset=nil, type=nil) @StartTimestamp = starttimestamp @EndTimestamp = endtimestamp @InstanceId = instanceid @SdkAppId = sdkappid @Limit = limit @Offset = offset @Type = type end def deserialize(params) @StartTimestamp = params['StartTimestamp'] @EndTimestamp = params['EndTimestamp'] @InstanceId = params['InstanceId'] @SdkAppId = params['SdkAppId'] @Limit = params['Limit'] @Offset = params['Offset'] @Type = params['Type'] end end # DescribeIMCdrs返回参数结构体 class DescribeIMCdrsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 总记录数 # @type TotalCount: Integer # @param IMCdrs: 服务记录列表 # @type IMCdrs: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :IMCdrs, :RequestId def initialize(totalcount=nil, imcdrs=nil, requestid=nil) @TotalCount = totalcount @IMCdrs = imcdrs @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['IMCdrs'].nil? @IMCdrs = [] params['IMCdrs'].each do |i| imcdrinfo_tmp = IMCdrInfo.new imcdrinfo_tmp.deserialize(i) @IMCdrs << imcdrinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeNumbers请求参数结构体 class DescribeNumbersRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param PageNumber: 页数,从0开始 # @type PageNumber: Integer # @param PageSize: 分页大小,默认20 # @type PageSize: Integer attr_accessor :SdkAppId, :PageNumber, :PageSize def initialize(sdkappid=nil, pagenumber=nil, pagesize=nil) @SdkAppId = sdkappid @PageNumber = pagenumber @PageSize = pagesize end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageNumber = params['PageNumber'] @PageSize = params['PageSize'] end end # DescribeNumbers返回参数结构体 class DescribeNumbersResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 总数量 # @type TotalCount: Integer # @param Numbers: 号码列表 # @type Numbers: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Numbers, :RequestId def initialize(totalcount=nil, numbers=nil, requestid=nil) @TotalCount = totalcount @Numbers = numbers @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Numbers'].nil? @Numbers = [] params['Numbers'].each do |i| numberinfo_tmp = NumberInfo.new numberinfo_tmp.deserialize(i) @Numbers << numberinfo_tmp end end @RequestId = params['RequestId'] end end # DescribePSTNActiveSessionList请求参数结构体 class DescribePSTNActiveSessionListRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param Offset: 数据偏移 # @type Offset: Integer # @param Limit: 返回的数据条数,最大 25 # @type Limit: Integer attr_accessor :SdkAppId, :Offset, :Limit def initialize(sdkappid=nil, offset=nil, limit=nil) @SdkAppId = sdkappid @Offset = offset @Limit = limit end def deserialize(params) @SdkAppId = params['SdkAppId'] @Offset = params['Offset'] @Limit = params['Limit'] end end # DescribePSTNActiveSessionList返回参数结构体 class DescribePSTNActiveSessionListResponse < TencentCloud::Common::AbstractModel # @param Total: 列表总条数 # @type Total: Integer # @param Sessions: 列表内容 # @type Sessions: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Total, :Sessions, :RequestId def initialize(total=nil, sessions=nil, requestid=nil) @Total = total @Sessions = sessions @RequestId = requestid end def deserialize(params) @Total = params['Total'] unless params['Sessions'].nil? @Sessions = [] params['Sessions'].each do |i| pstnsessioninfo_tmp = PSTNSessionInfo.new pstnsessioninfo_tmp.deserialize(i) @Sessions << pstnsessioninfo_tmp end end @RequestId = params['RequestId'] end end # DescribeProtectedTelCdr请求参数结构体 class DescribeProtectedTelCdrRequest < TencentCloud::Common::AbstractModel # @param StartTimeStamp: 起始时间戳,Unix 秒级时间戳 # @type StartTimeStamp: Integer # @param EndTimeStamp: 结束时间戳,Unix 秒级时间戳 # @type EndTimeStamp: Integer # @param SdkAppId: 应用 ID,可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param PageSize: 分页尺寸,上限 100 # @type PageSize: Integer # @param PageNumber: 分页页码,从 0 开始 # @type PageNumber: Integer attr_accessor :StartTimeStamp, :EndTimeStamp, :SdkAppId, :PageSize, :PageNumber def initialize(starttimestamp=nil, endtimestamp=nil, sdkappid=nil, pagesize=nil, pagenumber=nil) @StartTimeStamp = starttimestamp @EndTimeStamp = endtimestamp @SdkAppId = sdkappid @PageSize = pagesize @PageNumber = pagenumber end def deserialize(params) @StartTimeStamp = params['StartTimeStamp'] @EndTimeStamp = params['EndTimeStamp'] @SdkAppId = params['SdkAppId'] @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] end end # DescribeProtectedTelCdr返回参数结构体 class DescribeProtectedTelCdrResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 话单记录总数 # @type TotalCount: Integer # @param TelCdrs: 话单记录 # @type TelCdrs: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :TelCdrs, :RequestId def initialize(totalcount=nil, telcdrs=nil, requestid=nil) @TotalCount = totalcount @TelCdrs = telcdrs @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['TelCdrs'].nil? @TelCdrs = [] params['TelCdrs'].each do |i| telcdrinfo_tmp = TelCdrInfo.new telcdrinfo_tmp.deserialize(i) @TelCdrs << telcdrinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeSkillGroupInfoList请求参数结构体 class DescribeSkillGroupInfoListRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param PageSize: 分页尺寸,上限 100 # @type PageSize: Integer # @param PageNumber: 分页页码,从 0 开始 # @type PageNumber: Integer # @param SkillGroupId: 技能组ID,查询单个技能组时使用 # @type SkillGroupId: Integer # @param ModifiedTime: 查询修改时间大于等于ModifiedTime的技能组时使用 # @type ModifiedTime: Integer # @param SkillGroupName: 技能组名称 # @type SkillGroupName: String attr_accessor :SdkAppId, :PageSize, :PageNumber, :SkillGroupId, :ModifiedTime, :SkillGroupName def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil, skillgroupid=nil, modifiedtime=nil, skillgroupname=nil) @SdkAppId = sdkappid @PageSize = pagesize @PageNumber = pagenumber @SkillGroupId = skillgroupid @ModifiedTime = modifiedtime @SkillGroupName = skillgroupname end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] @SkillGroupId = params['SkillGroupId'] @ModifiedTime = params['ModifiedTime'] @SkillGroupName = params['SkillGroupName'] end end # DescribeSkillGroupInfoList返回参数结构体 class DescribeSkillGroupInfoListResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 技能组总数 # @type TotalCount: Integer # @param SkillGroupList: 技能组信息列表 # @type SkillGroupList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :SkillGroupList, :RequestId def initialize(totalcount=nil, skillgrouplist=nil, requestid=nil) @TotalCount = totalcount @SkillGroupList = skillgrouplist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['SkillGroupList'].nil? @SkillGroupList = [] params['SkillGroupList'].each do |i| skillgroupinfoitem_tmp = SkillGroupInfoItem.new skillgroupinfoitem_tmp.deserialize(i) @SkillGroupList << skillgroupinfoitem_tmp end end @RequestId = params['RequestId'] end end # DescribeStaffInfoList请求参数结构体 class DescribeStaffInfoListRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param PageSize: 分页尺寸,上限 9999 # @type PageSize: Integer # @param PageNumber: 分页页码,从 0 开始 # @type PageNumber: Integer # @param StaffMail: 坐席账号,查询单个坐席时使用 # @type StaffMail: String # @param ModifiedTime: 查询修改时间大于等于ModifiedTime的坐席时使用 # @type ModifiedTime: Integer # @param SkillGroupId: 技能组ID # @type SkillGroupId: Integer attr_accessor :SdkAppId, :PageSize, :PageNumber, :StaffMail, :ModifiedTime, :SkillGroupId def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil, staffmail=nil, modifiedtime=nil, skillgroupid=nil) @SdkAppId = sdkappid @PageSize = pagesize @PageNumber = pagenumber @StaffMail = staffmail @ModifiedTime = modifiedtime @SkillGroupId = skillgroupid end def deserialize(params) @SdkAppId = params['SdkAppId'] @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] @StaffMail = params['StaffMail'] @ModifiedTime = params['ModifiedTime'] @SkillGroupId = params['SkillGroupId'] end end # DescribeStaffInfoList返回参数结构体 class DescribeStaffInfoListResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 坐席用户总数 # @type TotalCount: Integer # @param StaffList: 坐席用户信息列表 # @type StaffList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :StaffList, :RequestId def initialize(totalcount=nil, stafflist=nil, requestid=nil) @TotalCount = totalcount @StaffList = stafflist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['StaffList'].nil? @StaffList = [] params['StaffList'].each do |i| staffinfo_tmp = StaffInfo.new staffinfo_tmp.deserialize(i) @StaffList << staffinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeStaffStatusMetrics请求参数结构体 class DescribeStaffStatusMetricsRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param StaffList: 筛选坐席列表,默认不传返回全部坐席信息 # @type StaffList: Array # @param GroupIdList: 筛选技能组ID列表 # @type GroupIdList: Array # @param StatusList: 筛选坐席状态列表 # @type StatusList: Array attr_accessor :SdkAppId, :StaffList, :GroupIdList, :StatusList def initialize(sdkappid=nil, stafflist=nil, groupidlist=nil, statuslist=nil) @SdkAppId = sdkappid @StaffList = stafflist @GroupIdList = groupidlist @StatusList = statuslist end def deserialize(params) @SdkAppId = params['SdkAppId'] @StaffList = params['StaffList'] @GroupIdList = params['GroupIdList'] @StatusList = params['StatusList'] end end # DescribeStaffStatusMetrics返回参数结构体 class DescribeStaffStatusMetricsResponse < TencentCloud::Common::AbstractModel # @param Metrics: 坐席状态实时信息 # @type Metrics: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Metrics, :RequestId def initialize(metrics=nil, requestid=nil) @Metrics = metrics @RequestId = requestid end def deserialize(params) unless params['Metrics'].nil? @Metrics = [] params['Metrics'].each do |i| staffstatusmetrics_tmp = StaffStatusMetrics.new staffstatusmetrics_tmp.deserialize(i) @Metrics << staffstatusmetrics_tmp end end @RequestId = params['RequestId'] end end # DescribeTelCallInfo请求参数结构体 class DescribeTelCallInfoRequest < TencentCloud::Common::AbstractModel # @param StartTimeStamp: 起始时间戳,Unix 时间戳 # @type StartTimeStamp: Integer # @param EndTimeStamp: 结束时间戳,Unix 时间戳,查询时间范围最大为90天 # @type EndTimeStamp: Integer # @param SdkAppIdList: 应用ID列表,多个ID时,返回值为多个ID使用总和 # @type SdkAppIdList: Array attr_accessor :StartTimeStamp, :EndTimeStamp, :SdkAppIdList def initialize(starttimestamp=nil, endtimestamp=nil, sdkappidlist=nil) @StartTimeStamp = starttimestamp @EndTimeStamp = endtimestamp @SdkAppIdList = sdkappidlist end def deserialize(params) @StartTimeStamp = params['StartTimeStamp'] @EndTimeStamp = params['EndTimeStamp'] @SdkAppIdList = params['SdkAppIdList'] end end # DescribeTelCallInfo返回参数结构体 class DescribeTelCallInfoResponse < TencentCloud::Common::AbstractModel # @param TelCallOutCount: 呼出套餐包消耗分钟数 # @type TelCallOutCount: Integer # @param TelCallInCount: 呼入套餐包消耗分钟数 # @type TelCallInCount: Integer # @param SeatUsedCount: 坐席使用统计个数 # @type SeatUsedCount: Integer # @param VoipCallInCount: 音频套餐包消耗分钟数 # @type VoipCallInCount: Integer # @param AsrOfflineCount: 离线语音转文字套餐包消耗分钟数 # @type AsrOfflineCount: Integer # @param AsrRealtimeCount: 实时语音转文字套餐包消耗分钟数 # @type AsrRealtimeCount: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TelCallOutCount, :TelCallInCount, :SeatUsedCount, :VoipCallInCount, :AsrOfflineCount, :AsrRealtimeCount, :RequestId def initialize(telcalloutcount=nil, telcallincount=nil, seatusedcount=nil, voipcallincount=nil, asrofflinecount=nil, asrrealtimecount=nil, requestid=nil) @TelCallOutCount = telcalloutcount @TelCallInCount = telcallincount @SeatUsedCount = seatusedcount @VoipCallInCount = voipcallincount @AsrOfflineCount = asrofflinecount @AsrRealtimeCount = asrrealtimecount @RequestId = requestid end def deserialize(params) @TelCallOutCount = params['TelCallOutCount'] @TelCallInCount = params['TelCallInCount'] @SeatUsedCount = params['SeatUsedCount'] @VoipCallInCount = params['VoipCallInCount'] @AsrOfflineCount = params['AsrOfflineCount'] @AsrRealtimeCount = params['AsrRealtimeCount'] @RequestId = params['RequestId'] end end # DescribeTelCdr请求参数结构体 class DescribeTelCdrRequest < TencentCloud::Common::AbstractModel # @param StartTimeStamp: 起始时间戳,Unix 秒级时间戳 # @type StartTimeStamp: Integer # @param EndTimeStamp: 结束时间戳,Unix 秒级时间戳 # @type EndTimeStamp: Integer # @param InstanceId: 实例 ID(废弃) # @type InstanceId: Integer # @param Limit: 返回数据条数,上限(废弃) # @type Limit: Integer # @param Offset: 偏移(废弃) # @type Offset: Integer # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param PageSize: 分页尺寸(必填),上限 100 # @type PageSize: Integer # @param PageNumber: 分页页码(必填),从 0 开始 # @type PageNumber: Integer # @param Phones: 按手机号筛选 # @type Phones: Array # @param SessionIds: 按SessionId筛选 # @type SessionIds: Array attr_accessor :StartTimeStamp, :EndTimeStamp, :InstanceId, :Limit, :Offset, :SdkAppId, :PageSize, :PageNumber, :Phones, :SessionIds def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, limit=nil, offset=nil, sdkappid=nil, pagesize=nil, pagenumber=nil, phones=nil, sessionids=nil) @StartTimeStamp = starttimestamp @EndTimeStamp = endtimestamp @InstanceId = instanceid @Limit = limit @Offset = offset @SdkAppId = sdkappid @PageSize = pagesize @PageNumber = pagenumber @Phones = phones @SessionIds = sessionids end def deserialize(params) @StartTimeStamp = params['StartTimeStamp'] @EndTimeStamp = params['EndTimeStamp'] @InstanceId = params['InstanceId'] @Limit = params['Limit'] @Offset = params['Offset'] @SdkAppId = params['SdkAppId'] @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] @Phones = params['Phones'] @SessionIds = params['SessionIds'] end end # DescribeTelCdr返回参数结构体 class DescribeTelCdrResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 话单记录总数 # @type TotalCount: Integer # @param TelCdrs: 话单记录 # @type TelCdrs: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :TelCdrs, :RequestId def initialize(totalcount=nil, telcdrs=nil, requestid=nil) @TotalCount = totalcount @TelCdrs = telcdrs @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['TelCdrs'].nil? @TelCdrs = [] params['TelCdrs'].each do |i| telcdrinfo_tmp = TelCdrInfo.new telcdrinfo_tmp.deserialize(i) @TelCdrs << telcdrinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeTelSession请求参数结构体 class DescribeTelSessionRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param SessionId: 会话 ID # @type SessionId: String attr_accessor :SdkAppId, :SessionId def initialize(sdkappid=nil, sessionid=nil) @SdkAppId = sdkappid @SessionId = sessionid end def deserialize(params) @SdkAppId = params['SdkAppId'] @SessionId = params['SessionId'] end end # DescribeTelSession返回参数结构体 class DescribeTelSessionResponse < TencentCloud::Common::AbstractModel # @param Session: 会话信息 # @type Session: :class:`Tencentcloud::Ccc.v20200210.models.PSTNSession` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Session, :RequestId def initialize(session=nil, requestid=nil) @Session = session @RequestId = requestid end def deserialize(params) unless params['Session'].nil? @Session = PSTNSession.new @Session.deserialize(params['Session']) end @RequestId = params['RequestId'] end end # DisableCCCPhoneNumber请求参数结构体 class DisableCCCPhoneNumberRequest < TencentCloud::Common::AbstractModel # @param PhoneNumbers: 号码列表,0086开头 # @type PhoneNumbers: Array # @param Disabled: 停用开关,0启用 1停用 # @type Disabled: Integer # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer attr_accessor :PhoneNumbers, :Disabled, :SdkAppId def initialize(phonenumbers=nil, disabled=nil, sdkappid=nil) @PhoneNumbers = phonenumbers @Disabled = disabled @SdkAppId = sdkappid end def deserialize(params) @PhoneNumbers = params['PhoneNumbers'] @Disabled = params['Disabled'] @SdkAppId = params['SdkAppId'] end end # DisableCCCPhoneNumber返回参数结构体 class DisableCCCPhoneNumberResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 批量添加客服时,返回出错客服的信息 class ErrStaffItem < TencentCloud::Common::AbstractModel # @param StaffEmail: 坐席邮箱地址 # @type StaffEmail: String # @param Code: 错误码 # @type Code: String # @param Message: 错误描述 # @type Message: String attr_accessor :StaffEmail, :Code, :Message def initialize(staffemail=nil, code=nil, message=nil) @StaffEmail = staffemail @Code = code @Message = message end def deserialize(params) @StaffEmail = params['StaffEmail'] @Code = params['Code'] @Message = params['Message'] end end # 话机信息 class ExtensionInfo < TencentCloud::Common::AbstractModel # @param SdkAppId: 实例ID # @type SdkAppId: Integer # @param FullExtensionId: 分机全名 # @type FullExtensionId: String # @param ExtensionId: 分机号 # @type ExtensionId: String # @param SkillGroupId: 所属技能组列表 # @type SkillGroupId: String # @param ExtensionName: 分机名称 # @type ExtensionName: String # @param CreateTime: 创建时间 # @type CreateTime: Integer # @param ModifyTime: 最后修改时间 # @type ModifyTime: Integer # @param Status: 话机状态(0 离线、100 空闲、200忙碌) # @type Status: Integer # @param Register: 是否注册 # @type Register: Boolean # @param Relation: 绑定坐席邮箱 # @type Relation: String # @param RelationName: 绑定坐席名称 # @type RelationName: String attr_accessor :SdkAppId, :FullExtensionId, :ExtensionId, :SkillGroupId, :ExtensionName, :CreateTime, :ModifyTime, :Status, :Register, :Relation, :RelationName def initialize(sdkappid=nil, fullextensionid=nil, extensionid=nil, skillgroupid=nil, extensionname=nil, createtime=nil, modifytime=nil, status=nil, register=nil, relation=nil, relationname=nil) @SdkAppId = sdkappid @FullExtensionId = fullextensionid @ExtensionId = extensionid @SkillGroupId = skillgroupid @ExtensionName = extensionname @CreateTime = createtime @ModifyTime = modifytime @Status = status @Register = register @Relation = relation @RelationName = relationname end def deserialize(params) @SdkAppId = params['SdkAppId'] @FullExtensionId = params['FullExtensionId'] @ExtensionId = params['ExtensionId'] @SkillGroupId = params['SkillGroupId'] @ExtensionName = params['ExtensionName'] @CreateTime = params['CreateTime'] @ModifyTime = params['ModifyTime'] @Status = params['Status'] @Register = params['Register'] @Relation = params['Relation'] @RelationName = params['RelationName'] end end # 筛选条件 class Filter < TencentCloud::Common::AbstractModel # @param Name: 筛选字段名 # @type Name: String # @param Values: 筛选条件值 # @type Values: Array attr_accessor :Name, :Values def initialize(name=nil, values=nil) @Name = name @Values = values end def deserialize(params) @Name = params['Name'] @Values = params['Values'] end end # HangUpCall请求参数结构体 class HangUpCallRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param SessionId: 会话ID # @type SessionId: String attr_accessor :SdkAppId, :SessionId def initialize(sdkappid=nil, sessionid=nil) @SdkAppId = sdkappid @SessionId = sessionid end def deserialize(params) @SdkAppId = params['SdkAppId'] @SessionId = params['SessionId'] end end # HangUpCall返回参数结构体 class HangUpCallResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 文本会话服务记录信息 class IMCdrInfo < TencentCloud::Common::AbstractModel # @param Id: 服务记录ID # @type Id: String # @param Duration: 服务时长秒数 # @type Duration: Integer # @param EndStatus: 结束状态 # 0 异常结束 # 1 正常结束 # 3 无坐席在线 # 17 坐席放弃接听 # 100 黑名单 # 101 坐席手动转接 # 102 IVR阶段放弃 # 108 用户超时自动结束 # @type EndStatus: Integer # @param Nickname: 用户昵称 # @type Nickname: String # @param Type: 服务类型 1为全媒体,2为文本客服 # @type Type: Integer # @param StaffId: 客服ID # @type StaffId: String # @param Timestamp: 服务时间戳 # @type Timestamp: Integer # @param SessionId: 会话ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SessionId: String # @param SkillGroupId: 技能组ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupId: String # @param SkillGroupName: 技能组名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupName: String # @param Satisfaction: 满意度 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Satisfaction: :class:`Tencentcloud::Ccc.v20200210.models.IMSatisfaction` attr_accessor :Id, :Duration, :EndStatus, :Nickname, :Type, :StaffId, :Timestamp, :SessionId, :SkillGroupId, :SkillGroupName, :Satisfaction def initialize(id=nil, duration=nil, endstatus=nil, nickname=nil, type=nil, staffid=nil, timestamp=nil, sessionid=nil, skillgroupid=nil, skillgroupname=nil, satisfaction=nil) @Id = id @Duration = duration @EndStatus = endstatus @Nickname = nickname @Type = type @StaffId = staffid @Timestamp = timestamp @SessionId = sessionid @SkillGroupId = skillgroupid @SkillGroupName = skillgroupname @Satisfaction = satisfaction end def deserialize(params) @Id = params['Id'] @Duration = params['Duration'] @EndStatus = params['EndStatus'] @Nickname = params['Nickname'] @Type = params['Type'] @StaffId = params['StaffId'] @Timestamp = params['Timestamp'] @SessionId = params['SessionId'] @SkillGroupId = params['SkillGroupId'] @SkillGroupName = params['SkillGroupName'] unless params['Satisfaction'].nil? @Satisfaction = IMSatisfaction.new @Satisfaction.deserialize(params['Satisfaction']) end end end # IM满意度 class IMSatisfaction < TencentCloud::Common::AbstractModel # @param Id: 满意度值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Id: Integer # @param Label: 满意度标签 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Label: String attr_accessor :Id, :Label def initialize(id=nil, label=nil) @Id = id @Label = label end def deserialize(params) @Id = params['Id'] @Label = params['Label'] end end # ivr 按键信息 class IVRKeyPressedElement < TencentCloud::Common::AbstractModel # @param Key: 按键 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Key: String # @param Label: 按键关联的标签 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Label: String attr_accessor :Key, :Label def initialize(key=nil, label=nil) @Key = key @Label = label end def deserialize(params) @Key = params['Key'] @Label = params['Label'] end end # 单条消息 class Message < TencentCloud::Common::AbstractModel # @param Type: 消息类型 # @type Type: String # @param Content: 消息内容 # @type Content: String attr_accessor :Type, :Content def initialize(type=nil, content=nil) @Type = type @Content = content end def deserialize(params) @Type = params['Type'] @Content = params['Content'] end end # 聊天消息 class MessageBody < TencentCloud::Common::AbstractModel # @param Timestamp: 消息时间戳 # @type Timestamp: Integer # @param From: 发消息的用户ID # @type From: String # @param Messages: 消息列表 # @type Messages: Array attr_accessor :Timestamp, :From, :Messages def initialize(timestamp=nil, from=nil, messages=nil) @Timestamp = timestamp @From = from @Messages = messages end def deserialize(params) @Timestamp = params['Timestamp'] @From = params['From'] unless params['Messages'].nil? @Messages = [] params['Messages'].each do |i| message_tmp = Message.new message_tmp.deserialize(i) @Messages << message_tmp end end end end # ModifyExtension请求参数结构体 class ModifyExtensionRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param ExtensionId: 分机号 # @type ExtensionId: String # @param ExtensionName: 分机名称 # @type ExtensionName: String # @param SkillGroupIds: 所属技能组列表 # @type SkillGroupIds: Array # @param Relation: 绑定坐席邮箱账号 # @type Relation: String attr_accessor :SdkAppId, :ExtensionId, :ExtensionName, :SkillGroupIds, :Relation def initialize(sdkappid=nil, extensionid=nil, extensionname=nil, skillgroupids=nil, relation=nil) @SdkAppId = sdkappid @ExtensionId = extensionid @ExtensionName = extensionname @SkillGroupIds = skillgroupids @Relation = relation end def deserialize(params) @SdkAppId = params['SdkAppId'] @ExtensionId = params['ExtensionId'] @ExtensionName = params['ExtensionName'] @SkillGroupIds = params['SkillGroupIds'] @Relation = params['Relation'] end end # ModifyExtension返回参数结构体 class ModifyExtensionResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyStaff请求参数结构体 class ModifyStaffRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用ID # @type SdkAppId: Integer # @param Email: 座席账户 # @type Email: String # @param Name: 座席名称 # @type Name: String # @param Phone: 座席手机号(带0086前缀,示例:008618011111111) # @type Phone: String # @param Nick: 座席昵称 # @type Nick: String # @param SkillGroupIds: 绑定技能组ID列表 # @type SkillGroupIds: Array # @param UseMobileCallOut: 是否开启手机外呼开关 # @type UseMobileCallOut: Boolean # @param UseMobileAccept: 手机接听模式 0 - 关闭 | 1 - 仅离线 | 2 - 始终 # @type UseMobileAccept: Integer attr_accessor :SdkAppId, :Email, :Name, :Phone, :Nick, :SkillGroupIds, :UseMobileCallOut, :UseMobileAccept def initialize(sdkappid=nil, email=nil, name=nil, phone=nil, nick=nil, skillgroupids=nil, usemobilecallout=nil, usemobileaccept=nil) @SdkAppId = sdkappid @Email = email @Name = name @Phone = phone @Nick = nick @SkillGroupIds = skillgroupids @UseMobileCallOut = usemobilecallout @UseMobileAccept = usemobileaccept end def deserialize(params) @SdkAppId = params['SdkAppId'] @Email = params['Email'] @Name = params['Name'] @Phone = params['Phone'] @Nick = params['Nick'] @SkillGroupIds = params['SkillGroupIds'] @UseMobileCallOut = params['UseMobileCallOut'] @UseMobileAccept = params['UseMobileAccept'] end end # ModifyStaff返回参数结构体 class ModifyStaffResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 号码信息 class NumberInfo < TencentCloud::Common::AbstractModel # @param Number: 号码 # @type Number: String # @param CallOutSkillGroupIds: 绑定的外呼技能组 # @type CallOutSkillGroupIds: Array attr_accessor :Number, :CallOutSkillGroupIds def initialize(number=nil, calloutskillgroupids=nil) @Number = number @CallOutSkillGroupIds = calloutskillgroupids end def deserialize(params) @Number = params['Number'] @CallOutSkillGroupIds = params['CallOutSkillGroupIds'] end end # PSTN 会话类型。 class PSTNSession < TencentCloud::Common::AbstractModel # @param SessionID: 会话 ID # @type SessionID: String # @param RoomID: 会话临时房间 ID # @type RoomID: String # @param Caller: 主叫 # @type Caller: String # @param Callee: 被叫 # @type Callee: String # @param StartTimestamp: 开始时间,Unix 时间戳 # @type StartTimestamp: Integer # @param RingTimestamp: 振铃时间,Unix 时间戳 # @type RingTimestamp: Integer # @param AcceptTimestamp: 接听时间,Unix 时间戳 # @type AcceptTimestamp: Integer # @param StaffEmail: 坐席邮箱 # @type StaffEmail: String # @param StaffNumber: 坐席工号 # @type StaffNumber: String # @param SessionStatus: 会话状态 # ringing 振铃中 # seatJoining 等待坐席接听 # inProgress 进行中 # finished 已完成 # @type SessionStatus: String # @param Direction: 会话呼叫方向, 0 呼入 | 1 - 呼出 # @type Direction: Integer # @param OutBoundCaller: 转外线使用的号码(转外线主叫) # @type OutBoundCaller: String # @param OutBoundCallee: 转外线被叫 # @type OutBoundCallee: String # @param ProtectedCaller: 主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空 # @type ProtectedCaller: String # @param ProtectedCallee: 被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空 # @type ProtectedCallee: String attr_accessor :SessionID, :RoomID, :Caller, :Callee, :StartTimestamp, :RingTimestamp, :AcceptTimestamp, :StaffEmail, :StaffNumber, :SessionStatus, :Direction, :OutBoundCaller, :OutBoundCallee, :ProtectedCaller, :ProtectedCallee def initialize(sessionid=nil, roomid=nil, caller=nil, callee=nil, starttimestamp=nil, ringtimestamp=nil, accepttimestamp=nil, staffemail=nil, staffnumber=nil, sessionstatus=nil, direction=nil, outboundcaller=nil, outboundcallee=nil, protectedcaller=nil, protectedcallee=nil) @SessionID = sessionid @RoomID = roomid @Caller = caller @Callee = callee @StartTimestamp = starttimestamp @RingTimestamp = ringtimestamp @AcceptTimestamp = accepttimestamp @StaffEmail = staffemail @StaffNumber = staffnumber @SessionStatus = sessionstatus @Direction = direction @OutBoundCaller = outboundcaller @OutBoundCallee = outboundcallee @ProtectedCaller = protectedcaller @ProtectedCallee = protectedcallee end def deserialize(params) @SessionID = params['SessionID'] @RoomID = params['RoomID'] @Caller = params['Caller'] @Callee = params['Callee'] @StartTimestamp = params['StartTimestamp'] @RingTimestamp = params['RingTimestamp'] @AcceptTimestamp = params['AcceptTimestamp'] @StaffEmail = params['StaffEmail'] @StaffNumber = params['StaffNumber'] @SessionStatus = params['SessionStatus'] @Direction = params['Direction'] @OutBoundCaller = params['OutBoundCaller'] @OutBoundCallee = params['OutBoundCallee'] @ProtectedCaller = params['ProtectedCaller'] @ProtectedCallee = params['ProtectedCallee'] end end # PSTN 会话信息 class PSTNSessionInfo < TencentCloud::Common::AbstractModel # @param SessionID: 会话 ID # @type SessionID: String # @param RoomID: 会话临时房间 ID # @type RoomID: String # @param Caller: 主叫 # @type Caller: String # @param Callee: 被叫 # @type Callee: String # @param StartTimestamp: 开始时间,Unix 时间戳 # @type StartTimestamp: String # @param AcceptTimestamp: 接听时间,Unix 时间戳 # @type AcceptTimestamp: String # @param StaffEmail: 坐席邮箱 # @type StaffEmail: String # @param StaffNumber: 坐席工号 # @type StaffNumber: String # @param SessionStatus: 坐席状态 inProgress 进行中 # @type SessionStatus: String # @param Direction: 会话呼叫方向, 0 呼入 | 1 - 呼出 # @type Direction: Integer # @param RingTimestamp: 振铃时间,Unix 时间戳 # @type RingTimestamp: Integer # @param ProtectedCaller: 主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空 # @type ProtectedCaller: String # @param ProtectedCallee: 被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空 # @type ProtectedCallee: String attr_accessor :SessionID, :RoomID, :Caller, :Callee, :StartTimestamp, :AcceptTimestamp, :StaffEmail, :StaffNumber, :SessionStatus, :Direction, :RingTimestamp, :ProtectedCaller, :ProtectedCallee def initialize(sessionid=nil, roomid=nil, caller=nil, callee=nil, starttimestamp=nil, accepttimestamp=nil, staffemail=nil, staffnumber=nil, sessionstatus=nil, direction=nil, ringtimestamp=nil, protectedcaller=nil, protectedcallee=nil) @SessionID = sessionid @RoomID = roomid @Caller = caller @Callee = callee @StartTimestamp = starttimestamp @AcceptTimestamp = accepttimestamp @StaffEmail = staffemail @StaffNumber = staffnumber @SessionStatus = sessionstatus @Direction = direction @RingTimestamp = ringtimestamp @ProtectedCaller = protectedcaller @ProtectedCallee = protectedcallee end def deserialize(params) @SessionID = params['SessionID'] @RoomID = params['RoomID'] @Caller = params['Caller'] @Callee = params['Callee'] @StartTimestamp = params['StartTimestamp'] @AcceptTimestamp = params['AcceptTimestamp'] @StaffEmail = params['StaffEmail'] @StaffNumber = params['StaffNumber'] @SessionStatus = params['SessionStatus'] @Direction = params['Direction'] @RingTimestamp = params['RingTimestamp'] @ProtectedCaller = params['ProtectedCaller'] @ProtectedCallee = params['ProtectedCallee'] end end # 套餐包购买信息 class PackageBuyInfo < TencentCloud::Common::AbstractModel # @param PackageId: 套餐包Id # @type PackageId: String # @param Type: 套餐包类型,0-外呼套餐包|1-400呼入套餐包 # @type Type: Integer # @param CapacitySize: 套餐包总量 # @type CapacitySize: Integer # @param CapacityRemain: 套餐包剩余量 # @type CapacityRemain: Integer # @param BuyTime: 购买时间戳 # @type BuyTime: Integer # @param EndTime: 截止时间戳 # @type EndTime: Integer attr_accessor :PackageId, :Type, :CapacitySize, :CapacityRemain, :BuyTime, :EndTime def initialize(packageid=nil, type=nil, capacitysize=nil, capacityremain=nil, buytime=nil, endtime=nil) @PackageId = packageid @Type = type @CapacitySize = capacitysize @CapacityRemain = capacityremain @BuyTime = buytime @EndTime = endtime end def deserialize(params) @PackageId = params['PackageId'] @Type = params['Type'] @CapacitySize = params['CapacitySize'] @CapacityRemain = params['CapacityRemain'] @BuyTime = params['BuyTime'] @EndTime = params['EndTime'] end end # 号码购买信息 class PhoneNumBuyInfo < TencentCloud::Common::AbstractModel # @param PhoneNum: 电话号码 # @type PhoneNum: String # @param Type: 号码类型,0-固话|1-虚商号码|2-运营商号码|3-400号码 # @type Type: Integer # @param CallType: 号码呼叫类型,1-呼入|2-呼出|3-呼入呼出 # @type CallType: Integer # @param BuyTime: 购买时间戳 # @type BuyTime: Integer # @param EndTime: 截止时间戳 # @type EndTime: Integer # @param State: 号码状态,1正常|2欠费停用|4管理员停用|5违规停用 # @type State: Integer attr_accessor :PhoneNum, :Type, :CallType, :BuyTime, :EndTime, :State def initialize(phonenum=nil, type=nil, calltype=nil, buytime=nil, endtime=nil, state=nil) @PhoneNum = phonenum @Type = type @CallType = calltype @BuyTime = buytime @EndTime = endtime @State = state end def deserialize(params) @PhoneNum = params['PhoneNum'] @Type = params['Type'] @CallType = params['CallType'] @BuyTime = params['BuyTime'] @EndTime = params['EndTime'] @State = params['State'] end end # ResetExtensionPassword请求参数结构体 class ResetExtensionPasswordRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: TCCC 实例应用 ID # @type SdkAppId: Integer # @param ExtensionId: 分机号 # @type ExtensionId: String attr_accessor :SdkAppId, :ExtensionId def initialize(sdkappid=nil, extensionid=nil) @SdkAppId = sdkappid @ExtensionId = extensionid end def deserialize(params) @SdkAppId = params['SdkAppId'] @ExtensionId = params['ExtensionId'] end end # ResetExtensionPassword返回参数结构体 class ResetExtensionPasswordResponse < TencentCloud::Common::AbstractModel # @param Password: 重置后密码 # @type Password: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Password, :RequestId def initialize(password=nil, requestid=nil) @Password = password @RequestId = requestid end def deserialize(params) @Password = params['Password'] @RequestId = params['RequestId'] end end # 应用购买信息 class SdkAppIdBuyInfo < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用ID # @type SdkAppId: Integer # @param Name: 应用名称 # @type Name: String # @param StaffBuyNum: 坐席购买数(还在有效期内) # @type StaffBuyNum: Integer # @param StaffBuyList: 坐席购买列表 (还在有效期内) # @type StaffBuyList: Array # @param PhoneNumBuyList: 号码购买列表 # @type PhoneNumBuyList: Array # @param SipBuyNum: 办公电话购买数(还在有效期内) # 注意:此字段可能返回 null,表示取不到有效值。 # @type SipBuyNum: Integer attr_accessor :SdkAppId, :Name, :StaffBuyNum, :StaffBuyList, :PhoneNumBuyList, :SipBuyNum def initialize(sdkappid=nil, name=nil, staffbuynum=nil, staffbuylist=nil, phonenumbuylist=nil, sipbuynum=nil) @SdkAppId = sdkappid @Name = name @StaffBuyNum = staffbuynum @StaffBuyList = staffbuylist @PhoneNumBuyList = phonenumbuylist @SipBuyNum = sipbuynum end def deserialize(params) @SdkAppId = params['SdkAppId'] @Name = params['Name'] @StaffBuyNum = params['StaffBuyNum'] unless params['StaffBuyList'].nil? @StaffBuyList = [] params['StaffBuyList'].each do |i| staffbuyinfo_tmp = StaffBuyInfo.new staffbuyinfo_tmp.deserialize(i) @StaffBuyList << staffbuyinfo_tmp end end unless params['PhoneNumBuyList'].nil? @PhoneNumBuyList = [] params['PhoneNumBuyList'].each do |i| phonenumbuyinfo_tmp = PhoneNumBuyInfo.new phonenumbuyinfo_tmp.deserialize(i) @PhoneNumBuyList << phonenumbuyinfo_tmp end end @SipBuyNum = params['SipBuyNum'] end end # 坐席用户信息 class SeatUserInfo < TencentCloud::Common::AbstractModel # @param Name: 坐席名称 # @type Name: String # @param Mail: 坐席邮箱 # @type Mail: String # @param StaffNumber: 工号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StaffNumber: String # @param Phone: 坐席电话号码(带0086前缀) # @type Phone: String # @param Nick: 坐席昵称 # @type Nick: String # @param UserId: 用户ID # @type UserId: String # @param SkillGroupNameList: 坐席关联的技能组列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupNameList: Array attr_accessor :Name, :Mail, :StaffNumber, :Phone, :Nick, :UserId, :SkillGroupNameList def initialize(name=nil, mail=nil, staffnumber=nil, phone=nil, nick=nil, userid=nil, skillgroupnamelist=nil) @Name = name @Mail = mail @StaffNumber = staffnumber @Phone = phone @Nick = nick @UserId = userid @SkillGroupNameList = skillgroupnamelist end def deserialize(params) @Name = params['Name'] @Mail = params['Mail'] @StaffNumber = params['StaffNumber'] @Phone = params['Phone'] @Nick = params['Nick'] @UserId = params['UserId'] @SkillGroupNameList = params['SkillGroupNameList'] end end # 参与者信息 class ServeParticipant < TencentCloud::Common::AbstractModel # @param Mail: 坐席邮箱 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Mail: String # @param Phone: 坐席电话 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Phone: String # @param RingTimestamp: 振铃时间戳,Unix 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RingTimestamp: Integer # @param AcceptTimestamp: 接听时间戳,Unix 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AcceptTimestamp: Integer # @param EndedTimestamp: 结束时间戳,Unix 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EndedTimestamp: Integer # @param RecordId: 录音 ID,能够索引到坐席侧的录音 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RecordId: String # @param Type: 参与者类型,"staffSeat", "outboundSeat", "staffPhoneSeat" # 注意:此字段可能返回 null,表示取不到有效值。 # @type Type: String # @param TransferFrom: 转接来源坐席信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TransferFrom: String # @param TransferFromType: 转接来源参与者类型,取值与 Type 一致 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TransferFromType: String # @param TransferTo: 转接去向坐席信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TransferTo: String # @param TransferToType: 转接去向参与者类型,取值与 Type 一致 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TransferToType: String # @param SkillGroupId: 技能组 ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupId: Integer # @param EndStatusString: 结束状态 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EndStatusString: String # @param RecordURL: 录音 URL # 注意:此字段可能返回 null,表示取不到有效值。 # @type RecordURL: String # @param Sequence: 参与者序号,从 0 开始 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Sequence: Integer # @param StartTimestamp: 开始时间戳,Unix 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StartTimestamp: Integer # @param SkillGroupName: 技能组名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupName: String # @param CustomRecordURL: 录音转存第三方COS地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CustomRecordURL: String attr_accessor :Mail, :Phone, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :RecordId, :Type, :TransferFrom, :TransferFromType, :TransferTo, :TransferToType, :SkillGroupId, :EndStatusString, :RecordURL, :Sequence, :StartTimestamp, :SkillGroupName, :CustomRecordURL def initialize(mail=nil, phone=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, recordid=nil, type=nil, transferfrom=nil, transferfromtype=nil, transferto=nil, transfertotype=nil, skillgroupid=nil, endstatusstring=nil, recordurl=nil, sequence=nil, starttimestamp=nil, skillgroupname=nil, customrecordurl=nil) @Mail = mail @Phone = phone @RingTimestamp = ringtimestamp @AcceptTimestamp = accepttimestamp @EndedTimestamp = endedtimestamp @RecordId = recordid @Type = type @TransferFrom = transferfrom @TransferFromType = transferfromtype @TransferTo = transferto @TransferToType = transfertotype @SkillGroupId = skillgroupid @EndStatusString = endstatusstring @RecordURL = recordurl @Sequence = sequence @StartTimestamp = starttimestamp @SkillGroupName = skillgroupname @CustomRecordURL = customrecordurl end def deserialize(params) @Mail = params['Mail'] @Phone = params['Phone'] @RingTimestamp = params['RingTimestamp'] @AcceptTimestamp = params['AcceptTimestamp'] @EndedTimestamp = params['EndedTimestamp'] @RecordId = params['RecordId'] @Type = params['Type'] @TransferFrom = params['TransferFrom'] @TransferFromType = params['TransferFromType'] @TransferTo = params['TransferTo'] @TransferToType = params['TransferToType'] @SkillGroupId = params['SkillGroupId'] @EndStatusString = params['EndStatusString'] @RecordURL = params['RecordURL'] @Sequence = params['Sequence'] @StartTimestamp = params['StartTimestamp'] @SkillGroupName = params['SkillGroupName'] @CustomRecordURL = params['CustomRecordURL'] end end # 技能组信息 class SkillGroupInfoItem < TencentCloud::Common::AbstractModel # @param SkillGroupId: 技能组ID # @type SkillGroupId: Integer # @param SkillGroupName: 技能组名称 # @type SkillGroupName: String # @param Type: (废弃)类型:IM、TEL、ALL(全媒体) # @type Type: String # @param RoutePolicy: 会话分配策略 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RoutePolicy: String # @param UsingLastSeat: 会话分配是否优先上次服务坐席 # 注意:此字段可能返回 null,表示取不到有效值。 # @type UsingLastSeat: Integer # @param MaxConcurrency: 单客服最大并发数(电话类型默认1) # 注意:此字段可能返回 null,表示取不到有效值。 # @type MaxConcurrency: Integer # @param LastModifyTimestamp: 最后修改时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastModifyTimestamp: Integer # @param SkillGroupType: 技能组类型0-电话,1-在线,3-音频,4-视频 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupType: Integer attr_accessor :SkillGroupId, :SkillGroupName, :Type, :RoutePolicy, :UsingLastSeat, :MaxConcurrency, :LastModifyTimestamp, :SkillGroupType def initialize(skillgroupid=nil, skillgroupname=nil, type=nil, routepolicy=nil, usinglastseat=nil, maxconcurrency=nil, lastmodifytimestamp=nil, skillgrouptype=nil) @SkillGroupId = skillgroupid @SkillGroupName = skillgroupname @Type = type @RoutePolicy = routepolicy @UsingLastSeat = usinglastseat @MaxConcurrency = maxconcurrency @LastModifyTimestamp = lastmodifytimestamp @SkillGroupType = skillgrouptype end def deserialize(params) @SkillGroupId = params['SkillGroupId'] @SkillGroupName = params['SkillGroupName'] @Type = params['Type'] @RoutePolicy = params['RoutePolicy'] @UsingLastSeat = params['UsingLastSeat'] @MaxConcurrency = params['MaxConcurrency'] @LastModifyTimestamp = params['LastModifyTimestamp'] @SkillGroupType = params['SkillGroupType'] end end # 技能组信息 class SkillGroupItem < TencentCloud::Common::AbstractModel # @param SkillGroupId: 技能组ID # @type SkillGroupId: Integer # @param SkillGroupName: 技能组名称 # @type SkillGroupName: String # @param Priority: 优先级 # @type Priority: Integer # @param Type: 类型:IM、TEL、ALL(全媒体) # @type Type: String attr_accessor :SkillGroupId, :SkillGroupName, :Priority, :Type def initialize(skillgroupid=nil, skillgroupname=nil, priority=nil, type=nil) @SkillGroupId = skillgroupid @SkillGroupName = skillgroupname @Priority = priority @Type = type end def deserialize(params) @SkillGroupId = params['SkillGroupId'] @SkillGroupName = params['SkillGroupName'] @Priority = params['Priority'] @Type = params['Type'] end end # 坐席购买信息 class StaffBuyInfo < TencentCloud::Common::AbstractModel # @param Num: 购买坐席数量 # @type Num: Integer # @param BuyTime: 购买时间戳 # @type BuyTime: Integer # @param EndTime: 截止时间戳 # @type EndTime: Integer # @param SipNum: 购买办公电话数量 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SipNum: Integer attr_accessor :Num, :BuyTime, :EndTime, :SipNum def initialize(num=nil, buytime=nil, endtime=nil, sipnum=nil) @Num = num @BuyTime = buytime @EndTime = endtime @SipNum = sipnum end def deserialize(params) @Num = params['Num'] @BuyTime = params['BuyTime'] @EndTime = params['EndTime'] @SipNum = params['SipNum'] end end # 带有技能组优先级的坐席信息 class StaffInfo < TencentCloud::Common::AbstractModel # @param Name: 坐席名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String # @param Mail: 坐席邮箱 # @type Mail: String # @param Phone: 坐席电话号码 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Phone: String # @param Nick: 坐席昵称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Nick: String # @param StaffNumber: 坐席工号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StaffNumber: String # @param SkillGroupList: 所属技能组列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupList: Array # @param LastModifyTimestamp: 最后修改时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastModifyTimestamp: Integer attr_accessor :Name, :Mail, :Phone, :Nick, :StaffNumber, :SkillGroupList, :LastModifyTimestamp def initialize(name=nil, mail=nil, phone=nil, nick=nil, staffnumber=nil, skillgrouplist=nil, lastmodifytimestamp=nil) @Name = name @Mail = mail @Phone = phone @Nick = nick @StaffNumber = staffnumber @SkillGroupList = skillgrouplist @LastModifyTimestamp = lastmodifytimestamp end def deserialize(params) @Name = params['Name'] @Mail = params['Mail'] @Phone = params['Phone'] @Nick = params['Nick'] @StaffNumber = params['StaffNumber'] unless params['SkillGroupList'].nil? @SkillGroupList = [] params['SkillGroupList'].each do |i| skillgroupitem_tmp = SkillGroupItem.new skillgroupitem_tmp.deserialize(i) @SkillGroupList << skillgroupitem_tmp end end @LastModifyTimestamp = params['LastModifyTimestamp'] end end # 座席绑定技能组列表 class StaffSkillGroupList < TencentCloud::Common::AbstractModel # @param SkillGroupId: 技能组ID # @type SkillGroupId: Integer # @param Priority: 座席在技能组中的优先级(1为最高,5最低,默认3) # @type Priority: Integer attr_accessor :SkillGroupId, :Priority def initialize(skillgroupid=nil, priority=nil) @SkillGroupId = skillgroupid @Priority = priority end def deserialize(params) @SkillGroupId = params['SkillGroupId'] @Priority = params['Priority'] end end # 坐席状态补充信息 class StaffStatusExtra < TencentCloud::Common::AbstractModel # @param Type: im - 文本 | tel - 电话 | all - 全媒体 # @type Type: String # @param Direct: in - 呼入 | out - 呼出 # @type Direct: String attr_accessor :Type, :Direct def initialize(type=nil, direct=nil) @Type = type @Direct = direct end def deserialize(params) @Type = params['Type'] @Direct = params['Direct'] end end # 坐席状态相关信息 class StaffStatusMetrics < TencentCloud::Common::AbstractModel # @param Email: 坐席邮箱 # @type Email: String # @param Status: 坐席状态 free 示闲 | busy 忙碌 | rest 小休 | notReady 示忙 | afterCallWork 话后调整 | offline 离线 # @type Status: String # @param StatusExtra: 坐席状态补充信息 # @type StatusExtra: :class:`Tencentcloud::Ccc.v20200210.models.StaffStatusExtra` # @param OnlineDuration: 当天在线总时长 # @type OnlineDuration: Integer # @param FreeDuration: 当天示闲总时长 # @type FreeDuration: Integer # @param BusyDuration: 当天忙碌总时长 # @type BusyDuration: Integer # @param NotReadyDuration: 当天示忙总时长 # @type NotReadyDuration: Integer # @param RestDuration: 当天小休总时长 # @type RestDuration: Integer # @param AfterCallWorkDuration: 当天话后调整总时长 # @type AfterCallWorkDuration: Integer # @param Reason: 小休原因 # @type Reason: String # @param ReserveRest: 是否预约小休 # @type ReserveRest: Boolean # @param ReserveNotReady: 是否预约示忙 # @type ReserveNotReady: Boolean # @param UseMobileAccept: 手机接听模式: 0 - 关闭 | 1 - 仅离线 | 2- 始终 # @type UseMobileAccept: Integer # @param UseMobileCallOut: 手机外呼开关 # @type UseMobileCallOut: Boolean # @param LastOnlineTimestamp: 最近一次上线时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastOnlineTimestamp: Integer # @param LastStatusTimestamp: 最近一次状态时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastStatusTimestamp: Integer attr_accessor :Email, :Status, :StatusExtra, :OnlineDuration, :FreeDuration, :BusyDuration, :NotReadyDuration, :RestDuration, :AfterCallWorkDuration, :Reason, :ReserveRest, :ReserveNotReady, :UseMobileAccept, :UseMobileCallOut, :LastOnlineTimestamp, :LastStatusTimestamp def initialize(email=nil, status=nil, statusextra=nil, onlineduration=nil, freeduration=nil, busyduration=nil, notreadyduration=nil, restduration=nil, aftercallworkduration=nil, reason=nil, reserverest=nil, reservenotready=nil, usemobileaccept=nil, usemobilecallout=nil, lastonlinetimestamp=nil, laststatustimestamp=nil) @Email = email @Status = status @StatusExtra = statusextra @OnlineDuration = onlineduration @FreeDuration = freeduration @BusyDuration = busyduration @NotReadyDuration = notreadyduration @RestDuration = restduration @AfterCallWorkDuration = aftercallworkduration @Reason = reason @ReserveRest = reserverest @ReserveNotReady = reservenotready @UseMobileAccept = usemobileaccept @UseMobileCallOut = usemobilecallout @LastOnlineTimestamp = lastonlinetimestamp @LastStatusTimestamp = laststatustimestamp end def deserialize(params) @Email = params['Email'] @Status = params['Status'] unless params['StatusExtra'].nil? @StatusExtra = StaffStatusExtra.new @StatusExtra.deserialize(params['StatusExtra']) end @OnlineDuration = params['OnlineDuration'] @FreeDuration = params['FreeDuration'] @BusyDuration = params['BusyDuration'] @NotReadyDuration = params['NotReadyDuration'] @RestDuration = params['RestDuration'] @AfterCallWorkDuration = params['AfterCallWorkDuration'] @Reason = params['Reason'] @ReserveRest = params['ReserveRest'] @ReserveNotReady = params['ReserveNotReady'] @UseMobileAccept = params['UseMobileAccept'] @UseMobileCallOut = params['UseMobileCallOut'] @LastOnlineTimestamp = params['LastOnlineTimestamp'] @LastStatusTimestamp = params['LastStatusTimestamp'] end end # StopAutoCalloutTask请求参数结构体 class StopAutoCalloutTaskRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 呼叫中心实例Id # @type SdkAppId: Integer # @param TaskId: 任务Id # @type TaskId: Integer attr_accessor :SdkAppId, :TaskId def initialize(sdkappid=nil, taskid=nil) @SdkAppId = sdkappid @TaskId = taskid end def deserialize(params) @SdkAppId = params['SdkAppId'] @TaskId = params['TaskId'] end end # StopAutoCalloutTask返回参数结构体 class StopAutoCalloutTaskResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 电话话单信息 class TelCdrInfo < TencentCloud::Common::AbstractModel # @param Caller: 主叫号码 # @type Caller: String # @param Callee: 被叫号码 # @type Callee: String # @param Time: 呼叫发起时间戳,Unix 时间戳 # @type Time: Integer # @param Direction: 呼入呼出方向 0 呼入 1 呼出 # @type Direction: Integer # @param Duration: 通话时长 # @type Duration: Integer # @param RecordURL: 录音信息 # @type RecordURL: String # @param SeatUser: 坐席信息 # @type SeatUser: :class:`Tencentcloud::Ccc.v20200210.models.SeatUserInfo` # @param EndStatus: EndStatus与EndStatusString一一对应,具体枚举如下: # **场景 EndStatus EndStatusString 状态说明** # 电话呼入&呼出 1 ok 正常结束 # 电话呼入&呼出 0 error 系统错误 # 电话呼入 102 ivrGiveUp IVR 期间用户放弃 # 电话呼入 103 waitingGiveUp 会话排队期间用户放弃 # 电话呼入 104 ringingGiveUp 会话振铃期间用户放弃 # 电话呼入 105 noSeatOnline 无坐席在线 # 电话呼入 106 notWorkTime 非工作时间 # 电话呼入 107 ivrEnd IVR 后直接结束 # 电话呼入 100 CallinBlockedContact 呼入黑名单 # 电话呼出 2 unconnected 未接通 # 电话呼出 201 unknown 未知状态 # 电话呼出 203 userReject 拒接挂断 # 电话呼出 204 powerOff 关机 # 电话呼出 205 numberNotExist 空号 # 电话呼出 206 busy 通话中 # 电话呼出 207 outOfCredit 欠费 # 电话呼出 208 operatorError 运营商线路异常 # 电话呼出 209 callerCancel 主叫取消 # 电话呼出 210 notInService 不在服务区 # @type EndStatus: Integer # @param SkillGroup: 技能组名称 # @type SkillGroup: String # @param CallerLocation: 主叫归属地 # @type CallerLocation: String # @param IVRDuration: IVR 阶段耗时 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IVRDuration: Integer # @param RingTimestamp: 振铃时间戳,UNIX 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RingTimestamp: Integer # @param AcceptTimestamp: 接听时间戳,UNIX 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AcceptTimestamp: Integer # @param EndedTimestamp: 结束时间戳,UNIX 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EndedTimestamp: Integer # @param IVRKeyPressed: IVR 按键信息 ,e.g. ["1","2","3"] # 注意:此字段可能返回 null,表示取不到有效值。 # @type IVRKeyPressed: Array # @param HungUpSide: 挂机方 seat 坐席 user 用户 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HungUpSide: String # @param ServeParticipants: 服务参与者列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ServeParticipants: Array # @param SkillGroupId: 技能组ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SkillGroupId: Integer # @param EndStatusString: EndStatus与EndStatusString一一对应,具体枚举如下: # **场景 EndStatus EndStatusString 状态说明** # 电话呼入&呼出 1 ok 正常结束 # 电话呼入&呼出 0 error 系统错误 # 电话呼入 102 ivrGiveUp IVR 期间用户放弃 # 电话呼入 103 waitingGiveUp 会话排队期间用户放弃 # 电话呼入 104 ringingGiveUp 会话振铃期间用户放弃 # 电话呼入 105 noSeatOnline 无坐席在线 # 电话呼入 106 notWorkTime 非工作时间 # 电话呼入 107 ivrEnd IVR 后直接结束 # 电话呼入 100 CallinBlockedContact 呼入黑名单 # 电话呼出 2 unconnected 未接通 # 电话呼出 201 unknown 未知状态 # 听 # 电话呼出 203 userReject 拒接挂断 # 电话呼出 204 powerOff 关机 # 电话呼出 205 numberNotExist 空号 # 电话呼出 206 busy 通话中 # 电话呼出 207 outOfCredit 欠费 # 电话呼出 208 operatorError 运营商线路异常 # 电话呼出 209 callerCancel 主叫取消 # 电话呼出 210 notInService 不在服务区 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EndStatusString: String # @param StartTimestamp: 会话开始时间戳,UNIX 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StartTimestamp: Integer # @param QueuedTimestamp: 进入排队时间,Unix 秒级时间戳 # 注意:此字段可能返回 null,表示取不到有效值。 # @type QueuedTimestamp: Integer # @param PostIVRKeyPressed: 后置IVR按键信息(e.g. [{"Key":"1","Label":"非常满意"}]) # 注意:此字段可能返回 null,表示取不到有效值。 # @type PostIVRKeyPressed: Array # @param QueuedSkillGroupId: 排队技能组Id # 注意:此字段可能返回 null,表示取不到有效值。 # @type QueuedSkillGroupId: Integer # @param SessionId: 会话 ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SessionId: String # @param ProtectedCaller: 主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProtectedCaller: String # @param ProtectedCallee: 被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProtectedCallee: String # @param Uui: 客户自定义数据(User-to-User Interface) # 注意:此字段可能返回 null,表示取不到有效值。 # @type Uui: String # @param IVRKeyPressedEx: IVR按键信息(e.g. [{"Key":"1","Label":"非常满意"}]) # 注意:此字段可能返回 null,表示取不到有效值。 # @type IVRKeyPressedEx: Array # @param AsrUrl: 获取录音ASR文本信息地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AsrUrl: String # @param CustomRecordURL: 录音转存第三方COS地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CustomRecordURL: String # @param Remark: 备注 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Remark: String # @param QueuedSkillGroupName: 排队技能组名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type QueuedSkillGroupName: String # @param VoicemailRecordURL: 通话中语音留言录音URL # 注意:此字段可能返回 null,表示取不到有效值。 # @type VoicemailRecordURL: Array # @param VoicemailAsrURL: 通话中语音留言ASR文本信息地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VoicemailAsrURL: Array attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee, :Uui, :IVRKeyPressedEx, :AsrUrl, :CustomRecordURL, :Remark, :QueuedSkillGroupName, :VoicemailRecordURL, :VoicemailAsrURL def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil, uui=nil, ivrkeypressedex=nil, asrurl=nil, customrecordurl=nil, remark=nil, queuedskillgroupname=nil, voicemailrecordurl=nil, voicemailasrurl=nil) @Caller = caller @Callee = callee @Time = time @Direction = direction @Duration = duration @RecordURL = recordurl @SeatUser = seatuser @EndStatus = endstatus @SkillGroup = skillgroup @CallerLocation = callerlocation @IVRDuration = ivrduration @RingTimestamp = ringtimestamp @AcceptTimestamp = accepttimestamp @EndedTimestamp = endedtimestamp @IVRKeyPressed = ivrkeypressed @HungUpSide = hungupside @ServeParticipants = serveparticipants @SkillGroupId = skillgroupid @EndStatusString = endstatusstring @StartTimestamp = starttimestamp @QueuedTimestamp = queuedtimestamp @PostIVRKeyPressed = postivrkeypressed @QueuedSkillGroupId = queuedskillgroupid @SessionId = sessionid @ProtectedCaller = protectedcaller @ProtectedCallee = protectedcallee @Uui = uui @IVRKeyPressedEx = ivrkeypressedex @AsrUrl = asrurl @CustomRecordURL = customrecordurl @Remark = remark @QueuedSkillGroupName = queuedskillgroupname @VoicemailRecordURL = voicemailrecordurl @VoicemailAsrURL = voicemailasrurl end def deserialize(params) @Caller = params['Caller'] @Callee = params['Callee'] @Time = params['Time'] @Direction = params['Direction'] @Duration = params['Duration'] @RecordURL = params['RecordURL'] unless params['SeatUser'].nil? @SeatUser = SeatUserInfo.new @SeatUser.deserialize(params['SeatUser']) end @EndStatus = params['EndStatus'] @SkillGroup = params['SkillGroup'] @CallerLocation = params['CallerLocation'] @IVRDuration = params['IVRDuration'] @RingTimestamp = params['RingTimestamp'] @AcceptTimestamp = params['AcceptTimestamp'] @EndedTimestamp = params['EndedTimestamp'] @IVRKeyPressed = params['IVRKeyPressed'] @HungUpSide = params['HungUpSide'] unless params['ServeParticipants'].nil? @ServeParticipants = [] params['ServeParticipants'].each do |i| serveparticipant_tmp = ServeParticipant.new serveparticipant_tmp.deserialize(i) @ServeParticipants << serveparticipant_tmp end end @SkillGroupId = params['SkillGroupId'] @EndStatusString = params['EndStatusString'] @StartTimestamp = params['StartTimestamp'] @QueuedTimestamp = params['QueuedTimestamp'] unless params['PostIVRKeyPressed'].nil? @PostIVRKeyPressed = [] params['PostIVRKeyPressed'].each do |i| ivrkeypressedelement_tmp = IVRKeyPressedElement.new ivrkeypressedelement_tmp.deserialize(i) @PostIVRKeyPressed << ivrkeypressedelement_tmp end end @QueuedSkillGroupId = params['QueuedSkillGroupId'] @SessionId = params['SessionId'] @ProtectedCaller = params['ProtectedCaller'] @ProtectedCallee = params['ProtectedCallee'] @Uui = params['Uui'] unless params['IVRKeyPressedEx'].nil? @IVRKeyPressedEx = [] params['IVRKeyPressedEx'].each do |i| ivrkeypressedelement_tmp = IVRKeyPressedElement.new ivrkeypressedelement_tmp.deserialize(i) @IVRKeyPressedEx << ivrkeypressedelement_tmp end end @AsrUrl = params['AsrUrl'] @CustomRecordURL = params['CustomRecordURL'] @Remark = params['Remark'] @QueuedSkillGroupName = params['QueuedSkillGroupName'] @VoicemailRecordURL = params['VoicemailRecordURL'] @VoicemailAsrURL = params['VoicemailAsrURL'] end end # UnbindNumberCallOutSkillGroup请求参数结构体 class UnbindNumberCallOutSkillGroupRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param Number: 待解绑的号码 # @type Number: String # @param SkillGroupIds: 待解绑的技能组Id列表 # @type SkillGroupIds: Array attr_accessor :SdkAppId, :Number, :SkillGroupIds def initialize(sdkappid=nil, number=nil, skillgroupids=nil) @SdkAppId = sdkappid @Number = number @SkillGroupIds = skillgroupids end def deserialize(params) @SdkAppId = params['SdkAppId'] @Number = params['Number'] @SkillGroupIds = params['SkillGroupIds'] end end # UnbindNumberCallOutSkillGroup返回参数结构体 class UnbindNumberCallOutSkillGroupResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # UnbindStaffSkillGroupList请求参数结构体 class UnbindStaffSkillGroupListRequest < TencentCloud::Common::AbstractModel # @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc # @type SdkAppId: Integer # @param StaffEmail: 客服邮箱 # @type StaffEmail: String # @param SkillGroupList: 解绑技能组列表 # @type SkillGroupList: Array attr_accessor :SdkAppId, :StaffEmail, :SkillGroupList def initialize(sdkappid=nil, staffemail=nil, skillgrouplist=nil) @SdkAppId = sdkappid @StaffEmail = staffemail @SkillGroupList = skillgrouplist end def deserialize(params) @SdkAppId = params['SdkAppId'] @StaffEmail = params['StaffEmail'] @SkillGroupList = params['SkillGroupList'] end end # UnbindStaffSkillGroupList返回参数结构体 class UnbindStaffSkillGroupListResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 变量 class Variable < TencentCloud::Common::AbstractModel # @param Key: 变量名 # @type Key: String # @param Value: 变量值 # @type Value: String attr_accessor :Key, :Value def initialize(key=nil, value=nil) @Key = key @Value = value end def deserialize(params) @Key = params['Key'] @Value = params['Value'] end end end end end