Skip to content

Commit

Permalink
PI-2348 - add new mapping (#4084)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj authored Jul 31, 2024
1 parent 36cd25c commit 28367c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ enum class ApprovedPremisesCategoryCode(
)
),
OTHER("O", CategoryMappings()),
POST_RECALL("S", CategoryMappings(SentenceType.StandardDeterminate to ReleaseType.ReReleasedPostRecall)),
ORA_PSS("U", CategoryMappings(SentenceType.StandardDeterminate to ReleaseType.PostSentenceSupervision)),
RESIDENCY_REQUIREMENT(
"X",
Expand Down Expand Up @@ -88,6 +89,7 @@ enum class ReleaseType(val value: String) {
ResidencyManagement("residencyManagement"),
RiskManagement("riskManagement"),
TemporaryLicence("rotl"),
ReReleasedPostRecall("releasedPostRecall"),
NotApplicable("not_applicable");

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class ApprovedPremisesCategoryCodeTest {
Arguments.of("communityOrder", "in_community", "residencyManagement", "X"),
Arguments.of("bailPlacement", "in_community", "bailAssessment", "A"),
Arguments.of("bailPlacement", "in_community", "bailSentence", "B"),
Arguments.of("standardDeterminate", "releasedPostRecall", null, "S"),
Arguments.of("nonStatutory", "not_applicable", null, "MAP"),
Arguments.of(null, null, null, "O")
)
Expand Down

0 comments on commit 28367c4

Please sign in to comment.