From d19e7713b4340c03383c7cad238319deaca27f57 Mon Sep 17 00:00:00 2001 From: Thepworth95 <56401451+Thepworth95@users.noreply.github.com> Date: Mon, 12 Dec 2022 10:38:40 +0000 Subject: [PATCH] update upstream appealStatus values --- .../response/penalties/AppealStatusDownstream.scala | 8 ++++---- .../response/penalties/AppealStatusUpstream.scala | 8 ++++---- test/v1/constants/PenaltiesConstants.scala | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/v1/models/response/penalties/AppealStatusDownstream.scala b/app/v1/models/response/penalties/AppealStatusDownstream.scala index 6079c76b..3a9812e3 100644 --- a/app/v1/models/response/penalties/AppealStatusDownstream.scala +++ b/app/v1/models/response/penalties/AppealStatusDownstream.scala @@ -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] diff --git a/app/v1/models/response/penalties/AppealStatusUpstream.scala b/app/v1/models/response/penalties/AppealStatusUpstream.scala index ffb9abc2..82260967 100644 --- a/app/v1/models/response/penalties/AppealStatusUpstream.scala +++ b/app/v1/models/response/penalties/AppealStatusUpstream.scala @@ -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` } diff --git a/test/v1/constants/PenaltiesConstants.scala b/test/v1/constants/PenaltiesConstants.scala index a52e54d1..bd0aacdb 100644 --- a/test/v1/constants/PenaltiesConstants.scala +++ b/test/v1/constants/PenaltiesConstants.scala @@ -95,7 +95,7 @@ object PenaltiesConstants { ))), appealInformation = Some(List( AppealInformation( - appealStatus = AppealStatusUpstream.`under appeal`, + appealStatus = AppealStatusUpstream.`under-appeal`, appealLevel = AppealLevelUpstream.`statutory-review` ) )), @@ -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` ) )), @@ -257,7 +257,7 @@ object PenaltiesConstants { | ], | "appealInformation":[ | { - | "appealStatus":"under appeal", + | "appealStatus":"under-appeal", | "appealLevel":"statutory-review" | } | ], @@ -288,7 +288,7 @@ object PenaltiesConstants { | ], | "appealInformation":[ | { - | "appealStatus":"under appeal", + | "appealStatus":"under-appeal", | "appealLevel":"statutory-review" | } | ], @@ -402,7 +402,7 @@ object PenaltiesConstants { | "penaltyChargeReference": "123", | "penaltyChargeDueDate": "2022-10-11", | "appealInformation": [{ - | "appealStatus": "under appeal", + | "appealStatus": "under-appeal", | "appealLevel": "statutory-review" | }], | "principalChargeDocNumber": "123", @@ -436,7 +436,7 @@ object PenaltiesConstants { | "penaltyChargeReference": "123", | "penaltyChargeDueDate": "2022-10-11", | "appealInformation": [{ - | "appealStatus": "under appeal", + | "appealStatus": "under-appeal", | "appealLevel": "statutory-review" | }], | "principalChargeDocNumber": "123",