@salestrip/travelport-adapter
v1.1.1
Published
Travelport adapter
Downloads
2
Keywords
Readme
@salestrip/travelport-adapter
SalesTrip Engine travelport-adapter library
Creates soap client methods for travelport UAPI
Instructions
npm i @salestrip/travelport-adapter
Usage
Required fields
const travelport = require('@salestrip/travelport-adapter')
// init
const config = {
TRAVELPORT_URL: env.get('TRAVELPORT_URL'),
TRAVELPORT_KEY: env.get('TRAVELPORT_KEY')
}
const travelportAdapter = travelport(config)
exports.retrieveDocument = function(document) {
const airService = await travelportAdapter.airService()
return airService.retrieveDocument(document)
}
License
Copyright © 2021 SalesTrip Limited. All rights reserved.