3131 */
3232public class FlightOrders {
3333 private Amadeus client ;
34- private static final String FlightOrdersUrl = "/v1/booking/flight-orders" ;
34+ private static final String FLIGHT_ORDERS_URL = "/v1/booking/flight-orders" ;
3535
3636 /**
3737 * Constructor.
@@ -90,7 +90,7 @@ private JsonArray buildFlightOffersJSON(FlightOfferSearch[] flightOffers) {
9090 * @throws ResponseException when an exception occurs
9191 */
9292 public FlightOrder post (JsonObject body ) throws ResponseException {
93- Response response = client .post (FlightOrdersUrl , body );
93+ Response response = client .post (FLIGHT_ORDERS_URL , body );
9494 return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
9595 }
9696
@@ -107,7 +107,7 @@ public FlightOrder post(JsonObject body) throws ResponseException {
107107 * @throws ResponseException when an exception occurs
108108 */
109109 public FlightOrder post (String body ) throws ResponseException {
110- Response response = client .post (FlightOrdersUrl , body );
110+ Response response = client .post (FLIGHT_ORDERS_URL , body );
111111 return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
112112 }
113113
@@ -141,7 +141,7 @@ public FlightOrder post(FlightOfferSearch[] flightOffersSearches,
141141 JsonObject jsonObject = new JsonObject ();
142142 jsonObject .add ("data" , typeObject );
143143
144- Response response = client .post (FlightOrdersUrl , jsonObject );
144+ Response response = client .post (FLIGHT_ORDERS_URL , jsonObject );
145145 return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
146146 }
147147
@@ -195,7 +195,7 @@ public FlightOrder post(FlightPrice flightPrice,
195195 JsonObject jsonObject = new JsonObject ();
196196 jsonObject .add ("data" , typeObject );
197197
198- Response response = client .post (FlightOrdersUrl , jsonObject );
198+ Response response = client .post (FLIGHT_ORDERS_URL , jsonObject );
199199 return (FlightOrder ) Resource .fromObject (response , FlightOrder .class );
200200 }
201201
0 commit comments