GET | /portal/phone-numbers |
---|
import Foundation
import ServiceStack
public class AppGetPhoneNumbers : ListRequest<EndpointInfo>
{
public var accountId:String?
public var customerId:String?
public var phoneNumberFilter:String?
public var typeFilter:EndpointTypes?
required public init(){ super.init() }
private enum CodingKeys : String, CodingKey {
case accountId
case customerId
case phoneNumberFilter
case typeFilter
}
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
let container = try decoder.container(keyedBy: CodingKeys.self)
accountId = try container.decodeIfPresent(String.self, forKey: .accountId)
customerId = try container.decodeIfPresent(String.self, forKey: .customerId)
phoneNumberFilter = try container.decodeIfPresent(String.self, forKey: .phoneNumberFilter)
typeFilter = try container.decodeIfPresent(EndpointTypes.self, forKey: .typeFilter)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
var container = encoder.container(keyedBy: CodingKeys.self)
if accountId != nil { try container.encode(accountId, forKey: .accountId) }
if customerId != nil { try container.encode(customerId, forKey: .customerId) }
if phoneNumberFilter != nil { try container.encode(phoneNumberFilter, forKey: .phoneNumberFilter) }
if typeFilter != nil { try container.encode(typeFilter, forKey: .typeFilter) }
}
}
public class ListRequest<T : Codable> : IGet, Codable
{
/**
* The page of data to retrieve
*/
// @ApiMember(Description="The page of data to retrieve")
public var page:Int?
/**
* If you want all objects to be returned. This should be used with care
*/
// @ApiMember(Description="If you want all objects to be returned. This should be used with care")
public var all:Bool?
/**
* The number per page to retrieve
*/
// @ApiMember(Description="The number per page to retrieve")
public var countPerPage:Int?
/**
* Specific IDs
*/
// @ApiMember(Description="Specific IDs")
public var specificIds:[String] = []
/**
* Specify a sort field
*/
// @ApiMember(Description="Specify a sort field")
public var sortField:String?
/**
* Specify a sort order
*/
// @ApiMember(Description="Specify a sort order")
public var sortOrder:SortOrders?
/**
* Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array
*/
// @ApiMember(Description="Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array")
public var simplifiedPaging:Bool?
required public init(){}
}
public enum SortOrders : String, Codable
{
case Ascend
case Descend
}
public class EndpointInfo : EntityInfo
{
/**
* The account ID this endpoint is associated with
*/
// @ApiMember(Description="The account ID this endpoint is associated with")
public var accountId:String?
/**
* The name of the account this endpoint is associated with
*/
// @ApiMember(Description="The name of the account this endpoint is associated with")
public var accountName:String?
/**
* The ID of the customer this endpoint is associated with
*/
// @ApiMember(Description="The ID of the customer this endpoint is associated with")
public var customerId:String?
/**
* The name of the customer this endpoint is associated with
*/
// @ApiMember(Description="The name of the customer this endpoint is associated with")
public var customerName:String?
/**
* The third party reference ID for the endpoint
*/
// @ApiMember(Description="The third party reference ID for the endpoint")
public var referenceId:String?
/**
* The breadcrumb to the customer for this endpoint
*/
// @ApiMember(Description="The breadcrumb to the customer for this endpoint")
public var customerBreadcrumb:[CustomerBreadcrumb] = []
/**
* The display name of the endpoint
*/
// @ApiMember(Description="The display name of the endpoint")
public var displayName:String?
/**
* The type of endpoint
*/
// @ApiMember(Description="The type of endpoint")
public var type:EndpointTypes?
/**
* Extra info for this endpoint (typically to show in grid)
*/
// @ApiMember(Description="Extra info for this endpoint (typically to show in grid)")
public var extraInformation:String?
/**
* The ID of the flow to use for voice
*/
// @ApiMember(Description="The ID of the flow to use for voice")
public var flowId:String?
/**
* The name of the flow to use for voice
*/
// @ApiMember(Description="The name of the flow to use for voice")
public var flowName:String?
/**
* The params for the voice flow
*/
// @ApiMember(Description="The params for the voice flow")
public var flowParams:Struct?
/**
* Whether to use a single flow always or use scheduled flow system
*/
// @ApiMember(Description="Whether to use a single flow always or use scheduled flow system")
public var flowSchedule:EndpointFlowSchedules?
/**
* This endpoint's schedule
*/
// @ApiMember(Description="This endpoint's schedule")
public var schedule:Schedule?
/**
* The list of scheduled flows when using scheduling
*/
// @ApiMember(Description="The list of scheduled flows when using scheduling")
public var scheduledFlows:[ScheduledFlow] = []
/**
* Disable SMS
*/
// @ApiMember(Description="Disable SMS")
public var disableSms:Bool?
/**
* Set this to true to prevent Evo Voice from overriding the 10DLC / SMS settings for this number
*/
// @ApiMember(Description="Set this to true to prevent Evo Voice from overriding the 10DLC / SMS settings for this number")
public var useExternal10DlcCampaign:Bool?
/**
* Is this a virtual phone number?
*/
// @ApiMember(Description="Is this a virtual phone number?")
public var isVirtualPhoneNumber:Bool?
/**
* Is caller ID verified for this virtual number?
*/
// @ApiMember(Description="Is caller ID verified for this virtual number?")
public var isCallerIdVerified:Bool?
/**
* The verification code for this number
*/
// @ApiMember(Description="The verification code for this number")
public var callerIdVerificationCode:String?
/**
* The phone number
*/
// @ApiMember(Description="The phone number")
public var phoneNumber:String?
/**
* The Sid of the phone number
*/
// @ApiMember(Description="The Sid of the phone number")
public var phoneNumberSid:String?
/**
* The caller ID Name (CNAM) for the phone number
*/
// @ApiMember(Description="The caller ID Name (CNAM) for the phone number")
public var callerIdName:String?
/**
* The address SID associated with the phone number
*/
// @ApiMember(Description="The address SID associated with the phone number")
public var addressSid:String?
/**
* Do not touch this phone number - for BYOA accounts
*/
// @ApiMember(Description="Do not touch this phone number - for BYOA accounts")
public var doNotTouchPhoneNumber:Bool?
/**
* Is this number enrolled in a 10DLC messaging service campaign
*/
// @ApiMember(Description="Is this number enrolled in a 10DLC messaging service campaign")
public var isEnrolledIn10DlcService:Bool?
/**
* Whether we look up caller ID or not
*/
// @ApiMember(Description="Whether we look up caller ID or not")
public var enableCallerIdLookup:Bool?
/**
* The email address of the user
*/
// @ApiMember(Description="The email address of the user")
public var userEmailAddress:String?
/**
* The Twilio Region for the SIP endpoint
*/
// @ApiMember(Description="The Twilio Region for the SIP endpoint")
public var sipRegion:TwilioSipRegions?
/**
* The Twilio Sid of the credentials for Sip
*/
// @ApiMember(Description="The Twilio Sid of the credentials for Sip")
public var sipCredentialSid:String?
/**
* The Twilio SIP user name
*/
// @ApiMember(Description="The Twilio SIP user name")
public var sipUserName:String?
/**
* The Twilio SIP password
*/
// @ApiMember(Description="The Twilio SIP password")
public var sipPassword:String?
/**
* The SIP domain
*/
// @ApiMember(Description="The SIP domain")
public var sipDomain:String?
/**
* Is emergency calling enabled on this number?
*/
// @ApiMember(Description="Is emergency calling enabled on this number?")
public var enableEmergencyCalling:Bool?
/**
* The SID of the emergency address for this number
*/
// @ApiMember(Description="The SID of the emergency address for this number")
public var emergencyAddressSid:String?
/**
* The ID of the phone number to use for emergency dialing
*/
// @ApiMember(Description="The ID of the phone number to use for emergency dialing")
public var emergencyPhoneNumberId:String?
/**
* The current agent state of this user endpoint
*/
// @ApiMember(Description="The current agent state of this user endpoint")
public var agentState:AgentStates?
/**
* The current agent state reason of this user endpoint
*/
// @ApiMember(Description="The current agent state reason of this user endpoint")
public var agentStateReason:AgentStateReasons?
/**
* The mode for this user
*/
// @ApiMember(Description="The mode for this user")
public var userMode:UserModes?
/**
* The ID of the file to use for voicemail greeting
*/
// @ApiMember(Description="The ID of the file to use for voicemail greeting")
public var voicemailGreetingId:String?
/**
* The endpoint's data
*/
// @ApiMember(Description="The endpoint's data")
public var data:Struct?
/**
* The email address for email endpoints
*/
// @ApiMember(Description="The email address for email endpoints")
public var emailAddress:String?
/**
* The first name of the user (for user endpoints)
*/
// @ApiMember(Description="The first name of the user (for user endpoints)")
public var userFirstName:String?
/**
* The last name of the user (for user endpoints)
*/
// @ApiMember(Description="The last name of the user (for user endpoints)")
public var userLastName:String?
/**
* The URL of an image for this user's avatar
*/
// @ApiMember(Description="The URL of an image for this user's avatar")
public var avatarUrl:String?
/**
* Does this user have manager role?
*/
// @ApiMember(Description="Does this user have manager role?")
public var managerRole:UserManagerRoles?
/**
* The list of dashboard permissions for when the manager role is custom
*/
// @ApiMember(Description="The list of dashboard permissions for when the manager role is custom")
public var dashboardPermissions:[DashboardPermissions] = []
/**
* The type of visibility this user has to their own fields
*/
// @ApiMember(Description="The type of visibility this user has to their own fields")
public var myFieldPermissions:UserDataFieldModes?
/**
* The type of visibility this user has to customer fields
*/
// @ApiMember(Description="The type of visibility this user has to customer fields")
public var customerFieldPermissions:UserDataFieldModes?
/**
* The type of visibility this user has to other user fields
*/
// @ApiMember(Description="The type of visibility this user has to other user fields")
public var otherUserFieldPermissions:UserDataFieldModes?
/**
* The type of visibility this user has to other endpoint fields
*/
// @ApiMember(Description="The type of visibility this user has to other endpoint fields")
public var otherEndpointFieldPermissions:UserDataFieldModes?
/**
* The name of this endpoint (for bots etc.)
*/
// @ApiMember(Description="The name of this endpoint (for bots etc.)")
public var name:String?
/**
* The list of tags for this endpoint
*/
// @ApiMember(Description="The list of tags for this endpoint")
public var tags:[Tag] = []
/**
* The list of action URLs
*/
// @ApiMember(Description="The list of action URLs")
public var actionUrls:[EndpointActionUrl] = []
/**
* The list of members in this team
*/
// @ApiMember(Description="The list of members in this team")
public var teamMemberIds:[String] = []
/**
* Visibility of this user/team in contact lists
*/
// @ApiMember(Description="Visibility of this user/team in contact lists")
public var contactListVisibility:CustomerVisibility?
/**
* The list of contacts personal to this user
*/
// @ApiMember(Description="The list of contacts personal to this user")
public var contacts:[EndpointContact] = []
/**
* The documo ID for this number
*/
// @ApiMember(Description="The documo ID for this number")
public var documoId:String?
/**
* Integration data for this endpoint
*/
// @ApiMember(Description="Integration data for this endpoint")
public var integrationData:EntityIntegrationData?
/**
* Settings for third party phone system
*/
// @ApiMember(Description="Settings for third party phone system")
public var thirdPartyPhoneSystemSettings:ThirdPartyPhoneSystemSettings?
/**
* Should this user override the parent customer's app settings
*/
// @ApiMember(Description="Should this user override the parent customer's app settings")
public var overrideAppSettings:Bool?
/**
* App / Portal settings for this user
*/
// @ApiMember(Description="App / Portal settings for this user")
public var appSettings:AppSettings?
required public init(){ super.init() }
private enum CodingKeys : String, CodingKey {
case accountId
case accountName
case customerId
case customerName
case referenceId
case customerBreadcrumb
case displayName
case type
case extraInformation
case flowId
case flowName
case flowParams
case flowSchedule
case schedule
case scheduledFlows
case disableSms
case useExternal10DlcCampaign
case isVirtualPhoneNumber
case isCallerIdVerified
case callerIdVerificationCode
case phoneNumber
case phoneNumberSid
case callerIdName
case addressSid
case doNotTouchPhoneNumber
case isEnrolledIn10DlcService
case enableCallerIdLookup
case userEmailAddress
case sipRegion
case sipCredentialSid
case sipUserName
case sipPassword
case sipDomain
case enableEmergencyCalling
case emergencyAddressSid
case emergencyPhoneNumberId
case agentState
case agentStateReason
case userMode
case voicemailGreetingId
case data
case emailAddress
case userFirstName
case userLastName
case avatarUrl
case managerRole
case dashboardPermissions
case myFieldPermissions
case customerFieldPermissions
case otherUserFieldPermissions
case otherEndpointFieldPermissions
case name
case tags
case actionUrls
case teamMemberIds
case contactListVisibility
case contacts
case documoId
case integrationData
case thirdPartyPhoneSystemSettings
case overrideAppSettings
case appSettings
}
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
let container = try decoder.container(keyedBy: CodingKeys.self)
accountId = try container.decodeIfPresent(String.self, forKey: .accountId)
accountName = try container.decodeIfPresent(String.self, forKey: .accountName)
customerId = try container.decodeIfPresent(String.self, forKey: .customerId)
customerName = try container.decodeIfPresent(String.self, forKey: .customerName)
referenceId = try container.decodeIfPresent(String.self, forKey: .referenceId)
customerBreadcrumb = try container.decodeIfPresent([CustomerBreadcrumb].self, forKey: .customerBreadcrumb) ?? []
displayName = try container.decodeIfPresent(String.self, forKey: .displayName)
type = try container.decodeIfPresent(EndpointTypes.self, forKey: .type)
extraInformation = try container.decodeIfPresent(String.self, forKey: .extraInformation)
flowId = try container.decodeIfPresent(String.self, forKey: .flowId)
flowName = try container.decodeIfPresent(String.self, forKey: .flowName)
flowParams = try container.decodeIfPresent(Struct.self, forKey: .flowParams)
flowSchedule = try container.decodeIfPresent(EndpointFlowSchedules.self, forKey: .flowSchedule)
schedule = try container.decodeIfPresent(Schedule.self, forKey: .schedule)
scheduledFlows = try container.decodeIfPresent([ScheduledFlow].self, forKey: .scheduledFlows) ?? []
disableSms = try container.decodeIfPresent(Bool.self, forKey: .disableSms)
useExternal10DlcCampaign = try container.decodeIfPresent(Bool.self, forKey: .useExternal10DlcCampaign)
isVirtualPhoneNumber = try container.decodeIfPresent(Bool.self, forKey: .isVirtualPhoneNumber)
isCallerIdVerified = try container.decodeIfPresent(Bool.self, forKey: .isCallerIdVerified)
callerIdVerificationCode = try container.decodeIfPresent(String.self, forKey: .callerIdVerificationCode)
phoneNumber = try container.decodeIfPresent(String.self, forKey: .phoneNumber)
phoneNumberSid = try container.decodeIfPresent(String.self, forKey: .phoneNumberSid)
callerIdName = try container.decodeIfPresent(String.self, forKey: .callerIdName)
addressSid = try container.decodeIfPresent(String.self, forKey: .addressSid)
doNotTouchPhoneNumber = try container.decodeIfPresent(Bool.self, forKey: .doNotTouchPhoneNumber)
isEnrolledIn10DlcService = try container.decodeIfPresent(Bool.self, forKey: .isEnrolledIn10DlcService)
enableCallerIdLookup = try container.decodeIfPresent(Bool.self, forKey: .enableCallerIdLookup)
userEmailAddress = try container.decodeIfPresent(String.self, forKey: .userEmailAddress)
sipRegion = try container.decodeIfPresent(TwilioSipRegions.self, forKey: .sipRegion)
sipCredentialSid = try container.decodeIfPresent(String.self, forKey: .sipCredentialSid)
sipUserName = try container.decodeIfPresent(String.self, forKey: .sipUserName)
sipPassword = try container.decodeIfPresent(String.self, forKey: .sipPassword)
sipDomain = try container.decodeIfPresent(String.self, forKey: .sipDomain)
enableEmergencyCalling = try container.decodeIfPresent(Bool.self, forKey: .enableEmergencyCalling)
emergencyAddressSid = try container.decodeIfPresent(String.self, forKey: .emergencyAddressSid)
emergencyPhoneNumberId = try container.decodeIfPresent(String.self, forKey: .emergencyPhoneNumberId)
agentState = try container.decodeIfPresent(AgentStates.self, forKey: .agentState)
agentStateReason = try container.decodeIfPresent(AgentStateReasons.self, forKey: .agentStateReason)
userMode = try container.decodeIfPresent(UserModes.self, forKey: .userMode)
voicemailGreetingId = try container.decodeIfPresent(String.self, forKey: .voicemailGreetingId)
data = try container.decodeIfPresent(Struct.self, forKey: .data)
emailAddress = try container.decodeIfPresent(String.self, forKey: .emailAddress)
userFirstName = try container.decodeIfPresent(String.self, forKey: .userFirstName)
userLastName = try container.decodeIfPresent(String.self, forKey: .userLastName)
avatarUrl = try container.decodeIfPresent(String.self, forKey: .avatarUrl)
managerRole = try container.decodeIfPresent(UserManagerRoles.self, forKey: .managerRole)
dashboardPermissions = try container.decodeIfPresent([DashboardPermissions].self, forKey: .dashboardPermissions) ?? []
myFieldPermissions = try container.decodeIfPresent(UserDataFieldModes.self, forKey: .myFieldPermissions)
customerFieldPermissions = try container.decodeIfPresent(UserDataFieldModes.self, forKey: .customerFieldPermissions)
otherUserFieldPermissions = try container.decodeIfPresent(UserDataFieldModes.self, forKey: .otherUserFieldPermissions)
otherEndpointFieldPermissions = try container.decodeIfPresent(UserDataFieldModes.self, forKey: .otherEndpointFieldPermissions)
name = try container.decodeIfPresent(String.self, forKey: .name)
tags = try container.decodeIfPresent([Tag].self, forKey: .tags) ?? []
actionUrls = try container.decodeIfPresent([EndpointActionUrl].self, forKey: .actionUrls) ?? []
teamMemberIds = try container.decodeIfPresent([String].self, forKey: .teamMemberIds) ?? []
contactListVisibility = try container.decodeIfPresent(CustomerVisibility.self, forKey: .contactListVisibility)
contacts = try container.decodeIfPresent([EndpointContact].self, forKey: .contacts) ?? []
documoId = try container.decodeIfPresent(String.self, forKey: .documoId)
integrationData = try container.decodeIfPresent(EntityIntegrationData.self, forKey: .integrationData)
thirdPartyPhoneSystemSettings = try container.decodeIfPresent(ThirdPartyPhoneSystemSettings.self, forKey: .thirdPartyPhoneSystemSettings)
overrideAppSettings = try container.decodeIfPresent(Bool.self, forKey: .overrideAppSettings)
appSettings = try container.decodeIfPresent(AppSettings.self, forKey: .appSettings)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
var container = encoder.container(keyedBy: CodingKeys.self)
if accountId != nil { try container.encode(accountId, forKey: .accountId) }
if accountName != nil { try container.encode(accountName, forKey: .accountName) }
if customerId != nil { try container.encode(customerId, forKey: .customerId) }
if customerName != nil { try container.encode(customerName, forKey: .customerName) }
if referenceId != nil { try container.encode(referenceId, forKey: .referenceId) }
if customerBreadcrumb.count > 0 { try container.encode(customerBreadcrumb, forKey: .customerBreadcrumb) }
if displayName != nil { try container.encode(displayName, forKey: .displayName) }
if type != nil { try container.encode(type, forKey: .type) }
if extraInformation != nil { try container.encode(extraInformation, forKey: .extraInformation) }
if flowId != nil { try container.encode(flowId, forKey: .flowId) }
if flowName != nil { try container.encode(flowName, forKey: .flowName) }
if flowParams != nil { try container.encode(flowParams, forKey: .flowParams) }
if flowSchedule != nil { try container.encode(flowSchedule, forKey: .flowSchedule) }
if schedule != nil { try container.encode(schedule, forKey: .schedule) }
if scheduledFlows.count > 0 { try container.encode(scheduledFlows, forKey: .scheduledFlows) }
if disableSms != nil { try container.encode(disableSms, forKey: .disableSms) }
if useExternal10DlcCampaign != nil { try container.encode(useExternal10DlcCampaign, forKey: .useExternal10DlcCampaign) }
if isVirtualPhoneNumber != nil { try container.encode(isVirtualPhoneNumber, forKey: .isVirtualPhoneNumber) }
if isCallerIdVerified != nil { try container.encode(isCallerIdVerified, forKey: .isCallerIdVerified) }
if callerIdVerificationCode != nil { try container.encode(callerIdVerificationCode, forKey: .callerIdVerificationCode) }
if phoneNumber != nil { try container.encode(phoneNumber, forKey: .phoneNumber) }
if phoneNumberSid != nil { try container.encode(phoneNumberSid, forKey: .phoneNumberSid) }
if callerIdName != nil { try container.encode(callerIdName, forKey: .callerIdName) }
if addressSid != nil { try container.encode(addressSid, forKey: .addressSid) }
if doNotTouchPhoneNumber != nil { try container.encode(doNotTouchPhoneNumber, forKey: .doNotTouchPhoneNumber) }
if isEnrolledIn10DlcService != nil { try container.encode(isEnrolledIn10DlcService, forKey: .isEnrolledIn10DlcService) }
if enableCallerIdLookup != nil { try container.encode(enableCallerIdLookup, forKey: .enableCallerIdLookup) }
if userEmailAddress != nil { try container.encode(userEmailAddress, forKey: .userEmailAddress) }
if sipRegion != nil { try container.encode(sipRegion, forKey: .sipRegion) }
if sipCredentialSid != nil { try container.encode(sipCredentialSid, forKey: .sipCredentialSid) }
if sipUserName != nil { try container.encode(sipUserName, forKey: .sipUserName) }
if sipPassword != nil { try container.encode(sipPassword, forKey: .sipPassword) }
if sipDomain != nil { try container.encode(sipDomain, forKey: .sipDomain) }
if enableEmergencyCalling != nil { try container.encode(enableEmergencyCalling, forKey: .enableEmergencyCalling) }
if emergencyAddressSid != nil { try container.encode(emergencyAddressSid, forKey: .emergencyAddressSid) }
if emergencyPhoneNumberId != nil { try container.encode(emergencyPhoneNumberId, forKey: .emergencyPhoneNumberId) }
if agentState != nil { try container.encode(agentState, forKey: .agentState) }
if agentStateReason != nil { try container.encode(agentStateReason, forKey: .agentStateReason) }
if userMode != nil { try container.encode(userMode, forKey: .userMode) }
if voicemailGreetingId != nil { try container.encode(voicemailGreetingId, forKey: .voicemailGreetingId) }
if data != nil { try container.encode(data, forKey: .data) }
if emailAddress != nil { try container.encode(emailAddress, forKey: .emailAddress) }
if userFirstName != nil { try container.encode(userFirstName, forKey: .userFirstName) }
if userLastName != nil { try container.encode(userLastName, forKey: .userLastName) }
if avatarUrl != nil { try container.encode(avatarUrl, forKey: .avatarUrl) }
if managerRole != nil { try container.encode(managerRole, forKey: .managerRole) }
if dashboardPermissions.count > 0 { try container.encode(dashboardPermissions, forKey: .dashboardPermissions) }
if myFieldPermissions != nil { try container.encode(myFieldPermissions, forKey: .myFieldPermissions) }
if customerFieldPermissions != nil { try container.encode(customerFieldPermissions, forKey: .customerFieldPermissions) }
if otherUserFieldPermissions != nil { try container.encode(otherUserFieldPermissions, forKey: .otherUserFieldPermissions) }
if otherEndpointFieldPermissions != nil { try container.encode(otherEndpointFieldPermissions, forKey: .otherEndpointFieldPermissions) }
if name != nil { try container.encode(name, forKey: .name) }
if tags.count > 0 { try container.encode(tags, forKey: .tags) }
if actionUrls.count > 0 { try container.encode(actionUrls, forKey: .actionUrls) }
if teamMemberIds.count > 0 { try container.encode(teamMemberIds, forKey: .teamMemberIds) }
if contactListVisibility != nil { try container.encode(contactListVisibility, forKey: .contactListVisibility) }
if contacts.count > 0 { try container.encode(contacts, forKey: .contacts) }
if documoId != nil { try container.encode(documoId, forKey: .documoId) }
if integrationData != nil { try container.encode(integrationData, forKey: .integrationData) }
if thirdPartyPhoneSystemSettings != nil { try container.encode(thirdPartyPhoneSystemSettings, forKey: .thirdPartyPhoneSystemSettings) }
if overrideAppSettings != nil { try container.encode(overrideAppSettings, forKey: .overrideAppSettings) }
if appSettings != nil { try container.encode(appSettings, forKey: .appSettings) }
}
}
public class EntityInfo : Codable
{
/**
* The ID of the object
*/
// @ApiMember(Description="The ID of the object")
public var id:String?
/**
* The date the object was created
*/
// @ApiMember(Description="The date the object was created")
public var dateCreated:String?
/**
* The date the object was last modified
*/
// @ApiMember(Description="The date the object was last modified")
public var dateLastModified:String?
/**
* The user that created this object
*/
// @ApiMember(Description="The user that created this object")
public var createdBy:String?
/**
* The user that last modified this object
*/
// @ApiMember(Description="The user that last modified this object")
public var lastModifiedBy:String?
required public init(){}
}
public class CustomerBreadcrumb : Codable
{
public var id:String?
public var name:String?
required public init(){}
}
public enum EndpointTypes : String, Codable
{
case PhoneNumber
case User
case FaxNumber
case EmailAddress
case Unused_1
case Unused_2
case Unused_3
case Unused_4
case Unused_5
case Team
}
public class Struct : List<String:Value>
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class Value : Codable
{
public var boolValue:Bool?
public var stringValue:String?
public var numberValue:Double?
public var listValue:[Struct] = []
public var structValue:Struct?
required public init(){}
}
public enum EndpointFlowSchedules : String, Codable
{
case Always
case Scheduled
case Simple
}
public class Schedule : Codable
{
public var timeZoneId:String?
public var inherit:Bool?
public var forceClosed:Bool?
public var rules:[SchedulingRule] = []
public var defaultState:String?
required public init(){}
}
public class SchedulingRule : Codable
{
public var id:String?
public var name:String?
public var priority:Int?
public var state:String?
public var source:String?
public var condition:String?
public var simpleRuleType:SimpleSchedulingRuleTypes?
public var customerState:String?
public var flowId:String?
public var flowParams:Struct?
public var isAllDay:Bool?
public var startDate:String?
public var startTime:String?
public var endTime:String?
public var bySetPosition:[Int] = []
public var byMonth:[Int] = []
public var byWeekNo:[Int] = []
public var byYearDay:[Int] = []
public var byMonthDay:[Int] = []
public var byDay:[ScheduleDay] = []
public var byHour:[Int] = []
public var byMinute:[Int] = []
public var interval:Int?
public var count:Int?
public var untilDate:String?
public var frequency:SchedulingRuleFrequency?
required public init(){}
}
public enum SimpleSchedulingRuleTypes : String, Codable
{
case Always
case CustomerState
case Time
}
public class ScheduleDay : Codable
{
public var offset:Int?
public var dayOfWeek:DayOfWeek?
required public init(){}
}
public enum SchedulingRuleFrequency : String, Codable
{
case None
case Secondly
case Minutely
case Hourly
case Daily
case Weekly
case Monthly
case Yearly
}
public class ScheduledFlow : Codable
{
public var stateName:String?
public var flowId:String?
public var flowParams:Struct?
required public init(){}
}
public enum TwilioSipRegions : String, Codable
{
case NorthAmericaVirginia
case NorthAmericaOregon
case EuropeIreland
case EuropeFrankfurt
case AsiaPacificSingapore
case AsiaPacificTokyo
case AsiaPacificSydney
case SouthAmericaSanPaolo
}
public enum AgentStates : String, Codable
{
case Unknown
case Ready
case NotReady
case LoggedOut
case WrapUp
case Outgoing
case Other
}
public enum AgentStateReasons : String, Codable
{
case Unknown
case SetByUser
case MissedCall
case SetBySystem
}
public enum UserModes : String, Codable
{
case SoftPhone
case Sip
case Flow
case DataOnly
case ThirdParty
}
public enum UserManagerRoles : String, Codable
{
case None
case Manager
case VoicemailAndCallHistory
case Custom
}
public enum DashboardPermissions : String, Codable
{
case ViewFiles
case ViewNotifications
case ViewSessions
case ViewEndpoints
case ViewReports
case ViewCustomers
case ViewFlows
}
public enum UserDataFieldModes : String, Codable
{
case Hidden
case ReadOnly
case ReadWrite
}
public class Tag : Codable
{
public var id:String?
public var name:String?
public var color:TagColors?
required public init(){}
}
public enum TagColors : String, Codable
{
case Magenta
case Red
case Volcano
case Orange
case Gold
case Lime
case Green
case Cyan
case Blue
case GeekBlue
case Purple
}
public class EndpointActionUrl : Codable
{
public var id:String?
public var url:String?
public var method:ActionUrlHttpMethods?
required public init(){}
}
public enum ActionUrlHttpMethods : String, Codable
{
case GET
case POST
}
public enum CustomerVisibility : String, Codable
{
case None
case CurrentCustomer
case CurrentAndChildCustomers
}
public class EndpointContact : Codable
{
public var id:String?
public var displayName:String?
public var address:String?
required public init(){}
}
public class EntityIntegrationData : List<String:IntegrationData>
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class IntegrationData : Codable
{
public var thirdPartyId:String?
required public init(){}
}
public class ThirdPartyPhoneSystemSettings : Codable
{
public var type:ThirdPartyPhoneSystemTypes?
public var sipSettings:ThirdPartySipSettings?
public var demoSettings:ThirdPartyDemoSettings?
required public init(){}
}
public enum ThirdPartyPhoneSystemTypes : String, Codable
{
case Demo
case Sip
}
public class ThirdPartySipSettings : Codable
{
public var accounts:[ThirdPartySipAccountSettings] = []
required public init(){}
}
public class ThirdPartySipAccountSettings : Codable
{
public var number:String?
public var agent:String?
public var authName:String?
public var userName:String?
public var displayName:String?
public var password:String?
public var userDomain:String?
public var registrationExpires:Int?
public var transportType:TransportTypes?
public var localIP:String?
public var localPort:Int?
public var sipServer:String?
public var sipServerPort:Int?
public var outboundServer:String?
public var outboundServerPort:Int?
public var stunServer:String?
public var stunPort:Int?
public var audioPlaybackDeviceName:String?
public var audioRecordingDeviceName:String?
public var audioCodecs:[AudioCodecTypes] = []
public var dtmfMethod:DtmfMethods?
required public init(){}
}
public enum TransportTypes : String, Codable
{
case UDP
case TLS
case TCP
case PERS
}
public enum AudioCodecTypes : Int, Codable
{
case PCMU = 0
case GSM = 3
case PCMA = 8
case G722 = 9
case G729 = 18
case ILBC = 97
case AMR = 98
case AMRWB = 99
case SPEEX = 100
case DTMF = 101
case SPEEXWB = 102
case ISACWB = 103
case ISACSWB = 104
case OPUS = 105
case G7221 = 121
case NONE = -1
}
public enum DtmfMethods : String, Codable
{
case RFC2833
case INFO
}
public class ThirdPartyDemoSettings : Codable
{
public var `extension`:String?
required public init(){}
}
public class AppSettings : Codable
{
public var enablePhoneNumberManagement:Bool?
public var enableDeviceManagement:Bool?
public var enableDialer:Bool?
public var enableCallHistory:Bool?
public var showFileNameInMessageCenter:Bool?
public var chakraTheme:String?
public var customCss:String?
public var pageTitle:String?
public var stringMappings:String?
public var logoutUrl:String?
public var portMyNumberUrl:String?
required public init(){}
}
public class ListResponse<AccountInfo : Codable> : Codable
{
/**
* The items
*/
// @ApiMember(Description="The items")
public var items:[AccountInfo] = []
/**
* The total number of items
*/
// @ApiMember(Description="The total number of items")
public var totalCount:Int?
/**
* The total number of pages
*/
// @ApiMember(Description="The total number of pages")
public var totalPages:Int?
/**
* Are there more pages of items? Used with simplified paging
*/
// @ApiMember(Description="Are there more pages of items? Used with simplified paging")
public var hasMorePages:Bool?
required public init(){}
}
public class AccountInfo : EntityInfo
{
/**
* The name of this account
*/
// @ApiMember(Description="The name of this account")
public var name:String?
/**
* The ID of this account's parent
*/
// @ApiMember(Description="The ID of this account's parent")
public var parentAccountId:String?
/**
* The twilio account SID
*/
// @ApiMember(Description="The twilio account SID")
public var twilioAccountSid:String?
/**
* The ancestors of this account. Useful for breadcrumbs
*/
// @ApiMember(Description="The ancestors of this account. Useful for breadcrumbs")
public var ancestorIds:[String] = []
/**
* The max number of phone numbers this account can have
*/
// @ApiMember(Description="The max number of phone numbers this account can have")
public var maxPhoneNumbers:Int?
/**
* This account is BYOA
*/
// @ApiMember(Description="This account is BYOA")
public var isBYOA:Bool?
/**
* TrustHub Profile Sid
*/
// @ApiMember(Description="TrustHub Profile Sid")
public var trustHubProfileSid:String?
/**
* The ID of the logo file
*/
// @ApiMember(Description="The ID of the logo file")
public var logoId:String?
/**
* The URI of the logo file
*/
// @ApiMember(Description="The URI of the logo file")
public var logoUri:String?
/**
* The billing settings for this account
*/
// @ApiMember(Description="The billing settings for this account")
public var billingSettings:BillingSettings?
required public init(){ super.init() }
private enum CodingKeys : String, CodingKey {
case name
case parentAccountId
case twilioAccountSid
case ancestorIds
case maxPhoneNumbers
case isBYOA
case trustHubProfileSid
case logoId
case logoUri
case billingSettings
}
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
let container = try decoder.container(keyedBy: CodingKeys.self)
name = try container.decodeIfPresent(String.self, forKey: .name)
parentAccountId = try container.decodeIfPresent(String.self, forKey: .parentAccountId)
twilioAccountSid = try container.decodeIfPresent(String.self, forKey: .twilioAccountSid)
ancestorIds = try container.decodeIfPresent([String].self, forKey: .ancestorIds) ?? []
maxPhoneNumbers = try container.decodeIfPresent(Int.self, forKey: .maxPhoneNumbers)
isBYOA = try container.decodeIfPresent(Bool.self, forKey: .isBYOA)
trustHubProfileSid = try container.decodeIfPresent(String.self, forKey: .trustHubProfileSid)
logoId = try container.decodeIfPresent(String.self, forKey: .logoId)
logoUri = try container.decodeIfPresent(String.self, forKey: .logoUri)
billingSettings = try container.decodeIfPresent(BillingSettings.self, forKey: .billingSettings)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
var container = encoder.container(keyedBy: CodingKeys.self)
if name != nil { try container.encode(name, forKey: .name) }
if parentAccountId != nil { try container.encode(parentAccountId, forKey: .parentAccountId) }
if twilioAccountSid != nil { try container.encode(twilioAccountSid, forKey: .twilioAccountSid) }
if ancestorIds.count > 0 { try container.encode(ancestorIds, forKey: .ancestorIds) }
if maxPhoneNumbers != nil { try container.encode(maxPhoneNumbers, forKey: .maxPhoneNumbers) }
if isBYOA != nil { try container.encode(isBYOA, forKey: .isBYOA) }
if trustHubProfileSid != nil { try container.encode(trustHubProfileSid, forKey: .trustHubProfileSid) }
if logoId != nil { try container.encode(logoId, forKey: .logoId) }
if logoUri != nil { try container.encode(logoUri, forKey: .logoUri) }
if billingSettings != nil { try container.encode(billingSettings, forKey: .billingSettings) }
}
}
public class BillingSettings : Codable
{
public var base:BillingItem?
public var localNumbers:BillingItem?
public var tollFreeNumbers:BillingItem?
public var inboundVoiceCalls:BillingItem?
public var outboundVoiceCalls:BillingItem?
public var inboundFaxes:BillingItem?
public var outboundFaxes:BillingItem?
public var inboundSmsMessages:BillingItem?
public var outboundSmsMessages:BillingItem?
required public init(){}
}
public class BillingItem : Codable
{
public var baseCost:Double?
public var rawUnitMultiplier:Double?
public var unitCost:Double?
public var allowance:Int?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /portal/phone-numbers HTTP/1.1 Host: evovoice.io Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ListResponseOfEndpointInfoWeVlXEog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api"> <HasMorePages>false</HasMorePages> <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Endpoints"> <d2p1:EndpointInfo> <CreatedBy>String</CreatedBy> <DateCreated>String</DateCreated> <DateLastModified>String</DateLastModified> <Id>String</Id> <LastModifiedBy>String</LastModifiedBy> <d2p1:AccountId>String</d2p1:AccountId> <d2p1:AccountName>String</d2p1:AccountName> <d2p1:ActionUrls> <d2p1:EndpointActionUrl> <d2p1:Id>String</d2p1:Id> <d2p1:Method>GET</d2p1:Method> <d2p1:Url>String</d2p1:Url> </d2p1:EndpointActionUrl> </d2p1:ActionUrls> <d2p1:AddressSid>String</d2p1:AddressSid> <d2p1:AgentState>Unknown</d2p1:AgentState> <d2p1:AgentStateReason>Unknown</d2p1:AgentStateReason> <d2p1:AppSettings xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Customers"> <d4p1:ChakraTheme>String</d4p1:ChakraTheme> <d4p1:CustomCss>String</d4p1:CustomCss> <d4p1:EnableCallHistory>false</d4p1:EnableCallHistory> <d4p1:EnableDeviceManagement>false</d4p1:EnableDeviceManagement> <d4p1:EnableDialer>false</d4p1:EnableDialer> <d4p1:EnablePhoneNumberManagement>false</d4p1:EnablePhoneNumberManagement> <d4p1:LogoutUrl>String</d4p1:LogoutUrl> <d4p1:PageTitle>String</d4p1:PageTitle> <d4p1:PortMyNumberUrl>String</d4p1:PortMyNumberUrl> <d4p1:ShowFileNameInMessageCenter>false</d4p1:ShowFileNameInMessageCenter> <d4p1:StringMappings>String</d4p1:StringMappings> </d2p1:AppSettings> <d2p1:AvatarUrl>String</d2p1:AvatarUrl> <d2p1:CallerIdName>String</d2p1:CallerIdName> <d2p1:CallerIdVerificationCode>String</d2p1:CallerIdVerificationCode> <d2p1:ContactListVisibility>None</d2p1:ContactListVisibility> <d2p1:Contacts> <d2p1:EndpointContact> <d2p1:Address>String</d2p1:Address> <d2p1:DisplayName>String</d2p1:DisplayName> <d2p1:Id>String</d2p1:Id> </d2p1:EndpointContact> </d2p1:Contacts> <d2p1:CustomerBreadcrumb xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Customers"> <d4p1:CustomerBreadcrumb> <d4p1:Id>String</d4p1:Id> <d4p1:Name>String</d4p1:Name> </d4p1:CustomerBreadcrumb> </d2p1:CustomerBreadcrumb> <d2p1:CustomerFieldPermissions>Hidden</d2p1:CustomerFieldPermissions> <d2p1:CustomerId>String</d2p1:CustomerId> <d2p1:CustomerName>String</d2p1:CustomerName> <d2p1:DashboardPermissions xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Authentication"> <d4p1:DashboardPermissions>ViewFiles</d4p1:DashboardPermissions> </d2p1:DashboardPermissions> <d2p1:Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value xmlns:d6p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data"> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:StructValue> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:StructValue> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:StructValue> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d2p1:Data> <d2p1:DisableSms>false</d2p1:DisableSms> <d2p1:DisplayName>String</d2p1:DisplayName> <d2p1:DoNotTouchPhoneNumber>false</d2p1:DoNotTouchPhoneNumber> <d2p1:DocumoId>String</d2p1:DocumoId> <d2p1:EmailAddress>String</d2p1:EmailAddress> <d2p1:EmergencyAddressSid>String</d2p1:EmergencyAddressSid> <d2p1:EmergencyPhoneNumberId>String</d2p1:EmergencyPhoneNumberId> <d2p1:EnableCallerIdLookup>false</d2p1:EnableCallerIdLookup> <d2p1:EnableEmergencyCalling>false</d2p1:EnableEmergencyCalling> <d2p1:ExtraInformation>String</d2p1:ExtraInformation> <d2p1:FlowId>String</d2p1:FlowId> <d2p1:FlowName>String</d2p1:FlowName> <d2p1:FlowParams xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value xmlns:d6p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data"> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:StructValue> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue> <d4p1:KeyValueOfstringValue8Ahp2kgT> <d4p1:Key>String</d4p1:Key> <d4p1:Value> <d6p1:BoolValue>false</d6p1:BoolValue> <d6p1:ListValue> <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d6p1:ListValue> <d6p1:NumberValue>0</d6p1:NumberValue> <d6p1:StringValue>String</d6p1:StringValue> <d6p1:StructValue i:nil="true" /> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:StructValue> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:StructValue> </d4p1:Value> </d4p1:KeyValueOfstringValue8Ahp2kgT> </d2p1:FlowParams> <d2p1:FlowSchedule>Always</d2p1:FlowSchedule> <d2p1:IntegrationData xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringIntegrationDataY_SkqLnhh> <d4p1:Key>String</d4p1:Key> <d4p1:Value xmlns:d6p1="http://schemas.datacontract.org/2004/07/Voice.Api.Integrations"> <d6p1:ThirdPartyId>String</d6p1:ThirdPartyId> </d4p1:Value> </d4p1:KeyValueOfstringIntegrationDataY_SkqLnhh> </d2p1:IntegrationData> <d2p1:IsCallerIdVerified>false</d2p1:IsCallerIdVerified> <d2p1:IsEnrolledIn10DlcService>false</d2p1:IsEnrolledIn10DlcService> <d2p1:IsVirtualPhoneNumber>false</d2p1:IsVirtualPhoneNumber> <d2p1:ManagerRole>None</d2p1:ManagerRole> <d2p1:MyFieldPermissions>Hidden</d2p1:MyFieldPermissions> <d2p1:Name>String</d2p1:Name> <d2p1:OtherEndpointFieldPermissions>Hidden</d2p1:OtherEndpointFieldPermissions> <d2p1:OtherUserFieldPermissions>Hidden</d2p1:OtherUserFieldPermissions> <d2p1:OverrideAppSettings>false</d2p1:OverrideAppSettings> <d2p1:PhoneNumber>String</d2p1:PhoneNumber> <d2p1:PhoneNumberSid>String</d2p1:PhoneNumberSid> <d2p1:ReferenceId>String</d2p1:ReferenceId> <d2p1:Schedule xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Scheduling"> <d4p1:DefaultState>String</d4p1:DefaultState> <d4p1:ForceClosed>false</d4p1:ForceClosed> <d4p1:Inherit>false</d4p1:Inherit> <d4p1:Rules> <d4p1:SchedulingRule> <d4p1:ByDay> <d4p1:ScheduleDay> <d4p1:DayOfWeek>Sunday</d4p1:DayOfWeek> <d4p1:Offset>0</d4p1:Offset> </d4p1:ScheduleDay> </d4p1:ByDay> <d4p1:ByHour xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:ByHour> <d4p1:ByMinute xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:ByMinute> <d4p1:ByMonth xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:ByMonth> <d4p1:ByMonthDay xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:ByMonthDay> <d4p1:BySetPosition xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:BySetPosition> <d4p1:ByWeekNo xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:ByWeekNo> <d4p1:ByYearDay xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:int>0</d7p1:int> </d4p1:ByYearDay> <d4p1:Condition>String</d4p1:Condition> <d4p1:Count>0</d4p1:Count> <d4p1:CustomerState>String</d4p1:CustomerState> <d4p1:EndTime>String</d4p1:EndTime> <d4p1:FlowId>String</d4p1:FlowId> <d4p1:FlowParams xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value xmlns:d9p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data"> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue i:nil="true" /> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue i:nil="true" /> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d9p1:StructValue> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue i:nil="true" /> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue> <d7p1:KeyValueOfstringValue8Ahp2kgT> <d7p1:Key>String</d7p1:Key> <d7p1:Value> <d9p1:BoolValue>false</d9p1:BoolValue> <d9p1:ListValue> <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d9p1:ListValue> <d9p1:NumberValue>0</d9p1:NumberValue> <d9p1:StringValue>String</d9p1:StringValue> <d9p1:StructValue i:nil="true" /> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d9p1:StructValue> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d9p1:StructValue> </d7p1:Value> </d7p1:KeyValueOfstringValue8Ahp2kgT> </d4p1:FlowParams> <d4p1:Frequency>None</d4p1:Frequency> <d4p1:Id>String</d4p1:Id> <d4p1:Interval>0</d4p1:Interval> <d4p1:IsAllDay>false</d4p1:IsAllDay> <d4p1:Name>String</d4p1:Name> <d4p1:Priority>0</d4p1:Priority> <d4p1:SimpleRuleType>Always</d4p1:SimpleRuleType> <d4p1:Source>String</d4p1:Source> <d4p1:StartDate>String</d4p1:StartDate> <d4p1:StartTime>String</d4p1:StartTime> <d4p1:State>String</d4p1:State> <d4p1:UntilDate>String</d4p1:UntilDate> </d4p1:SchedulingRule> </d4p1:Rules> <d4p1:TimeZoneId>String</d4p1:TimeZoneId> </d2p1:Schedule> <d2p1:ScheduledFlows> <d2p1:ScheduledFlow> <d2p1:FlowId>String</d2p1:FlowId> <d2p1:FlowParams xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value xmlns:d8p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data"> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue i:nil="true" /> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue i:nil="true" /> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d8p1:StructValue> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue i:nil="true" /> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue> <d6p1:KeyValueOfstringValue8Ahp2kgT> <d6p1:Key>String</d6p1:Key> <d6p1:Value> <d8p1:BoolValue>false</d8p1:BoolValue> <d8p1:ListValue> <d6p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" /> </d8p1:ListValue> <d8p1:NumberValue>0</d8p1:NumberValue> <d8p1:StringValue>String</d8p1:StringValue> <d8p1:StructValue i:nil="true" /> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d8p1:StructValue> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d8p1:StructValue> </d6p1:Value> </d6p1:KeyValueOfstringValue8Ahp2kgT> </d2p1:FlowParams> <d2p1:StateName>String</d2p1:StateName> </d2p1:ScheduledFlow> </d2p1:ScheduledFlows> <d2p1:SipCredentialSid>String</d2p1:SipCredentialSid> <d2p1:SipDomain>String</d2p1:SipDomain> <d2p1:SipPassword>String</d2p1:SipPassword> <d2p1:SipRegion>NorthAmericaVirginia</d2p1:SipRegion> <d2p1:SipUserName>String</d2p1:SipUserName> <d2p1:Tags xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Settings"> <d4p1:Tag> <d4p1:Color>Magenta</d4p1:Color> <d4p1:Id>String</d4p1:Id> <d4p1:Name>String</d4p1:Name> </d4p1:Tag> </d2p1:Tags> <d2p1:TeamMemberIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>String</d4p1:string> </d2p1:TeamMemberIds> <d2p1:ThirdPartyPhoneSystemSettings> <d2p1:DemoSettings> <d2p1:Extension>String</d2p1:Extension> </d2p1:DemoSettings> <d2p1:SipSettings> <d2p1:Accounts> <d2p1:ThirdPartyPhoneSystemSettings.ThirdPartySipSettings.ThirdPartySipAccountSettings> <d2p1:Agent>String</d2p1:Agent> <d2p1:AudioCodecs> <d2p1:ThirdPartyPhoneSystemSettings.ThirdPartySipSettings.AudioCodecTypes>PCMU</d2p1:ThirdPartyPhoneSystemSettings.ThirdPartySipSettings.AudioCodecTypes> </d2p1:AudioCodecs> <d2p1:AudioPlaybackDeviceName>String</d2p1:AudioPlaybackDeviceName> <d2p1:AudioRecordingDeviceName>String</d2p1:AudioRecordingDeviceName> <d2p1:AuthName>String</d2p1:AuthName> <d2p1:DTMFMethod>RFC2833</d2p1:DTMFMethod> <d2p1:DisplayName>String</d2p1:DisplayName> <d2p1:LocalIP>String</d2p1:LocalIP> <d2p1:LocalPort>0</d2p1:LocalPort> <d2p1:Number>String</d2p1:Number> <d2p1:OutboundServer>String</d2p1:OutboundServer> <d2p1:OutboundServerPort>0</d2p1:OutboundServerPort> <d2p1:Password>String</d2p1:Password> <d2p1:RegistrationExpires>0</d2p1:RegistrationExpires> <d2p1:SipServer>String</d2p1:SipServer> <d2p1:SipServerPort>0</d2p1:SipServerPort> <d2p1:StunPort>0</d2p1:StunPort> <d2p1:StunServer>String</d2p1:StunServer> <d2p1:TransportType>UDP</d2p1:TransportType> <d2p1:UserDomain>String</d2p1:UserDomain> <d2p1:UserName>String</d2p1:UserName> </d2p1:ThirdPartyPhoneSystemSettings.ThirdPartySipSettings.ThirdPartySipAccountSettings> </d2p1:Accounts> </d2p1:SipSettings> <d2p1:Type>Demo</d2p1:Type> </d2p1:ThirdPartyPhoneSystemSettings> <d2p1:Type>PhoneNumber</d2p1:Type> <d2p1:UseExternal10DlcCampaign>false</d2p1:UseExternal10DlcCampaign> <d2p1:UserEmailAddress>String</d2p1:UserEmailAddress> <d2p1:UserFirstName>String</d2p1:UserFirstName> <d2p1:UserLastName>String</d2p1:UserLastName> <d2p1:UserMode>SoftPhone</d2p1:UserMode> <d2p1:VoicemailGreetingId>String</d2p1:VoicemailGreetingId> </d2p1:EndpointInfo> </Items> <TotalCount>0</TotalCount> <TotalPages>0</TotalPages> </ListResponseOfEndpointInfoWeVlXEog>