transferwise / openbanking-client

Java client for using the UK Open Banking API
Other
15 stars 14 forks source link

[EUPAY-1439]: replace RestTemplate with WebClient for BasePaymentClient #254

Closed aun-wise closed 4 months ago

aun-wise commented 5 months ago

Context

Continuing from https://github.com/transferwise/openbanking-client/pull/253, we left off replacing RestTemplate with WebClient. In this PR, we replace RestTemplate with WebClient for all the classes inheriting from BasePaymentClient.

Changes

Replace RestTemplate with WebClient for all classes inheriting BasePaymentClient. This includes:

Details from ticket: EUPAY-1439

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

Update tests

Bump client version