We recommend reading the main readme first, to understand the requirements for using the library and how to initiate this in your apps. This guide assumes you've read that.
This describes how to fetch all settlements
ListResponse flwResponse = new Settlements()
.runGetAllSettlements(Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.empty());
This describes how to get a settlement
ListResponse flwResponse = new Settlements()
.runGetSettlement(id,
Optional.empty(),
Optional.empty());