Evo Voice

<back to all web services

NewCustomer

Creates a new customer

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
POST/customers
import Foundation
import ServiceStack

/**
* Creates a new customer
*/
// @Api(Description="Creates a new customer")
public class NewCustomer : IPost, Codable
{
    /**
    * The account ID to associate this customer with
    */
    // @ApiMember(Description="The account ID to associate this customer with")
    public var accountId:String?

    /**
    * The name of the customer
    */
    // @ApiMember(Description="The name of the customer")
    public var name:String?

    /**
    * The parent customer for this customer
    */
    // @ApiMember(Description="The parent customer for this customer")
    public var parentCustomerId:String?

    /**
    * The reference ID for this customer (e.g. in a third party system)
    */
    // @ApiMember(Description="The reference ID for this customer (e.g. in a third party system)")
    public var referenceId:String?

    /**
    * Data values for this customer
    */
    // @ApiMember(Description="Data values for this customer")
    public var data:Struct?

    required public init(){}
}

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 class CustomerInfo : EntityInfo
{
    /**
    * The ID of the account associated with this customer
    */
    // @ApiMember(Description="The ID of the account associated with this customer")
    public var accountId:String?

    /**
    * The parent customer ID for this customer
    */
    // @ApiMember(Description="The parent customer ID for this customer")
    public var parentCustomerId:String?

    /**
    * The breadcrumb to this customer
    */
    // @ApiMember(Description="The breadcrumb to this customer")
    public var breadcrumb:[CustomerBreadcrumb] = []

    /**
    * The name of the account associated with this customer
    */
    // @ApiMember(Description="The name of the account associated with this customer")
    public var accountName:String?

    /**
    * Is this customer staging or production?
    */
    // @ApiMember(Description="Is this customer staging or production?")
    public var isStaging:Bool?

    /**
    * The name of the company
    */
    // @ApiMember(Description="The name of the company")
    public var name:String?

    /**
    * The reference ID for this company
    */
    // @ApiMember(Description="The reference ID for this company")
    public var referenceId:String?

    /**
    * This customer's data values
    */
    // @ApiMember(Description="This customer's data values")
    public var data:Struct?

    /**
    * The list of tags for this customer
    */
    // @ApiMember(Description="The list of tags for this customer")
    public var tags:[Tag] = []

    /**
    * This customer's schedule
    */
    // @ApiMember(Description="This customer's schedule")
    public var schedule:Schedule?

    /**
    * Integration data for this customer
    */
    // @ApiMember(Description="Integration data for this customer")
    public var integrationData:EntityIntegrationData?

    /**
    * Override this customer's billing settings? Otherwise inherits from parent
    */
    // @ApiMember(Description="Override this customer's billing settings? Otherwise inherits from parent")
    public var overrideBillingSettings:Bool?

    /**
    * Billing settings for this customer
    */
    // @ApiMember(Description="Billing settings for this customer")
    public var billingSettings:BillingSettings?

    /**
    * Should this customer override the parent customer's app settings
    */
    // @ApiMember(Description="Should this customer override the parent customer's app settings")
    public var overrideAppSettings:Bool?

    /**
    * App / Portal settings for this customer
    */
    // @ApiMember(Description="App / Portal settings for this customer")
    public var appSettings:AppSettings?

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case accountId
        case parentCustomerId
        case breadcrumb
        case accountName
        case isStaging
        case name
        case referenceId
        case data
        case tags
        case schedule
        case integrationData
        case overrideBillingSettings
        case billingSettings
        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)
        parentCustomerId = try container.decodeIfPresent(String.self, forKey: .parentCustomerId)
        breadcrumb = try container.decodeIfPresent([CustomerBreadcrumb].self, forKey: .breadcrumb) ?? []
        accountName = try container.decodeIfPresent(String.self, forKey: .accountName)
        isStaging = try container.decodeIfPresent(Bool.self, forKey: .isStaging)
        name = try container.decodeIfPresent(String.self, forKey: .name)
        referenceId = try container.decodeIfPresent(String.self, forKey: .referenceId)
        data = try container.decodeIfPresent(Struct.self, forKey: .data)
        tags = try container.decodeIfPresent([Tag].self, forKey: .tags) ?? []
        schedule = try container.decodeIfPresent(Schedule.self, forKey: .schedule)
        integrationData = try container.decodeIfPresent(EntityIntegrationData.self, forKey: .integrationData)
        overrideBillingSettings = try container.decodeIfPresent(Bool.self, forKey: .overrideBillingSettings)
        billingSettings = try container.decodeIfPresent(BillingSettings.self, forKey: .billingSettings)
        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 parentCustomerId != nil { try container.encode(parentCustomerId, forKey: .parentCustomerId) }
        if breadcrumb.count > 0 { try container.encode(breadcrumb, forKey: .breadcrumb) }
        if accountName != nil { try container.encode(accountName, forKey: .accountName) }
        if isStaging != nil { try container.encode(isStaging, forKey: .isStaging) }
        if name != nil { try container.encode(name, forKey: .name) }
        if referenceId != nil { try container.encode(referenceId, forKey: .referenceId) }
        if data != nil { try container.encode(data, forKey: .data) }
        if tags.count > 0 { try container.encode(tags, forKey: .tags) }
        if schedule != nil { try container.encode(schedule, forKey: .schedule) }
        if integrationData != nil { try container.encode(integrationData, forKey: .integrationData) }
        if overrideBillingSettings != nil { try container.encode(overrideBillingSettings, forKey: .overrideBillingSettings) }
        if billingSettings != nil { try container.encode(billingSettings, forKey: .billingSettings) }
        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 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 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 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 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(){}
}

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(){}
}


Swift NewCustomer DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /customers HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<NewCustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Customers">
  <AccountId>String</AccountId>
  <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringValue8Ahp2kgT>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data">
        <d4p1:BoolValue>false</d4p1:BoolValue>
        <d4p1:ListValue>
          <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
            <d2p1:KeyValueOfstringValue8Ahp2kgT>
              <d2p1:Key>String</d2p1:Key>
              <d2p1:Value>
                <d4p1:BoolValue>false</d4p1:BoolValue>
                <d4p1:ListValue>
                  <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                    <d2p1:KeyValueOfstringValue8Ahp2kgT>
                      <d2p1:Key>String</d2p1:Key>
                      <d2p1:Value>
                        <d4p1:BoolValue>false</d4p1:BoolValue>
                        <d4p1:ListValue>
                          <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                        </d4p1:ListValue>
                        <d4p1:NumberValue>0</d4p1:NumberValue>
                        <d4p1:StringValue>String</d4p1:StringValue>
                        <d4p1:StructValue i:nil="true" />
                      </d2p1:Value>
                    </d2p1:KeyValueOfstringValue8Ahp2kgT>
                  </d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                </d4p1:ListValue>
                <d4p1:NumberValue>0</d4p1:NumberValue>
                <d4p1:StringValue>String</d4p1:StringValue>
                <d4p1:StructValue>
                  <d2p1:KeyValueOfstringValue8Ahp2kgT>
                    <d2p1:Key>String</d2p1:Key>
                    <d2p1:Value>
                      <d4p1:BoolValue>false</d4p1:BoolValue>
                      <d4p1:ListValue>
                        <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                      </d4p1:ListValue>
                      <d4p1:NumberValue>0</d4p1:NumberValue>
                      <d4p1:StringValue>String</d4p1:StringValue>
                      <d4p1:StructValue i:nil="true" />
                    </d2p1:Value>
                  </d2p1:KeyValueOfstringValue8Ahp2kgT>
                </d4p1:StructValue>
              </d2p1:Value>
            </d2p1:KeyValueOfstringValue8Ahp2kgT>
          </d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
        </d4p1:ListValue>
        <d4p1:NumberValue>0</d4p1:NumberValue>
        <d4p1:StringValue>String</d4p1:StringValue>
        <d4p1:StructValue>
          <d2p1:KeyValueOfstringValue8Ahp2kgT>
            <d2p1:Key>String</d2p1:Key>
            <d2p1:Value>
              <d4p1:BoolValue>false</d4p1:BoolValue>
              <d4p1:ListValue>
                <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                  <d2p1:KeyValueOfstringValue8Ahp2kgT>
                    <d2p1:Key>String</d2p1:Key>
                    <d2p1:Value>
                      <d4p1:BoolValue>false</d4p1:BoolValue>
                      <d4p1:ListValue>
                        <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                      </d4p1:ListValue>
                      <d4p1:NumberValue>0</d4p1:NumberValue>
                      <d4p1:StringValue>String</d4p1:StringValue>
                      <d4p1:StructValue i:nil="true" />
                    </d2p1:Value>
                  </d2p1:KeyValueOfstringValue8Ahp2kgT>
                </d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
              </d4p1:ListValue>
              <d4p1:NumberValue>0</d4p1:NumberValue>
              <d4p1:StringValue>String</d4p1:StringValue>
              <d4p1:StructValue>
                <d2p1:KeyValueOfstringValue8Ahp2kgT>
                  <d2p1:Key>String</d2p1:Key>
                  <d2p1:Value>
                    <d4p1:BoolValue>false</d4p1:BoolValue>
                    <d4p1:ListValue>
                      <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                    </d4p1:ListValue>
                    <d4p1:NumberValue>0</d4p1:NumberValue>
                    <d4p1:StringValue>String</d4p1:StringValue>
                    <d4p1:StructValue i:nil="true" />
                  </d2p1:Value>
                </d2p1:KeyValueOfstringValue8Ahp2kgT>
              </d4p1:StructValue>
            </d2p1:Value>
          </d2p1:KeyValueOfstringValue8Ahp2kgT>
        </d4p1:StructValue>
      </d2p1:Value>
    </d2p1:KeyValueOfstringValue8Ahp2kgT>
  </Data>
  <Name>String</Name>
  <ParentCustomerId>String</ParentCustomerId>
  <ReferenceId>String</ReferenceId>
</NewCustomer>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Customers">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</CreatedBy>
  <DateCreated xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</DateCreated>
  <DateLastModified xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</DateLastModified>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</Id>
  <LastModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</LastModifiedBy>
  <AccountId>String</AccountId>
  <AccountName>String</AccountName>
  <AppSettings>
    <ChakraTheme>String</ChakraTheme>
    <CustomCss>String</CustomCss>
    <EnableCallHistory>false</EnableCallHistory>
    <EnableDeviceManagement>false</EnableDeviceManagement>
    <EnableDialer>false</EnableDialer>
    <EnablePhoneNumberManagement>false</EnablePhoneNumberManagement>
    <LogoutUrl>String</LogoutUrl>
    <PageTitle>String</PageTitle>
    <PortMyNumberUrl>String</PortMyNumberUrl>
    <ShowFileNameInMessageCenter>false</ShowFileNameInMessageCenter>
    <StringMappings>String</StringMappings>
  </AppSettings>
  <BillingSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Accounts">
    <d2p1:Base>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:Base>
    <d2p1:InboundFaxes>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:InboundFaxes>
    <d2p1:InboundSmsMessages>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:InboundSmsMessages>
    <d2p1:InboundVoiceCalls>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:InboundVoiceCalls>
    <d2p1:LocalNumbers>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:LocalNumbers>
    <d2p1:OutboundFaxes>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:OutboundFaxes>
    <d2p1:OutboundSmsMessages>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:OutboundSmsMessages>
    <d2p1:OutboundVoiceCalls>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:OutboundVoiceCalls>
    <d2p1:TollFreeNumbers>
      <d2p1:Allowance>0</d2p1:Allowance>
      <d2p1:BaseCost>0</d2p1:BaseCost>
      <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
      <d2p1:UnitCost>0</d2p1:UnitCost>
    </d2p1:TollFreeNumbers>
  </BillingSettings>
  <Breadcrumb>
    <CustomerBreadcrumb>
      <Id>String</Id>
      <Name>String</Name>
    </CustomerBreadcrumb>
  </Breadcrumb>
  <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringValue8Ahp2kgT>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data">
        <d4p1:BoolValue>false</d4p1:BoolValue>
        <d4p1:ListValue>
          <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
            <d2p1:KeyValueOfstringValue8Ahp2kgT>
              <d2p1:Key>String</d2p1:Key>
              <d2p1:Value>
                <d4p1:BoolValue>false</d4p1:BoolValue>
                <d4p1:ListValue>
                  <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                    <d2p1:KeyValueOfstringValue8Ahp2kgT>
                      <d2p1:Key>String</d2p1:Key>
                      <d2p1:Value>
                        <d4p1:BoolValue>false</d4p1:BoolValue>
                        <d4p1:ListValue>
                          <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                        </d4p1:ListValue>
                        <d4p1:NumberValue>0</d4p1:NumberValue>
                        <d4p1:StringValue>String</d4p1:StringValue>
                        <d4p1:StructValue i:nil="true" />
                      </d2p1:Value>
                    </d2p1:KeyValueOfstringValue8Ahp2kgT>
                  </d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                </d4p1:ListValue>
                <d4p1:NumberValue>0</d4p1:NumberValue>
                <d4p1:StringValue>String</d4p1:StringValue>
                <d4p1:StructValue>
                  <d2p1:KeyValueOfstringValue8Ahp2kgT>
                    <d2p1:Key>String</d2p1:Key>
                    <d2p1:Value>
                      <d4p1:BoolValue>false</d4p1:BoolValue>
                      <d4p1:ListValue>
                        <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                      </d4p1:ListValue>
                      <d4p1:NumberValue>0</d4p1:NumberValue>
                      <d4p1:StringValue>String</d4p1:StringValue>
                      <d4p1:StructValue i:nil="true" />
                    </d2p1:Value>
                  </d2p1:KeyValueOfstringValue8Ahp2kgT>
                </d4p1:StructValue>
              </d2p1:Value>
            </d2p1:KeyValueOfstringValue8Ahp2kgT>
          </d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
        </d4p1:ListValue>
        <d4p1:NumberValue>0</d4p1:NumberValue>
        <d4p1:StringValue>String</d4p1:StringValue>
        <d4p1:StructValue>
          <d2p1:KeyValueOfstringValue8Ahp2kgT>
            <d2p1:Key>String</d2p1:Key>
            <d2p1:Value>
              <d4p1:BoolValue>false</d4p1:BoolValue>
              <d4p1:ListValue>
                <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                  <d2p1:KeyValueOfstringValue8Ahp2kgT>
                    <d2p1:Key>String</d2p1:Key>
                    <d2p1:Value>
                      <d4p1:BoolValue>false</d4p1:BoolValue>
                      <d4p1:ListValue>
                        <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                      </d4p1:ListValue>
                      <d4p1:NumberValue>0</d4p1:NumberValue>
                      <d4p1:StringValue>String</d4p1:StringValue>
                      <d4p1:StructValue i:nil="true" />
                    </d2p1:Value>
                  </d2p1:KeyValueOfstringValue8Ahp2kgT>
                </d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
              </d4p1:ListValue>
              <d4p1:NumberValue>0</d4p1:NumberValue>
              <d4p1:StringValue>String</d4p1:StringValue>
              <d4p1:StructValue>
                <d2p1:KeyValueOfstringValue8Ahp2kgT>
                  <d2p1:Key>String</d2p1:Key>
                  <d2p1:Value>
                    <d4p1:BoolValue>false</d4p1:BoolValue>
                    <d4p1:ListValue>
                      <d2p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                    </d4p1:ListValue>
                    <d4p1:NumberValue>0</d4p1:NumberValue>
                    <d4p1:StringValue>String</d4p1:StringValue>
                    <d4p1:StructValue i:nil="true" />
                  </d2p1:Value>
                </d2p1:KeyValueOfstringValue8Ahp2kgT>
              </d4p1:StructValue>
            </d2p1:Value>
          </d2p1:KeyValueOfstringValue8Ahp2kgT>
        </d4p1:StructValue>
      </d2p1:Value>
    </d2p1:KeyValueOfstringValue8Ahp2kgT>
  </Data>
  <IntegrationData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringIntegrationDataY_SkqLnhh>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Integrations">
        <d4p1:ThirdPartyId>String</d4p1:ThirdPartyId>
      </d2p1:Value>
    </d2p1:KeyValueOfstringIntegrationDataY_SkqLnhh>
  </IntegrationData>
  <IsStaging>false</IsStaging>
  <Name>String</Name>
  <OverrideAppSettings>false</OverrideAppSettings>
  <OverrideBillingSettings>false</OverrideBillingSettings>
  <ParentCustomerId>String</ParentCustomerId>
  <ReferenceId>String</ReferenceId>
  <Schedule xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Scheduling">
    <d2p1:DefaultState>String</d2p1:DefaultState>
    <d2p1:ForceClosed>false</d2p1:ForceClosed>
    <d2p1:Inherit>false</d2p1:Inherit>
    <d2p1:Rules>
      <d2p1:SchedulingRule>
        <d2p1:ByDay>
          <d2p1:ScheduleDay>
            <d2p1:DayOfWeek>Sunday</d2p1:DayOfWeek>
            <d2p1:Offset>0</d2p1:Offset>
          </d2p1:ScheduleDay>
        </d2p1:ByDay>
        <d2p1:ByHour xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ByHour>
        <d2p1:ByMinute xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ByMinute>
        <d2p1:ByMonth xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ByMonth>
        <d2p1:ByMonthDay xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ByMonthDay>
        <d2p1:BySetPosition xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:BySetPosition>
        <d2p1:ByWeekNo xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ByWeekNo>
        <d2p1:ByYearDay xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ByYearDay>
        <d2p1:Condition>String</d2p1:Condition>
        <d2p1:Count>0</d2p1:Count>
        <d2p1:CustomerState>String</d2p1:CustomerState>
        <d2p1:EndTime>String</d2p1:EndTime>
        <d2p1:FlowId>String</d2p1:FlowId>
        <d2p1:FlowParams xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringValue8Ahp2kgT>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value xmlns:d7p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data">
              <d7p1:BoolValue>false</d7p1:BoolValue>
              <d7p1:ListValue>
                <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                  <d5p1:KeyValueOfstringValue8Ahp2kgT>
                    <d5p1:Key>String</d5p1:Key>
                    <d5p1:Value>
                      <d7p1:BoolValue>false</d7p1:BoolValue>
                      <d7p1:ListValue>
                        <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                          <d5p1:KeyValueOfstringValue8Ahp2kgT>
                            <d5p1:Key>String</d5p1:Key>
                            <d5p1:Value>
                              <d7p1:BoolValue>false</d7p1:BoolValue>
                              <d7p1:ListValue>
                                <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                              </d7p1:ListValue>
                              <d7p1:NumberValue>0</d7p1:NumberValue>
                              <d7p1:StringValue>String</d7p1:StringValue>
                              <d7p1:StructValue i:nil="true" />
                            </d5p1:Value>
                          </d5p1:KeyValueOfstringValue8Ahp2kgT>
                        </d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                      </d7p1:ListValue>
                      <d7p1:NumberValue>0</d7p1:NumberValue>
                      <d7p1:StringValue>String</d7p1:StringValue>
                      <d7p1:StructValue>
                        <d5p1:KeyValueOfstringValue8Ahp2kgT>
                          <d5p1:Key>String</d5p1:Key>
                          <d5p1:Value>
                            <d7p1:BoolValue>false</d7p1:BoolValue>
                            <d7p1:ListValue>
                              <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                            </d7p1:ListValue>
                            <d7p1:NumberValue>0</d7p1:NumberValue>
                            <d7p1:StringValue>String</d7p1:StringValue>
                            <d7p1:StructValue i:nil="true" />
                          </d5p1:Value>
                        </d5p1:KeyValueOfstringValue8Ahp2kgT>
                      </d7p1:StructValue>
                    </d5p1:Value>
                  </d5p1:KeyValueOfstringValue8Ahp2kgT>
                </d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
              </d7p1:ListValue>
              <d7p1:NumberValue>0</d7p1:NumberValue>
              <d7p1:StringValue>String</d7p1:StringValue>
              <d7p1:StructValue>
                <d5p1:KeyValueOfstringValue8Ahp2kgT>
                  <d5p1:Key>String</d5p1:Key>
                  <d5p1:Value>
                    <d7p1:BoolValue>false</d7p1:BoolValue>
                    <d7p1:ListValue>
                      <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                        <d5p1:KeyValueOfstringValue8Ahp2kgT>
                          <d5p1:Key>String</d5p1:Key>
                          <d5p1:Value>
                            <d7p1:BoolValue>false</d7p1:BoolValue>
                            <d7p1:ListValue>
                              <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                            </d7p1:ListValue>
                            <d7p1:NumberValue>0</d7p1:NumberValue>
                            <d7p1:StringValue>String</d7p1:StringValue>
                            <d7p1:StructValue i:nil="true" />
                          </d5p1:Value>
                        </d5p1:KeyValueOfstringValue8Ahp2kgT>
                      </d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                    </d7p1:ListValue>
                    <d7p1:NumberValue>0</d7p1:NumberValue>
                    <d7p1:StringValue>String</d7p1:StringValue>
                    <d7p1:StructValue>
                      <d5p1:KeyValueOfstringValue8Ahp2kgT>
                        <d5p1:Key>String</d5p1:Key>
                        <d5p1:Value>
                          <d7p1:BoolValue>false</d7p1:BoolValue>
                          <d7p1:ListValue>
                            <d5p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                          </d7p1:ListValue>
                          <d7p1:NumberValue>0</d7p1:NumberValue>
                          <d7p1:StringValue>String</d7p1:StringValue>
                          <d7p1:StructValue i:nil="true" />
                        </d5p1:Value>
                      </d5p1:KeyValueOfstringValue8Ahp2kgT>
                    </d7p1:StructValue>
                  </d5p1:Value>
                </d5p1:KeyValueOfstringValue8Ahp2kgT>
              </d7p1:StructValue>
            </d5p1:Value>
          </d5p1:KeyValueOfstringValue8Ahp2kgT>
        </d2p1:FlowParams>
        <d2p1:Frequency>None</d2p1:Frequency>
        <d2p1:Id>String</d2p1:Id>
        <d2p1:Interval>0</d2p1:Interval>
        <d2p1:IsAllDay>false</d2p1:IsAllDay>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Priority>0</d2p1:Priority>
        <d2p1:SimpleRuleType>Always</d2p1:SimpleRuleType>
        <d2p1:Source>String</d2p1:Source>
        <d2p1:StartDate>String</d2p1:StartDate>
        <d2p1:StartTime>String</d2p1:StartTime>
        <d2p1:State>String</d2p1:State>
        <d2p1:UntilDate>String</d2p1:UntilDate>
      </d2p1:SchedulingRule>
    </d2p1:Rules>
    <d2p1:TimeZoneId>String</d2p1:TimeZoneId>
  </Schedule>
  <Tags xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Settings">
    <d2p1:Tag>
      <d2p1:Color>Magenta</d2p1:Color>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:Tag>
  </Tags>
</CustomerInfo>