From 3b5e3715885c2659737129d9f8a8a83094a607d5 Mon Sep 17 00:00:00 2001 From: Anna Tsolakou Date: Mon, 27 Apr 2020 17:31:56 +0200 Subject: [PATCH] Release 5.0.0 (#74) * release 5.0.0 * update changelog --- CHANGELOG.md | 11 +++++++++++ README.md | 4 ++-- gradle.properties | 2 +- src/main/java/com/amadeus/Amadeus.java | 2 +- src/test/java/com/amadeus/AmadeusTest.java | 2 +- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9965e235..45a279ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,15 @@ # Changelog +## 5.0.0-2020-04-27 +Add support for the [Flight Choice Prediction v2](https://developers.amadeus.com/self-service/category/air/api-doc/flight-choice-prediction/api-reference) + +The input of Flight Choice Prediction v2 is the result of Flight Offers Search API - in v1 the input was the result of Flight Low-Fare Search + +Add choiceProbability to FlightOfferSearch resource + +Remove support for Flight Low-Fare Search: decommission on May 28, 2020 and mandatory migration to Flight Offers Search + +Remove support for Flight Choice Prediction v1 + ## 4.1.0-2020-04-15 Bug fix - Fix helpers for Flight Create Orders Add new helper methods to ease the use of Flight Booking APIs diff --git a/README.md b/README.md index b782dd6c..4701b58a 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,12 @@ You can install the SDK via Maven or Gradle. com.amadeus amadeus-java - 4.1.0 + 5.0.0 ``` #### Gradle ```js -compile "com.amadeus:amadeus-java:4.1.0" +compile "com.amadeus:amadeus-java:5.0.0" ``` ## Getting Started diff --git a/gradle.properties b/gradle.properties index 6c2d06cb..44e0e250 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.amadeus -VERSION_NAME=4.1.0 +VERSION_NAME=5.0.0 POM_URL=https://github.com/amadeus4dev/amadeus-java POM_SCM_URL=git@github.com:amadeus4dev/amadeus-java.git diff --git a/src/main/java/com/amadeus/Amadeus.java b/src/main/java/com/amadeus/Amadeus.java index 9ff4555c..3a9b94f1 100644 --- a/src/main/java/com/amadeus/Amadeus.java +++ b/src/main/java/com/amadeus/Amadeus.java @@ -25,7 +25,7 @@ public class Amadeus extends HTTPClient { /** * The API version. */ - public static final String VERSION = "4.1.0"; + public static final String VERSION = "5.0.0"; /** *

diff --git a/src/test/java/com/amadeus/AmadeusTest.java b/src/test/java/com/amadeus/AmadeusTest.java index 350f86c3..768b583e 100644 --- a/src/test/java/com/amadeus/AmadeusTest.java +++ b/src/test/java/com/amadeus/AmadeusTest.java @@ -52,7 +52,7 @@ public void testBuilderWithInvalidEnvironment() { }*/ @Test public void testVersion() { - assertEquals("should have a version number", Amadeus.VERSION, "4.1.0"); + assertEquals("should have a version number", Amadeus.VERSION, "5.0.0"); } }