Skip to content

Commit b3efb5f

Browse files
authored
Merge pull request #203 from amadeus4dev/release9.1.0
Release 9.1.0
2 parents 05794ac + 09bebf1 commit b3efb5f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## 9.1.0 - 2023-12-11
3+
Add support for additional parameters with [Flight Offers Price API](https://developers.amadeus.com/self-service/category/flights/api-doc/flight-offers-price)
4+
25
## 9.0.0 - 2023-09-06
36
Decommissioned Travel Restrictions API v2
47

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ amadeus.shopping.flightOffersSearch.get({
204204

205205
// Flight Offers Search POST
206206
// A full example can be found at https://github.com/amadeus4dev/amadeus-code-examples
207-
amadeus.shopping.flightOffersSearch.post(body)
207+
amadeus.shopping.flightOffersSearch.post(JSON.stringify(body))
208208

209209
// Flight Offers Price
210210
amadeus.shopping.flightOffersSearch.get({
@@ -227,6 +227,10 @@ amadeus.shopping.flightOffersSearch.get({
227227
console.log(responseError);
228228
});
229229

230+
// Flight Offers Price with additional parameters
231+
// for example: check additional baggage options
232+
amadeus.shopping.flightOffers.pricing.post(JSON.stringify(body),{include: 'bags'})
233+
230234
// Flight Create Orders
231235
// To book the flight-offer(s) returned by the Flight Offers Price
232236
// and create a flight-order with travelers' information.
@@ -272,10 +276,10 @@ amadeus.shopping.seatmaps.get({
272276
});
273277

274278
// Flight Availabilities Search
275-
amadeus.shopping.availability.flightAvailabilities.post(body);
279+
amadeus.shopping.availability.flightAvailabilities.post(JSON.stringify((body));
276280

277281
// Branded Fares Upsell
278-
amadeus.shopping.flightOffers.upselling.post(body);
282+
amadeus.shopping.flightOffers.upselling.post(JSON.stringify(body));
279283

280284
// Flight Choice Prediction
281285
amadeus.shopping.flightOffersSearch.get({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amadeus",
3-
"version": "9.0.0",
3+
"version": "9.1.0",
44
"description": "Node library for the Amadeus travel APIs",
55
"main": "lib/amadeus.js",
66
"scripts": {

0 commit comments

Comments
 (0)