Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in API - FlightOrders vs HotelBookings #213

Open
steve-donovan opened this issue Sep 23, 2022 · 0 comments
Open

Inconsistency in API - FlightOrders vs HotelBookings #213

steve-donovan opened this issue Sep 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@steve-donovan
Copy link
Contributor

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 {
@tsolakoua tsolakoua added the enhancement New feature or request label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants