Skip to content

Commit

Permalink
[AC][OPS-13073] no assignmentId in pega startCase response (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHWChung authored Nov 26, 2024
1 parent 2ebd465 commit 5d3c314
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion project/AppDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object AppDependencies {
"uk.gov.hmrc" %% "play-conditional-form-mapping-play-30" % "3.2.0",
"com.beachape" %% "enumeratum-play" % "1.8.1",
"org.typelevel" %% "cats-core" % "2.12.0",
"uk.gov.hmrc" %% "essttp-backend-cor-journey" % "1.170.0",
"uk.gov.hmrc" %% "essttp-backend-cor-journey" % "1.171.0",
"uk.gov.hmrc" %% "domain-play-30" % "10.0.0"
// format: ON
)
Expand Down
3 changes: 1 addition & 2 deletions test/testsupport/stubs/EssttpBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,7 @@ object EssttpBackend {
aResponse().withStatus(_),
response => aResponse().withStatus(CREATED).withBody(
s"""{
| "caseId": "${response.caseId.value}",
| "assignmentId": "${response.assignmentId.value}"
| "caseId": "${response.caseId.value}"
|}
|""".stripMargin
)
Expand Down
7 changes: 2 additions & 5 deletions test/testsupport/testdata/TdAll.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import essttp.rootmodel.bank._
import essttp.rootmodel.dates.extremedates.{EarliestPaymentPlanStartDate, ExtremeDatesRequest, ExtremeDatesResponse, LatestPaymentPlanStartDate}
import essttp.rootmodel.dates.startdates.{InstalmentStartDate, PreferredDayOfMonth, StartDatesRequest, StartDatesResponse}
import essttp.rootmodel.dates.{InitialPayment, InitialPaymentDate}
import essttp.rootmodel.pega.{GetCaseResponse, PegaAssigmentId, PegaCaseId, StartCaseResponse}
import essttp.rootmodel.pega.{GetCaseResponse, PegaCaseId, StartCaseResponse}
import essttp.rootmodel.ttp._
import essttp.rootmodel.ttp.affordability.{InstalmentAmountRequest, InstalmentAmounts}
import essttp.rootmodel.ttp.affordablequotes._
Expand Down Expand Up @@ -424,10 +424,7 @@ object TdAll {

val instalmentAmounts: InstalmentAmounts = InstalmentAmounts(AmountInPence(33333), AmountInPence(100000))

val pegaStartCaseResponse: StartCaseResponse = StartCaseResponse(
PegaCaseId("case"),
PegaAssigmentId("assignment")
)
val pegaStartCaseResponse: StartCaseResponse = StartCaseResponse(PegaCaseId("case"))

val pegaGetCaseResponse: GetCaseResponse = GetCaseResponse(
dayOfMonth(),
Expand Down
6 changes: 2 additions & 4 deletions test/testsupport/testdata/TdJsonBodies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ object TdJsonBodies {
def startedPegaCaseJourneyInfo: String =
"""
|"startCaseResponse": {
| "caseId": "case",
| "assignmentId": "assigment"
| "caseId": "case"
|}
|""".stripMargin

Expand Down Expand Up @@ -538,8 +537,7 @@ object TdJsonBodies {
| "paymentPlanAnswers": {
| "PaymentPlanAfterAffordability": {
| "startCaseResponse": {
| "caseId": "case",
| "assignmentId": "assignment"
| "caseId": "case"
| },
| ${dayOfMonthJourneyInfo(DayOfMonth(28))},
| $selectedPlanJourneyInfo
Expand Down

0 comments on commit 5d3c314

Please sign in to comment.