Replace usage of RestTemplate in openbanking-client with WebClient
We want to move away from RestTemplate as it’s blocking us to use tw-service-comms in pisp-service. To move away from RestTemplate, we will be using WebClient, a more modern replacement is Spring’s non-blocking library.
Acceptance Criteria
Import the library that includes WebClient interface to openbanking-client
Replace all usage of RestTemplate in openbanking-client
Context
Continuing from https://github.com/transferwise/openbanking-client/pull/253, we left off replacing
RestTemplate
withWebClient
. In this PR, we replaceRestTemplate
withWebClient
for all the classes inheriting fromBasePaymentClient
.Changes
Replace
RestTemplate
withWebClient
for all classes inheritingBasePaymentClient
. This includes:RestVrpClientTest
RestEventClient
RestPaymentClient
Details from ticket: EUPAY-1439
Replace usage of RestTemplate in openbanking-client with WebClient