generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PI-1939 - refactor requirement section
- Loading branch information
1 parent
8783a45
commit f7daad0
Showing
5 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/sentence/Requirement.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package uk.gov.justice.digital.hmpps.api.model.sentence | ||
|
||
data class Requirement( | ||
val description: String, | ||
val length: Long, | ||
val progress: Long, | ||
val notes: String | ||
val description: String?, | ||
val codeDescription: String?, | ||
val length: Long?, | ||
val notes: String? | ||
) |
3 changes: 1 addition & 2 deletions
3
...on-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/sentence/Sentence.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package uk.gov.justice.digital.hmpps.api.model.sentence | ||
|
||
import uk.gov.justice.digital.hmpps.api.model.overview.Order | ||
import uk.gov.justice.digital.hmpps.api.model.overview.Rar | ||
|
||
data class Sentence( | ||
val offenceDetails: OffenceDetails, | ||
val conviction: Conviction? = null, | ||
val order: Order? = null, | ||
val requirements: List<Requirement> | ||
val requirements: List<Requirement> = listOf() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters