-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'flight_offers_price_update' into flight_offers_price
- Loading branch information
Showing
41 changed files
with
1,705 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ build | |
out | ||
.DS_Store | ||
amadeus-java.iml | ||
Bin/ | ||
Bin/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.amadeus; | ||
|
||
import com.amadeus.airport.predictions.Predictions; | ||
|
||
/** | ||
* <p> | ||
* A namespaced client for the | ||
* <code>/v1/airport</code> endpoints. | ||
* </p> | ||
* | ||
* <p> | ||
* Access via the Amadeus client object. | ||
* </p> | ||
* | ||
* <pre> | ||
* Amadeus amadeus = Amadeus.builder("clientId", "secret").build(); | ||
* amadeus.airport</pre> | ||
* | ||
* @hide | ||
*/ | ||
public class Airport { | ||
/** | ||
* <p> | ||
* A namespaced client for the | ||
* <code>/v1/airport/predictions</code> endpoints. | ||
* </p> | ||
*/ | ||
public Predictions predictions; | ||
|
||
/** | ||
* Constructor. | ||
* @hide | ||
*/ | ||
public Airport(Amadeus client) { | ||
this.predictions = new Predictions(client); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.amadeus; | ||
|
||
import com.amadeus.booking.FlightOrder; | ||
import com.amadeus.booking.FlightOrders; | ||
|
||
public class Booking { | ||
private Amadeus client; | ||
|
||
/** | ||
* <p> | ||
* A namespaced client for the | ||
* <code>/v1/booking/flightOrder</code> endpoints. | ||
* </p> | ||
*/ | ||
public FlightOrder flightOrder; | ||
|
||
/** | ||
* <p> | ||
* A namespaced client for the | ||
* <code>/v1/booking/flightOrders</code> endpoints. | ||
* </p> | ||
*/ | ||
public FlightOrders flightOrders; | ||
|
||
public Booking(Amadeus client) { | ||
this.client = client; | ||
this.flightOrders = new FlightOrders(client); | ||
} | ||
|
||
public FlightOrder flightOrder(String flightOrderId) { | ||
return new FlightOrder(client, flightOrderId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.amadeus; | ||
|
||
import com.amadeus.media.Files; | ||
|
||
/** | ||
* <p> | ||
* A namespaced client for the | ||
* <code>/v2/media</code> endpoints. | ||
* </p> | ||
* | ||
* <p> | ||
* Access via the Amadeus client object. | ||
* </p> | ||
* | ||
* <pre> | ||
* Amadeus amadeus = Amadeus.builder("clientId", "secret").build(); | ||
* amadeus.media;</pre> | ||
* | ||
* @hide | ||
*/ | ||
public class Media { | ||
/** | ||
* <p> | ||
* A namespaced client for the | ||
* <code>/v2/media/files</code> endpoints. | ||
* </p> | ||
*/ | ||
public Files files; | ||
|
||
/** | ||
* Constructor. | ||
* @hide | ||
*/ | ||
public Media(Amadeus client) { | ||
this.files = new Files(client); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.