Skip to content

Commit

Permalink
Merge pull request #203 from amadeus4dev/release9.1.0
Browse files Browse the repository at this point in the history
Release 9.1.0
  • Loading branch information
tsolakoua authored Dec 11, 2023
2 parents 05794ac + 09bebf1 commit b3efb5f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 9.1.0 - 2023-12-11
Add support for additional parameters with [Flight Offers Price API](https://developers.amadeus.com/self-service/category/flights/api-doc/flight-offers-price)

## 9.0.0 - 2023-09-06
Decommissioned Travel Restrictions API v2

Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ amadeus.shopping.flightOffersSearch.get({

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

// Flight Offers Price
amadeus.shopping.flightOffersSearch.get({
Expand All @@ -227,6 +227,10 @@ amadeus.shopping.flightOffersSearch.get({
console.log(responseError);
});

// Flight Offers Price with additional parameters
// for example: check additional baggage options
amadeus.shopping.flightOffers.pricing.post(JSON.stringify(body),{include: 'bags'})

// Flight Create Orders
// To book the flight-offer(s) returned by the Flight Offers Price
// and create a flight-order with travelers' information.
Expand Down Expand Up @@ -272,10 +276,10 @@ amadeus.shopping.seatmaps.get({
});

// Flight Availabilities Search
amadeus.shopping.availability.flightAvailabilities.post(body);
amadeus.shopping.availability.flightAvailabilities.post(JSON.stringify((body));

// Branded Fares Upsell
amadeus.shopping.flightOffers.upselling.post(body);
amadeus.shopping.flightOffers.upselling.post(JSON.stringify(body));

// Flight Choice Prediction
amadeus.shopping.flightOffersSearch.get({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amadeus",
"version": "9.0.0",
"version": "9.1.0",
"description": "Node library for the Amadeus travel APIs",
"main": "lib/amadeus.js",
"scripts": {
Expand Down

0 comments on commit b3efb5f

Please sign in to comment.