Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Inconsistency in API - FlightOrders vs HotelBookings #213

Description

@steve-donovan

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 {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions