UNPKG

paystack-sdk

Version:
22 lines (21 loc) 564 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Misc = void 0; class Misc { constructor(http) { this.http = http; } async banks(query) { return await this.http.get('/bank', { params: { ...query } }); } async countries() { return await this.http.get('/country'); } async states(country) { const query = country ? { country } : {}; return await this.http.get('/address_verification/states', { params: query, }); } } exports.Misc = Misc;