From a94d292bb0c1e78641c23e52e9e76411941b9d6c Mon Sep 17 00:00:00 2001 From: Anthony ROUX Date: Wed, 11 Nov 2020 17:17:37 +0100 Subject: [PATCH] prepare release 1.2.0 --- CHANGELOG.md | 6 ++++++ README.md | 20 ++++++++++---------- gradle.properties | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0608240d..5b6d64d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ # Changelog + +## 1.2.0 - 2020-11-11 +Issues #43, #44, #45: +- Fix pagination (previous method was not working properly) +- Add HTTP status code in the APIResult Object + ## 1.1.0 - 2020-08-25 Issues #33, #34, #37, #40: diff --git a/README.md b/README.md index 9cbcb6b4..28b303aa 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ You can install the SDK via Maven or Gradle. com.amadeus amadeus-android - 1.1.0 + 1.2.0 ``` #### Gradle ```kotlin -implementation 'com.amadeus:amadeus-android:1.1.0' +implementation 'com.amadeus:amadeus-android:1.2.0' ``` ## Getting Started @@ -219,8 +219,8 @@ val flightDates = amadeus.shopping.flightDates.get(origin = "MAD", destination = val flightOffersSearches = amadeus.shopping.flightOffersSearch.get( originLocationCode = "SYD", destinationLocationCode = "BKK", - departureDate = "2020-11-01", - returnDate = "2020-11-08", + departureDate = "2021-03-01", + returnDate = "2021-03-08", adults = 2, max = 3) @@ -253,7 +253,7 @@ amadeus.booking.flightOrder(order.data.id).delete() val flightOffersSearches = amadeus.shopping.flightOffersSearch.get( originLocationCode = "SYD", destinationLocationCode = "BKK", - departureDate = "2020-11-01", + departureDate = "2021-03-01", adults = 1, max = 3) @@ -332,7 +332,7 @@ val pointOfInterest = amadeus.referenceData.locations.pointsOfInterest("9CB40CB5 // What's the likelihood flights from this airport will leave on time? val airportOnTime = amadeus.airport.predictions.onTime.get( airportCode = "BOS", - date = "2020-12-01") + date = "2021-12-01") // What's the likelihood of a given flight to be delayed? val flightDelay = amadeus.travel.predictions.flightDelay.get( @@ -351,9 +351,9 @@ val flightDelay = amadeus.travel.predictions.flightDelay.get( val tripPurpose = amadeus.travel.predictions.tripPurpose.get( originLocationCode = "NYC", destinationLocationCode = "MAD", - departureDate = "2020-12-01", - returnDate = "2020-12-12", - searchDate = "2020-05-20") + departureDate = "2021-12-01", + returnDate = "2021-12-12", + searchDate = "2021-05-20") // AI Generated Photos val generatedPhoto = amadeus.media.files.generatedPhotos.get("MOUNTAIN") @@ -363,7 +363,7 @@ val seatMaps = amadeus.shopping.seatMaps.get(flightOfferId = "eJzTd9f3NjIJdzUGAA // What is the the seat map of a given flight? // The body can be a String version of your JSON or a Object -val flightOffers = amadeus.get("https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=MAD&destinationLocationCode=MUC&departureDate=2020-10-22&adults=1&max=1") +val flightOffers = amadeus.get("https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=MAD&destinationLocationCode=MUC&departureDate=2021-03-22&adults=1&max=1") val seatMaps = amadeus.shopping.seatMaps.post(flightOffers) ``` diff --git a/gradle.properties b/gradle.properties index e05cfc4e..a53863bb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ # publication properties -VERSION=1.1.0 +VERSION=1.2.0 GROUP=com.amadeus POM_SCM_URL=git@github.com:amadeus4dev/amadeus-android.git