1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 <!-- ********************************************************************** -->
\r
4 <!-- Copyright (c) 2000-2012 BroadSoft, Inc. All rights reserved. -->
\r
5 <!-- ********************************************************************** -->
\r
6 <!-- O C I X M L S C H E M A : S E R V I C E P A R T -->
\r
8 <!-- I N C O M I N G C A L L I N G P L A N S E R V I C E -->
\r
10 <!-- This file defines the XML Schema for the BroadSoft Application Server -->
\r
11 <!-- Open Client Interface (OCI). -->
\r
12 <!-- ********************************************************************** -->
\r
14 <xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema"
\r
17 attributeFormDefault = "qualified"
\r
18 elementFormDefault = "qualified">
\r
20 <xs:import namespace = "C"
\r
21 schemaLocation = "../OCISchemaBASE.xsd"/>
\r
23 <xs:include schemaLocation="../OCISchemaDataTypes.xsd"/>
\r
25 <!-- ********************************************************************************** -->
\r
26 <!-- I N C O M I N G C A L L I N G P L A N -->
\r
27 <!-- R E Q U E S T S A N D R E S P O N S E S -->
\r
28 <!-- ********************************************************************************** -->
\r
30 Requests and responses are listed here in alphabetical order.
\r
31 The non-primitive attributes inside the commands are defined in another
\r
32 section of the schema.
\r
34 Requests in this schema file:
\r
35 GroupIncomingCallingPlanGetListRequest
\r
36 GroupIncomingCallingPlanModifyListRequest
\r
37 UserIncomingCallingPlanGetRequest
\r
38 UserIncomingCallingPlanModifyRequest
\r
42 <xs:complexType name="GroupIncomingCallingPlanGetListRequest">
\r
45 Request the group's incoming calling plan settings.
\r
46 The response is either a GroupIncomingCallingPlanGetListResponse or an ErrorResponse.
\r
50 <xs:extension base="core:OCIRequest">
\r
52 <xs:element name="serviceProviderId" type="ServiceProviderId"/>
\r
53 <xs:element name="groupId" type="GroupId"/>
\r
56 </xs:complexContent>
\r
59 <xs:complexType name="GroupIncomingCallingPlanGetListResponse">
\r
62 Response to GroupIncomingCallingPlanGetListRequest.
\r
66 <xs:extension base="core:OCIDataResponse">
\r
68 <xs:element name="groupPermissions" type="IncomingCallingPlanPermissions"/>
\r
69 <xs:element name="departmentPermissions" type="IncomingCallingPlanDepartmentPermissions" minOccurs="0" maxOccurs="unbounded"/>
\r
72 </xs:complexContent>
\r
75 <xs:complexType name="GroupIncomingCallingPlanModifyListRequest">
\r
78 Change the group's incoming calling plan settings.
\r
79 The response is either a SuccessResponse or an ErrorResponse.
\r
83 <xs:extension base="core:OCIRequest">
\r
85 <xs:element name="serviceProviderId" type="ServiceProviderId"/>
\r
86 <xs:element name="groupId" type="GroupId"/>
\r
87 <xs:element name="groupPermissions" type="IncomingCallingPlanPermissionsModify" minOccurs="0"/>
\r
88 <xs:element name="departmentPermissions" type="IncomingCallingPlanDepartmentPermissionsModify" minOccurs="0" maxOccurs="unbounded"/>
\r
91 </xs:complexContent>
\r
94 <xs:complexType name="UserIncomingCallingPlanGetRequest">
\r
97 Request the user's incoming calling plan settings.
\r
98 The response is either a UserIncomingCallingPlanGetListResponse or an ErrorResponse.
\r
101 <xs:complexContent>
\r
102 <xs:extension base="core:OCIRequest">
\r
104 <xs:element name="userId" type="UserId"/>
\r
107 </xs:complexContent>
\r
110 <xs:complexType name="UserIncomingCallingPlanGetResponse">
\r
113 Response to UserIncomingCallingPlanGetRequest.
\r
114 </xs:documentation>
\r
116 <xs:complexContent>
\r
117 <xs:extension base="core:OCIDataResponse">
\r
119 <xs:element name="useCustomSettings" type="xs:boolean"/>
\r
120 <xs:element name="userPermissions" type="IncomingCallingPlanPermissions"/>
\r
123 </xs:complexContent>
\r
126 <xs:complexType name="UserIncomingCallingPlanModifyRequest">
\r
129 Change the user's incoming calling plan settings.
\r
130 The response is either a SuccessResponse or an ErrorResponse.
\r
131 </xs:documentation>
\r
133 <xs:complexContent>
\r
134 <xs:extension base="core:OCIRequest">
\r
136 <xs:element name="userId" type="UserId"/>
\r
137 <xs:element name="useCustomSettings" type="xs:boolean" minOccurs="0"/>
\r
138 <xs:element name="userPermissions" type="IncomingCallingPlanPermissionsModify" minOccurs="0"/>
\r
141 </xs:complexContent>
\r
144 <xs:complexType name="IncomingCallingPlanDepartmentPermissions">
\r
147 Allows or disallows various types of incoming calls for a specified department.
\r
148 </xs:documentation>
\r
151 <xs:element name="departmentKey" type="DepartmentKey"/>
\r
152 <xs:element name="departmentFullPathName" type="DepartmentFullPathName"/>
\r
153 <xs:element name="allowFromWithinGroup" type="xs:boolean"/>
\r
154 <xs:element name="allowFromOutsideGroup" type="IncomingCallingPlanOutsideCallPermission"/>
\r
155 <xs:element name="allowCollectCalls" type="xs:boolean"/>
\r
156 <xs:element name="digitPatternPermission" type="IncomingCallingPlanDigitPatternPermission" minOccurs="0" maxOccurs="unbounded"/>
\r
160 <xs:complexType name="IncomingCallingPlanDepartmentPermissionsModify">
\r
163 Allows or disallows various types of incoming calls for a specified department.
\r
164 For use when modifing settings.
\r
165 </xs:documentation>
\r
168 <xs:element name="departmentKey" type="DepartmentKey"/>
\r
169 <xs:element name="allowFromWithinGroup" type="xs:boolean" minOccurs="0"/>
\r
170 <xs:element name="allowFromOutsideGroup" type="IncomingCallingPlanOutsideCallPermission" minOccurs="0"/>
\r
171 <xs:element name="allowCollectCalls" type="xs:boolean" minOccurs="0"/>
\r
172 <xs:element name="digitPatternPermission" type="IncomingCallingPlanDigitPatternPermission" minOccurs="0" maxOccurs="unbounded"/>
\r
176 <xs:complexType name="IncomingCallingPlanDigitPatternPermission">
\r
179 Indicates whether calls from specified digit patterns are permitted.
\r
180 </xs:documentation>
\r
183 <xs:element name="digitPatternName" type="CallingPlanDigitPatternName"/>
\r
184 <xs:element name="allow" type="xs:boolean"/>
\r
188 <xs:simpleType name="IncomingCallingPlanOutsideCallPermission">
\r
191 Indicates whether incoming outside calls are permitted.
\r
192 </xs:documentation>
\r
194 <xs:restriction base="xs:token">
\r
195 <xs:enumeration value="Allow"/>
\r
196 <xs:enumeration value="Allow Only If Redirected From Another User"/>
\r
197 <xs:enumeration value="Disallow"/>
\r
201 <xs:complexType name="IncomingCallingPlanPermissions">
\r
204 Allows or disallows various types of incoming calls for a user or group -- not any particular department.
\r
205 </xs:documentation>
\r
208 <xs:element name="allowFromWithinGroup" type="xs:boolean"/>
\r
209 <xs:element name="allowFromOutsideGroup" type="IncomingCallingPlanOutsideCallPermission"/>
\r
210 <xs:element name="allowCollectCalls" type="xs:boolean"/>
\r
211 <xs:element name="digitPatternPermission" type="IncomingCallingPlanDigitPatternPermission" minOccurs="0" maxOccurs="unbounded"/>
\r
215 <xs:complexType name="IncomingCallingPlanPermissionsModify">
\r
218 Allows or disallows various types of incoming calls for a user or group -- not any particular department.
\r
219 For use when modifing settings.
\r
220 </xs:documentation>
\r
223 <xs:element name="allowFromWithinGroup" type="xs:boolean" minOccurs="0"/>
\r
224 <xs:element name="allowFromOutsideGroup" type="IncomingCallingPlanOutsideCallPermission" minOccurs="0"/>
\r
225 <xs:element name="allowCollectCalls" type="xs:boolean" minOccurs="0"/>
\r
226 <xs:element name="digitPatternPermission" type="IncomingCallingPlanDigitPatternPermission" minOccurs="0" maxOccurs="unbounded"/>
\r