tipi-services
Version:
Node.js library to access wrapping REST API of tipi backend services
20 lines (15 loc) • 527 B
JavaScript
const Service = require('../../../Service')
const Endpoints = require('./Endpoints')
class BalancesService extends Service {
constructor (baseUrl) {
super()
this.endpoints = Endpoints(baseUrl)
}
async paidInvoicesOverview (query) {
return this.sendRequest({ endpoint: this.endpoints.paidInvoicesOverview, query })
}
async unpaidInvoicesOverview (query) {
return this.sendRequest({ endpoint: this.endpoints.unpaidInvoicesOverview, query })
}
}
module.exports = BalancesService