Skip to content

Commit

Permalink
Merge pull request #966 from hmrc/DL-9192
Browse files Browse the repository at this point in the history
[DL-9192] - update upstream appealStatus values
  • Loading branch information
rajanimohan22 authored Dec 12, 2022
2 parents e1f9e5d + d19e771 commit 7fd5725
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions app/v1/models/response/penalties/AppealStatusDownstream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ sealed trait AppealStatusDownstream {

object AppealStatusDownstream {
case object `A` extends AppealStatusDownstream {
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`under appeal`
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`under-appeal`
}

case object `B` extends AppealStatusDownstream {
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`appeal upheld`
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`appeal-upheld`
}

case object `C` extends AppealStatusDownstream {
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`appeal rejected`
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`appeal-rejected`
}

case object `99` extends AppealStatusDownstream {
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`cannot be appealed`
override def toUpstreamAppealStatus: AppealStatusUpstream = AppealStatusUpstream.`cannot-be-appealed`
}

implicit val format: json.Format[AppealStatusDownstream] = Enums.format[AppealStatusDownstream]
Expand Down
8 changes: 4 additions & 4 deletions app/v1/models/response/penalties/AppealStatusUpstream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ sealed trait AppealStatusUpstream {
}

object AppealStatusUpstream {
case object `under appeal` extends AppealStatusUpstream {
case object `under-appeal` extends AppealStatusUpstream {
override def toDownstreamAppealStatus: AppealStatusDownstream = AppealStatusDownstream.`A`
}

case object `appeal upheld` extends AppealStatusUpstream {
case object `appeal-upheld` extends AppealStatusUpstream {
override def toDownstreamAppealStatus: AppealStatusDownstream = AppealStatusDownstream.`B`
}

case object `appeal rejected` extends AppealStatusUpstream {
case object `appeal-rejected` extends AppealStatusUpstream {
override def toDownstreamAppealStatus: AppealStatusDownstream = AppealStatusDownstream.`C`
}

case object `cannot be appealed` extends AppealStatusUpstream {
case object `cannot-be-appealed` extends AppealStatusUpstream {
override def toDownstreamAppealStatus: AppealStatusDownstream = AppealStatusDownstream.`99`
}

Expand Down
12 changes: 6 additions & 6 deletions test/v1/constants/PenaltiesConstants.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ object PenaltiesConstants {
))),
appealInformation = Some(List(
AppealInformation(
appealStatus = AppealStatusUpstream.`under appeal`,
appealStatus = AppealStatusUpstream.`under-appeal`,
appealLevel = AppealLevelUpstream.`statutory-review`
)
)),
Expand Down Expand Up @@ -127,7 +127,7 @@ object PenaltiesConstants {
penaltyChargeDueDate = Some("2022-10-11"),
appealInformation = Some(Seq(
AppealInformation(
appealStatus = AppealStatusUpstream.`under appeal`,
appealStatus = AppealStatusUpstream.`under-appeal`,
appealLevel = AppealLevelUpstream.`statutory-review`
)
)),
Expand Down Expand Up @@ -257,7 +257,7 @@ object PenaltiesConstants {
| ],
| "appealInformation":[
| {
| "appealStatus":"under appeal",
| "appealStatus":"under-appeal",
| "appealLevel":"statutory-review"
| }
| ],
Expand Down Expand Up @@ -288,7 +288,7 @@ object PenaltiesConstants {
| ],
| "appealInformation":[
| {
| "appealStatus":"under appeal",
| "appealStatus":"under-appeal",
| "appealLevel":"statutory-review"
| }
| ],
Expand Down Expand Up @@ -402,7 +402,7 @@ object PenaltiesConstants {
| "penaltyChargeReference": "123",
| "penaltyChargeDueDate": "2022-10-11",
| "appealInformation": [{
| "appealStatus": "under appeal",
| "appealStatus": "under-appeal",
| "appealLevel": "statutory-review"
| }],
| "principalChargeDocNumber": "123",
Expand Down Expand Up @@ -436,7 +436,7 @@ object PenaltiesConstants {
| "penaltyChargeReference": "123",
| "penaltyChargeDueDate": "2022-10-11",
| "appealInformation": [{
| "appealStatus": "under appeal",
| "appealStatus": "under-appeal",
| "appealLevel": "statutory-review"
| }],
| "principalChargeDocNumber": "123",
Expand Down

0 comments on commit 7fd5725

Please sign in to comment.