From b6ea4e4da87e6b0fe5a565d60457c23f78d9fab7 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Mon, 30 Sep 2024 18:45:05 +0200 Subject: [PATCH] [PPANTT-131] feat: Updated CreditorInstitutionRestClient --- .../options/clients/CreditorInstitutionRestClient.java | 2 +- .../clients/CreditorInstitutionRestClientInterface.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClient.java b/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClient.java index cedb02a..5179161 100644 --- a/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClient.java +++ b/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClient.java @@ -62,7 +62,7 @@ public PaymentOptionsResponse callEcPaymentOptionsVerify( CreditorInstitutionRestClientInterface.class); try (Response response = ecRestClientInterface.verifyPaymentOptions( - targetHost, targetPort.intValue(), targetPath)) { + targetHost, targetPort.intValue(), targetPath, "")) { return objectMapper.readValue( response.readEntity(String.class), PaymentOptionsResponse.class); diff --git a/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClientInterface.java b/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClientInterface.java index 67343cf..4c11b93 100644 --- a/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClientInterface.java +++ b/src/main/java/it/gov/pagopa/payment/options/clients/CreditorInstitutionRestClientInterface.java @@ -7,6 +7,7 @@ import jakarta.ws.rs.PathParam; import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; +import org.jboss.resteasy.reactive.RestForm; /** * Template for the creditor institution REST client @@ -19,7 +20,8 @@ public interface CreditorInstitutionRestClientInterface { Response verifyPaymentOptions( @HeaderParam("X-Host-Url") String hostUrl, @HeaderParam("X-Host-Port") Integer hostPort, - @HeaderParam("X-Host-Path") String hostPath + @HeaderParam("X-Host-Path") String hostPath, + @RestForm String data ); }