From 5d3c314b613e1b778e4f98aed6782d8e1ed5f403 Mon Sep 17 00:00:00 2001 From: Andrew Chung <26929776+AndyHWChung@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:23:57 +0000 Subject: [PATCH] [AC][OPS-13073] no assignmentId in pega startCase response (#493) --- project/AppDependencies.scala | 2 +- test/testsupport/stubs/EssttpBackend.scala | 3 +-- test/testsupport/testdata/TdAll.scala | 7 ++----- test/testsupport/testdata/TdJsonBodies.scala | 6 ++---- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/project/AppDependencies.scala b/project/AppDependencies.scala index 71fb3af9..c644d0c3 100644 --- a/project/AppDependencies.scala +++ b/project/AppDependencies.scala @@ -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 ) diff --git a/test/testsupport/stubs/EssttpBackend.scala b/test/testsupport/stubs/EssttpBackend.scala index e0bd8f36..63e2b59e 100644 --- a/test/testsupport/stubs/EssttpBackend.scala +++ b/test/testsupport/stubs/EssttpBackend.scala @@ -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 ) diff --git a/test/testsupport/testdata/TdAll.scala b/test/testsupport/testdata/TdAll.scala index 1aecf8ab..1e70a0be 100644 --- a/test/testsupport/testdata/TdAll.scala +++ b/test/testsupport/testdata/TdAll.scala @@ -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._ @@ -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(), diff --git a/test/testsupport/testdata/TdJsonBodies.scala b/test/testsupport/testdata/TdJsonBodies.scala index 9031e29d..e27b2396 100644 --- a/test/testsupport/testdata/TdJsonBodies.scala +++ b/test/testsupport/testdata/TdJsonBodies.scala @@ -292,8 +292,7 @@ object TdJsonBodies { def startedPegaCaseJourneyInfo: String = """ |"startCaseResponse": { - | "caseId": "case", - | "assignmentId": "assigment" + | "caseId": "case" |} |""".stripMargin @@ -538,8 +537,7 @@ object TdJsonBodies { | "paymentPlanAnswers": { | "PaymentPlanAfterAffordability": { | "startCaseResponse": { - | "caseId": "case", - | "assignmentId": "assignment" + | "caseId": "case" | }, | ${dayOfMonthJourneyInfo(DayOfMonth(28))}, | $selectedPlanJourneyInfo