Comparing version 2.0.0 to 3.0.0
# Changelog | ||
## 3.0.0 - 2019-01-22 | ||
## Hotel Search v2 has been deployed (Hotel Search v1 is now deprecated) | ||
### General | ||
* Remove the support for Hotel Search v1 | ||
* URLs for all three endpoints have been simplified for ease-of-use and consistency | ||
Find Hotels | ||
### Find Hotels - 1st endpoint | ||
* The parameter `hotels` has been renamed to `hotelIds` | ||
### View Hotel Rooms - 2nd endpoint | ||
* Update from `amadeus.shopping.hotel('IALONCHO').hotelOffers.get()` to `amadeus.shopping.hotelOffersByHotel.get({hotelId : 'IALONCHO'})` | ||
* Now get all images in ‘View Hotels Rooms’ endpoint using the view parameter as `FULL_ALL_IMAGES` | ||
### View Room Details - 3rd endpoint | ||
* Updated from `amadeus.shopping.hotel('IALONCHO').offer('XXX').get()` to `amadeus.shopping.hotelOffer('XXX').get()` | ||
* Image category added under Media in the response | ||
* Hotel distance added in the response | ||
* Response now refers to the common HotelOffer object model | ||
## 2.0.0 - 2018-10-12 | ||
@@ -4,0 +22,0 @@ |
@@ -25,6 +25,10 @@ 'use strict'; | ||
var _hotel = require('./shopping/hotel'); | ||
var _hotel_offers_by_hotel = require('./shopping/hotel_offers_by_hotel'); | ||
var _hotel2 = _interopRequireDefault(_hotel); | ||
var _hotel_offers_by_hotel2 = _interopRequireDefault(_hotel_offers_by_hotel); | ||
var _hotel_offer = require('./shopping/hotel_offer'); | ||
var _hotel_offer2 = _interopRequireDefault(_hotel_offer); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -50,2 +54,4 @@ | ||
* @property {HotelOffers} hotel_offers | ||
* @property {HotelOffer} hotel_offer | ||
* @property {HotelOffersByHotel} hotel_offers_by_hotel | ||
*/ | ||
@@ -61,9 +67,10 @@ var Shopping = function () { | ||
this.hotelOffers = new _hotel_offers2.default(client); | ||
this.hotelOffersByHotel = new _hotel_offers_by_hotel2.default(client); | ||
} | ||
/** | ||
* Loads a namespaced path for a specific hotel with a specific hotel ID | ||
* Loads a namespaced path for a specific offer ID | ||
* | ||
* @param {number} [hotelId] The ID of the hotel to search for | ||
* @return {Hotel} | ||
* @param {string} [offerId] The ID of the offer for a dedicated hotel | ||
* @return {HotelOffer} | ||
**/ | ||
@@ -73,5 +80,5 @@ | ||
_createClass(Shopping, [{ | ||
key: 'hotel', | ||
value: function hotel(hotelId) { | ||
return new _hotel2.default(this.client, hotelId); | ||
key: 'hotelOffer', | ||
value: function hotelOffer(offerId) { | ||
return new _hotel_offer2.default(this.client, offerId); | ||
} | ||
@@ -85,2 +92,2 @@ }]); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvc2hvcHBpbmcuanMiXSwibmFtZXMiOlsiU2hvcHBpbmciLCJjbGllbnQiLCJmbGlnaHREZXN0aW5hdGlvbnMiLCJGbGlnaHREZXN0aW5hdGlvbnMiLCJmbGlnaHRPZmZlcnMiLCJGbGlnaHRPZmZlcnMiLCJmbGlnaHREYXRlcyIsIkZsaWdodERhdGVzIiwiaG90ZWxPZmZlcnMiLCJIb3RlbE9mZmVycyIsImhvdGVsSWQiLCJIb3RlbCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7OztBQUVBOzs7Ozs7Ozs7Ozs7Ozs7OztJQWlCTUEsUTtBQUNKLG9CQUFZQyxNQUFaLEVBQW9CO0FBQUE7O0FBQ2xCLFNBQUtBLE1BQUwsR0FBMEJBLE1BQTFCO0FBQ0EsU0FBS0Msa0JBQUwsR0FBMEIsSUFBSUMsNkJBQUosQ0FBdUJGLE1BQXZCLENBQTFCO0FBQ0EsU0FBS0csWUFBTCxHQUEwQixJQUFJQyx1QkFBSixDQUFpQkosTUFBakIsQ0FBMUI7QUFDQSxTQUFLSyx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X0= |
@@ -13,3 +13,3 @@ 'use strict'; | ||
* A namespaced client for the | ||
* `/v1/shopping/hotel-offers` endpoints | ||
* `/v2/shopping/hotel-offers` endpoints | ||
* | ||
@@ -41,3 +41,3 @@ * Access via the {@link Amadeus} object | ||
* search around. Example: 13.3835 | ||
* @param {string} params.hotels Comma separated list of Amadeus hotel | ||
* @param {string} params.hotelIds Comma separated list of Amadeus hotel | ||
* codes to request. Example: RTPAR001 | ||
@@ -61,3 +61,3 @@ * @return {Promise.<Response,ResponseError>} a Promise | ||
return this.client.get('/v1/shopping/hotel-offers', params); | ||
return this.client.get('/v2/shopping/hotel-offers', params); | ||
} | ||
@@ -71,2 +71,2 @@ }]); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvc2hvcHBpbmcvaG90ZWxfb2ZmZXJzLmpzIl0sIm5hbWVzIjpbIkhvdGVsT2ZmZXJzIiwiY2xpZW50IiwicGFyYW1zIiwiZ2V0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7Ozs7SUFhTUEsVztBQUNKLHVCQUFZQyxNQUFaLEVBQW9CO0FBQUE7O0FBQ2xCLFNBQUtBLE1BQUwsR0FBY0EsTUFBZDtBQUNEOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzBCQXFCaUI7QUFBQSxVQUFiQyxNQUFhLHVFQUFKLEVBQUk7O0FBQ2YsYUFBTyxLQUFLRCxNQUFMLENBQVlFLEdBQVosQ0FBZ0IsMkJBQWhCLEVBQTZDRCxNQUE3QyxDQUFQO0FBQ0Q7Ozs7OztrQkFHWUYsVyIsImZpbGUiOiJob3RlbF9vZmZlcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgbmFtZXNwYWNlZC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gIGNvZGVzIHRvIHJlcXVlc3QuIEV4YW1wbGU6IFJUUEFSMDAxXG4gICAqIEByZXR1cm4ge1Byb21pc2UuPFJlc3BvbnNlLFJlc3BvbnNlRXJyb3I+fSBhIFByb21pc2VcbiAgICpcbiAgICogU2VhcmNoIGZvciBob3RlbHMgaW4gUGFyaXNcbiAgICpcbiAgICogYGBganNcbiAgICogYW1hZGV1cy5zaG9wcGluZy5ob3RlbE9mZmVycy5nZXQoe1xuICAgKiAgIGNpdHlDb2RlOiAnUEFSJ1xuICAgKiB9KVxuICAgKiBgYGBcbiAgICovXG4gIGdldChwYXJhbXMgPSB7fSkge1xuICAgIHJldHVybiB0aGlzLmNsaWVudC5nZXQoJy92Mi9zaG9wcGluZy9ob3RlbC1vZmZlcnMnLCBwYXJhbXMpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEhvdGVsT2ZmZXJzO1xuIl19 |
{ | ||
"name": "amadeus", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Node library for the Amadeus travel APIs", | ||
@@ -5,0 +5,0 @@ "main": "lib/amadeus.js", |
@@ -97,3 +97,3 @@ # Amadeus Node SDK | ||
For example, `GET /v2/reference-data/urls/checkin-links?airline=BA` would be: | ||
For example, `GET /v2/reference-data/urls/checkin-links?airlineCode=BA` would be: | ||
@@ -106,6 +106,6 @@ ```js | ||
For example, `GET /v1/shopping/hotel/123/offers/234` would be: | ||
For example, `GET /v1/shopping/hotelOffer/123/` would be: | ||
```js | ||
amadeus.shopping.hotel(123).offer(234).get(...); | ||
amadeus.shopping.hotelOffer('123').get(...); | ||
``` | ||
@@ -229,6 +229,6 @@ | ||
// Airport Nearest Relevant Airport | ||
// Airport Nearest Relevant Airport (for London) | ||
amadeus.referenceData.locations.airports.get({ | ||
longitude : 49.000, | ||
latitude : 2.55 | ||
longitude : 0.1278, | ||
latitude : 51.5074 | ||
}) | ||
@@ -276,5 +276,7 @@ | ||
// Get list of offers for a specific hotel | ||
amadeus.shopping.hotel('SMPARCOL').hotelOffers.get() | ||
// Confirm the availability of a specific offer for a specific hotel | ||
amadeus.shopping.hotel('SMPARCOL').offer('4BA070CE929E135B3268A9F2D0C51E9D4A6CF318BA10485322FA2C7E78C7852E').get() | ||
amadeus.shopping.hotelOffersByHotel.get({ | ||
hotelId : 'XKPARC12' | ||
}) | ||
// Confirm the availability of a specific offer id | ||
amadeus.shopping.hotelOffer('XXX').get() | ||
``` | ||
@@ -281,0 +283,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
242706
39
2671
299