Package com.flutterwave.services
Class Transfer
java.lang.Object
com.flutterwave.services.Transfer
Send funds to Bank acc
- Author:
- cleopatradouglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllTransfers(Optional<String> page, Optional<String> status) Spool all their transfers.getFee(BigDecimal amount) Query the fee for the transfer being made.getTransfer(int id) Fetch the details of a transfer.getTransferRate(BigDecimal amount, String destination_currency, String source_currency) Querys the transfer rate for international transfers.retry(int id) Retry a previously failed transfer.runBulkTransaction(List<TransferRequest> transferRequest) Create a bulk transfer, i.e.runTransaction(TransferRequest transferRequest) Initate a transfer with Flutterwave.
-
Constructor Details
-
Transfer
public Transfer()
-
-
Method Details
-
runTransaction
Initate a transfer with Flutterwave.- Parameters:
transferRequest- bean- Returns:
- Response
-
runBulkTransaction
Create a bulk transfer, i.e. a transfer attempt for multiple transfers.- Parameters:
transferRequest- bean- Returns:
- Response
-
retry
Retry a previously failed transfer.- Parameters:
id- int This is the unique identifier for the transfer you want to retry. It is returned in the call to create a transfer as data.id- Returns:
- Response
-
getFee
Query the fee for the transfer being made.- Parameters:
amount- BigDecimal This is the amount to be transferred.- Returns:
- Response
-
getTransferRate
public Response getTransferRate(BigDecimal amount, String destination_currency, String source_currency) Querys the transfer rate for international transfers.- Parameters:
amount- BigDecimal This is the amount to transfer to the recipient.destination_currency- String This is the currency of the wallet you are making a transfer to.source_currency- String This is the currency of the wallet being debited for the transfer.- Returns:
- Response
-
getTransfer
Fetch the details of a transfer.- Parameters:
id- int This is the numeric ID of the transfer you want to fetch. It is returned in the call to create a transfer as data.id.- Returns:
- Response
-
getAllTransfers
Spool all their transfers.- Parameters:
page- Optional specific page e.g. setting 1 retrieves the first page.status- Optional specific status e.g. fetch all successful transactions. Expected values include failed, successful.- Returns:
- ListResponse
-