From 5a2efae1de88423f8a505834277fbfd7331eb2b0 Mon Sep 17 00:00:00 2001 From: Thepworth95 <56401451+Thepworth95@users.noreply.github.com> Date: Thu, 15 Dec 2022 11:03:12 +0000 Subject: [PATCH] remove added query params back to a successfull state --- app/v1/connectors/PenaltiesConnector.scala | 2 +- test/v1/constants/FinancialDataConstants.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/v1/connectors/PenaltiesConnector.scala b/app/v1/connectors/PenaltiesConnector.scala index 56fe968e..088f5aa7 100644 --- a/app/v1/connectors/PenaltiesConnector.scala +++ b/app/v1/connectors/PenaltiesConnector.scala @@ -90,7 +90,7 @@ class PenaltiesConnector @Inject()(val http: HttpClient, correlationId: String): Future[Outcome[FinancialDataResponse]] = { val vrn = request.vrn.vrn val searchItem = request.searchItem - val url = appConfig.penaltiesBaseUrl + s"/penalties/penalty/financial-data/VRN/$vrn/VATC?searchType=CHGREF&searchItem=${searchItem}&addPostedInterestDetails=true&addAccruingInterestDetails=true" + val url = appConfig.penaltiesBaseUrl + s"/penalties/penalty/financial-data/VRN/$vrn/VATC?searchType=CHGREF&searchItem=${searchItem}" def doGet(implicit hc: HeaderCarrier): Future[Outcome[FinancialDataResponse]] = { diff --git a/test/v1/constants/FinancialDataConstants.scala b/test/v1/constants/FinancialDataConstants.scala index 316eec93..c17cbbf8 100644 --- a/test/v1/constants/FinancialDataConstants.scala +++ b/test/v1/constants/FinancialDataConstants.scala @@ -43,7 +43,7 @@ object FinancialDataConstants { def financialDataUrl(vrn: String = vrn)(implicit appConfig: AppConfig): String = s"/penalties/penalty/financial-data/VRN/$vrn/VATC" - def financialDataUrlWithConfig(vrn: String = vrn)(implicit appConfig: AppConfig): String = appConfig.penaltiesBaseUrl + s"/penalties/penalty/financial-data/VRN/$vrn/VATC?searchType=CHGREF&searchItem=${searchItem}&addPostedInterestDetails=true&addAccruingInterestDetails=true" + def financialDataUrlWithConfig(vrn: String = vrn)(implicit appConfig: AppConfig): String = appConfig.penaltiesBaseUrl + s"/penalties/penalty/financial-data/VRN/$vrn/VATC?searchType=CHGREF&searchItem=${searchItem}" val testDownstreamFinancialDetailsNoDocumentDetails: JsValue = {