Skip to content

Commit 23b3db5

Browse files
committed
hotel safeplace seatmap locationscore
1 parent 4aaaad6 commit 23b3db5

File tree

4 files changed

+89
-113
lines changed

4 files changed

+89
-113
lines changed

src/main/java/com/amadeus/resources/HotelOffer.java

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,19 @@
99
*/
1010
@ToString
1111
public class HotelOffer extends Resource {
12-
protected HotelOffer() {}
13-
1412
private @Getter String type;
1513
private @Getter Hotel hotel;
1614
private @Getter boolean available;
1715
private @Getter Offer[] offers;
1816

17+
protected HotelOffer() {}
18+
1919
/**
2020
* An HotelOffer-related object as returned by the HotelOffers API.
2121
* @see com.amadeus.shopping.HotelOffers#get()
2222
*/
2323
@ToString
2424
public class Hotel {
25-
protected Hotel() {}
26-
2725
private @Getter String type;
2826
private @Getter String hotelId;
2927
private @Getter String chainCode;
@@ -40,6 +38,8 @@ protected Hotel() {}
4038
private @Getter HotelDistance hotelDistance;
4139
private @Getter AddressType address;
4240
private @Getter HotelContact contact;
41+
42+
protected Hotel() {}
4343
}
4444

4545
/**
@@ -48,8 +48,6 @@ protected Hotel() {}
4848
*/
4949
@ToString
5050
public class Offer extends Resource {
51-
protected Offer() {}
52-
5351
private @Getter String type;
5452
private @Getter String id;
5553
private @Getter Integer roomQuantity;
@@ -63,6 +61,8 @@ protected Offer() {}
6361
private @Getter Guests guests;
6462
private @Getter HotelPrice price;
6563
private @Getter PolicyDetails policies;
64+
65+
protected Offer() {}
6666
}
6767

6868
/**
@@ -71,11 +71,11 @@ protected Offer() {}
7171
*/
7272
@ToString
7373
public class HotelDistance {
74-
protected HotelDistance() {}
75-
7674
private @Getter String description;
7775
private @Getter double distance;
7876
private @Getter String distanceUnit;
77+
78+
protected HotelDistance() {}
7979
}
8080

8181
/**
@@ -84,10 +84,10 @@ protected HotelDistance() {}
8484
*/
8585
@ToString
8686
public class RateFamily {
87-
protected RateFamily() {}
88-
8987
private @Getter String code;
9088
private @Getter String type;
89+
90+
protected RateFamily() {}
9191
}
9292

9393
/**
@@ -96,11 +96,11 @@ protected RateFamily() {}
9696
*/
9797
@ToString
9898
public class Commission {
99-
protected Commission() {}
100-
10199
private @Getter String percentage;
102100
private @Getter String amount;
103101
private @Getter TextWithLanguageType description;
102+
103+
protected Commission() {}
104104
}
105105

106106
/**
@@ -109,11 +109,11 @@ protected Commission() {}
109109
*/
110110
@ToString
111111
public class RoomDetails {
112-
protected RoomDetails() {}
113-
114112
private @Getter String type;
115113
private @Getter EstimatedRoomType typeEstimated;
116114
private @Getter TextWithLanguageType description;
115+
116+
protected RoomDetails() {}
117117
}
118118

119119
/**
@@ -122,11 +122,11 @@ protected RoomDetails() {}
122122
*/
123123
@ToString
124124
public class EstimatedRoomType {
125-
protected EstimatedRoomType() {}
126-
127125
private @Getter String category;
128126
private @Getter Integer beds;
129127
private @Getter String bedType;
128+
129+
protected EstimatedRoomType() {}
130130
}
131131

132132
/**
@@ -135,13 +135,13 @@ protected EstimatedRoomType() {}
135135
*/
136136
@ToString
137137
public class HotelPrice {
138-
protected HotelPrice() {}
139-
140138
private @Getter String currency;
141139
private @Getter String total;
142140
private @Getter String base;
143141
private @Getter HotelTax[] taxes;
144142
private @Getter PriceVariations variations;
143+
144+
protected HotelPrice() {}
145145
}
146146

147147
/**
@@ -150,8 +150,6 @@ protected HotelPrice() {}
150150
*/
151151
@ToString
152152
public class HotelTax {
153-
protected HotelTax() {}
154-
155153
private @Getter String currency;
156154
private @Getter String amount;
157155
private @Getter String code;
@@ -160,6 +158,8 @@ protected HotelTax() {}
160158
private @Getter String description;
161159
private @Getter String pricingFrequency;
162160
private @Getter String pricingMode;
161+
162+
protected HotelTax() {}
163163
}
164164

165165
/**
@@ -168,10 +168,10 @@ protected HotelTax() {}
168168
*/
169169
@ToString
170170
public class PriceVariations {
171-
protected PriceVariations() {}
172-
173171
private @Getter BaseTotalAmount average;
174172
private @Getter PriceVariation[] changes;
173+
174+
protected PriceVariations() {}
175175
}
176176

177177
/**
@@ -180,12 +180,12 @@ protected PriceVariations() {}
180180
*/
181181
@ToString
182182
public class PriceVariation {
183-
protected PriceVariation() {}
184-
185183
private @Getter String startDate;
186184
private @Getter String endDate;
187185
private @Getter String base;
188186
private @Getter String total;
187+
188+
protected PriceVariation() {}
189189
}
190190

191191
/**
@@ -194,10 +194,10 @@ protected PriceVariation() {}
194194
*/
195195
@ToString
196196
public class BaseTotalAmount {
197-
protected BaseTotalAmount() {}
198-
199197
private @Getter String base;
200198
private @Getter String total;
199+
200+
protected BaseTotalAmount() {}
201201
}
202202

203203
/**
@@ -206,10 +206,10 @@ protected BaseTotalAmount() {}
206206
*/
207207
@ToString
208208
public class Guests {
209-
protected Guests() {}
210-
211209
private @Getter Integer adults;
212210
private @Getter Integer[] childAges;
211+
212+
protected Guests() {}
213213
}
214214

215215
/**
@@ -218,10 +218,10 @@ protected Guests() {}
218218
*/
219219
@ToString
220220
public class TextWithLanguageType {
221-
protected TextWithLanguageType() {}
222-
223221
private @Getter String lang;
224222
private @Getter String text;
223+
224+
protected TextWithLanguageType() {}
225225
}
226226

227227
/**
@@ -230,10 +230,10 @@ protected TextWithLanguageType() {}
230230
*/
231231
@ToString
232232
public class MediaURI {
233-
protected MediaURI() {}
234-
235233
private @Getter String uri;
236234
private @Getter String category;
235+
236+
protected MediaURI() {}
237237
}
238238

239239
/**
@@ -242,13 +242,13 @@ protected MediaURI() {}
242242
*/
243243
@ToString
244244
public class AddressType {
245-
protected AddressType() {}
246-
247245
private @Getter String[] lines;
248246
private @Getter String postalCode;
249247
private @Getter String cityName;
250248
private @Getter String countryCode;
251249
private @Getter String stateCode;
250+
251+
protected AddressType() {}
252252
}
253253

254254
/**
@@ -257,11 +257,11 @@ protected AddressType() {}
257257
*/
258258
@ToString
259259
public class HotelContact {
260-
protected HotelContact() {}
261-
262260
private @Getter String phone;
263261
private @Getter String fax;
264262
private @Getter String email;
263+
264+
protected HotelContact() {}
265265
}
266266

267267
/**
@@ -270,14 +270,14 @@ protected HotelContact() {}
270270
*/
271271
@ToString
272272
public class PolicyDetails {
273-
protected PolicyDetails() {}
274-
275273
private @Getter GuaranteePolicy guarantee;
276274
private @Getter GuaranteePolicy deposit;
277275
private @Getter GuaranteePolicy prepay;
278276
private @Getter GuaranteePolicy holdTime;
279277
private @Getter CancellationPolicy cancellation;
280278
private @Getter CheckInOutPolicy checkInOut;
279+
280+
protected PolicyDetails() {}
281281
}
282282

283283
/**
@@ -286,13 +286,12 @@ protected PolicyDetails() {}
286286
*/
287287
@ToString
288288
public class CheckInOutPolicy {
289-
290-
protected CheckInOutPolicy() {}
291-
292289
private @Getter String checkIn;
293290
private @Getter TextWithLanguageType checkInDescription;
294291
private @Getter String checkOut;
295292
private @Getter TextWithLanguageType checkOutDescription;
293+
294+
protected CheckInOutPolicy() {}
296295
}
297296

298297
/**
@@ -301,12 +300,12 @@ protected CheckInOutPolicy() {}
301300
*/
302301
@ToString
303302
public class GuaranteePolicy {
304-
protected GuaranteePolicy() {}
305-
306303
private @Getter String amount;
307304
private @Getter String deadline;
308305
private @Getter TextWithLanguageType description;
309306
private @Getter PaymentPolicy acceptedPayments;
307+
308+
protected GuaranteePolicy() {}
310309
}
311310

312311
/**
@@ -315,14 +314,14 @@ protected GuaranteePolicy() {}
315314
*/
316315
@ToString
317316
public class CancellationPolicy {
318-
protected CancellationPolicy() {}
319-
320317
private @Getter String type;
321318
private @Getter String amount;
322319
private @Getter Integer numberOfNights;
323320
private @Getter String percentage;
324321
private @Getter String deadline;
325322
private @Getter TextWithLanguageType description;
323+
324+
protected CancellationPolicy() {}
326325
}
327326

328327
/**
@@ -331,9 +330,9 @@ protected CancellationPolicy() {}
331330
*/
332331
@ToString
333332
public class PaymentPolicy {
334-
protected PaymentPolicy() {}
335-
336333
private @Getter String[] creditCards;
337334
private @Getter String method;
335+
336+
protected PaymentPolicy() {}
338337
}
339338
}

src/main/java/com/amadeus/resources/SafePlace.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
*/
1010
@ToString
1111
public class SafePlace extends Resource {
12-
protected SafePlace() {}
13-
1412
private @Getter String type;
1513
private @Getter String id;
1614
private @Getter String subType;
1715
private @Getter String name;
1816
private @Getter GeoCode geoCode;
1917
private @Getter SafetyScores safetyScores;
2018

19+
protected SafePlace() {}
20+
2121

2222
/**
2323
* An SafePlace-related object as returned by the SafePlace API.
2424
* @see com.amadeus.safety.safety_rated_locations.SafePlace#get()
2525
*/
2626
@ToString
2727
public class GeoCode {
28-
protected GeoCode() {}
29-
3028
private @Getter double latitude;
3129
private @Getter double longitude;
30+
31+
protected GeoCode() {}
3232
}
3333

3434
/**
@@ -37,8 +37,6 @@ protected GeoCode() {}
3737
*/
3838
@ToString
3939
public class SafetyScores {
40-
protected SafetyScores() {}
41-
4240
private @Getter int women;
4341
private @Getter int physicalHarm;
4442
private @Getter int theft;
@@ -47,6 +45,8 @@ protected SafetyScores() {}
4745
private @Getter int medical;
4846
private @Getter int overall;
4947

48+
protected SafetyScores() {}
49+
5050
}
5151

5252
}

0 commit comments

Comments
 (0)