Package com.flutterwave.services
Class VirtualCard
java.lang.Object
com.flutterwave.services.VirtualCard
- Author:
- Cleopatra Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrunCreateVirtualCard(VirtualCardRequest virtualCardRequest) Create A Virtual CardrunFundVirtualCard(String id, FundVirtualCardRequest fundVirtualCardRequest) This funds a specific virtual card.This fetches all virtual cards created by the UserThis call fetches transactions by date range on a single cardThis call gets a specific virtual card by ID created by the User with idrunStatusVirtualCard(String id, Actions actions) This call blocks or unblocks a virtual card created by the User.This call terminates a virtual card created by the User.runWithdrawVirtualCard(String id, BigDecimal amount) This withdraws existing funds from a virtual card
-
Constructor Details
-
VirtualCard
public VirtualCard()
-
-
Method Details
-
runCreateVirtualCard
Create A Virtual Card- Parameters:
virtualCardRequest- bean- Returns:
- Response
-
runGetAllVirtualCards
This fetches all virtual cards created by the User- Returns:
- ListResponse
-
runGetVirtualCard
This call gets a specific virtual card by ID created by the User with id- Parameters:
id- String This is the id of the virtual card to be fetched. You can get this id from the call to create a virtual card or list virtual cards as data.id- Returns:
- Response
-
runFundVirtualCard
This funds a specific virtual card.- Parameters:
id- String This is the id of the virtual card to be fetched. You can get this id from the call to create a virtual card or list virtual cards as data.idfundVirtualCardRequest- bean- Returns:
- Response
-
runWithdrawVirtualCard
This withdraws existing funds from a virtual card- Parameters:
id- String This is the id of the virtual card to be fetched. You can get this id from the call to create a virtual card or list virtual cards as data.idamount- BigDecimal This is the amount to be withdrawn- Returns:
- Response
-
runStatusVirtualCard
This call blocks or unblocks a virtual card created by the User.- Parameters:
id- String This is the id of the virtual card to be fetched. You can get this id from the call to create a virtual card or list virtual cards as data.idactions- Actions This is the action you want to perform on the virtual card. Can be block or unblock- Returns:
- Response
-
runTerminateVirtualCard
This call terminates a virtual card created by the User.- Parameters:
id- String This is the id of the virtual card to be fetched. You can get this id from the call to create a virtual card or list virtual cards as data.id- Returns:
- Response
-
runGetTransactions
public ListResponse runGetTransactions(String id, String from, String to, Integer index, Integer size) This call fetches transactions by date range on a single card- Parameters:
id- String This is the id of the virtual card to be fetched. You can get this id from the call to create a virtual card or list virtual cards as data.idfrom- String This is the start date of the transaction request periodto- String This is the end date of the transaction request periodindex- Integer Pass 0 if you want to start from the beginningsize- Integer Specify how many transactions you want to retrieve in a single call- Returns:
- ListResponse
-