aboutsummaryrefslogtreecommitdiffstats
path: root/docs/offeredapis/swaggers/serviceOrder_3_0_0.yaml
blob: db0479f41a23099db526b3231f6f679b9c478903 (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
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
swagger: "2.0"
info:
  description: "serviceOrder API designed for ONAP Casablanca release.\nThis API is build from TMF open\
    \ API18.0 (applying TMF Guideline 3.0);\nOnly operations GET (by id and list)\
    \ and POST are available."
  version: "3.0.0"
  title: "API ServiceOrder"
  x-logo:
    url: "/redoc/logo.png"
    backgroundColor: "#FFFFFF"
host: "serverRoot"
basePath: "/nbi/api/v3"
schemes:
- "https"
produces:
- "application/json;charset=utf-8"
tags:
- name: "ServiceOrder"
  description: "A Service Order is a type of order which can be used to describe a\
    \ group of operations on service  one service order item per service. An action\
    \ at the level of the service order item describe the operation to be done on\
    \ a service (add, terminate for example). The service order is triggered from\
    \ the BSS system in charge of the product order management to ONAP that will manage\
    \ the service fulfillment."
- name: "Hub"
  description: ""
- name: "Notification"
  description: ""
paths:
  /serviceOrder:
    post:
      tags:
      - "ServiceOrder"
      consumes:
      - "application/json;charset=utf-8"
      produces:
      - "application/json;charset=utf-8"
      operationId: "serviceOrderCreate"
      summary: "Create a service order"
      description: "This operation creates a service order entity.\nThe TMF Open API\
        \ specification document provides the list of mandatory and non mandatory\
        \ attributes when creating a ServiceOrder, including any possible rule conditions\
        \ and applicable default values.\nPOST should be used without specifying the\
        \ id and the href, the Service Order Management system is in charge of generating\
        \ the id + href for the ServiceOrder.\n\nIn Beijing Release, NBI will use\
        \ only POST {{url}}/ecomp/mso/infra/serviceInstances/v4 SO API. This mean\
        \ that only the 'service-instance' level will be created in AAI. Additional\
        \ resource like VNF and/OR VF are not created.\n\nIn Casablanca release, NBI\
        \ has been improved to also be able to use POST {{url}}/e2eServiceInstances/v3\
        \ SO API. This API is able to instantiate in ONAP E2E service; This is useful\
        \ for CCVPN and VoLTE UC.\nDepending on the service category defined in SDC,\
        \ NBI will use one or the other SO API. If category starts with e2e, NBI will\
        \ use  {url}}/e2eServiceInstances/v3 SO API - else it will use {{url}}/ecomp/mso/infra/serviceInstances/v4\
        \ SO API.\n\nSpecific business errors for current operation will be encapsulated\
        \ in\n\nHTTP Response 422 Unprocessable entity\n\n - 100: OrderItem with 'add'\
        \ action but serviceSpecification id missing\n   \n - 101: OrderItem with\
        \ 'change'/'noChange'/'remove' but service id missing\n   \n - 102: OrderItem\
        \ with 'add' action - serviceSpecification id provided but not existing\n\
        \   \n - 103: OrderItem with 'add' action but service id already existing\
        \ in the inventory\n   \n - 104: A customer for existing service(s) is provided\
        \ but he did not exist\n   \n - 105: OrderItem with 'change'/'noChange'/'remove'\
        \ - Service id provided but it is not existing in the inventory\n   \n - 106:\
        \ [Not managed for current Relese] Issue with lcpCloudRegionId  and tenantId\
        \ provided\n   "
      deprecated: false
      parameters:
      - name: "serviceOrder"
        required: true
        in: "body"
        description: ""
        schema:
          $ref: "#/definitions/CreateServiceOrder"
      responses:
        201:
          description: "Success"
          schema:
            $ref: "#/definitions/ServiceOrder"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error\n\nSpecific encapsulated\
            \ business errors for current operation\n\n - 100: OrderItem with 'add'\
            \ action but serviceSpecification id missing\n   \n - 101: OrderItem with\
            \ 'change'/'noChange'/'remove' but service id missing\n   \n - 102: OrderItem\
            \ with 'add' action - serviceSpecification id provided but not existing\n\
            \   \n - 103: OrderItem with 'add' action but service id already existing\
            \ in the inventory\n   \n - 104: A customer for existing service(s) is\
            \ provided but he did not exist\n   \n - 105: OrderItem with 'change'/'noChange'/'remove'\
            \ - Service id provided but it is not existing in the inventory\n   \n\
            \ - 106: [Not managed for current Relese] Issue with lcpCloudRegionId\
            \  and tenantId provided\n   "
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
    get:
      tags:
      - "ServiceOrder"
      produces:
      - "application/json;charset=utf-8"
      operationId: "serviceOrderFind"
      summary: "List service orders"
      description: "Retrieve and list service order entities according to given criteria.\n\
        Only a predefined set of attribute is proposed.\nAttribute selection could\
        \ be described in the fields attribute.\n\nSpecific business errors for current\
        \ operation will be encapsulated in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "externalId"
        required: false
        in: "query"
        description: ""
        type: "string"
      - name: "state"
        required: false
        in: "query"
        description: "state of the order(s) to be retrieved"
        type: "string"
      - name: "description"
        required: false
        in: "query"
        description: ""
        type: "string"
      - name: "orderDate.gt"
        required: false
        in: "query"
        description: "order date greather than"
        type: "string"
      - name: "orderDate.lt"
        required: false
        in: "query"
        description: "order date lower than"
        type: "string"
      - name: "fields"
        required: false
        in: "query"
        description: "this attribute could be used to filter retrieved attribute(s)\
          \ and/or sort SO."
        type: "string"
      - name: "offset"
        required: false
        in: "query"
        description: "The index of the first element to retrieve. Zero is the first\
          \ element of the collection."
        type: "integer"
        format: "int32"
      - name: "limit"
        required: false
        in: "query"
        description: "The maximum number of elements to retrieve (it can be greater\
          \ than the actual available number of items)."
        type: "integer"
        format: "int32"
      responses:
        200:
          description: "Success"
          schema:
            type: "array"
            items:
              $ref: "#/definitions/ServiceOrder"
          headers:
            X-Total-Count:
              description: ""
              type: "integer"
              format: "int32"
            X-Result-Count:
              description: ""
              type: "integer"
              format: "int32"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
  /serviceOrder/{id}:
    get:
      tags:
      - "ServiceOrder"
      produces:
      - "application/json;charset=utf-8"
      operationId: "serviceOrderGet"
      summary: "Retrieve a service order"
      description: "This operation retrieves a service order entity. \nAttribute selection\
        \ is enabled for all first level attributes.\n\nSpecific business errors for\
        \ current operation will be encapsulated in\n\nHTTP Response 422 Unprocessable\
        \ entity\n"
      deprecated: false
      parameters:
      - name: "id"
        in: "path"
        required: true
        type: "string"
        description: ""
      - name: "fields"
        required: false
        in: "query"
        description: "Attribute selection"
        type: "string"
      responses:
        200:
          description: "Success"
          schema:
            $ref: "#/definitions/ServiceOrder"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
  /hub:
    post:
      tags:
      - "Hub"
      consumes:
      - "application/json;charset=utf-8"
      operationId: "hubCreate"
      summary: "Create Hub"
      description: "\n\nSpecific business errors for current operation will be encapsulated\
        \ in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "Hub"
        required: true
        in: "body"
        description: ""
        schema:
          $ref: "#/definitions/CreateHub"
      responses:
        201:
          description: "Success"
          schema:
            type: "file"
          headers:
            location:
              description: ""
              type: "string"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
    get:
      tags:
      - "Hub"
      produces:
      - "application/json;charset=utf-8"
      operationId: "hubFind"
      summary: "Retrieve a lits of hub"
      description: "\n\nSpecific business errors for current operation will be encapsulated\
        \ in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "id"
        required: false
        in: "query"
        description: ""
        type: "string"
      - name: "eventType"
        required: false
        in: "query"
        description: ""
        type: "string"
        enum:
        - "ServiceOrderCreationNotification"
        - "ServiceOrderStateChangeNotification"
        - "ServiceOrderItemStateChangeNotification"
      responses:
        200:
          description: "Success"
          schema:
            type: "array"
            items:
              $ref: "#/definitions/Hub"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
  /hub/{hubId}:
    get:
      tags:
      - "Hub"
      produces:
      - "application/json;charset=utf-8"
      operationId: "hubGet"
      summary: "Retrieve an HUB by id"
      description: "Retrieve an HUB by id\n\nSpecific business errors for current\
        \ operation will be encapsulated in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "hubId"
        in: "path"
        required: true
        type: "string"
        description: ""
      responses:
        200:
          description: "Success"
          schema:
            $ref: "#/definitions/Hub"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
    delete:
      tags:
      - "Hub"
      operationId: "hubDelete"
      summary: "delete hub"
      description: "\n\nSpecific business errors for current operation will be encapsulated\
        \ in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "hubId"
        in: "path"
        required: true
        type: "string"
        description: ""
      responses:
        204:
          description: "Success"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
  /notification/serviceOrderCreationNotification:
    post:
      tags:
      - "Notification"
      consumes:
      - "application/json;charset=utf-8"
      operationId: "notificationServiceOrderCreationNotification"
      summary: "Service order creation notification"
      description: "Service order creation notification\n\nSpecific business errors\
        \ for current operation will be encapsulated in\n\nHTTP Response 422 Unprocessable\
        \ entity\n"
      deprecated: false
      parameters:
      - name: "serviceOrderCreationNotification"
        required: true
        in: "body"
        description: ""
        schema:
          $ref: "#/definitions/ServiceOrderCreationNotification"
      responses:
        204:
          description: "Success"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
  /notification/serviceOrderStateChangeNotification:
    post:
      tags:
      - "Notification"
      consumes:
      - "application/json;charset=utf-8"
      operationId: "notificationServiceOrderStateChangeNotification"
      summary: "Service order state change notification description"
      description: "\n\nSpecific business errors for current operation will be encapsulated\
        \ in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "serviceOrderstateChangeNotification"
        required: true
        in: "body"
        description: ""
        schema:
          $ref: "#/definitions/ServiceOrderStateChangeNotification"
      responses:
        204:
          description: "Success"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
  /notification/serviceOrderItemStateChangeNotification:
    post:
      tags:
      - "Notification"
      consumes:
      - "application/json;charset=utf-8"
      operationId: "notificationServiceOrderItemStateChangeNotification"
      summary: "ServiceOrder Item State Change Notification description"
      description: "\n\nSpecific business errors for current operation will be encapsulated\
        \ in\n\nHTTP Response 422 Unprocessable entity\n"
      deprecated: false
      parameters:
      - name: "serviceOrderItemStateChangeNotification"
        required: true
        in: "body"
        description: ""
        schema:
          $ref: "#/definitions/ServiceOrderItemStateChangeNotification"
      responses:
        204:
          description: "Success"
        400:
          description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
            \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
            \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
            \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
            \ parameter value"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        401:
          description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
            \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        403:
          description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
            \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
            \ requests"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        404:
          description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
            \ not found"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        422:
          description: "Unprocessable entity\n\nFunctional error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        500:
          description: "Internal Server Error\n\nList of supported error codes:\n\
            - 1: Internal error"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
        503:
          description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
            \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
            \ retry later !"
          schema:
            $ref: "#/definitions/ErrorRepresentation"
definitions:
  ActionType:
    description: "Action type to be describer on the order item.\nmodify is not managed\
      \ in Beijing release"
    type: "string"
    enum:
    - "add"
    - "modify"
    - "delete"
    - "noChange"
  StateType:
    description: "List of possible state for the order and the orderItem."
    type: "string"
    enum:
    - "acknowledged"
    - "rejected"
    - "pending"
    - "held"
    - "inProgress"
    - "cancelled"
    - "completed"
    - "failed"
    - "partial"
  RelationshipType:
    description: "Relationship type;\nOnly reliesOn is managed in Beijing release."
    type: "string"
    enum:
    - "reliesOn"
  EventType:
    description: ""
    type: "string"
    enum:
    - "ServiceOrderCreationNotification"
    - "ServiceOrderStateChangeNotification"
    - "ServiceOrderItemStateChangeNotification"
  SeverityMessage:
    description: ""
    type: "string"
    enum:
    - "information"
    - "error"
  ErrorRepresentation:
    description: "Representation of an error."
    required:
    - "code"
    - "reason"
    type: "object"
    properties:
      code:
        description: "Application related code (as defined in the API or from a common\
          \ list)"
        type: "integer"
        format: "int32"
      reason:
        description: "Text that explains the reason for error. This can be shown to\
          \ a client user."
        type: "string"
      message:
        description: "Text that provide more details and corrective actions related\
          \ to the error. This can be shown to a client user"
        type: "string"
      status:
        description: "http error code extension like 400-2"
        type: "string"
      referenceError:
        description: "url pointing to documentation describing the error"
        type: "string"
      '@type':
        description: "The class type of a REST resource"
        type: "string"
      '@schemaLocation':
        description: "it provides a link to the schema describing a REST resource"
        type: "string"
  ServiceRelationship:
    description: "Linked Services to the one instantiate\nnbi component used this\
      \ relationship to sort request to ONAP."
    required:
    - "type"
    - "service"
    type: "object"
    properties:
      type:
        $ref: "#/definitions/RelationshipType"
      service:
        $ref: "#/definitions/Service"
  ServiceRef:
    description: "Service references"
    required:
    - "id"
    type: "object"
    properties:
      id:
        description: "Unique identifier of the service"
        type: "string"
      href:
        description: "Reference of the service"
        type: "string"
  ServiceCharacteristic:
    description: "ServiceCharacteristic"
    required:
    - "name"
    type: "object"
    properties:
      name:
        description: "Name of characteristic"
        type: "string"
      valueType:
        description: ""
        type: "string"
      value:
        $ref: "#/definitions/Value"
  RelatedParty:
    description: "A related party defines party which are involved in this order and\
      \ the role they are playing.\nfor Beijing release:\nWith 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:\no\tIt 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.\no\tIf no relatedParty are provided the service\
      \ will be affected to ‘generic’ customer (dummy customer)  we assume this ‘\
      generic’ customer always exists."
    required:
    - "id"
    - "role"
    type: "object"
    properties:
      id:
        description: "Unique identifier of a related party"
        type: "string"
      href:
        description: "An hyperlink to the party - not used in Beijnig release"
        type: "string"
      role:
        description: "The role of the related party (e.g. Owner, requester, fullfiller\
          \ etc).\nONLY 'ONAPcustomer' is considered"
        type: "string"
      name:
        description: "Name of the related party"
        type: "string"
      '@referredType':
        description: ""
        type: "string"
  ServiceSpecificationRef:
    description: "The service specification (these attributes are fetched from the\
      \ catalogue)."
    required:
    - "id"
    type: "object"
    properties:
      id:
        description: "Unique identifier of the service specification\nThis information\
          \ will be used to retrieve SDC information + mapped to SO ModelNameVersionIdin\
          \ the request."
        type: "string"
      href:
        description: "Reference of the service specification\nNot used in Beijing\
          \ release."
        type: "string"
      name:
        description: "Name of the service specification\nNot used in Beijing release"
        type: "string"
      version:
        description: "Version of the service Specification\nNot used in Beijing release"
        type: "string"
      targetServiceSchema:
        $ref: "#/definitions/TargetServiceSchema"
      '@type':
        description: "Not used in Beijing release"
        type: "string"
      '@schemaLocation':
        description: "Not used in Beijing release"
        type: "string"
      '@baseType':
        description: "Not used in Beijing release"
        type: "string"
  Service:
    description: "Service (to be added, modified, deleted) description"
    required:
    - "id"
    type: "object"
    properties:
      id:
        description: "Identifier of a service instance.\nIt must be valued if orderItem\
          \ action is 'delete' and corresponds to a AAI service.id"
        type: "string"
      href:
        description: "Reference to the Service (useful for delete or modify command).\n\
          Not managed in Beijing release."
        type: "string"
      name:
        description: "Name of the service - When orderItem action is 'add' this name\
          \ will be used in ONAP/SO request as InstaceName."
        type: "string"
      serviceState:
        description: "The lifecycle state of the service requested;\nNot managed in\
          \ Beijing release."
        type: "string"
      '@type':
        description: "To define the service type\nNot managed in Beijing Release"
        type: "string"
      '@schemaLocation':
        description: "The URL to get the resource schema.\nNot managed in Beijing\
          \ Release"
        type: "string"
      serviceCharacteristic:
        type: "array"
        items:
          $ref: "#/definitions/ServiceCharacteristic"
      serviceRelationship:
        type: "array"
        items:
          $ref: "#/definitions/ServiceRelationship"
      relatedParty:
        type: "array"
        items:
          $ref: "#/definitions/RelatedParty"
      serviceSpecification:
        $ref: "#/definitions/ServiceSpecificationRef"
  OrderItemRelationship:
    description: "Linked order item to the one containing this attribute.\nnbi component\
      \ used this relationship to sort request to ONAP."
    required:
    - "type"
    - "id"
    type: "object"
    properties:
      type:
        $ref: "#/definitions/RelationshipType"
      id:
        description: "Unique identifier of an order item"
        type: "string"
  ServiceOrderItem:
    description: "An identified part of the order. A service order is decomposed into\
      \ one or more order items."
    required:
    - "id"
    - "service"
    type: "object"
    properties:
      id:
        description: "Identifier of the line item (generally it is a sequence number\
          \ 01, 02, 03, …)"
        type: "string"
      action:
        $ref: "#/definitions/ActionType"
      state:
        $ref: "#/definitions/StateType"
      percentProgress:
        description: "Progress of the delivery in percentage."
        type: "string"
      '@type':
        description: "Used to extend the order item.\nnot used in Beijing relase"
        type: "string"
      '@schemaLocation':
        description: "not used in Beijing relase"
        type: "string"
      '@baseType':
        description: "not used in Beijing relase"
        type: "string"
      orderItemRelationship:
        type: "array"
        items:
          $ref: "#/definitions/OrderItemRelationship"
      service:
        $ref: "#/definitions/Service"
      orderItemMessage:
        type: "array"
        items:
          $ref: "#/definitions/OrderMessage"
  ServiceOrder:
    description: "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"
    required:
    - "id"
    type: "object"
    properties:
      id:
        description: "ID created on repository side"
        type: "string"
      href:
        description: "Hyperlink to access the order"
        type: "string"
      externalId:
        description: "ID given by the consumer and only understandable by him (to\
          \ facilitate his searches)"
        type: "string"
      priority:
        description: "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)"
        type: "string"
      description:
        description: "A free-text description of the service order"
        type: "string"
      category:
        description: "Used to categorize the order that can be useful for the OM system\
          \ (e.g. “broadband”, “TVOption”, ...)"
        type: "string"
      state:
        $ref: "#/definitions/StateType"
      orderDate:
        description: ""
        type: "string"
        format: "date-time"
      completionDateTime:
        description: "Date when the order was completed"
        type: "string"
        format: "date-time"
      requestedStartDate:
        description: "Order start date wished by the requestor"
        type: "string"
        format: "date-time"
      requestedCompletionDate:
        description: "Requested delivery date from the requestor perspective"
        type: "string"
        format: "date-time"
      expectedCompletionDate:
        description: ""
        type: "string"
        format: "date-time"
      startDate:
        description: "Date when the order was started for processing"
        type: "string"
        format: "date-time"
      '@baseType':
        description: ""
        type: "string"
      '@type':
        description: ""
        type: "string"
      '@schemaLocation':
        description: ""
        type: "string"
      relatedParty:
        type: "array"
        items:
          $ref: "#/definitions/RelatedParty"
      orderRelationship:
        type: "array"
        items:
          $ref: "#/definitions/OrderRelationship"
      orderItem:
        type: "array"
        items:
          $ref: "#/definitions/ServiceOrderItem"
      orderMessage:
        type: "array"
        items:
          $ref: "#/definitions/OrderMessage"
  OrderRelationship:
    description: "Linked order to the one containing this attribute.\nThis relationship\
      \ is not used to sort ONAP request."
    required:
    - "id"
    type: "object"
    properties:
      type:
        description: "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)"
        type: "string"
      id:
        description: "The id of the related order"
        type: "string"
      href:
        description: "A hyperlink to the related order"
        type: "string"
      '@referredType':
        description: "Type of the referred order."
        type: "string"
  TargetServiceSchema:
    description: "Target to the schema describing the service spec resource"
    required:
    - "@type"
    - "@schemaLocation"
    type: "object"
    properties:
      '@type':
        description: "Indicates the (class) type of resource."
        type: "string"
      '@schemaLocation':
        description: "This field provided a link to the schema describing this REST\
          \ resource."
        type: "string"
  Value:
    description: "Value is a descriptive structure for service characteristic;\nFor\
      \ Beijing we only manage 'basic' attribute - the serviceCharacteristicValue\
      \ must be used."
    type: "object"
    properties:
      '@type':
        description: "Indicates the (class) type of resource.\nNot used in Beijing\
          \ Release"
        type: "string"
      '@schemaLocation':
        description: "This field provided a link to the schema describing this REST\
          \ resource.\nNot used in Beijing Release"
        type: "string"
      serviceCharacteristicValue:
        description: "Value of the characteristic.\nThis attribute must be used in\
          \ Beijing Release to provide characteristic value."
        type: "string"
  CreateServiceOrderItem:
    description: "This structure is used in the operation POST for a serviceOrder\
      \ request to describe an item.\nAttribute description is not accurate and should\
      \ be find in the serviceOrderItem class."
    required:
    - "id"
    - "service"
    type: "object"
    properties:
      id:
        description: "Identifier of the line item (generally it is a sequence number\
          \ 01, 02, 03, …)"
        type: "string"
      action:
        $ref: "#/definitions/ActionType"
      '@type':
        description: "Indicates the type of resource."
        type: "string"
      '@schemaLocation':
        description: "A link to the schema describing this REST resource"
        type: "string"
      '@baseType':
        description: "Indicates the base type of the resource."
        type: "string"
      orderItemRelationship:
        type: "array"
        items:
          $ref: "#/definitions/OrderItemRelationship"
      service:
        $ref: "#/definitions/Service"
  CreateServiceOrder:
    description: "This structure is used in the operation POST for a serviceOrder\
      \ request.\nAttribute description is not accurate and should be find in the\
      \ serviceOrder class."
    type: "object"
    properties:
      externalId:
        description: "ID given by the consumer and only understandable by him (to\
          \ facilitate his searches)"
        type: "string"
      priority:
        description: "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)"
        type: "string"
      description:
        description: "A free-text description of the service order"
        type: "string"
      category:
        description: "Used to categorize the order that can be useful for the OM system\
          \ (e.g. “broadband”, “TVOption”, ...)"
        type: "string"
      requestedStartDate:
        description: "Order start date wished by the requestor"
        type: "string"
        format: "date-time"
      requestedCompletionDate:
        description: "Requested delivery date from the requestor perspective"
        type: "string"
        format: "date-time"
      '@baseType':
        description: ""
        type: "string"
      '@type':
        description: ""
        type: "string"
      '@schemaLocation':
        description: ""
        type: "string"
      relatedParty:
        type: "array"
        items:
          $ref: "#/definitions/RelatedParty"
      orderRelationship:
        type: "array"
        items:
          $ref: "#/definitions/OrderRelationship"
      orderItem:
        type: "array"
        items:
          $ref: "#/definitions/CreateServiceOrderItem"
  Hub:
    description: "An HUB resource is used by client side to subscribe to notification.\n\
      Not managed in the Beijing release."
    discriminator: "id"
    required:
    - "query"
    - "callback"
    type: "object"
    properties:
      id:
        description: "Hub Id"
        type: "string"
      query:
        description: ""
        type: "string"
      callback:
        description: "Address where notification must be send"
        type: "string"
  CreateHub:
    description: "This structure is used as a request for POST Hub operation"
    required:
    - "query"
    - "callback"
    type: "object"
    properties:
      query:
        description: "The query must have an eventType=notificationName information.\n\
          Optionally a ? could be added to reduce hub.\nquery”:”eventType = ServiceOrderStateChangeNotification”\
          &serviceOrder.state=COMPLETED"
        type: "string"
      callback:
        description: "Address where notification must be send"
        type: "string"
  ServiceOrderSummary:
    description: "This structure is used to provide a subset of serviceOrder attributes\
      \ to be provided in particular for notification messages"
    required:
    - "id"
    type: "object"
    properties:
      id:
        description: "ID created on repository side"
        type: "string"
      href:
        description: "Hyperlink to access the order"
        type: "string"
      externalId:
        description: "ID given by the consumer and only understandable by him (to\
          \ facilitate his searches)"
        type: "string"
      state:
        $ref: "#/definitions/StateType"
      orderDate:
        description: ""
        type: "string"
        format: "date-time"
      completionDateTime:
        description: "Date when the order was completed"
        type: "string"
        format: "date-time"
  ServiceOrderCreationNotification:
    description: "Notification structure for a service order creation notification"
    required:
    - "eventId"
    - "eventDate"
    - "eventType"
    - "event"
    type: "object"
    properties:
      eventId:
        description: ""
        type: "string"
      eventDate:
        description: ""
        type: "string"
        format: "date-time"
      eventType:
        description: ""
        type: "string"
        default: "ServiceOrderCreationNotification"
      event:
        $ref: "#/definitions/ServiceOrderSummary"
  Notification:
    description: "Used to describe notification for this API"
    type: "object"
    properties: {}
  ServiceOrderStateChangeNotification:
    description: "Service order state change notification description"
    required:
    - "eventId"
    - "eventDate"
    - "eventType"
    - "event"
    type: "object"
    properties:
      eventId:
        description: ""
        type: "string"
      eventDate:
        description: ""
        type: "string"
        format: "date-time"
      eventType:
        description: ""
        type: "string"
        default: "ServiceOrderStateChangeNotification"
      event:
        $ref: "#/definitions/ServiceOrderSummary"
  ServiceOrderItemSummary:
    description: "Service Order item summary to be used for notification"
    required:
    - "id"
    - "service"
    type: "object"
    properties:
      id:
        description: "Identifier of the line item (generally it is a sequence number\
          \ 01, 02, 03, …)"
        type: "string"
      action:
        $ref: "#/definitions/ActionType"
      state:
        $ref: "#/definitions/StateType"
      service:
        $ref: "#/definitions/Service"
  ServiceOrderSummaryWithItem:
    description: "Service order item summary with item description"
    required:
    - "id"
    type: "object"
    properties:
      id:
        description: "ID created on repository side"
        type: "string"
      href:
        description: "Hyperlink to access the order"
        type: "string"
      externalId:
        description: "ID given by the consumer and only understandable by him (to\
          \ facilitate his searches)"
        type: "string"
      state:
        $ref: "#/definitions/StateType"
      orderDate:
        description: ""
        type: "string"
        format: "date-time"
      completionDateTime:
        description: "Date when the order was completed"
        type: "string"
        format: "date-time"
      orderItem:
        type: "array"
        items:
          $ref: "#/definitions/ServiceOrderItemSummary"
  ServiceOrderItemStateChangeNotification:
    description: ""
    required:
    - "eventId"
    - "eventDate"
    - "eventType"
    - "event"
    type: "object"
    properties:
      eventId:
        description: ""
        type: "string"
      eventDate:
        description: ""
        type: "string"
        format: "date-time"
      eventType:
        description: ""
        type: "string"
        default: "ServiceOrderStateChangeNotification"
      event:
        $ref: "#/definitions/ServiceOrderSummaryWithItem"
  OrderMessage:
    description: "An optional array of messages associated with the Order"
    required:
    - "severity"
    - "correctionRequired"
    type: "object"
    properties:
      code:
        description: "A code associated to this message"
        type: "string"
      field:
        description: "Service Order attribute related to this error message"
        type: "string"
      messageInformation:
        description: "Message related to this order"
        type: "string"
      severity:
        $ref: "#/definitions/SeverityMessage"
      correctionRequired:
        description: "Indicator that an action is required to allow service order\
          \ fullfilment to follow up"
        type: "boolean"