Skip to content

Commit

Permalink
Merge pull request #1006 from hmrc/DL-10912
Browse files Browse the repository at this point in the history
[DL-10912] - updated penalty points in json reads
  • Loading branch information
scott-goodwin authored Jun 21, 2023
2 parents 70d9ef6 + 634ab59 commit 4639b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/v1/models/response/penalties/PenaltiesResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ case class LateSubmissionPenaltySummary(

object LateSubmissionPenaltySummary {
implicit val reads: Reads[LateSubmissionPenaltySummary] = (
(JsPath \ "activePoints").read[BigDecimal] and
(JsPath \ "activePenaltyPoints").read[BigDecimal] and
(JsPath \ "inactivePenaltyPoints").read[Int] and
(JsPath \ "PoCAchievementDate").read[String] and
(JsPath \ "regimeThreshold").read[Int] and
Expand Down
2 changes: 1 addition & 1 deletion test/v1/constants/PenaltiesConstants.scala
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ object PenaltiesConstants {
)

val downstreamTestLateSubmissionPenaltySummaryJson: JsObject = Json.obj(
"activePoints" -> 2,
"activePenaltyPoints" -> 2,
"inactivePenaltyPoints" -> 2,
"PoCAchievementDate" -> "2022-10-11",
"regimeThreshold" -> 2,
Expand Down

0 comments on commit 4639b39

Please sign in to comment.