Class Transfer

java.lang.Object
com.flutterwave.services.Transfer

public class Transfer extends Object
Send funds to Bank acc
Author:
cleopatradouglas
  • Constructor Details

    • Transfer

      public Transfer()
  • Method Details

    • runTransaction

      public Response runTransaction(TransferRequest transferRequest)
      Initate a transfer with Flutterwave.
      Parameters:
      transferRequest - bean
      Returns:
      Response
    • runBulkTransaction

      public Response runBulkTransaction(List<TransferRequest> transferRequest)
      Create a bulk transfer, i.e. a transfer attempt for multiple transfers.
      Parameters:
      transferRequest - bean
      Returns:
      Response
    • retry

      public Response retry(int id)
      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

      public Response getFee(BigDecimal amount)
      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

      public Response getTransfer(int id)
      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

      public ListResponse getAllTransfers(Optional<String> page, Optional<String> status)
      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