UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

21 lines (15 loc) 519 B
const Service = require('../../../Service') const Endpoints = require('./Endpoints') class AnonymousTravelersService extends Service { constructor (baseUrl) { super() this.endpoints = Endpoints(baseUrl) } async getOrCreate (data) { return this.sendRequest({ endpoint: this.endpoints.getOrCreate, body: data }) } async batchDetails (data) { return this.sendRequest({ endpoint: this.endpoints.batchDetails, body: data }) } } module.exports = AnonymousTravelersService