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-2101: Added licence conditions endpoint
- Loading branch information
Showing
14 changed files
with
165 additions
and
22 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
22 changes: 22 additions & 0 deletions
22
...case-and-delius/src/dev/resources/simulations/__files/get_licence_conditions_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,22 @@ | ||
{ | ||
"licenceConditions": [ | ||
{ | ||
"licenceConditionNotes": "Licence Condition notes", | ||
"startDate": "2024-08-07", | ||
"commencementDate": "2024-08-07", | ||
"commencementNotes": "commencement notes", | ||
"terminationDate": "2024-08-07", | ||
"terminationNotes": "termination notes", | ||
"createdDateTime": "2024-08-07T11:36:08.308673", | ||
"active": true, | ||
"licenceConditionTypeMainCat": { | ||
"code": "LicMain", | ||
"description": "lic cond main" | ||
}, | ||
"licenceConditionTypeSubCat": { | ||
"code": "LicSub", | ||
"description": "Lic Sub cat" | ||
} | ||
} | ||
] | ||
} |
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
22 changes: 22 additions & 0 deletions
22
...se-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/LicenceConditions.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,22 @@ | ||
package uk.gov.justice.digital.hmpps.api.model | ||
|
||
import java.time.LocalDate | ||
import java.time.LocalDateTime | ||
|
||
data class LicenceConditions( | ||
val licenceConditions: List<LicenceCondition> = emptyList() | ||
) | ||
|
||
data class LicenceCondition( | ||
val licenceConditionNotes: String? = null, | ||
val startDate: LocalDate, | ||
val commencementDate: LocalDate? = null, | ||
val commencementNotes: String? = null, | ||
val terminationDate: LocalDate? = null, | ||
val terminationNotes: String? = null, | ||
val createdDateTime: LocalDateTime, | ||
val active: Boolean, | ||
val licenceConditionTypeMainCat: KeyValue? = null, | ||
val licenceConditionTypeSubCat: KeyValue? = null | ||
|
||
) |
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
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