aboutsummaryrefslogtreecommitdiffstats
path: root/docs/offeredapis/api_serviceOrder/model.xsd
blob: 61ce74188cae7e91a438f9faeabe376b3a9a92b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
<?xml version="1.0" encoding="UTF-8"?>
<!--

        Copyright (c) 2018 Orange

        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.

-->
<xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
           xmlns="http://orange.com/ONAPNBI/api/serviceOrder/v4/model"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           targetNamespace="http://orange.com/ONAPNBI/api/serviceOrder/v4/model">
   <xs:annotation id="signature">
      <xs:appinfo>API Designer</xs:appinfo>
      <xs:documentation>Model: serviceOrder
                    Version: 4.0.1
                    Owner: ONAPNBI
                    Generated on: 2019-04-18T12:39:38.945Z
                    Generated by: Orange API Designer v2, model-v1</xs:documentation>
   </xs:annotation>
   <xs:simpleType name="ActionType">
      <xs:restriction base="xs:string">
         <xs:enumeration value="add"/>
         <xs:enumeration value="modify"/>
         <xs:enumeration value="delete"/>
         <xs:enumeration value="noChange"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="StateType">
      <xs:restriction base="xs:string">
         <xs:enumeration value="acknowledged"/>
         <xs:enumeration value="rejected"/>
         <xs:enumeration value="pending"/>
         <xs:enumeration value="held"/>
         <xs:enumeration value="inProgress"/>
         <xs:enumeration value="cancelled"/>
         <xs:enumeration value="completed"/>
         <xs:enumeration value="failed"/>
         <xs:enumeration value="partial"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="RelationshipType">
      <xs:restriction base="xs:string">
         <xs:enumeration value="reliesOn"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="EventType">
      <xs:restriction base="xs:string">
         <xs:enumeration value="ServiceOrderCreationNotification"/>
         <xs:enumeration value="ServiceOrderStateChangeNotification"/>
         <xs:enumeration value="ServiceOrderItemStateChangeNotification"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="SeverityMessage">
      <xs:restriction base="xs:string">
         <xs:enumeration value="information"/>
         <xs:enumeration value="error"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:element name="Error" type="Error">
      <xs:annotation>
         <xs:documentation source="public"/>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="Error">
      <xs:annotation>
         <xs:documentation source="public"/>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="code" type="xs:int" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Application related code (as defined in the API or from a common list)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="reason" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Text that explains the reason for error. This can be shown to a client user.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="message" type="xs:string" minOccurs="0">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="status" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">http error code extension like 400-2</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="referenceError" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">url pointing to documentation describing the error</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceRelationship" type="ServiceRelationship">
      <xs:annotation>
         <xs:documentation source="public">Linked Services to the one instantiate
nbi component used this relationship to sort request to ONAP.</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceRelationship">
      <xs:annotation>
         <xs:documentation source="public">Linked Services to the one instantiate
nbi component used this relationship to sort request to ONAP.</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="type" type="RelationshipType" minOccurs="1">
            <xs:annotation>
               <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.
Only reliesOn is managed in Beijing release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="service" type="Service" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Service reference - id of the service targeted.
not managed in Beijing release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceRef" type="ServiceRef">
      <xs:annotation>
         <xs:documentation source="public">Service references</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceRef">
      <xs:annotation>
         <xs:documentation source="public">Service references</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Unique identifier of the service</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Reference of the service</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceCharacteristic" type="ServiceCharacteristic">
      <xs:annotation>
         <xs:documentation source="public">ServiceCharacteristic</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceCharacteristic">
      <xs:annotation>
         <xs:documentation source="public">ServiceCharacteristic</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="name" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Name of characteristic</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="valueType" type="xs:string" minOccurs="0"/>
         <xs:element name="value" type="Value" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="RelatedParty" type="RelatedParty">
      <xs:annotation>
         <xs:documentation source="public">A related party defines party which are involved in this order and the role they are playing.
for Beijing release:
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:
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.
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>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="RelatedParty">
      <xs:annotation>
         <xs:documentation source="public">A related party defines party which are involved in this order and the role they are playing.
for Beijing release:
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:
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.
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>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Unique identifier of a related party</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">An hyperlink to the party - not used in Beijnig release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="role" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">The role of the related party (e.g. Owner, requester, fullfiller etc).
ONLY 'ONAPcustomer' is considered</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="name" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Name of the related party</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@referredType" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceSpecificationRef" type="ServiceSpecificationRef">
      <xs:annotation>
         <xs:documentation source="public">The service specification (these attributes are fetched from the catalogue).</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceSpecificationRef">
      <xs:annotation>
         <xs:documentation source="public">The service specification (these attributes are fetched from the catalogue).</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Unique identifier of the service specification
This information will be used to retrieve SDC information + mapped to SO ModelNameVersionIdin the request.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Reference of the service specification
Not used in Beijing release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="name" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Name of the service specification
Not used in Beijing release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="version" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Version of the service Specification
Not used in Beijing release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="targetServiceSchema" type="TargetServiceSchema" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">This structure could be used to describe the service</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@type" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Not used in Beijing release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Not used in Beijing release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@baseType" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Not used in Beijing release</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="Service" type="Service">
      <xs:annotation>
         <xs:documentation source="public">Service (to be added, modified, deleted) description</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="Service">
      <xs:annotation>
         <xs:documentation source="public">Service (to be added, modified, deleted) description</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Identifier of a service instance.
It must be valued if orderItem action is 'delete' and corresponds to a AAI service.id</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Reference to the Service (useful for delete or modify command).
Not managed in Beijing release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="name" type="xs:string" minOccurs="0">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="serviceState" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">The lifecycle state of the service requested;
Not managed in Beijing release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@type" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">To define the service type
Not managed in Beijing Release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">The URL to get the resource schema.
Not managed in Beijing Release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="serviceCharacteristic"
                     type="ServiceCharacteristic"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="serviceRelationship"
                     type="ServiceRelationship"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <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.
Only reliesOn are considered in Beijnig release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="relatedParty"
                     type="RelatedParty"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of related party parties linked at the Service level (it may be a User for example).
Not managed in Beijing release</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="serviceSpecification"
                     type="ServiceSpecificationRef"
                     minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">A link to the service specification (catalog information)
This is required if orderItem action is add.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="OrderItemRelationship" type="OrderItemRelationship">
      <xs:annotation>
         <xs:documentation source="public">Linked order item to the one containing this attribute.
nbi component used this relationship to sort request to ONAP.</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="OrderItemRelationship">
      <xs:annotation>
         <xs:documentation source="public">Linked order item to the one containing this attribute.
nbi component used this relationship to sort request to ONAP.</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="type" type="RelationshipType" minOccurs="1">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Unique identifier of an order item</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceOrderItem" type="ServiceOrderItem">
      <xs:annotation>
         <xs:documentation source="public">An identified part of the order. A service order is decomposed into one or more order items.</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceOrderItem">
      <xs:annotation>
         <xs:documentation source="public">An identified part of the order. A service order is decomposed into one or more order items.</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Identifier of the line item (generally it is a sequence number 01, 02, 03, …)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="action" type="ActionType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">The action to be carried out on the Service. Can be add, modify, delete, noChange</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="state" type="StateType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">State of the order item (described in the state machine diagram)
Only Acknowledged, Rejected, InProgress, Completed, Failed will be managed for service order item state</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="percentProgress" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Progress of the delivery in percentage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@type" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Used to extend the order item.
not used in Beijing relase</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">not used in Beijing relase</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@baseType" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">not used in Beijing relase</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderItemRelationship"
                     type="OrderItemRelationship"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">Linked order item to the one containing this attribute</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="service" type="Service" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">The Service to be acted on by the order item</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderItemMessage"
                     type="OrderMessage"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceOrder" type="ServiceOrder">
      <xs:annotation>
         <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>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceOrder">
      <xs:annotation>
         <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>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">ID created on repository side</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Hyperlink to access the order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="externalId" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="priority" type="xs:string" minOccurs="0">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="description" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">A free-text description of the service order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="category" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Used to categorize the order that can be useful for the OM system (e.g. “broadband”, “TVOption”, ...)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="state" type="StateType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">State of the order : described in the state-machine diagram
Only Acknowledged, Rejected, InProgress, Completed, Failed, Partial  will be managed for service order state (Held, Pending and Cancelled are not managed)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="completionDateTime" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Date when the order was completed</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="requestedStartDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Order start date wished by the requestor</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="requestedCompletionDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Requested delivery date from the requestor perspective</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="expectedCompletionDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="startDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Date when the order was started for processing</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@baseType" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="@type" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="@schemaLocation" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="relatedParty"
                     type="RelatedParty"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of related parties which are involved in this order and the role they are playing.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderRelationship"
                     type="OrderRelationship"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of related order references .Linked order to the one containing this attribute</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderItem"
                     type="ServiceOrderItem"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of order items that have to be processed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderMessage"
                     type="OrderMessage"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="OrderRelationship" type="OrderRelationship">
      <xs:annotation>
         <xs:documentation source="public">Linked order to the one containing this attribute.
This relationship is not used to sort ONAP request.</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="OrderRelationship">
      <xs:annotation>
         <xs:documentation source="public">Linked order to the one containing this attribute.
This relationship is not used to sort ONAP request.</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="type" type="xs:string" minOccurs="0">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">The id of the related order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">A hyperlink to the related order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@referredType" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Type of the referred order.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="TargetServiceSchema" type="TargetServiceSchema">
      <xs:annotation>
         <xs:documentation source="public">Target to the schema describing the service spec resource</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="TargetServiceSchema">
      <xs:annotation>
         <xs:documentation source="public">Target to the schema describing the service spec resource</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="@type" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Indicates the (class) type of resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="@schemaLocation" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">This field provided a link to the schema describing this REST resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="Value" type="Value">
      <xs:annotation>
         <xs:documentation source="public">Value is a descriptive structure for service characteristic</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="Value">
      <xs:annotation>
         <xs:documentation source="public">Value is a descriptive structure for service characteristic</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="serviceCharacteristicValue" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Value of the characteristic.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="CreateServiceOrderItem" type="CreateServiceOrderItem">
      <xs:annotation>
         <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request to describe an item.
Attribute description is not accurate and should be find in the serviceOrderItem class.</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="CreateServiceOrderItem">
      <xs:annotation>
         <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request to describe an item.
Attribute description is not accurate and should be find in the serviceOrderItem class.</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Identifier of the line item (generally it is a sequence number 01, 02, 03, …)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="action" type="ActionType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">The action to be carried out on the Service. Can be add, modify, delete, noChange</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderItemRelationship"
                     type="OrderItemRelationship"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">Linked order item to the one containing this attribute</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="service" type="Service" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">The Service to be acted on by the order item</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="CreateServiceOrder" type="CreateServiceOrder">
      <xs:annotation>
         <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request.
Attribute description is not accurate and should be find in the serviceOrder class.</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="CreateServiceOrder">
      <xs:annotation>
         <xs:documentation source="public">This structure is used in the operation POST for a serviceOrder request.
Attribute description is not accurate and should be find in the serviceOrder class.</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="externalId" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="priority" type="xs:string" minOccurs="0">
            <xs:annotation>
               <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>
            </xs:annotation>
         </xs:element>
         <xs:element name="description" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">A free-text description of the service order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="category" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Used to categorize the order that can be useful for the OM system (e.g. “broadband”, “TVOption”, ...)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="requestedStartDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Order start date wished by the requestor</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="requestedCompletionDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Requested delivery date from the requestor perspective</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="relatedParty"
                     type="RelatedParty"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of related parties which are involved in this order and the role they are playing.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderRelationship"
                     type="OrderRelationship"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of related order references .Linked order to the one containing this attribute</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderItem"
                     type="CreateServiceOrderItem"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of order items that have to be processed.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceOrderSummary" type="ServiceOrderSummary">
      <xs:annotation>
         <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>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceOrderSummary">
      <xs:annotation>
         <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>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">ID created on repository side</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Hyperlink to access the order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="externalId" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="state" type="StateType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">State of the order : described in the state-machine diagram
Only Acknowledged, Rejected, InProgress, Completed, Failed, Partial  will be managed for service order state (Held, Pending and Cancelled are not managed)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="completionDateTime" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Date when the order was completed</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="Notification" type="Notification">
      <xs:annotation>
         <xs:documentation source="public">Notification structure for a serviceOrdering notification</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="Notification">
      <xs:annotation>
         <xs:documentation source="public">Notification structure for a serviceOrdering notification</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="eventId" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="eventDate" type="xs:dateTime" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="eventType" type="EventType" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="event" type="ServiceOrderSummaryWithItem" minOccurs="1"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceOrderItemSummary" type="ServiceOrderItemSummary">
      <xs:annotation>
         <xs:documentation source="public">Service Order item summary to be used for notification</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceOrderItemSummary">
      <xs:annotation>
         <xs:documentation source="public">Service Order item summary to be used for notification</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Identifier of the line item (generally it is a sequence number 01, 02, 03, …)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="action" type="ActionType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">The action to be carried out on the Service. Can be add, modify, delete, noChange
modify is not managed in Beijing release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="state" type="StateType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">State of the order item (described in the state machine diagram)
Only Acknowledged, Rejected, InProgress, Completed, Failed will be managed for service order item state</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="service" type="Service" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">The Service to be acted on by the order item</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="ServiceOrderSummaryWithItem" type="ServiceOrderSummaryWithItem">
      <xs:annotation>
         <xs:documentation source="public">Service order item summary with item description</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ServiceOrderSummaryWithItem">
      <xs:annotation>
         <xs:documentation source="public">Service order item summary with item description</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="id" type="xs:string" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">ID created on repository side</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="href" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Hyperlink to access the order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="externalId" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">ID given by the consumer and only understandable by him (to facilitate his searches)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="state" type="StateType" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">State of the order : described in the state-machine diagram
Only Acknowledged, Rejected, InProgress, Completed, Failed, Partial  will be managed for service order state (Held, Pending and Cancelled are not managed)</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderDate" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public"/>
            </xs:annotation>
         </xs:element>
         <xs:element name="completionDateTime" type="xs:dateTime" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Date when the order was completed</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="orderItem"
                     type="ServiceOrderItemSummary"
                     minOccurs="0"
                     maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="public">A list of order items that have to be processed.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="OrderMessage" type="OrderMessage">
      <xs:annotation>
         <xs:documentation source="public">An optional array of messages associated with the Order</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="OrderMessage">
      <xs:annotation>
         <xs:documentation source="public">An optional array of messages associated with the Order</xs:documentation>
      </xs:annotation>
      <xs:sequence minOccurs="1" maxOccurs="1">
         <xs:element name="code" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">A code associated to this message</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="field" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Service Order attribute related to this error message</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="messageInformation" type="xs:string" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="public">Message related to this order</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="severity" type="SeverityMessage" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Gravity of this message</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="correctionRequired" type="xs:boolean" minOccurs="1">
            <xs:annotation>
               <xs:documentation source="public">Indicator that an action is required to allow service order fullfilment to follow up</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
</xs:schema>