31
31
*/
32
32
public class FlightOrders {
33
33
private Amadeus client ;
34
- private static final String flightOrdersUrl = "/v1/booking/flight-orders" ;
34
+ private static final String FlightOrdersUrl = "/v1/booking/flight-orders" ;
35
35
36
36
/**
37
37
* Constructor.
@@ -90,7 +90,7 @@ private JsonArray buildFlightOffersJSON(FlightOfferSearch[] flightOffers) {
90
90
* @throws ResponseException when an exception occurs
91
91
*/
92
92
public FlightOrder post (JsonObject body ) throws ResponseException {
93
- Response response = client .post (flightOrdersUrl , body );
93
+ Response response = client .post (FlightOrdersUrl , body );
94
94
return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
95
95
}
96
96
@@ -107,7 +107,7 @@ public FlightOrder post(JsonObject body) throws ResponseException {
107
107
* @throws ResponseException when an exception occurs
108
108
*/
109
109
public FlightOrder post (String body ) throws ResponseException {
110
- Response response = client .post (flightOrdersUrl , body );
110
+ Response response = client .post (FlightOrdersUrl , body );
111
111
return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
112
112
}
113
113
@@ -141,7 +141,7 @@ public FlightOrder post(FlightOfferSearch[] flightOffersSearches,
141
141
JsonObject jsonObject = new JsonObject ();
142
142
jsonObject .add ("data" , typeObject );
143
143
144
- Response response = client .post (flightOrdersUrl , jsonObject );
144
+ Response response = client .post (FlightOrdersUrl , jsonObject );
145
145
return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
146
146
}
147
147
@@ -195,7 +195,7 @@ public FlightOrder post(FlightPrice flightPrice,
195
195
JsonObject jsonObject = new JsonObject ();
196
196
jsonObject .add ("data" , typeObject );
197
197
198
- Response response = client .post (flightOrdersUrl , jsonObject );
198
+ Response response = client .post (FlightOrdersUrl , jsonObject );
199
199
return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
200
200
}
201
201
0 commit comments