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