3131public class Pricing {
3232
3333 private Amadeus client ;
34- private static final String pricingUrl = "/v1/shopping/flight-offers/pricing" ;
34+ private static final String PRICING_URL = "/v1/shopping/flight-offers/pricing" ;
3535
3636 /**
3737 * Constructor.
@@ -90,7 +90,7 @@ private JsonArray buildPaymentJSON(FlightPayment flightPayment) {
9090 * @throws ResponseException when an exception occurs
9191 */
9292 public FlightPrice post (JsonObject body , Params params ) throws ResponseException {
93- Response response = client .post (pricingUrl , params , body );
93+ Response response = client .post (PRICING_URL , params , body );
9494 return (FlightPrice ) Resource .fromObject (response , FlightPrice .class );
9595 }
9696
@@ -111,7 +111,7 @@ public FlightPrice post(JsonObject body, Params params) throws ResponseException
111111 * @throws ResponseException when an exception occurs
112112 */
113113 public FlightPrice post (String body , Params params ) throws ResponseException {
114- Response response = client .post (pricingUrl , params , body );
114+ Response response = client .post (PRICING_URL , params , body );
115115 return (FlightPrice ) Resource .fromObject (response , FlightPrice .class );
116116 }
117117
@@ -131,7 +131,7 @@ public FlightPrice post(String body, Params params) throws ResponseException {
131131 * @throws ResponseException when an exception occurs
132132 */
133133 public FlightPrice post (JsonObject body ) throws ResponseException {
134- Response response = client .post (pricingUrl , body );
134+ Response response = client .post (PRICING_URL , body );
135135 return (FlightPrice ) Resource .fromObject (response , FlightPrice .class );
136136 }
137137
@@ -151,7 +151,7 @@ public FlightPrice post(JsonObject body) throws ResponseException {
151151 * @throws ResponseException when an exception occurs
152152 */
153153 public FlightPrice post (String body ) throws ResponseException {
154- Response response = client .post (pricingUrl , body );
154+ Response response = client .post (PRICING_URL , body );
155155 return (FlightPrice ) Resource .fromObject (response , FlightPrice .class );
156156 }
157157
@@ -228,9 +228,9 @@ public FlightPrice post(FlightOfferSearch[] flightOffersSearches,
228228 // Is it a call with param or without param?
229229 if (params != null ) {
230230 response = client .post (
231- pricingUrl , params , jsonObject );
231+ PRICING_URL , params , jsonObject );
232232 } else {
233- response = client .post (pricingUrl , jsonObject );
233+ response = client .post (PRICING_URL , jsonObject );
234234 }
235235 return (FlightPrice ) Resource .fromObject (response , FlightPrice .class );
236236 }
@@ -288,7 +288,7 @@ public FlightPrice post(FlightOfferSearch[] flightOffersSearches,
288288 JsonObject jsonObject = new JsonObject ();
289289 jsonObject .add ("data" , typeObject );
290290
291- Response response = client .post (pricingUrl , jsonObject );
291+ Response response = client .post (PRICING_URL , jsonObject );
292292 return (FlightPrice ) Resource .fromObject (response , FlightPrice .class );
293293 }
294294
0 commit comments