amadeus-java icon indicating copy to clipboard operation
amadeus-java copied to clipboard

Inconsistency in API - FlightOrders vs HotelBookings

Open steve-donovan opened this issue 3 years ago • 0 comments

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 {

steve-donovan avatar Sep 23 '22 13:09 steve-donovan