You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/client/response/MilitaryRecord.kt
+2
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ data class MilitaryRecordPrisonDto(
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/corepersonrecord/dto/response/MilitaryRecordDto.kt
+27-15
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,29 @@ import java.time.LocalDate
8
8
@JsonInclude(Include.NON_NULL)
9
9
@Schema(description ="DTO representing a military record with details about service in the UK Armed Forces.")
10
10
data classMilitaryRecordDto(
11
+
@Schema(
12
+
description ="Booking ID of the prisoner.",
13
+
example ="1234567",
14
+
)
15
+
valbookingId:Long,
16
+
17
+
@Schema(
18
+
description ="Sequence number of the military record within the booking.",
19
+
example ="1",
20
+
)
21
+
valmilitarySeq:Int,
22
+
11
23
@Schema(
12
24
description ="Code identifying the war zone where the service took place.",
13
25
example ="AFG",
14
26
)
15
-
valwarZoneCode:String?,
27
+
valwarZoneCode:String? = null,
16
28
17
29
@Schema(
18
30
description ="Description of the war zone where the service took place.",
19
31
example ="Afghanistan",
20
32
)
21
-
valwarZoneDescription:String?,
33
+
valwarZoneDescription:String? = null,
22
34
23
35
@Schema(
24
36
description ="Start date of the military service.",
@@ -30,19 +42,19 @@ data class MilitaryRecordDto(
30
42
description ="End date of the military service, if applicable.",
31
43
example ="2019-12-01",
32
44
)
33
-
valendDate:LocalDate?,
45
+
valendDate:LocalDate? = null,
34
46
35
47
@Schema(
36
48
description ="Code indicating the discharge status from the UK military forces.",
37
49
example ="HON",
38
50
)
39
-
valmilitaryDischargeCode:String?,
51
+
valmilitaryDischargeCode:String? = null,
40
52
41
53
@Schema(
42
54
description ="Description of the discharge status from the UK military forces.",
43
55
example ="Honourable",
44
56
)
45
-
valmilitaryDischargeDescription:String?,
57
+
valmilitaryDischargeDescription:String? = null,
46
58
47
59
@Schema(
48
60
description ="Code identifying the branch of the UK military in which the individual served.",
@@ -54,31 +66,31 @@ data class MilitaryRecordDto(
54
66
description ="Description of the military branch of the UK Armed Forces.",
55
67
example ="Army",
56
68
)
57
-
valmilitaryBranchDescription:String,
69
+
valmilitaryBranchDescription:String? = null,
58
70
59
71
@Schema(
60
72
description ="Additional notes or details about the military service.",
61
73
example ="Deployed to Afghanistan in support of Operation Herrick.",
62
74
)
63
-
valdescription:String?,
75
+
valdescription:String? = null,
64
76
65
77
@Schema(
66
78
description ="Unit number in which the individual served.",
67
79
example ="2nd Battalion, The Royal Anglian Regiment",
68
80
)
69
-
valunitNumber:String?,
81
+
valunitNumber:String? = null,
70
82
71
83
@Schema(
72
84
description ="Location where the individual enlisted in the UK military.",
73
85
example ="Windsor, Berkshire",
74
86
)
75
-
valenlistmentLocation:String?,
87
+
valenlistmentLocation:String? = null,
76
88
77
89
@Schema(
78
90
description ="Location where the individual was discharged from the UK military.",
79
91
example ="Colchester, Essex",
80
92
)
81
-
valdischargeLocation:String?,
93
+
valdischargeLocation:String? = null,
82
94
83
95
@Schema(
84
96
description ="Flag indicating if the individual was registered for UK selective military service (National Service).",
@@ -90,29 +102,29 @@ data class MilitaryRecordDto(
90
102
description ="Code identifying the individual's military rank in the UK forces.",
91
103
example ="CPL_ARM",
92
104
)
93
-
valmilitaryRankCode:String?,
105
+
valmilitaryRankCode:String? = null,
94
106
95
107
@Schema(
96
108
description ="Description of the individual's military rank in the UK forces.",
97
109
example ="Corporal",
98
110
)
99
-
valmilitaryRankDescription:String?,
111
+
valmilitaryRankDescription:String? = null,
100
112
101
113
@Schema(
102
114
description ="Service number of the individual within the UK military.",
103
115
example ="2345678",
104
116
)
105
-
valserviceNumber:String?,
117
+
valserviceNumber:String? = null,
106
118
107
119
@Schema(
108
120
description ="Code identifying any disciplinary actions taken against the individual during service.",
109
121
example ="CM",
110
122
)
111
-
valdisciplinaryActionCode:String?,
123
+
valdisciplinaryActionCode:String? = null,
112
124
113
125
@Schema(
114
126
description ="Description of any disciplinary actions taken against the individual during service.",
0 commit comments