@squadco/js
Version:
Simplify the integration process with Squad's comprehensive payment solutions using the Squad JavaScript SDK.
20 lines (19 loc) • 1.04 kB
TypeScript
import SquadTransfer from "./transfer";
import type { WalletBalanceResponseProps } from "./interfaces/wallet-balance.interface";
export default abstract class SquadWalletBalance extends SquadTransfer {
/**
* @desc This is the sub class for the Squad Virtual Account Module
* @arg {string} publicKey - Squad public key
* @arg {string} privateKey - Squad private key
* @arg {string} environment - The environment to use for the client. If not specified, defaults to "development".
*/
private baseWalletBalanceUrl;
constructor(publicKey: string, privateKey: string, environment: "production" | "development");
/**
* @desc This method allows you get your Squad Wallet Balance.
* Please be informed that the wallet balance is in KOBO.
* (Please note that you can't get wallet balance for Dollar transactions)
* @param {String} currencyId - The currency Id. This supports only NGN -> Naria
*/
getWalletBalance(currencyId?: string): Promise<WalletBalanceResponseProps>;
}