Skip to content

Commit

Permalink
Merge pull request #268 from amadeus4dev/deco-trip-parser
Browse files Browse the repository at this point in the history
Decommission Trip Parser
  • Loading branch information
tsolakoua authored Oct 1, 2024
2 parents 8e6d788 + 5fcaa5f commit a63429e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 793 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,6 @@ ItineraryPriceMetric[] metrics = amadeus.analytics.itineraryPriceMetrics.get(Par
.and("destinationIataCode", "CDG")
.and("departureDate", "2024-03-21"));

// Trip Parser v3 POST
// body can be a String version of your JSON or a JsonObject or a compatible File object
TripDetail tripDetail = amadeus.travel.tripParser.post(body);

// Airport Routes
Destination[] directDestinations = amadeus.airport.directDestinations.get(Params
.with("departureAirportCode","MAD")
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/com/amadeus/Travel.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.amadeus;

import com.amadeus.travel.Predictions;
import com.amadeus.travel.TripParser;
import com.amadeus.travel.analytics.Analytics;

/**
Expand Down Expand Up @@ -35,13 +34,6 @@ public class Travel {
* </p>
*/
public Predictions predictions;
/**
* <p>
* A namespaced client for the
* <code>/v3/travel/trip-parser</code> endpoints.
* </p>
*/
public TripParser tripParser;

/**
* Constructor.
Expand All @@ -50,6 +42,5 @@ public class Travel {
public Travel(Amadeus client) {
this.analytics = new Analytics(client);
this.predictions = new Predictions(client);
this.tripParser = new TripParser(client);
}
}
Loading

0 comments on commit a63429e

Please sign in to comment.