Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amadeus

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amadeus - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

lib/amadeus/namespaces/booking.js

26

CHANGELOG.md
# Changelog
## 4.0.0 - 2020-03-25
Add support for the [Flight Offers Price API](https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-price)
> The Flight Offers Price API confirms the flight price (including taxes and fees) and availability for a given flight returned by the Flight Offers Search API. The API also returns pricing for ancillary products (additional bags, extra legroom, etc.) and the payment information details needed for booking.
Add support for the [Flight Create Orders API](https://developers.amadeus.com/self-service/category/air/api-doc/flight-create-orders)
> The Flight Create Orders API is a flight booking API that lets you perform the final booking for a desired flight and ancillary products (additional bags, extra legroom, etc.). The API returns a unique ID for the flight order and reservation details. This API is used to perform the final booking on confirmed fares returned by the Flight Offers Price API.
Add support for the [Flight Order Management API](https://developers.amadeus.com/self-service/category/air/api-doc/flight-order-management)
> The Flight Order Management API lets you consult bookings created through the Flight Create Orders API. Using the booking ID generated by Flight Create Orders, Flight Order Management returns the last-updated version of the booking record with any post-booking modifications including but not limited to ticket information, form of payment or other remarks.
Add support for the [Hotel Booking API](https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-booking)
> The Amadeus Hotel Booking API lets you complete bookings at over 150,000 hotels and accommodations around the world. To complete bookings, you must first use the Amadeus Hotel Search API to search for hotel deals, select the desired offer and confirm the final price and availability. You can then use the Hotel Booking API to complete the reservation by providing an offer id, guest information and payment information.
Add support for the [SeatMap Display API](https://developers.amadeus.com/self-service/category/air/api-doc/seatmap-display)
> SeatMap Display API allows you to get information to display airplane cabin plan from a Flight Offer in order for the traveler to be able to choose his seat during the flight booking flow thanks to POST method. In addition GET method allows you to display airplane cabin plan from an existing Flight Order.
Remove support for Most Searched Destinations
Add support for the [Trip Parser API](https://developers.amadeus.com/self-service/category/trip/api-doc/trip-parser)
> The Trip Parser API parses information from various booking confirmation emails and returns a standardized, structured travel itinerary. The API can extract relevant information from a wide variety of flight, hotel, rental car and rail providers’ confirmation emails by first identifying the provider and then using a database of provider-specific email structures to determine which information to extract. The API then returns a link to the JSON structure of the itinerary.
## 3.3.0 - 2020-02-14

@@ -3,0 +29,0 @@ Add support for the [Flight Offers Search](https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-search)

5

lib/amadeus.js

@@ -16,2 +16,4 @@ "use strict";

var _booking = _interopRequireDefault(require("./amadeus/namespaces/booking"));
var _travel = _interopRequireDefault(require("./amadeus/namespaces/travel"));

@@ -90,2 +92,3 @@

this.shopping = new _shopping["default"](this.client);
this.booking = new _booking["default"](this.client);
this.travel = new _travel["default"](this.client);

@@ -244,2 +247,2 @@ this.eReputation = new _e_reputation["default"](this.client);

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hbWFkZXVzLmpzIl0sIm5hbWVzIjpbIkFtYWRldXMiLCJwYXJhbXMiLCJjbGllbnQiLCJDbGllbnQiLCJ2ZXJzaW9uIiwicmVmZXJlbmNlRGF0YSIsIlJlZmVyZW5jZURhdGEiLCJzaG9wcGluZyIsIlNob3BwaW5nIiwidHJhdmVsIiwiVHJhdmVsIiwiZVJlcHV0YXRpb24iLCJFUmVwdXRhdGlvbiIsIm1lZGlhIiwiTWVkaWEiLCJhaXJwb3J0IiwiQWlycG9ydCIsInBhZ2luYXRpb24iLCJQYWdpbmF0aW9uIiwicmVzcG9uc2UiLCJwYWdlIiwibG9jYXRpb24iLCJjaXR5IiwiYW55IiwiZGlyZWN0aW9uIiwiYXJyaXZpbmciLCJkZXBhcnRpbmciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFFQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs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vbi5nZXQoe1xuICogICBrZXl3b3JkOiAnbG9uJyxcbiAqICAgc3ViVHlwZTogQW1hZGV1cy5sb2NhdGlvbi5hbnlcbiAqIH0pO1xuICogYGBgXG4gKlxuICogQ3VycmVudGx5IGF2YWlsYWJsZSBhcmUgdGhlIHR5cGVzIGAuYWlycG9ydGAsIGAuY2l0eWAsIGFuZCBgLmFueWBcbiAqL1xuQW1hZGV1cy5sb2NhdGlvbiA9IHtcbiAgYWlycG9ydDogJ0FJUlBPUlQnLFxuICBjaXR5OiAnQ0lUWScsXG4gIGFueTogJ0FJUlBPUlQsQ0lUWSdcbn07XG5cbi8qKlxuICogQSBoYW5keSBsaXN0IG9mIGRpcmVjdGlvbiB0eXBlcywgdG8gYmUgdXNlZCBpbiB0aGUgRmxpZ2h0IEJ1c2llc3QgUGVyaW9kIEFQSTpcbiAqXG4gKiBgYGBqc1xuICogYW1hZGV1cy50cmF2ZWwuYW5hbHl0aWNzLmFpclRyYWZmaWMuYnVzaWVzdFBlcmlvZC5nZXQoe1xuICogICBjaXR5Q29kZTogJ3BhcicsXG4gKiAgIHBlcmRpb2Q6IDIwMTUsXG4gKiAgIGRpcmVjdGlvbjogQW1hZGV1cy5kaXJlY3Rpb24uYXJyaXZpbmdcbiAqIH0pO1xuICogYGBgXG4gKlxuICogQ3VycmVudGx5IGF2YWlsYWJsZSBhcmUgdGhlIHR5cGVzIGAuYXJyaXZpbmdgIGFuZCBgLmRlcGFydGluZ2BcbiAqL1xuXG5BbWFkZXVzLmRpcmVjdGlvbiA9IHtcbiAgYXJyaXZpbmc6ICdBUlJJVklORycsXG4gIGRlcGFydGluZzogJ0RFUEFSVElORydcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEFtYWRldXM7XG4iXX0=

19

lib/amadeus/client.js

@@ -111,2 +111,19 @@ "use strict";

return this.request('POST', path, params);
}
/**
* Make an authenticated DELETE API call.
*
* ```js
* amadeus.client.delete('/v2/foo/bar', { some: 'data' });
* ```
* @param {string} path the full path of the API endpoint
* @param {Object} [params={}] the query string parameters
* @return {Promise.<Response,ResponseError>} a Promise
*/
}, {
key: "delete",
value: function _delete(path) {
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return this.request('DELETE', path, params);
} // PROTECTED

@@ -278,2 +295,2 @@

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbWFkZXVzL2NsaWVudC5qcyJdLCJuYW1lcyI6WyJDbGllbnQiLCJvcHRpb25zIiwiVmFsaWRhdG9yIiwidmFsaWRhdGVBbmRJbml0aWFsaXplIiwiYWNjZXNzVG9rZW4iLCJBY2Nlc3NUb2tlbiIsInZlcnNpb24iLCJwa2ciLCJwYXRoIiwicGFyYW1zIiwicmVxdWVzdCIsInZlcmIiLCJiZWFyZXJUb2tlbiIsInRoZW4iLCJ1bmF1dGhlbnRpY2F0ZWRSZXF1ZXN0IiwiYnVpbGRSZXF1ZXN0IiwibG9nIiwiZW1pdHRlciIsIkV2ZW50RW1pdHRlciIsInByb21pc2UiLCJidWlsZFByb21pc2UiLCJleGVjdXRlIiwiaHR0cF9yZXF1ZXN0IiwiaHR0cCIsImxpc3RlbmVyIiwiTGlzdGVuZXIiLCJvbiIsIm9uUmVzcG9uc2UiLCJiaW5kIiwib25FcnJvciIsIndyaXRlIiwiYm9keSIsImVuZCIsIlJlcXVlc3QiLCJob3N0IiwiY2xpZW50VmVyc2lvbiIsImxhbmd1YWdlVmVyc2lvbiIsInByb2Nlc3MiLCJhcHBJZCIsImN1c3RvbUFwcElkIiwiYXBwVmVyc2lvbiIsImN1c3RvbUFwcFZlcnNpb24iLCJwb3J0Iiwic3NsIiwiUHJvbWlzZSIsInJlc29sdmUiLCJyZWplY3QiLCJyZXNwb25zZSIsImVycm9yIiwiZGVidWciLCJsb2dnZXIiLCJ1dGlsIiwiaW5zcGVjdCIsImxvZ0xldmVsIl0sIm1hcHBpbmdz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GRlYnVnIG1vZGVcbiAgICpcbiAgICogQHJldHVybiB7Ym9vbGVhbn1cbiAgICovXG4gIHdhcm4oKSB7XG4gICAgcmV0dXJuIHRoaXMubG9nTGV2ZWwgPT0gJ3dhcm4nIHx8IHRoaXMuZGVidWcoKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDbGllbnQ7XG4iXX0=

@@ -16,2 +16,4 @@ "use strict";

var _seatmaps = _interopRequireDefault(require("./shopping/seatmaps"));
var _hotel_offers = _interopRequireDefault(require("./shopping/hotel_offers"));

@@ -47,2 +49,3 @@

* @property {FlightDates} flightDates
* @property {Seatmaps} seatmaps
* @property {HotelOffers} hotelOffers

@@ -63,2 +66,3 @@ * @property {HotelOffer} hotelOffer

this.flightDates = new _flight_dates["default"](client);
this.seatmaps = new _seatmaps["default"](client);
this.hotelOffers = new _hotel_offers["default"](client);

@@ -88,2 +92,2 @@ this.hotelOffersByHotel = new _hotel_offers_by_hotel["default"](client);

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvc2hvcHBpbmcuanMiXSwibmFtZXMiOlsiU2hvcHBpbmciLCJjbGllbnQiLCJmbGlnaHREZXN0aW5hdGlvbnMiLCJGbGlnaHREZXN0aW5hdGlvbnMiLCJmbGlnaHRPZmZlcnMiLCJGbGlnaHRPZmZlcnMiLCJmbGlnaHRPZmZlcnNTZWFyY2giLCJGbGlnaHRPZmZlcnNTZWFyY2giLCJmbGlnaHREYXRlcyIsIkZsaWdodERhdGVzIiwiaG90ZWxPZmZlcnMiLCJIb3RlbE9mZmVycyIsImhvdGVsT2ZmZXJzQnlIb3RlbCIsIkhvdGVsT2ZmZXJzQnlIb3RlbCIsIm9mZmVySWQiLCJIb3RlbE9mZmVyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7O0FB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5ldyBGbGlnaHREYXRlcyhjbGllbnQpO1xuICAgIHRoaXMuc2VhdG1hcHMgICAgICAgICAgID0gbmV3IFNlYXRtYXBzKGNsaWVudCk7XG4gICAgdGhpcy5ob3RlbE9mZmVycyAgICAgICAgPSBuZXcgSG90ZWxPZmZlcnMoY2xpZW50KTtcbiAgICB0aGlzLmhvdGVsT2ZmZXJzQnlIb3RlbCA9IG5ldyBIb3RlbE9mZmVyc0J5SG90ZWwoY2xpZW50KTtcbiAgfVxuXG5cbiAgLyoqXG4gICAqIExvYWRzIGEgbmFtZXNwYWNlZCBwYXRoIGZvciBhIHNwZWNpZmljIG9mZmVyIElEXG4gICAqXG4gICAqIEBwYXJhbSAge3N0cmluZ30gW29mZmVySWRdICBUaGUgSUQgb2YgdGhlIG9mZmVyIGZvciBhIGRlZGljYXRlZCBob3RlbFxuICAgKiBAcmV0dXJuIHtIb3RlbE9mZmVyfVxuICAgKiovXG4gIGhvdGVsT2ZmZXIob2ZmZXJJZCkge1xuICAgIHJldHVybiBuZXcgSG90ZWxPZmZlcih0aGlzLmNsaWVudCwgb2ZmZXJJZCk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgU2hvcHBpbmc7XG4iXX0=

@@ -10,2 +10,4 @@ "use strict";

var _pricing = _interopRequireDefault(require("./flight_offers/pricing.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -40,2 +42,3 @@

this.prediction = new _flight_choice_prediction["default"](client);
this.pricing = new _pricing["default"](client);
}

@@ -79,2 +82,2 @@ /**

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvc2hvcHBpbmcvZmxpZ2h0X29mZmVycy5qcyJdLCJuYW1lcyI6WyJGbGlnaHRPZmZlcnMiLCJjbGllbnQiLCJwcmVkaWN0aW9uIiwiR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ZGUgdG8gd2hpY2ggdGhlXG4gICAqICAgdHJhdmVsZXIgaXMgZ29pbmcuIFBBUiwgZm9yIGV4YW1wbGVcbiAgICogQHBhcmFtIHtzdHJpbmd9IHBhcmFtcy5kZXBhcnR1cmVEYXRlIFRoZSBkZXBhcnR1cmUgZGF0ZSBmb3IgdGhlIGZsaWdodFxuICAgKiBAcmV0dXJuIHtQcm9taXNlLjxSZXNwb25zZSxSZXNwb25zZUVycm9yPn0gYSBQcm9taXNlXG4gICAqXG4gICAqIEZpbmQgdGhlIGNoZWFwZXN0IGZsaWdodHMgZnJvbSBOZXctWW9yayB0byBNYWRyaWQgZm9yIFN1bW1lciAyMDIwXG4gICAqXG4gICAqIGBgYGpzXG4gICAqIGFtYWRldXMuc2hvcHBpbmcuZmxpZ2h0T2ZmZXJzLmdldCh7XG4gICAqICAgb3JpZ2luOiAnTllDJyxcbiAgICogICBkZXN0aW5hdGlvbjogJ01BRCcsXG4gICAqICAgZGVwYXJ0dXJlRGF0ZTogJzIwMjAtMDgtMDEnXG4gICAqIH0pO1xuICAgKiBgYGBcbiAgICovXG4gIGdldChwYXJhbXMgPSB7fSkge1xuICAgIHJldHVybiB0aGlzLmNsaWVudC5nZXQoJy92MS9zaG9wcGluZy9mbGlnaHQtb2ZmZXJzJywgcGFyYW1zKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGbGlnaHRPZmZlcnM7XG4iXX0=

@@ -12,2 +12,4 @@ "use strict";

var _trip_parser_jobs = _interopRequireDefault(require("./travel/trip_parser_jobs"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -17,5 +19,9 @@

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
/**
* A namespaced client for the
* `/v1/travel` endpoints
* `/v1/travel` & `/v2/travel` endpoints
*

@@ -32,15 +38,29 @@ * Access via the {@link Amadeus} object

* @property {Predictions} predictions
* @property {TripParserJobs} tripParserJobs
* @protected
*/
var Travel = function Travel(client) {
_classCallCheck(this, Travel);
var Travel =
/*#__PURE__*/
function () {
function Travel(client) {
_classCallCheck(this, Travel);
this.client = client;
this.analytics = new _analytics["default"](client);
this.predictions = new _predictions["default"](client);
};
this.client = client;
this.analytics = new _analytics["default"](client);
this.predictions = new _predictions["default"](client);
}
_createClass(Travel, [{
key: "tripParserJobs",
value: function tripParserJobs(jobId) {
return new _trip_parser_jobs["default"](this.client, jobId);
}
}]);
return Travel;
}();
var _default = Travel;
exports["default"] = _default;
module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvdHJhdmVsLmpzIl0sIm5hbWVzIjpbIlRyYXZlbCIsImNsaWVudCIsImFuYWx5dGljcyIsIkFuYWx5dGljcyIsInByZWRpY3Rpb25zIiwiUHJlZGljdGlvbnMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7QUFDQTs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7Ozs7Ozs7SUFnQk1BLE0sR0FDSixnQkFBWUMsTUFBWixFQUFvQjtBQUFBOztBQUNsQixPQUFLQSxNQUFMLEdBQWlCQSxNQUFqQjtBQUNBLE9BQUtDLFNBQUwsR0FBaUIsSUFBSUMscUJBQUosQ0FBY0YsTUFBZCxDQUFqQjtBQUNBLE9BQUtHLFdBQUwsR0FBbUIsSUFBSUMsdUJBQUosQ0FBZ0JKLE1BQWhCLENBQW5CO0FBQ0QsQzs7ZUFHWUQsTSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBBbmFseXRpY3M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ZWRpY3Rpb25zfSBwcmVkaWN0aW9uc1xuICogQHByb3BlcnR5IHtUcmlwUGFyc2VySm9ic30gdHJpcFBhcnNlckpvYnNcbiAqIEBwcm90ZWN0ZWRcbiAqL1xuY2xhc3MgVHJhdmVsIHtcbiAgY29uc3RydWN0b3IoY2xpZW50KSB7XG4gICAgdGhpcy5jbGllbnQgICAgPSBjbGllbnQ7XG4gICAgdGhpcy5hbmFseXRpY3MgPSBuZXcgQW5hbHl0aWNzKGNsaWVudCk7XG4gICAgdGhpcy5wcmVkaWN0aW9ucyA9IG5ldyBQcmVkaWN0aW9ucyhjbGllbnQpO1xuICB9XG5cbiAgdHJpcFBhcnNlckpvYnMgKGpvYklkKSB7XG4gICAgcmV0dXJuIG5ldyBUcmlwUGFyc2VySm9icyh0aGlzLmNsaWVudCwgam9iSWQpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IFRyYXZlbDtcbiJdfQ==

@@ -12,6 +12,2 @@ "use strict";

var _searched = _interopRequireDefault(require("./air_traffic/searched.js"));
var _searched_by_destination = _interopRequireDefault(require("./air_traffic/searched_by_destination.js"));
var _busiest_period = _interopRequireDefault(require("./air_traffic/busiest_period.js"));

@@ -42,4 +38,2 @@

this.booked = new _booked["default"](client);
this.searched = new _searched["default"](client);
this.searchedByDestination = new _searched_by_destination["default"](client);
this.busiestPeriod = new _busiest_period["default"](client);

@@ -51,2 +45,2 @@ };

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvdHJhdmVsL2FuYWx5dGljcy9haXJfdHJhZmZpYy5qcyJdLCJuYW1lcyI6WyJBaXJUcmFmZmljIiwiY2xpZW50IiwidHJhdmVsZWQiLCJUcmF2ZWxlZCIsImJvb2tlZCIsIkJvb2tlZCIsInNlYXJjaGVkIiwiU2VhcmNoZWQiLCJzZWFy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BBaXJUcmFmZmljIHtcbiAgY29uc3RydWN0b3IoY2xpZW50KSB7XG4gICAgdGhpcy5jbGllbnQgICA9IGNsaWVudDtcbiAgICB0aGlzLnRyYXZlbGVkID0gbmV3IFRyYXZlbGVkKGNsaWVudCk7XG4gICAgdGhpcy5ib29rZWQgPSBuZXcgQm9va2VkKGNsaWVudCk7XG4gICAgdGhpcy5idXNpZXN0UGVyaW9kID0gbmV3IEJ1c2llc3RQZXJpb2QoY2xpZW50KTtcbiAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFpclRyYWZmaWM7XG4iXX0=
{
"name": "amadeus",
"version": "3.3.0",
"version": "4.0.0",
"description": "Node library for the Amadeus travel APIs",

@@ -5,0 +5,0 @@ "main": "lib/amadeus.js",

@@ -38,6 +38,9 @@ # Amadeus Node SDK

amadeus.referenceData.urls.checkinLinks.get({
airlineCode: 'BA'
amadeus.shopping.flightOffersSearch.get({
originLocationCode: 'SYD',
destinationLocationCode: 'BKK',
departureDate: '2020-08-01',
adults: '2'
}).then(function(response){
console.log(response.data[0].href);
console.log(response.data);
}).catch(function(responseError){

@@ -206,9 +209,2 @@ console.log(responseError.code);

// Flight Low-fare Search
amadeus.shopping.flightOffers.get({
origin : 'NYC',
destination : 'MAD',
departureDate : '2020-08-01'
})
// Flight Offers Search

@@ -237,2 +233,68 @@ amadeus.shopping.flightOffersSearch.get({

// Flight Create Orders
// To book the flight-offer(s) suggested by flightOffersSearch API
// and create a flight-order with travelers' information
amadeus.shopping.flightOffersSearch.get({
originLocationCode: 'SYD',
destinationLocationCode: 'BKK',
departureDate: '2020-08-01',
adults: '1'
}).then(function(response){
return amadeus.booking.flightOrders.post(
JSON.stringify({
'type': 'flight-order',
'flightOffers': response.flightOffers,
'travelers_info': []
})
);
}).then(function(response){
console.log(response.data);
}).catch(function(responseError){
console.log(responseError);
});
// Flight Offers Price
amadeus.shopping.flightOffers.get({
origin: 'MAD',
destination: 'NYC',
departureDate: '2020-08-01'
}).then(function(response){
return amadeus.shopping.flightOffers.pricing.post(
JSON.stringify({
'data': {
'type': 'flight-offers-pricing',
'flightOffers': response.data
}
})
)
}).then(function(response){
console.log(response.data);
}).catch(function(responseError){
console.log(responseError);
});
// Flight SeatMap Display
// To retrieve the seat map of each flight included
// in flight offers for MAD-NYC flight on 2020-08-01
amadeus.shopping.flightOffers.get({
origin: 'MAD',
destination: 'NYC',
departureDate: '2020-08-01'
}).then(function(response){
return amadeus.shopping.seatmaps.post(
JSON.stringify({
'data': response.data
})
);
}).then(function(response){
console.log(response.data);
}).catch(function(responseError){
console.log(responseError);
});
// To retrieve the seat map for flight order with ID 'XXX'
amadeus.shopping.seatmaps.get({
'flight-orderId': 'XXX'
});
// Flight Checkin Links

@@ -264,17 +326,2 @@ amadeus.referenceData.urls.checkinLinks.get({

// Flight Most Searched Destinations
// Which were the most searched flight destinations from Madrid in August 2017?
amadeus.travel.analytics.airTraffic.searched.get({
originCityCode : 'MAD',
searchPeriod : '2017-08',
marketCountryCode : 'ES'
})
// How many people in Spain searched for a trip from Madrid to New-York in September 2017?
amadeus.travel.analytics.airTraffic.searchedByDestination.get({
originCityCode : 'MAD',
destinationCityCode : 'NYC',
searchPeriod : '2017-08',
marketCountryCode : 'ES'
})
// Flight Most Booked Destinations

@@ -299,2 +346,15 @@ amadeus.travel.analytics.airTraffic.booked.get({

// Trip Parser API
// To submit a new job
amadeus.travel.tripParserJobs().post(
JSON.stringify({
'type': 'trip-parser-job',
'content': 'base64String'
})
)
// To check status of the job with ID 'XXX'
amadeus.travel.tripParserJobs('XXX').get()
// To get the results of the job with ID 'XXX'
amadeus.travel.tripParserJobs('XXX').result.get()
// Hotel Search API

@@ -312,2 +372,20 @@ // Get list of hotels by city code

// Retrieve flight order with ID 'XXX'. This ID comes from the
// Flight Create Orders API, which is a temporary ID in test environment.
amadeus.booking.flightOrder('XXX').get()
// Cancel flight order with ID 'XXX'. This ID comes from the
// Flight Create Orders API, which is a temporary ID in test environment.
amadeus.booking.flightOrder('XXX').delete()
// Hotel Booking API
amadeus.booking.hotelBookings.post(
JSON.stringify({
'offerId': 'XXX',
'guests': [],
'payments': []
}
)
)
// Points of Interest

@@ -314,0 +392,0 @@ // What are the popular places in Barcelona (based a geo location and a radius)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc