wallets-africa
Version:
Nodejs API wrapper for wallets africa
26 lines (25 loc) • 674 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const axios_1 = __importDefault(require("axios"));
/**
* All Airtime functionality and methods
* @class Airtime
*/
class Account {
/*
Fetches the bvn information
*/
static async resolveBvn(bvn) {
const body = { bvn, SecretKey: this.secretKey };
const url = `${this.endpoint}/resolvebvn`;
return axios_1.default.post(url, body);
}
}
/*
Api key
*/
Account.secretKey = '';
Account.endpoint = '/account';