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-2106: Added sentence status endpoint
- Loading branch information
Showing
13 changed files
with
179 additions
and
8 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
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
16 changes: 16 additions & 0 deletions
16
...rt-case-and-delius/src/dev/resources/simulations/__files/get_sentence_status_C123456.json
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"sentenceId": 87, | ||
"custodialType": { | ||
"code": "C1", | ||
"description": "Custodial status" | ||
}, | ||
"sentence": { | ||
"description": "Curfew Order" | ||
}, | ||
"mainOffence": { | ||
"description": "Main Offence" | ||
}, | ||
"sentenceDate": "2024-08-07", | ||
"actualReleaseDate": "2024-08-05", | ||
"lengthUnit": "Months" | ||
} |
13 changes: 13 additions & 0 deletions
13
projects/court-case-and-delius/src/dev/resources/simulations/mappings/get-convictions.json
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
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
17 changes: 17 additions & 0 deletions
17
...elius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/conviction/SentenceStatus.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package uk.gov.justice.digital.hmpps.api.model.conviction | ||
|
||
import uk.gov.justice.digital.hmpps.api.model.KeyValue | ||
import java.time.LocalDate | ||
|
||
data class SentenceStatus( | ||
val sentenceId: Long, | ||
val custodialType: KeyValue, | ||
val sentence: KeyValue, | ||
val mainOffence: KeyValue?, | ||
val sentenceDate: LocalDate?, | ||
val actualReleaseDate: LocalDate?, | ||
val licenceExpiryDate: LocalDate?, | ||
val pssEndDate: LocalDate? = null, | ||
val length: Long?, | ||
val lengthUnit: String | ||
) |
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
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
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