Skip to content

Commit a63429e

Browse files
authored
Merge pull request #268 from amadeus4dev/deco-trip-parser
Decommission Trip Parser
2 parents 8e6d788 + 5fcaa5f commit a63429e

File tree

8 files changed

+1
-793
lines changed

8 files changed

+1
-793
lines changed

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@ ItineraryPriceMetric[] metrics = amadeus.analytics.itineraryPriceMetrics.get(Par
358358
.and("destinationIataCode", "CDG")
359359
.and("departureDate", "2024-03-21"));
360360

361-
// Trip Parser v3 POST
362-
// body can be a String version of your JSON or a JsonObject or a compatible File object
363-
TripDetail tripDetail = amadeus.travel.tripParser.post(body);
364-
365361
// Airport Routes
366362
Destination[] directDestinations = amadeus.airport.directDestinations.get(Params
367363
.with("departureAirportCode","MAD")

src/main/java/com/amadeus/Travel.java

-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.amadeus;
22

33
import com.amadeus.travel.Predictions;
4-
import com.amadeus.travel.TripParser;
54
import com.amadeus.travel.analytics.Analytics;
65

76
/**
@@ -35,13 +34,6 @@ public class Travel {
3534
* </p>
3635
*/
3736
public Predictions predictions;
38-
/**
39-
* <p>
40-
* A namespaced client for the
41-
* <code>/v3/travel/trip-parser</code> endpoints.
42-
* </p>
43-
*/
44-
public TripParser tripParser;
4537

4638
/**
4739
* Constructor.
@@ -50,6 +42,5 @@ public class Travel {
5042
public Travel(Amadeus client) {
5143
this.analytics = new Analytics(client);
5244
this.predictions = new Predictions(client);
53-
this.tripParser = new TripParser(client);
5445
}
5546
}

0 commit comments

Comments
 (0)