UNPKG

paystack-sdk

Version:
18 lines (17 loc) 506 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Settlement = void 0; class Settlement { constructor(http) { this.http = http; } async list(queryParams) { return await this.http.get('/settlement', { params: { ...queryParams } }); } async transactions(id, queryParams) { return await this.http.get(`/settlement/${id}/transactions`, { params: { ...queryParams }, }); } } exports.Settlement = Settlement;