Skip to content

Commit 70c3469

Browse files
added prisoner number to response
1 parent 3e6941b commit 70c3469

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/hmpps/InductionSchedule.kt

+6
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ data class InductionSchedule(
2121
example = "NEW_PRISON_ADMISSION",
2222
)
2323
val scheduleCalculationRule: String? = null,
24+
25+
@Schema(
26+
description = "The prison number or NOMS number of the person.",
27+
example = "A1234BC",
28+
)
29+
val prisonNumber: String? = null,
2430
)

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/PLPIntegrationTest.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class PLPIntegrationTest : IntegrationTestBase() {
1616
{"data": {
1717
"deadlineDate":"2019-08-24",
1818
"scheduleStatus":"SCHEDULED",
19-
"scheduleCalculationRule": "NEW_PRISON_ADMISSION"}}
19+
"scheduleCalculationRule": "NEW_PRISON_ADMISSION",
20+
"prisonNumber": "A1234BC"}}
2021
""",
2122
),
2223
)

0 commit comments

Comments
 (0)