Skip to content

Inconsistency in API - FlightOrders vs HotelBookings #213

@steve-donovan

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 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions