/
embedded_spec.go
6937 lines (6932 loc) · 228 KB
/
embedded_spec.go
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
// Code generated by go-swagger; DO NOT EDIT.
package primev2api
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
)
var (
// SwaggerJSON embedded version of the swagger document used at generation time
SwaggerJSON json.RawMessage
// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
FlatSwaggerJSON json.RawMessage
)
func init() {
SwaggerJSON = json.RawMessage([]byte(`{
"schemes": [
"http"
],
"swagger": "2.0",
"info": {
"description": "The Prime V2 API is a RESTful API that enables the Prime contractor to request\ninformation about upcoming moves, update the details and status of those moves,\nand make payment requests. It uses Mutual TLS for authentication procedures.\n\nAll endpoints are located at ` + "`" + `/prime/v2/` + "`" + `.\n",
"title": "MilMove Prime V2 API",
"contact": {
"email": "milmove-developers@caci.com"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
},
"version": "0.0.1"
},
"basePath": "/prime/v2",
"paths": {
"/move-task-orders/{moveID}": {
"get": {
"description": "### Functionality\nThis endpoint gets an individual MoveTaskOrder by ID.\n\nIt will provide information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.\n",
"produces": [
"application/json"
],
"tags": [
"moveTaskOrder"
],
"summary": "getMoveTaskOrder",
"operationId": "getMoveTaskOrder",
"parameters": [
{
"type": "string",
"description": "UUID or MoveCode of move task order to use.",
"name": "moveID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully retrieve an individual move task order.",
"schema": {
"$ref": "#/definitions/MoveTaskOrder"
}
},
"401": {
"$ref": "#/responses/PermissionDenied"
},
"403": {
"$ref": "#/responses/PermissionDenied"
},
"404": {
"$ref": "#/responses/NotFound"
},
"500": {
"$ref": "#/responses/ServerError"
}
}
}
},
"/mto-shipments": {
"post": {
"description": "Creates a new shipment within the specified move. This endpoint should be used whenever the movers identify a\nneed for an additional shipment. The new shipment will be submitted to the TOO for review, and the TOO must\napprove it before the contractor can proceed with billing.\n\n**NOTE**: When creating a child shipment diversion, you can no longer specify the ` + "`" + `primeActualWeight` + "`" + `.\nIf you create a new diverted shipment with the ` + "`" + `diversion` + "`" + ` and ` + "`" + `divertedFromShipmentId` + "`" + ` parameter, it will automatically\ninherit the primeActualWeight of its ` + "`" + `divertedFromShipmentId` + "`" + ` parent. Payment requests created on a diverted shipment \"chain\" will utilize\nthe lowest weight possible in the chain to prevent overcharging as they are still separate shipments.\n\n**WIP**: The Prime should be notified by a push notification whenever the TOO approves a shipment connected to\none of their moves. Otherwise, the Prime can fetch the related move using the\n[getMoveTaskOrder](#operation/getMoveTaskOrder) endpoint and see if this shipment has the status ` + "`" + `\"APPROVED\"` + "`" + `.\n",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"mtoShipment"
],
"summary": "createMTOShipment",
"operationId": "createMTOShipment",
"parameters": [
{
"x-examples": {
"application/json": {
"hhg": {
"summary": "HHG",
"value": {
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"pickupAddress": {
"city": "Muldraugh",
"postalCode": "40155",
"state": "KY",
"streetAddress1": "204 South Prospect Lane"
},
"requestedPickupDate": "2022-12-31",
"shipmentType": "HHG"
}
},
"nts": {
"summary": "NTS",
"value": {
"agents": [
{
"agentType": "RELEASING_AGENT",
"email": "edgar.taylor@example.com",
"firstName": "Edgar",
"lastName": "Taylor",
"phone": "555-555-5555"
}
],
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"pickupAddress": {
"city": "Muldraugh",
"postalCode": "40155",
"state": "KY",
"streetAddress1": "204 South Prospect Lane"
},
"requestedPickupDate": "2022-12-31",
"shipmentType": "HHG_INTO_NTS_DOMESTIC"
}
},
"nts-r": {
"summary": "NTS Release",
"value": {
"agents": [
{
"agentType": "RECEIVING_AGENT",
"email": "edgar.taylor@example.com",
"firstName": "Edgar",
"lastName": "Taylor",
"phone": "555-555-5555"
}
],
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"shipmentType": "HHG_OUTOF_NTS_DOMESTIC"
}
},
"ppm": {
"summary": "PPM",
"value": {
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"ppmShipment": {
"destinationPostalCode": "10001",
"estimatedWeight": 4999,
"expectedDepartureDate": "2022-10-01",
"hasProGear": false,
"pickupPostalCode": "90210",
"sitExpected": false
},
"shipmentType": "PPM"
}
}
}
},
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/CreateMTOShipment"
}
}
],
"responses": {
"200": {
"description": "Successfully created a MTO shipment.",
"schema": {
"$ref": "#/definitions/MTOShipment"
}
},
"400": {
"$ref": "#/responses/InvalidRequest"
},
"404": {
"$ref": "#/responses/NotFound"
},
"422": {
"$ref": "#/responses/UnprocessableEntity"
},
"500": {
"$ref": "#/responses/ServerError"
}
}
}
},
"/mto-shipments/{mtoShipmentID}": {
"patch": {
"description": "Updates an existing shipment for a move.\n\nNote that there are some restrictions on nested objects:\n\n* Service items: You cannot add or update service items using this endpoint. Please use [createMTOServiceItem](#operation/createMTOServiceItem) and [updateMTOServiceItem](#operation/updateMTOServiceItem) instead.\n* Agents: You cannot add or update agents using this endpoint. Please use [createMTOAgent](#operation/createMTOAgent) and [updateMTOAgent](#operation/updateMTOAgent) instead.\n* Addresses: You can add new addresses using this endpoint (and must use this endpoint to do so), but you cannot update existing ones. Please use [updateMTOShipmentAddress](#operation/updateMTOShipmentAddress) instead.\n\nThese restrictions are due to our [optimistic locking/concurrency control](https://transcom.github.io/mymove-docs/docs/dev/contributing/backend/use-optimistic-locking) mechanism.\n\nNote that some fields cannot be manually changed but will still be updated automatically, such as ` + "`" + `primeEstimatedWeightRecordedDate` + "`" + ` and ` + "`" + `requiredDeliveryDate` + "`" + `.\n",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"mtoShipment"
],
"summary": "updateMTOShipment",
"operationId": "updateMTOShipment",
"parameters": [
{
"type": "string",
"format": "uuid",
"description": "UUID of the shipment being updated.",
"name": "mtoShipmentID",
"in": "path",
"required": true
},
{
"x-examples": {
"application/json": {
"hhg": {
"summary": "HHG",
"value": {
"actualPickupDate": "2022-12-29",
"actualProGearWeight": 1053,
"actualSpouseProGearWeight": 253,
"destinationAddress": {
"city": "Great Bend",
"postalCode": "13643",
"state": "NY",
"streetAddress1": "6622 Airport Way S",
"streetAddress2": "#1430"
},
"firstAvailableDeliveryDate": "2023-01-04",
"pointOfContact": "peyton.wing@example.com",
"primeActualWeight": 4500,
"primeEstimatedWeight": 4250,
"scheduledPickupDate": "2022-12-30"
}
},
"nts": {
"summary": "NTS",
"value": {
"actualPickupDate": "2022-12-29",
"actualProGearWeight": 1053,
"actualSpouseProGearWeight": 253,
"actualWeight": 4500,
"counselorRemarks": "Beware of dogs on property",
"estimatedWeight": 4250,
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"scheduledPickupDate": "2022-12-30"
}
},
"nts-r": {
"summary": "NTS Release",
"value": {
"actualProGearWeight": 1053,
"actualSpouseProGearWeight": 253,
"destinationAddress": {
"city": "San Antonio",
"postalCode": "78245",
"state": "TX",
"streetAddress1": "812 S 129th Street"
},
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"ntsRecordedWeight": 4500
}
},
"ppm": {
"summary": "PPM",
"value": {
"moveTaskOrderId": "5691c951-c35c-49a8-a1d5-a4b7ea7b7ad8",
"ppmShipment": {
"hasProGear": true,
"proGearWeight": 830,
"sitEstimatedDepartureDate": "2022-10-13",
"sitEstimatedEntryDate": "2022-10-06",
"sitEstimatedWeight": 1760,
"sitExpected": true,
"sitLocation": "DESTINATION",
"spouseProGearWeight": 366
}
}
}
}
},
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateMTOShipment"
}
},
{
"$ref": "#/parameters/ifMatch"
}
],
"responses": {
"200": {
"description": "Successfully updated the MTO shipment.",
"schema": {
"$ref": "#/definitions/MTOShipment"
}
},
"400": {
"$ref": "#/responses/InvalidRequest"
},
"401": {
"$ref": "#/responses/PermissionDenied"
},
"403": {
"$ref": "#/responses/PermissionDenied"
},
"404": {
"$ref": "#/responses/NotFound"
},
"412": {
"$ref": "#/responses/PreconditionFailed"
},
"422": {
"$ref": "#/responses/UnprocessableEntity"
},
"500": {
"$ref": "#/responses/ServerError"
}
}
}
}
},
"definitions": {
"Address": {
"description": "A postal address",
"type": "object",
"required": [
"streetAddress1",
"city",
"state",
"postalCode"
],
"properties": {
"city": {
"type": "string",
"title": "City",
"example": "Anytown"
},
"country": {
"type": "string",
"title": "Country",
"default": "USA",
"x-nullable": true,
"example": "USA"
},
"county": {
"type": "string",
"title": "County",
"x-nullable": true,
"example": "JESSAMINE"
},
"eTag": {
"type": "string",
"readOnly": true
},
"id": {
"type": "string",
"format": "uuid",
"example": "c56a4180-65aa-42ec-a945-5fd21dec0538"
},
"postalCode": {
"type": "string",
"format": "zip",
"title": "ZIP",
"pattern": "^(\\d{5}([\\-]\\d{4})?)$",
"example": "90210"
},
"state": {
"type": "string",
"title": "State",
"enum": [
"AL",
"AK",
"AR",
"AZ",
"CA",
"CO",
"CT",
"DC",
"DE",
"FL",
"GA",
"HI",
"IA",
"ID",
"IL",
"IN",
"KS",
"KY",
"LA",
"MA",
"MD",
"ME",
"MI",
"MN",
"MO",
"MS",
"MT",
"NC",
"ND",
"NE",
"NH",
"NJ",
"NM",
"NV",
"NY",
"OH",
"OK",
"OR",
"PA",
"RI",
"SC",
"SD",
"TN",
"TX",
"UT",
"VA",
"VT",
"WA",
"WI",
"WV",
"WY"
],
"x-display-value": {
"AK": "AK",
"AL": "AL",
"AR": "AR",
"AZ": "AZ",
"CA": "CA",
"CO": "CO",
"CT": "CT",
"DC": "DC",
"DE": "DE",
"FL": "FL",
"GA": "GA",
"HI": "HI",
"IA": "IA",
"ID": "ID",
"IL": "IL",
"IN": "IN",
"KS": "KS",
"KY": "KY",
"LA": "LA",
"MA": "MA",
"MD": "MD",
"ME": "ME",
"MI": "MI",
"MN": "MN",
"MO": "MO",
"MS": "MS",
"MT": "MT",
"NC": "NC",
"ND": "ND",
"NE": "NE",
"NH": "NH",
"NJ": "NJ",
"NM": "NM",
"NV": "NV",
"NY": "NY",
"OH": "OH",
"OK": "OK",
"OR": "OR",
"PA": "PA",
"RI": "RI",
"SC": "SC",
"SD": "SD",
"TN": "TN",
"TX": "TX",
"UT": "UT",
"VA": "VA",
"VT": "VT",
"WA": "WA",
"WI": "WI",
"WV": "WV",
"WY": "WY"
}
},
"streetAddress1": {
"type": "string",
"title": "Street address 1",
"example": "123 Main Ave"
},
"streetAddress2": {
"type": "string",
"title": "Street address 2",
"x-nullable": true,
"example": "Apartment 9000"
},
"streetAddress3": {
"type": "string",
"title": "Address Line 3",
"x-nullable": true,
"example": "Montmârtre"
}
}
},
"ClientError": {
"type": "object",
"required": [
"title",
"detail",
"instance"
],
"properties": {
"detail": {
"type": "string"
},
"instance": {
"type": "string",
"format": "uuid"
},
"title": {
"type": "string"
}
}
},
"CreateMTOShipment": {
"type": "object",
"required": [
"moveTaskOrderID",
"shipmentType"
],
"properties": {
"agents": {
"$ref": "#/definitions/MTOAgents"
},
"counselorRemarks": {
"type": "string",
"x-nullable": true,
"example": "counselor approved"
},
"customerRemarks": {
"description": "The customer can use the customer remarks field to inform the services counselor and the movers about any\nspecial circumstances for this shipment. Typical examples:\n * bulky or fragile items,\n * weapons,\n * access info for their address.\n\nCustomer enters this information during onboarding. Optional field.\n",
"type": "string",
"x-nullable": true,
"example": "handle with care"
},
"destinationAddress": {
"description": "Where the movers should deliver this shipment.",
"allOf": [
{
"$ref": "#/definitions/Address"
}
]
},
"diversion": {
"description": "This value indicates whether or not this shipment is part of a diversion. If yes, the shipment can be either the starting or ending segment of the diversion. When this boolean is true, you must link it to a parent shipment with the divertedFromShipmentId parameter.\n",
"type": "boolean"
},
"divertedFromShipmentId": {
"description": "The ID of the shipment this is a diversion from. Aka the \"Parent\" shipment. The diversion boolean must be true if this parameter is supplied in the request. If provided, and if the diverted from shipment is also a diversion, the previous should must then also have a parent ID.\n",
"type": "string",
"format": "uuid",
"example": "1f2270c7-7166-40ae-981e-b200ebdf3054"
},
"moveTaskOrderID": {
"description": "The ID of the move this new shipment is for.",
"type": "string",
"format": "uuid",
"example": "1f2270c7-7166-40ae-981e-b200ebdf3054"
},
"mtoServiceItems": {
"description": "A list of service items connected to this shipment.",
"type": "array",
"items": {
"$ref": "#/definitions/MTOServiceItem"
}
},
"pickupAddress": {
"description": "The address where the movers should pick up this shipment.",
"allOf": [
{
"$ref": "#/definitions/Address"
}
]
},
"pointOfContact": {
"description": "Email or ID of the person who will be contacted in the event of questions or concerns about this update. May be the person performing the update, or someone else working with the Prime contractor.\n",
"type": "string"
},
"ppmShipment": {
"$ref": "#/definitions/CreatePPMShipment"
},
"primeEstimatedWeight": {
"description": "The estimated weight of this shipment, determined by the movers during the pre-move survey. This value **can only be updated once.** If there was an issue with estimating the weight and a mistake was made, the Prime contractor will need to contact the TOO to change it.\n",
"type": "integer",
"minimum": 1,
"x-nullable": true,
"example": 4500
},
"requestedPickupDate": {
"description": "The customer's preferred pickup date. Other dates, such as required delivery date and (outside MilMove) the pack date, are derived from this date.\n",
"type": "string",
"format": "date",
"x-nullable": true
},
"shipmentType": {
"$ref": "#/definitions/MTOShipmentType"
}
}
},
"CreatePPMShipment": {
"description": "Creation object containing the ` + "`" + `PPM` + "`" + ` shipmentType specific data, not used for other shipment types.",
"type": "object",
"required": [
"expectedDepartureDate",
"pickupPostalCode",
"destinationPostalCode",
"sitExpected",
"estimatedWeight",
"hasProGear"
],
"properties": {
"destinationPostalCode": {
"description": "The postal code of the destination location where goods are being delivered to.",
"type": "string",
"format": "zip",
"title": "ZIP",
"pattern": "^(\\d{5})$",
"example": "90210"
},
"estimatedWeight": {
"description": "The estimated weight of the PPM shipment goods being moved in pounds.",
"type": "integer",
"example": 4200
},
"expectedDepartureDate": {
"description": "Date the customer expects to begin moving from their origin.\n",
"type": "string",
"format": "date"
},
"hasProGear": {
"description": "Indicates whether PPM shipment has pro gear for themselves or their spouse.\n",
"type": "boolean"
},
"pickupPostalCode": {
"description": "The postal code of the origin location where goods are being moved from.",
"type": "string",
"format": "zip",
"pattern": "^(\\d{5})$",
"example": "90210"
},
"proGearWeight": {
"description": "The estimated weight of the pro-gear being moved belonging to the service member in pounds.",
"type": "integer",
"x-nullable": true
},
"secondaryDestinationPostalCode": {
"description": "An optional secondary location near the destination where goods will be dropped off.",
"type": "string",
"format": "zip",
"title": "ZIP",
"pattern": "^(\\d{5})$",
"x-nullable": true,
"example": "90210"
},
"secondaryPickupPostalCode": {
"description": "An optional secondary pickup location near the origin where additional goods exist.",
"type": "string",
"format": "zip",
"title": "ZIP",
"pattern": "^(\\d{5})$",
"x-nullable": true,
"example": "90210"
},
"sitEstimatedDepartureDate": {
"description": "The date that goods will exit the storage location.",
"type": "string",
"format": "date",
"x-nullable": true
},
"sitEstimatedEntryDate": {
"description": "The date that goods will first enter the storage location.",
"type": "string",
"format": "date",
"x-nullable": true
},
"sitEstimatedWeight": {
"description": "The estimated weight of the goods being put into storage in pounds.",
"type": "integer",
"x-nullable": true,
"example": 2000
},
"sitExpected": {
"description": "Captures whether some or all of the PPM shipment will require temporary storage at the origin or destination.\n\nMust be set to ` + "`" + `true` + "`" + ` when providing ` + "`" + `sitLocation` + "`" + `, ` + "`" + `sitEstimatedWeight` + "`" + `, ` + "`" + `sitEstimatedEntryDate` + "`" + `, and ` + "`" + `sitEstimatedDepartureDate` + "`" + ` values to calculate the ` + "`" + `sitEstimatedCost` + "`" + `.\n",
"type": "boolean"
},
"sitLocation": {
"allOf": [
{
"$ref": "#/definitions/SITLocationType"
},
{
"x-nullable": true
}
]
},
"spouseProGearWeight": {
"description": "The estimated weight of the pro-gear being moved belonging to a spouse in pounds.",
"type": "integer",
"x-nullable": true
}
}
},
"CreateSITAddressUpdateRequest": {
"description": "CreateSITAddressUpdateRequest contains the fields required for the prime to create a SIT address update request.",
"type": "object",
"required": [
"contractorRemarks"
],
"properties": {
"contractorRemarks": {
"type": "string",
"example": "Customer reached out to me this week \u0026 let me know they want to move closer to family."
},
"mtoServiceItemID": {
"type": "string",
"format": "uuid",
"example": "c56a4180-65aa-42ec-a945-5fd21dec0538"
},
"newAddress": {
"$ref": "#/definitions/Address"
}
}
},
"CreateSITExtension": {
"description": "CreateSITExtension contains the fields required for the prime to create a SIT Extension request.",
"type": "object",
"required": [
"requestReason",
"contractorRemarks",
"requestedDays"
],
"properties": {
"contractorRemarks": {
"type": "string",
"example": "We need SIT additional days. The customer has not found a house yet."
},
"requestReason": {
"type": "string",
"enum": [
"SERIOUS_ILLNESS_MEMBER",
"SERIOUS_ILLNESS_DEPENDENT",
"IMPENDING_ASSIGNEMENT",
"DIRECTED_TEMPORARY_DUTY",
"NONAVAILABILITY_OF_CIVILIAN_HOUSING",
"AWAITING_COMPLETION_OF_RESIDENCE",
"OTHER"
]
},
"requestedDays": {
"type": "integer",
"minimum": 1,
"example": 30
}
}
},
"Customer": {
"type": "object",
"properties": {
"branch": {
"type": "string",
"example": "COAST_GUARD"
},
"currentAddress": {
"$ref": "#/definitions/Address"
},
"dodID": {
"type": "string"
},
"eTag": {
"type": "string",
"readOnly": true
},
"email": {
"type": "string",
"format": "x-email",
"pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
"example": "fake@example.com"
},
"firstName": {
"type": "string",
"example": "Vanya"
},
"id": {
"type": "string",
"format": "uuid",
"example": "c56a4180-65aa-42ec-a945-5fd21dec0538"
},
"lastName": {
"type": "string",
"example": "Petrovna"
},
"phone": {
"type": "string",
"format": "telephone"
},
"userID": {
"type": "string",
"format": "uuid",
"example": "c56a4180-65aa-42ec-a945-5fd21dec0538"
}
}
},
"DestinationType": {
"type": "string",
"title": "Destination Type",
"enum": [
"HOME_OF_RECORD",
"HOME_OF_SELECTION",
"PLACE_ENTERED_ACTIVE_DUTY",
"OTHER_THAN_AUTHORIZED"
],
"x-nullable": true,
"example": "OTHER_THAN_AUTHORIZED"
},
"DutyLocation": {
"type": "object",
"properties": {
"address": {
"$ref": "#/definitions/Address"
},
"addressID": {
"type": "string",
"format": "uuid",
"example": "c56a4180-65aa-42ec-a945-5fd21dec0538"
},
"eTag": {
"type": "string",
"readOnly": true
},
"id": {
"type": "string",
"format": "uuid",
"example": "c56a4180-65aa-42ec-a945-5fd21dec0538"
},
"name": {
"type": "string",
"example": "Fort Bragg North Station"
}
}
},
"Entitlements": {
"type": "object",
"properties": {
"authorizedWeight": {
"type": "integer",
"x-formatting": "weight",
"x-nullable": true,
"example": 2000
},
"dependentsAuthorized": {
"type": "boolean",
"x-nullable": true,
"example": true
},
"eTag": {
"type": "string",
"readOnly": true
},
"id": {
"type": "string",
"format": "uuid",
"example": "571008b1-b0de-454d-b843-d71be9f02c04"
},
"nonTemporaryStorage": {
"type": "boolean",
"x-nullable": true,
"example": false
},
"organizationalClothingAndIndividualEquipment": {
"type": "boolean",
"example": false
},
"privatelyOwnedVehicle": {
"type": "boolean",
"x-nullable": true,
"example": false
},
"proGearWeight": {
"type": "integer",
"x-formatting": "weight",
"example": 2000
},
"proGearWeightSpouse": {
"type": "integer",
"x-formatting": "weight",
"example": 500
},
"requiredMedicalEquipmentWeight": {
"type": "integer",
"x-formatting": "weight",
"example": 500
},
"storageInTransit": {
"type": "integer",
"example": 90
},
"totalDependents": {
"type": "integer",
"example": 2
},
"totalWeight": {
"type": "integer",
"x-formatting": "weight",
"example": 500
}
}
},
"Error": {
"type": "object",
"required": [
"title",
"detail"
],
"properties": {
"detail": {
"type": "string"
},
"instance": {
"type": "string",
"format": "uuid"
},
"title": {
"type": "string"
}
}
},
"MTOAgent": {
"type": "object",
"properties": {
"agentType": {
"$ref": "#/definitions/MTOAgentType"
},
"createdAt": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"eTag": {
"type": "string",
"readOnly": true
},
"email": {
"type": "string",
"format": "x-email",
"pattern": "^([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})?$",
"x-nullable": true
},
"firstName": {
"type": "string",
"x-nullable": true
},
"id": {
"description": "The ID of the agent.",
"type": "string",
"format": "uuid",
"readOnly": true,
"example": "1f2270c7-7166-40ae-981e-b200ebdf3054"
},
"lastName": {
"type": "string",
"x-nullable": true
},
"mtoShipmentID": {
"description": "The ID of the shipment this agent is permitted to release/receive.",
"type": "string",
"format": "uuid",
"readOnly": true,
"example": "1f2270c7-7166-40ae-981e-b200ebdf3054"
},
"phone": {
"type": "string",
"format": "telephone",
"pattern": "^([2-9]\\d{2}-\\d{3}-\\d{4})?$",
"x-nullable": true
},
"updatedAt": {
"type": "string",
"format": "date-time",
"readOnly": true
}
}
},
"MTOAgentType": {
"description": "The type for this agent. ` + "`" + `RELEASING` + "`" + ` means they have authority on pickup, ` + "`" + `RECEIVING` + "`" + ` means they can receive the shipment on delivery.\n",
"type": "string",
"title": "Agent Type",
"enum": [
"RELEASING_AGENT",