6f8f2073f75c57b080997200cea7bddefb8763f2
[externalapi/nbi.git] / docs / offeredapis / api_serviceOrder / model.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
3            xmlns="http://orange.com/ONAPNBI/api/serviceOrder/v4/model"
4            xmlns:xs="http://www.w3.org/2001/XMLSchema"
5            attributeFormDefault="unqualified"
6            elementFormDefault="qualified"
7            targetNamespace="http://orange.com/ONAPNBI/api/serviceOrder/v4/model">
8    <xs:annotation id="signature">
9       <xs:appinfo>API Designer</xs:appinfo>
10       <xs:documentation>Model: serviceOrder
11                     Version: 4.0.0_inProgress
12                     Owner: ONAPNBI
13                     Generated on: 2019-03-12T16:45:40.663Z
14                     Generated by: Orange API Designer v2, model-v1</xs:documentation>
15    </xs:annotation>
16    <xs:simpleType name="ActionType">
17       <xs:restriction base="xs:string">
18          <xs:enumeration value="add"/>
19          <xs:enumeration value="modify"/>
20          <xs:enumeration value="delete"/>
21          <xs:enumeration value="noChange"/>
22       </xs:restriction>
23    </xs:simpleType>
24    <xs:simpleType name="StateType">
25       <xs:restriction base="xs:string">
26          <xs:enumeration value="acknowledged"/>
27          <xs:enumeration value="rejected"/>
28          <xs:enumeration value="pending"/>
29          <xs:enumeration value="held"/>
30          <xs:enumeration value="inProgress"/>
31          <xs:enumeration value="cancelled"/>
32          <xs:enumeration value="completed"/>
33          <xs:enumeration value="failed"/>
34          <xs:enumeration value="partial"/>
35       </xs:restriction>
36    </xs:simpleType>
37    <xs:simpleType name="RelationshipType">
38       <xs:restriction base="xs:string">
39          <xs:enumeration value="reliesOn"/>
40       </xs:restriction>
41    </xs:simpleType>
42    <xs:simpleType name="EventType">
43       <xs:restriction base="xs:string">
44          <xs:enumeration value="ServiceOrderCreationNotification"/>
45          <xs:enumeration value="ServiceOrderStateChangeNotification"/>
46          <xs:enumeration value="ServiceOrderItemStateChangeNotification"/>
47       </xs:restriction>
48    </xs:simpleType>
49    <xs:simpleType name="SeverityMessage">
50       <xs:restriction base="xs:string">
51          <xs:enumeration value="information"/>
52          <xs:enumeration value="error"/>
53       </xs:restriction>
54    </xs:simpleType>
55    <xs:element name="Error" type="Error">
56       <xs:annotation>
57          <xs:documentation source="public"/>
58       </xs:annotation>
59    </xs:element>
60    <xs:complexType name="Error">
61       <xs:annotation>
62          <xs:documentation source="public"/>
63       </xs:annotation>
64       <xs:sequence minOccurs="1" maxOccurs="1">
65          <xs:element name="code" type="xs:int" minOccurs="1">
66             <xs:annotation>
67                <xs:documentation source="public">Application related code (as defined in the API or from a common list)</xs:documentation>
68             </xs:annotation>
69          </xs:element>
70          <xs:element name="reason" type="xs:string" minOccurs="1">
71             <xs:annotation>
72                <xs:documentation source="public">Text that explains the reason for error. This can be shown to a client user.</xs:documentation>
73             </xs:annotation>
74          </xs:element>
75          <xs:element name="message" type="xs:string" minOccurs="0">
76             <xs:annotation>
77                <xs:documentation source="public">Text that provide more details and corrective actions related to the error. This can be shown to a client user</xs:documentation>
78             </xs:annotation>
79          </xs:element>
80          <xs:element name="status" type="xs:string" minOccurs="0">
81             <xs:annotation>
82                <xs:documentation source="public">http error code extension like 400-2</xs:documentation>
83             </xs:annotation>
84          </xs:element>
85          <xs:element name="referenceError" type="xs:string" minOccurs="0">
86             <xs:annotation>
87                <xs:documentation source="public">url pointing to documentation describing the error</xs:documentation>
88             </xs:annotation>
89          </xs:element>
90       </xs:sequence>
91    </xs:complexType>
92    <xs:element name="ServiceRelationship" type="ServiceRelationship">
93       <xs:annotation>
94          <xs:documentation source="public">Linked Services to the one instantiate
95 nbi component used this relationship to sort request to ONAP.</xs:documentation>
96       </xs:annotation>
97    </xs:element>
98    <xs:complexType name="ServiceRelationship">
99       <xs:annotation>
100          <xs:documentation source="public">Linked Services to the one instantiate
101 nbi component used this relationship to sort request to ONAP.</xs:documentation>
102       </xs:annotation>
103       <xs:sequence minOccurs="1" maxOccurs="1">
104          <xs:element name="type" type="RelationshipType" minOccurs="1">
105             <xs:annotation>
106                <xs:documentation source="public">Relationship type. It can be : “reliesOn” if the Service needs another already owned Service to rely on (e.g. an option on an already owned mobile access Service) or “targets” or “isTargeted” (depending on the way of expressing the link) for any other kind of links that may be useful.
107 Only reliesOn is managed in Beijing release.</xs:documentation>
108             </xs:annotation>
109          </xs:element>
110          <xs:element name="service" type="Service" minOccurs="1">
111             <xs:annotation>
112                <xs:documentation source="public">Service reference - id of the service targeted.
113 not managed in Beijing release.</xs:documentation>
114             </xs:annotation>
115          </xs:element>
116       </xs:sequence>
117    </xs:complexType>
118    <xs:element name="ServiceRef" type="ServiceRef">
119       <xs:annotation>
120          <xs:documentation source="public">Service references</xs:documentation>
121       </xs:annotation>
122    </xs:element>
123    <xs:complexType name="ServiceRef">
124       <xs:annotation>
125          <xs:documentation source="public">Service references</xs:documentation>
126       </xs:annotation>
127       <xs:sequence minOccurs="1" maxOccurs="1">
128          <xs:element name="id" type="xs:string" minOccurs="1">
129             <xs:annotation>
130                <xs:documentation source="public">Unique identifier of the service</xs:documentation>
131             </xs:annotation>
132          </xs:element>
133          <xs:element name="href" type="xs:string" minOccurs="0">
134             <xs:annotation>
135                <xs:documentation source="public">Reference of the service</xs:documentation>
136             </xs:annotation>
137          </xs:element>
138       </xs:sequence>
139    </xs:complexType>
140    <xs:element name="ServiceCharacteristic" type="ServiceCharacteristic">
141       <xs:annotation>
142          <xs:documentation source="public">ServiceCharacteristic</xs:documentation>
143       </xs:annotation>
144    </xs:element>
145    <xs:complexType name="ServiceCharacteristic">
146       <xs:annotation>
147          <xs:documentation source="public">ServiceCharacteristic</xs:documentation>
148       </xs:annotation>
149       <xs:sequence minOccurs="1" maxOccurs="1">
150          <xs:element name="name" type="xs:string" minOccurs="1">
151             <xs:annotation>
152                <xs:documentation source="public">Name of characteristic</xs:documentation>
153             </xs:annotation>
154          </xs:element>
155          <xs:element name="valueType" type="xs:string" minOccurs="0"/>
156          <xs:element name="value" type="Value" minOccurs="0">
157             <xs:annotation>
158                <xs:documentation source="public"/>
159             </xs:annotation>
160          </xs:element>
161       </xs:sequence>
162    </xs:complexType>
163    <xs:element name="RelatedParty" type="RelatedParty">
164       <xs:annotation>
165          <xs:documentation source="public">A related party defines party which are involved in this order and the role they are playing.
166 for Beijing release:
167 With the current version of APIs used from SO and AAI we need to manage a ‘customer’. This customer concept is confusing with Customer BSS concept. We took the following rules to manage the ‘customer’ information:
168 o       It could be provided through a serviceOrder in the service Order a relatedParty with role ‘ONAPcustomer’ should be provided in the serviceOrder header (we will not consider in this release the party at item level); External API component will check if this customer exists and create it in AAI if not.
169 o       If no relatedParty are provided the service will be affected to ‘generic’ customer (dummy customer) – we assume this ‘generic’ customer always exists.</xs:documentation>
170       </xs:annotation>
171    </xs:element>
172    <xs:complexType name="RelatedParty">
173       <xs:annotation>
174          <xs:documentation source="public">A related party defines party which are involved in this order and the role they are playing.
175 for Beijing release:
176 With the current version of APIs used from SO and AAI we need to manage a ‘customer’. This customer concept is confusing with Customer BSS concept. We took the following rules to manage the ‘customer’ information:
177 o       It could be provided through a serviceOrder in the service Order a relatedParty with role ‘ONAPcustomer’ should be provided in the serviceOrder header (we will not consider in this release the party at item level); External API component will check if this customer exists and create it in AAI if not.
178 o       If no relatedParty are provided the service will be affected to ‘generic’ customer (dummy customer) – we assume this ‘generic’ customer always exists.</xs:documentation>
179       </xs:annotation>
180       <xs:sequence minOccurs="1" maxOccurs="1">
181          <xs:element name="id" type="xs:string" minOccurs="1">
182             <xs:annotation>
183                <xs:documentation source="public">Unique identifier of a related party</xs:documentation>
184             </xs:annotation>
185          </xs:element>
186          <xs:element name="href" type="xs:string" minOccurs="0">
187             <xs:annotation>
188                <xs:documentation source="public">An hyperlink to the party - not used in Beijnig release</xs:documentation>
189             </xs:annotation>
190          </xs:element>
191          <xs:element name="role" type="xs:string" minOccurs="1">
192             <xs:annotation>
193                <xs:documentation source="public">The role of the related party (e.g. Owner, requester, fullfiller etc).
194 ONLY 'ONAPcustomer' is considered</xs:documentation>
195             </xs:annotation>
196          </xs:element>
197          <xs:element name="name" type="xs:string" minOccurs="0">
198             <xs:annotation>
199                <xs:documentation source="public">Name of the related party</xs:documentation>
200             </xs:annotation>
201          </xs:element>
202          <xs:element name="@referredType" type="xs:string" minOccurs="0">
203             <xs:annotation>
204                <xs:documentation source="public"/>
205             </xs:annotation>
206          </xs:element>
207       </xs:sequence>
208    </xs:complexType>
209    <xs:element name="ServiceSpecificationRef" type="ServiceSpecificationRef">
210       <xs:annotation>
211          <xs:documentation source="public">The service specification (these attributes are fetched from the catalogue).</xs:documentation>
212       </xs:annotation>
213    </xs:element>
214    <xs:complexType name="ServiceSpecificationRef">
215       <xs:annotation>
216          <xs:documentation source="public">The service specification (these attributes are fetched from the catalogue).</xs:documentation>
217       </xs:annotation>
218       <xs:sequence minOccurs="1" maxOccurs="1">
219          <xs:element name="id" type="xs:string" minOccurs="1">
220             <xs:annotation>
221                <xs:documentation source="public">Unique identifier of the service specification
222 This information will be used to retrieve SDC information + mapped to SO ModelNameVersionIdin the request.</xs:documentation>
223             </xs:annotation>
224          </xs:element>
225          <xs:element name="href" type="xs:string" minOccurs="0">
226             <xs:annotation>
227                <xs:documentation source="public">Reference of the service specification
228 Not used in Beijing release.</xs:documentation>
229             </xs:annotation>
230          </xs:element>
231          <xs:element name="name" type="xs:string" minOccurs="0">
232             <xs:annotation>
233                <xs:documentation source="public">Name of the service specification
234 Not used in Beijing release</xs:documentation>
235             </xs:annotation>
236          </xs:element>
237          <xs:element name="version" type="xs:string" minOccurs="0">
238             <xs:annotation>
239                <xs:documentation source="public">Version of the service Specification
240 Not used in Beijing release</xs:documentation>
241             </xs:annotation>
242          </xs:element>
243          <xs:element name="targetServiceSchema" type="TargetServiceSchema" minOccurs="0">
244             <xs:annotation>
245                <xs:documentation source="public">This structure could be used to describe the service</xs:documentation>
246             </xs:annotation>
247          </xs:element>
248          <xs:element name="@type" type="xs:string" minOccurs="0">
249             <xs:annotation>
250                <xs:documentation source="public">Not used in Beijing release</xs:documentation>
251             </xs:annotation>
252          </xs:element>
253          <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
254             <xs:annotation>
255                <xs:documentation source="public">Not used in Beijing release</xs:documentation>
256             </xs:annotation>
257          </xs:element>
258          <xs:element name="@baseType" type="xs:string" minOccurs="0">
259             <xs:annotation>
260                <xs:documentation source="public">Not used in Beijing release</xs:documentation>
261             </xs:annotation>
262          </xs:element>
263       </xs:sequence>
264    </xs:complexType>
265    <xs:element name="Service" type="Service">
266       <xs:annotation>
267          <xs:documentation source="public">Service (to be added, modified, deleted) description</xs:documentation>
268       </xs:annotation>
269    </xs:element>
270    <xs:complexType name="Service">
271       <xs:annotation>
272          <xs:documentation source="public">Service (to be added, modified, deleted) description</xs:documentation>
273       </xs:annotation>
274       <xs:sequence minOccurs="1" maxOccurs="1">
275          <xs:element name="id" type="xs:string" minOccurs="1">
276             <xs:annotation>
277                <xs:documentation source="public">Identifier of a service instance.
278 It must be valued if orderItem action is 'delete' and corresponds to a AAI service.id</xs:documentation>
279             </xs:annotation>
280          </xs:element>
281          <xs:element name="href" type="xs:string" minOccurs="0">
282             <xs:annotation>
283                <xs:documentation source="public">Reference to the Service (useful for delete or modify command).
284 Not managed in Beijing release.</xs:documentation>
285             </xs:annotation>
286          </xs:element>
287          <xs:element name="name" type="xs:string" minOccurs="0">
288             <xs:annotation>
289                <xs:documentation source="public">Name of the service - When orderItem action is 'add' this name will be used in ONAP/SO request as InstaceName.</xs:documentation>
290             </xs:annotation>
291          </xs:element>
292          <xs:element name="serviceState" type="xs:string" minOccurs="0">
293             <xs:annotation>
294                <xs:documentation source="public">The lifecycle state of the service requested;
295 Not managed in Beijing release.</xs:documentation>
296             </xs:annotation>
297          </xs:element>
298          <xs:element name="@type" type="xs:string" minOccurs="0">
299             <xs:annotation>
300                <xs:documentation source="public">To define the service type
301 Not managed in Beijing Release</xs:documentation>
302             </xs:annotation>
303          </xs:element>
304          <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
305             <xs:annotation>
306                <xs:documentation source="public">The URL to get the resource schema.
307 Not managed in Beijing Release</xs:documentation>
308             </xs:annotation>
309          </xs:element>
310          <xs:element name="serviceCharacteristic"
311                      type="ServiceCharacteristic"
312                      minOccurs="0"
313                      maxOccurs="unbounded">
314             <xs:annotation>
315                <xs:documentation source="public">A list of service characteristics .A name/value pair list used to store instance specific values of attributes. The behavior is equivalent to a MAP data structure where only one entry for any given value of "name" can exist</xs:documentation>
316             </xs:annotation>
317          </xs:element>
318          <xs:element name="serviceRelationship"
319                      type="ServiceRelationship"
320                      minOccurs="0"
321                      maxOccurs="unbounded">
322             <xs:annotation>
323                <xs:documentation source="public">A list or service relationships (ServiceRelationship[*]). Linked Services to the one instantiate, it can be : “reliesOn” if the Service needs another already owned Service to rely on (e.g. an option on an already owned mobile access Service) or “targets” or “isTargeted” (depending on the way of expressing the link) for any other kind of links that may be useful.
324 Only reliesOn are considered in Beijnig release.</xs:documentation>
325             </xs:annotation>
326          </xs:element>
327          <xs:element name="relatedParty"
328                      type="RelatedParty"
329                      minOccurs="0"
330                      maxOccurs="unbounded">
331             <xs:annotation>
332                <xs:documentation source="public">A list of related party parties linked at the Service level (it may be a User for example).
333 Not managed in Beijing release</xs:documentation>
334             </xs:annotation>
335          </xs:element>
336          <xs:element name="serviceSpecification"
337                      type="ServiceSpecificationRef"
338                      minOccurs="0">
339             <xs:annotation>
340                <xs:documentation source="public">A link to the service specification (catalog information)
341 This is required if orderItem action is add.</xs:documentation>
342             </xs:annotation>
343          </xs:element>
344       </xs:sequence>
345    </xs:complexType>
346    <xs:element name="OrderItemRelationship" type="OrderItemRelationship">
347       <xs:annotation>
348          <xs:documentation source="public">Linked order item to the one containing this attribute.
349 nbi component used this relationship to sort request to ONAP.</xs:documentation>
350       </xs:annotation>
351    </xs:element>
352    <xs:complexType name="OrderItemRelationship">
353       <xs:annotation>
354          <xs:documentation source="public">Linked order item to the one containing this attribute.
355 nbi component used this relationship to sort request to ONAP.</xs:documentation>
356       </xs:annotation>
357       <xs:sequence minOccurs="1" maxOccurs="1">
358          <xs:element name="type" type="RelationshipType" minOccurs="1">
359             <xs:annotation>
360                <xs:documentation source="public">The type of related order item, can be : dependancy if the order item needs to be “not started” until another order item is complete</xs:documentation>
361             </xs:annotation>
362          </xs:element>
363          <xs:element name="id" type="xs:string" minOccurs="1">
364             <xs:annotation>
365                <xs:documentation source="public">Unique identifier of an order item</xs:documentation>
366             </xs:annotation>
367          </xs:element>
368       </xs:sequence>
369    </xs:complexType>
370    <xs:element name="ServiceOrderItem" type="ServiceOrderItem">
371       <xs:annotation>
372          <xs:documentation source="public">An identified part of the order. A service order is decomposed into one or more order items.</xs:documentation>
373       </xs:annotation>
374    </xs:element>
375    <xs:complexType name="ServiceOrderItem">
376       <xs:annotation>
377          <xs:documentation source="public">An identified part of the order. A service order is decomposed into one or more order items.</xs:documentation>
378       </xs:annotation>
379       <xs:sequence minOccurs="1" maxOccurs="1">
380          <xs:element name="id" type="xs:string" minOccurs="1">
381             <xs:annotation>
382                <xs:documentation source="public">Identifier of the line item (generally it is a sequence number 01, 02, 03, …)</xs:documentation>
383             </xs:annotation>
384          </xs:element>
385          <xs:element name="action" type="ActionType" minOccurs="0">
386             <xs:annotation>
387                <xs:documentation source="public">The action to be carried out on the Service. Can be add, modify, delete, noChange</xs:documentation>
388             </xs:annotation>
389          </xs:element>
390          <xs:element name="state" type="StateType" minOccurs="0">
391             <xs:annotation>
392                <xs:documentation source="public">State of the order item (described in the state machine diagram)
393 Only Acknowledged, Rejected, InProgress, Completed, Failed will be managed for service order item state</xs:documentation>
394             </xs:annotation>
395          </xs:element>
396          <xs:element name="percentProgress" type="xs:string" minOccurs="0">
397             <xs:annotation>
398                <xs:documentation source="public">Progress of the delivery in percentage.</xs:documentation>
399             </xs:annotation>
400          </xs:element>
401          <xs:element name="@type" type="xs:string" minOccurs="0">
402             <xs:annotation>
403                <xs:documentation source="public">Used to extend the order item.
404 not used in Beijing relase</xs:documentation>
405             </xs:annotation>
406          </xs:element>
407          <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
408             <xs:annotation>
409                <xs:documentation source="public">not used in Beijing relase</xs:documentation>
410             </xs:annotation>
411          </xs:element>
412          <xs:element name="@baseType" type="xs:string" minOccurs="0">
413             <xs:annotation>
414                <xs:documentation source="public">not used in Beijing relase</xs:documentation>
415             </xs:annotation>
416          </xs:element>
417          <xs:element name="orderItemRelationship"
418                      type="OrderItemRelationship"
419                      minOccurs="0"
420                      maxOccurs="unbounded">
421             <xs:annotation>
422                <xs:documentation source="public">Linked order item to the one containing this attribute</xs:documentation>
423             </xs:annotation>
424          </xs:element>
425          <xs:element name="service" type="Service" minOccurs="1">
426             <xs:annotation>
427                <xs:documentation source="public">The Service to be acted on by the order item</xs:documentation>
428             </xs:annotation>
429          </xs:element>
430          <xs:element name="orderItemMessage"
431                      type="OrderMessage"
432                      minOccurs="0"
433                      maxOccurs="unbounded">
434             <xs:annotation>
435                <xs:documentation source="public"/>
436             </xs:annotation>
437          </xs:element>
438       </xs:sequence>
439    </xs:complexType>
440    <xs:element name="ServiceOrder" type="ServiceOrder">
441       <xs:annotation>
442          <xs:documentation source="public">A Service Order is a type of order which can be used to place an order between a customer and a service provider or between a service provider and a partner and vice versa</xs:documentation>
443       </xs:annotation>
444    </xs:element>
445    <xs:complexType name="ServiceOrder">
446       <xs:annotation>
447          <xs:documentation source="public">A Service Order is a type of order which can be used to place an order between a customer and a service provider or between a service provider and a partner and vice versa</xs:documentation>
448       </xs:annotation>
449       <xs:sequence minOccurs="1" maxOccurs="1">
450          <xs:element name="id" type="xs:string" minOccurs="1">
451             <xs:annotation>
452                <xs:documentation source="public">ID created on repository side</xs:documentation>
453             </xs:annotation>
454          </xs:element>
455          <xs:element name="href" type="xs:string" minOccurs="0">
456             <xs:annotation>
457                <xs:documentation source="public">Hyperlink to access the order</xs:documentation>
458             </xs:annotation>
459          </xs:element>
460          <xs:element name="externalId" type="xs:string" minOccurs="0">
461             <xs:annotation>
462                <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
463             </xs:annotation>
464          </xs:element>
465          <xs:element name="priority" type="xs:string" minOccurs="0">
466             <xs:annotation>
467                <xs:documentation source="public">A way that can be used by consumers to prioritize orders in Service Order Management system (from 0 to 4 : 0 is the highest priority, and 4 the lowest)</xs:documentation>
468             </xs:annotation>
469          </xs:element>
470          <xs:element name="description" type="xs:string" minOccurs="0">
471             <xs:annotation>
472                <xs:documentation source="public">A free-text description of the service order</xs:documentation>
473             </xs:annotation>
474          </xs:element>
475          <xs:element name="category" type="xs:string" minOccurs="0">
476             <xs:annotation>
477                <xs:documentation source="public">Used to categorize the order that can be useful for the OM system (e.g. “broadband”, “TVOption”, ...)</xs:documentation>
478             </xs:annotation>
479          </xs:element>
480          <xs:element name="state" type="StateType" minOccurs="0">
481             <xs:annotation>
482                <xs:documentation source="public">State of the order : described in the state-machine diagram
483 Only Acknowledged, Rejected, InProgress, Completed, Failed, Partial  will be managed for service order state (Held, Pending and Cancelled are not managed)</xs:documentation>
484             </xs:annotation>
485          </xs:element>
486          <xs:element name="orderDate" type="xs:dateTime" minOccurs="0">
487             <xs:annotation>
488                <xs:documentation source="public"/>
489             </xs:annotation>
490          </xs:element>
491          <xs:element name="completionDateTime" type="xs:dateTime" minOccurs="0">
492             <xs:annotation>
493                <xs:documentation source="public">Date when the order was completed</xs:documentation>
494             </xs:annotation>
495          </xs:element>
496          <xs:element name="requestedStartDate" type="xs:dateTime" minOccurs="0">
497             <xs:annotation>
498                <xs:documentation source="public">Order start date wished by the requestor</xs:documentation>
499             </xs:annotation>
500          </xs:element>
501          <xs:element name="requestedCompletionDate" type="xs:dateTime" minOccurs="0">
502             <xs:annotation>
503                <xs:documentation source="public">Requested delivery date from the requestor perspective</xs:documentation>
504             </xs:annotation>
505          </xs:element>
506          <xs:element name="expectedCompletionDate" type="xs:dateTime" minOccurs="0">
507             <xs:annotation>
508                <xs:documentation source="public"/>
509             </xs:annotation>
510          </xs:element>
511          <xs:element name="startDate" type="xs:dateTime" minOccurs="0">
512             <xs:annotation>
513                <xs:documentation source="public">Date when the order was started for processing</xs:documentation>
514             </xs:annotation>
515          </xs:element>
516          <xs:element name="@baseType" type="xs:string" minOccurs="0">
517             <xs:annotation>
518                <xs:documentation source="public"/>
519             </xs:annotation>
520          </xs:element>
521          <xs:element name="@type" type="xs:string" minOccurs="0">
522             <xs:annotation>
523                <xs:documentation source="public"/>
524             </xs:annotation>
525          </xs:element>
526          <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
527             <xs:annotation>
528                <xs:documentation source="public"/>
529             </xs:annotation>
530          </xs:element>
531          <xs:element name="relatedParty"
532                      type="RelatedParty"
533                      minOccurs="0"
534                      maxOccurs="unbounded">
535             <xs:annotation>
536                <xs:documentation source="public">A list of related parties which are involved in this order and the role they are playing.</xs:documentation>
537             </xs:annotation>
538          </xs:element>
539          <xs:element name="orderRelationship"
540                      type="OrderRelationship"
541                      minOccurs="0"
542                      maxOccurs="unbounded">
543             <xs:annotation>
544                <xs:documentation source="public">A list of related order references .Linked order to the one containing this attribute</xs:documentation>
545             </xs:annotation>
546          </xs:element>
547          <xs:element name="orderItem"
548                      type="ServiceOrderItem"
549                      minOccurs="0"
550                      maxOccurs="unbounded">
551             <xs:annotation>
552                <xs:documentation source="public">A list of order items that have to be processed.</xs:documentation>
553             </xs:annotation>
554          </xs:element>
555          <xs:element name="orderMessage"
556                      type="OrderMessage"
557                      minOccurs="0"
558                      maxOccurs="unbounded"/>
559       </xs:sequence>
560    </xs:complexType>
561    <xs:element name="OrderRelationship" type="OrderRelationship">
562       <xs:annotation>
563          <xs:documentation source="public">Linked order to the one containing this attribute.
564 This relationship is not used to sort ONAP request.</xs:documentation>
565       </xs:annotation>
566    </xs:element>
567    <xs:complexType name="OrderRelationship">
568       <xs:annotation>
569          <xs:documentation source="public">Linked order to the one containing this attribute.
570 This relationship is not used to sort ONAP request.</xs:documentation>
571       </xs:annotation>
572       <xs:sequence minOccurs="1" maxOccurs="1">
573          <xs:element name="type" type="xs:string" minOccurs="0">
574             <xs:annotation>
575                <xs:documentation source="public">The type of related order, can be : “dependency” if the order needs to be “not started” until another order item is complete (a service order in this case) or “cross-ref” to keep track of the source order (a productOrder)</xs:documentation>
576             </xs:annotation>
577          </xs:element>
578          <xs:element name="id" type="xs:string" minOccurs="1">
579             <xs:annotation>
580                <xs:documentation source="public">The id of the related order</xs:documentation>
581             </xs:annotation>
582          </xs:element>
583          <xs:element name="href" type="xs:string" minOccurs="0">
584             <xs:annotation>
585                <xs:documentation source="public">A hyperlink to the related order</xs:documentation>
586             </xs:annotation>
587          </xs:element>
588          <xs:element name="@referredType" type="xs:string" minOccurs="0">
589             <xs:annotation>
590                <xs:documentation source="public">Type of the referred order.</xs:documentation>
591             </xs:annotation>
592          </xs:element>
593       </xs:sequence>
594    </xs:complexType>
595    <xs:element name="TargetServiceSchema" type="TargetServiceSchema">
596       <xs:annotation>
597          <xs:documentation source="public">Target to the schema describing the service spec resource</xs:documentation>
598       </xs:annotation>
599    </xs:element>
600    <xs:complexType name="TargetServiceSchema">
601       <xs:annotation>
602          <xs:documentation source="public">Target to the schema describing the service spec resource</xs:documentation>
603       </xs:annotation>
604       <xs:sequence minOccurs="1" maxOccurs="1">
605          <xs:element name="@type" type="xs:string" minOccurs="1">
606             <xs:annotation>
607                <xs:documentation source="public">Indicates the (class) type of resource.</xs:documentation>
608             </xs:annotation>
609          </xs:element>
610          <xs:element name="@schemaLocation" type="xs:string" minOccurs="1">
611             <xs:annotation>
612                <xs:documentation source="public">This field provided a link to the schema describing this REST resource.</xs:documentation>
613             </xs:annotation>
614          </xs:element>
615       </xs:sequence>
616    </xs:complexType>
617    <xs:element name="Value" type="Value">
618       <xs:annotation>
619          <xs:documentation source="public">Value is a descriptive structure for service characteristic</xs:documentation>
620       </xs:annotation>
621    </xs:element>
622    <xs:complexType name="Value">
623       <xs:annotation>
624          <xs:documentation source="public">Value is a descriptive structure for service characteristic</xs:documentation>
625       </xs:annotation>
626       <xs:sequence minOccurs="1" maxOccurs="1">
627          <xs:element name="serviceCharacteristicValue" type="xs:string" minOccurs="0">
628             <xs:annotation>
629                <xs:documentation source="public">Value of the characteristic.</xs:documentation>
630             </xs:annotation>
631          </xs:element>
632       </xs:sequence>
633    </xs:complexType>
634    <xs:element name="CreateServiceOrderItem" type="CreateServiceOrderItem">
635       <xs:annotation>
636          <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request to describe an item.
637 Attribute description is not accurate and should be find in the serviceOrderItem class.</xs:documentation>
638       </xs:annotation>
639    </xs:element>
640    <xs:complexType name="CreateServiceOrderItem">
641       <xs:annotation>
642          <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request to describe an item.
643 Attribute description is not accurate and should be find in the serviceOrderItem class.</xs:documentation>
644       </xs:annotation>
645       <xs:sequence minOccurs="1" maxOccurs="1">
646          <xs:element name="id" type="xs:string" minOccurs="1">
647             <xs:annotation>
648                <xs:documentation source="public">Identifier of the line item (generally it is a sequence number 01, 02, 03, …)</xs:documentation>
649             </xs:annotation>
650          </xs:element>
651          <xs:element name="action" type="ActionType" minOccurs="0">
652             <xs:annotation>
653                <xs:documentation source="public">The action to be carried out on the Service. Can be add, modify, delete, noChange</xs:documentation>
654             </xs:annotation>
655          </xs:element>
656          <xs:element name="orderItemRelationship"
657                      type="OrderItemRelationship"
658                      minOccurs="0"
659                      maxOccurs="unbounded">
660             <xs:annotation>
661                <xs:documentation source="public">Linked order item to the one containing this attribute</xs:documentation>
662             </xs:annotation>
663          </xs:element>
664          <xs:element name="service" type="Service" minOccurs="1">
665             <xs:annotation>
666                <xs:documentation source="public">The Service to be acted on by the order item</xs:documentation>
667             </xs:annotation>
668          </xs:element>
669       </xs:sequence>
670    </xs:complexType>
671    <xs:element name="CreateServiceOrder" type="CreateServiceOrder">
672       <xs:annotation>
673          <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request.
674 Attribute description is not accurate and should be find in the serviceOrder class.</xs:documentation>
675       </xs:annotation>
676    </xs:element>
677    <xs:complexType name="CreateServiceOrder">
678       <xs:annotation>
679          <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request.
680 Attribute description is not accurate and should be find in the serviceOrder class.</xs:documentation>
681       </xs:annotation>
682       <xs:sequence minOccurs="1" maxOccurs="1">
683          <xs:element name="externalId" type="xs:string" minOccurs="0">
684             <xs:annotation>
685                <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
686             </xs:annotation>
687          </xs:element>
688          <xs:element name="priority" type="xs:string" minOccurs="0">
689             <xs:annotation>
690                <xs:documentation source="public">A way that can be used by consumers to prioritize orders in Service Order Management system (from 0 to 4 : 0 is the highest priority, and 4 the lowest)</xs:documentation>
691             </xs:annotation>
692          </xs:element>
693          <xs:element name="description" type="xs:string" minOccurs="0">
694             <xs:annotation>
695                <xs:documentation source="public">A free-text description of the service order</xs:documentation>
696             </xs:annotation>
697          </xs:element>
698          <xs:element name="category" type="xs:string" minOccurs="0">
699             <xs:annotation>
700                <xs:documentation source="public">Used to categorize the order that can be useful for the OM system (e.g. “broadband”, “TVOption”, ...)</xs:documentation>
701             </xs:annotation>
702          </xs:element>
703          <xs:element name="requestedStartDate" type="xs:dateTime" minOccurs="0">
704             <xs:annotation>
705                <xs:documentation source="public">Order start date wished by the requestor</xs:documentation>
706             </xs:annotation>
707          </xs:element>
708          <xs:element name="requestedCompletionDate" type="xs:dateTime" minOccurs="0">
709             <xs:annotation>
710                <xs:documentation source="public">Requested delivery date from the requestor perspective</xs:documentation>
711             </xs:annotation>
712          </xs:element>
713          <xs:element name="relatedParty"
714                      type="RelatedParty"
715                      minOccurs="0"
716                      maxOccurs="unbounded">
717             <xs:annotation>
718                <xs:documentation source="public">A list of related parties which are involved in this order and the role they are playing.</xs:documentation>
719             </xs:annotation>
720          </xs:element>
721          <xs:element name="orderRelationship"
722                      type="OrderRelationship"
723                      minOccurs="0"
724                      maxOccurs="unbounded">
725             <xs:annotation>
726                <xs:documentation source="public">A list of related order references .Linked order to the one containing this attribute</xs:documentation>
727             </xs:annotation>
728          </xs:element>
729          <xs:element name="orderItem"
730                      type="CreateServiceOrderItem"
731                      minOccurs="0"
732                      maxOccurs="unbounded">
733             <xs:annotation>
734                <xs:documentation source="public">A list of order items that have to be processed.</xs:documentation>
735             </xs:annotation>
736          </xs:element>
737       </xs:sequence>
738    </xs:complexType>
739    <xs:element name="ServiceOrderSummary" type="ServiceOrderSummary">
740       <xs:annotation>
741          <xs:documentation source="public">This structure is used to provide a subset of serviceOrder attributes to be provided in particular for notification messages</xs:documentation>
742       </xs:annotation>
743    </xs:element>
744    <xs:complexType name="ServiceOrderSummary">
745       <xs:annotation>
746          <xs:documentation source="public">This structure is used to provide a subset of serviceOrder attributes to be provided in particular for notification messages</xs:documentation>
747       </xs:annotation>
748       <xs:sequence minOccurs="1" maxOccurs="1">
749          <xs:element name="id" type="xs:string" minOccurs="1">
750             <xs:annotation>
751                <xs:documentation source="public">ID created on repository side</xs:documentation>
752             </xs:annotation>
753          </xs:element>
754          <xs:element name="href" type="xs:string" minOccurs="0">
755             <xs:annotation>
756                <xs:documentation source="public">Hyperlink to access the order</xs:documentation>
757             </xs:annotation>
758          </xs:element>
759          <xs:element name="externalId" type="xs:string" minOccurs="0">
760             <xs:annotation>
761                <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
762             </xs:annotation>
763          </xs:element>
764          <xs:element name="state" type="StateType" minOccurs="0">
765             <xs:annotation>
766                <xs:documentation source="public">State of the order : described in the state-machine diagram
767 Only Acknowledged, Rejected, InProgress, Completed, Failed, Partial  will be managed for service order state (Held, Pending and Cancelled are not managed)</xs:documentation>
768             </xs:annotation>
769          </xs:element>
770          <xs:element name="orderDate" type="xs:dateTime" minOccurs="0">
771             <xs:annotation>
772                <xs:documentation source="public"/>
773             </xs:annotation>
774          </xs:element>
775          <xs:element name="completionDateTime" type="xs:dateTime" minOccurs="0">
776             <xs:annotation>
777                <xs:documentation source="public">Date when the order was completed</xs:documentation>
778             </xs:annotation>
779          </xs:element>
780       </xs:sequence>
781    </xs:complexType>
782    <xs:element name="Notification" type="Notification">
783       <xs:annotation>
784          <xs:documentation source="public">Notification structure for a serviceOrdering notification</xs:documentation>
785       </xs:annotation>
786    </xs:element>
787    <xs:complexType name="Notification">
788       <xs:annotation>
789          <xs:documentation source="public">Notification structure for a serviceOrdering notification</xs:documentation>
790       </xs:annotation>
791       <xs:sequence minOccurs="1" maxOccurs="1">
792          <xs:element name="eventId" type="xs:string" minOccurs="1">
793             <xs:annotation>
794                <xs:documentation source="public"/>
795             </xs:annotation>
796          </xs:element>
797          <xs:element name="eventDate" type="xs:dateTime" minOccurs="1">
798             <xs:annotation>
799                <xs:documentation source="public"/>
800             </xs:annotation>
801          </xs:element>
802          <xs:element name="eventType" type="EventType" minOccurs="1">
803             <xs:annotation>
804                <xs:documentation source="public"/>
805             </xs:annotation>
806          </xs:element>
807          <xs:element name="event" type="ServiceOrderSummaryWithItem" minOccurs="1"/>
808       </xs:sequence>
809    </xs:complexType>
810    <xs:element name="ServiceOrderItemSummary" type="ServiceOrderItemSummary">
811       <xs:annotation>
812          <xs:documentation source="public">Service Order item summary to be used for notification</xs:documentation>
813       </xs:annotation>
814    </xs:element>
815    <xs:complexType name="ServiceOrderItemSummary">
816       <xs:annotation>
817          <xs:documentation source="public">Service Order item summary to be used for notification</xs:documentation>
818       </xs:annotation>
819       <xs:sequence minOccurs="1" maxOccurs="1">
820          <xs:element name="id" type="xs:string" minOccurs="1">
821             <xs:annotation>
822                <xs:documentation source="public">Identifier of the line item (generally it is a sequence number 01, 02, 03, …)</xs:documentation>
823             </xs:annotation>
824          </xs:element>
825          <xs:element name="action" type="ActionType" minOccurs="0">
826             <xs:annotation>
827                <xs:documentation source="public">The action to be carried out on the Service. Can be add, modify, delete, noChange
828 modify is not managed in Beijing release.</xs:documentation>
829             </xs:annotation>
830          </xs:element>
831          <xs:element name="state" type="StateType" minOccurs="0">
832             <xs:annotation>
833                <xs:documentation source="public">State of the order item (described in the state machine diagram)
834 Only Acknowledged, Rejected, InProgress, Completed, Failed will be managed for service order item state</xs:documentation>
835             </xs:annotation>
836          </xs:element>
837          <xs:element name="service" type="Service" minOccurs="1">
838             <xs:annotation>
839                <xs:documentation source="public">The Service to be acted on by the order item</xs:documentation>
840             </xs:annotation>
841          </xs:element>
842       </xs:sequence>
843    </xs:complexType>
844    <xs:element name="ServiceOrderSummaryWithItem" type="ServiceOrderSummaryWithItem">
845       <xs:annotation>
846          <xs:documentation source="public">Service order item summary with item description</xs:documentation>
847       </xs:annotation>
848    </xs:element>
849    <xs:complexType name="ServiceOrderSummaryWithItem">
850       <xs:annotation>
851          <xs:documentation source="public">Service order item summary with item description</xs:documentation>
852       </xs:annotation>
853       <xs:sequence minOccurs="1" maxOccurs="1">
854          <xs:element name="id" type="xs:string" minOccurs="1">
855             <xs:annotation>
856                <xs:documentation source="public">ID created on repository side</xs:documentation>
857             </xs:annotation>
858          </xs:element>
859          <xs:element name="href" type="xs:string" minOccurs="0">
860             <xs:annotation>
861                <xs:documentation source="public">Hyperlink to access the order</xs:documentation>
862             </xs:annotation>
863          </xs:element>
864          <xs:element name="externalId" type="xs:string" minOccurs="0">
865             <xs:annotation>
866                <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
867             </xs:annotation>
868          </xs:element>
869          <xs:element name="state" type="StateType" minOccurs="0">
870             <xs:annotation>
871                <xs:documentation source="public">State of the order : described in the state-machine diagram
872 Only Acknowledged, Rejected, InProgress, Completed, Failed, Partial  will be managed for service order state (Held, Pending and Cancelled are not managed)</xs:documentation>
873             </xs:annotation>
874          </xs:element>
875          <xs:element name="orderDate" type="xs:dateTime" minOccurs="0">
876             <xs:annotation>
877                <xs:documentation source="public"/>
878             </xs:annotation>
879          </xs:element>
880          <xs:element name="completionDateTime" type="xs:dateTime" minOccurs="0">
881             <xs:annotation>
882                <xs:documentation source="public">Date when the order was completed</xs:documentation>
883             </xs:annotation>
884          </xs:element>
885          <xs:element name="orderItem"
886                      type="ServiceOrderItemSummary"
887                      minOccurs="0"
888                      maxOccurs="unbounded">
889             <xs:annotation>
890                <xs:documentation source="public">A list of order items that have to be processed.</xs:documentation>
891             </xs:annotation>
892          </xs:element>
893       </xs:sequence>
894    </xs:complexType>
895    <xs:element name="OrderMessage" type="OrderMessage">
896       <xs:annotation>
897          <xs:documentation source="public">An optional array of messages associated with the Order</xs:documentation>
898       </xs:annotation>
899    </xs:element>
900    <xs:complexType name="OrderMessage">
901       <xs:annotation>
902          <xs:documentation source="public">An optional array of messages associated with the Order</xs:documentation>
903       </xs:annotation>
904       <xs:sequence minOccurs="1" maxOccurs="1">
905          <xs:element name="code" type="xs:string" minOccurs="0">
906             <xs:annotation>
907                <xs:documentation source="public">A code associated to this message</xs:documentation>
908             </xs:annotation>
909          </xs:element>
910          <xs:element name="field" type="xs:string" minOccurs="0">
911             <xs:annotation>
912                <xs:documentation source="public">Service Order attribute related to this error message</xs:documentation>
913             </xs:annotation>
914          </xs:element>
915          <xs:element name="messageInformation" type="xs:string" minOccurs="0">
916             <xs:annotation>
917                <xs:documentation source="public">Message related to this order</xs:documentation>
918             </xs:annotation>
919          </xs:element>
920          <xs:element name="severity" type="SeverityMessage" minOccurs="1">
921             <xs:annotation>
922                <xs:documentation source="public">Gravity of this message</xs:documentation>
923             </xs:annotation>
924          </xs:element>
925          <xs:element name="correctionRequired" type="xs:boolean" minOccurs="1">
926             <xs:annotation>
927                <xs:documentation source="public">Indicator that an action is required to allow service order fullfilment to follow up</xs:documentation>
928             </xs:annotation>
929          </xs:element>
930       </xs:sequence>
931    </xs:complexType>
932 </xs:schema>