import packageName.BusinessClient;
//Initial the class and set your parameters
BusinessClient businessClient = new BusinessClient.Builder()
.setPrincipal("publicId")
.setApiKey("apiKey")
.setCredential("password")
.setTest(true)
.build();
//Deposit to bank
DepositToBankResponse response = businessClient
.depositToBank(DepositToBankRequest
.builder()
.alternateSenderName("")
.amount(10000)
.currency("NGN")
.destinationBankAccountNumber("1234567890")
.destinationBankUUID("")
.locale("NG")
.recipientEmail("")
.recipientMobileOperatorCode("")
.recipientName("")
.recipientPhoneNumber("")
.referenceNumber("")
.remarks("transfer")
.suppressRecipientMessage(true)
.build() );
const PagaBusinessClient = require('paga-business')
var pagaBusinessClient = PagaBusinessClient.Builder()
.setPrincipal("publicId")
.setCredential("password")
.setApiKey("apiKey")
.setIsTest(true)
.build();
//Deposit to Bank
pagaBusinessClient.depositToBank("referenceNumber",
"amount",
"currency",
"destinationBankUUID",
"destinationBankAccountNumber",
"recipientPhoneNumber",
"recipientMobileOperatorCode",
"recipientEmail",
"recipientName",
"alternateSenderName",
"suppressRecipientMessage",
"remarks",
"locale").then(resp => {
console.log(JSON.stringify(resp))
})