Skip to content

Commit 33641c7

Browse files
author
Anthony Roux
committed
Releasing version 3 of the Java SDK
1 parent 225bfea commit 33641c7

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# Changelog
2+
## 3.0.0 - 2019-01-22
3+
4+
## Hotel Search v2 has been deployed (Hotel Search v1 is now deprecated)
5+
6+
### General
7+
* Remove the support for Hotel Search v1
8+
* URLs for all three endpoints have been simplified for ease-of-use and consistency
9+
Find Hotels
10+
### Find Hotels - 1st endpoint
11+
* The parameter `hotels` has been renamed to `hotelIds`
12+
### View Hotel Rooms - 2nd endpoint
13+
* Update from `amadeus.shopping.hotel("BGLONBGB").hotelOffers.get();` to `amadeus.shopping.hotelOffersByHotel.get(Params.with("hotelId", "BGLONBGB"));`
14+
* Now get all images in ‘View Hotels Rooms’ endpoint using the view parameter as `FULL_ALL_IMAGES`
15+
### View Room Details - 3rd endpoint
16+
* Updated from `amadeus.shopping.hotel("BGLONBGB").offer("XXX").get();` to `amadeus.shopping..hotelOffer("XXX").get();`
17+
* Image category added under Media in the response
18+
* Hotel distance added in the response
19+
* Response now refers to the common HotelOffer object model
220

321
## 2.0.0 - 2018-10-16
422

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ You can install the SDK via Maven or Gradle.
3434
<dependency>
3535
<groupId>com.amadeus</groupId>
3636
<artifactId>amadeus-java</artifactId>
37-
<version>2.0.0</version>
37+
<version>3.0.0</version>
3838
</dependency>
3939
```
4040
#### Gradle
4141
```js
42-
compile "com.amadeus:amadeus-java:2.0.0"
42+
compile "com.amadeus:amadeus-java:3.0.0"
4343
```
4444

4545
## Getting Started
@@ -281,10 +281,9 @@ Period[] busiestPeriods = amadeus.travel.analytics.airTraffic.busiestPeriod.get(
281281
HotelOffer[] offers = amadeus.shopping.hotelOffers.get(Params
282282
.with("cityCode", "MAD"));
283283
// Get list of offers for a specific hotel
284-
HotelOffer hotelOffer = amadeus.shopping.hotelOffersByHotel.get(Params.with("hotelId", "BGLONBGB");
284+
HotelOffer hotelOffer = amadeus.shopping.hotelOffersByHotel.get(Params.with("hotelId", "BGLONBGB"));
285285
// Confirm the availability of a specific offer
286-
HotelOffer offer = amadeus.shopping
287-
.hotelOffer("4BA070CE929E135B3268A9F2D0C51E9D4A6CF318BA10485322FA2C7E78C7852E").get();
286+
HotelOffer offer = amadeus.shopping.hotelOffer("4BA070CE929E135B3268A9F2D0C51E9D4A6CF318BA10485322FA2C7E78C7852E").get();
288287
```
289288

290289
## Development & Contributing

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.amadeus
2-
VERSION_NAME=2.0.0
2+
VERSION_NAME=3.0.0
33

44
POM_URL=https://github.com/amadeus4dev/amadeus-java
55
POM_SCM_URL[email protected]:amadeus4dev/amadeus-java.git

src/main/java/com/amadeus/Amadeus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class Amadeus extends HTTPClient {
2525
/**
2626
* The API version.
2727
*/
28-
public static final String VERSION = "2.0.0";
28+
public static final String VERSION = "3.0.0";
2929

3030
/**
3131
* <p>

0 commit comments

Comments
 (0)