amadeus-java
amadeus-java copied to clipboard
Inconsistency in API - FlightOrders vs HotelBookings
Description
HotelBookings only offers 2 methods, both JSON based, whereas FlightOrders offers a more friendly and convenient set of methods.
public FlightOrder post(JsonObject body) throws ResponseException {
public FlightOrder post(String body) throws ResponseException {
public FlightOrder post(FlightOfferSearch[] flightOffersSearches, FlightOrder.Traveler[] travelers) throws ResponseException {
public FlightOrder post(FlightOfferSearch flightOffersSearch, FlightOrder.Traveler[] travelers) throws ResponseException {
public FlightOrder post(FlightPrice flightPrice, FlightOrder.Traveler[] travelers) throws ResponseException {
VS
public HotelBooking[] post(JsonObject body) throws ResponseException {
public HotelBooking[] post(String body) throws ResponseException {