forked from amadeus4dev/amadeus-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlightOfferSearch.java
More file actions
245 lines (200 loc) · 6.16 KB
/
FlightOfferSearch.java
File metadata and controls
245 lines (200 loc) · 6.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
package com.amadeus.resources;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.ToString;
/**
* An Airline object as returned by the Airline Code LookUp API.
* @see com.amadeus.shopping.FlightOffersSearch#get()
*/
@ToString
public class FlightOfferSearch extends Resource {
private @Getter String type;
private @Getter String id;
private @Getter String source;
private @Getter boolean instantTicketingRequired;
private @Getter boolean disablePricing;
private @Getter boolean nonHomogeneous;
private @Getter boolean oneWay;
private @Getter boolean paymentCardRequired;
private @Getter String lastTicketingDate;
private @Getter int numberOfBookableSeats;
private @Getter Itinerary[] itineraries;
private @Getter SearchPrice price;
private @Getter PricingOptions pricingOptions;
private @Getter String[] validatingAirlineCodes;
private @Getter TravelerPricing[] travelerPricings;
private @Getter String choiceProbability;
private @Getter FareRules fareRules;
protected FlightOfferSearch() {}
@ToString
public class Itinerary {
private @Getter String duration;
private @Getter SearchSegment[] segments;
protected Itinerary() {}
}
@ToString
public class SearchSegment {
private @Getter AirportInfo departure;
private @Getter AirportInfo arrival;
private @Getter String carrierCode;
private @Getter String number;
private @Getter Aircraft aircraft;
private @Getter OperatingFlight operating;
private @Getter String duration;
private @Getter FlightStop[] stops;
private @Getter String id;
private @Getter int numberOfStops;
private @Getter boolean blacklistedInEU;
private @Getter Co2Emissions[] co2Emissions;
protected SearchSegment() {}
}
@ToString
public class OperatingFlight {
private @Getter String carrierCode;
protected OperatingFlight() {}
}
@ToString
public class FlightStop {
private @Getter String iataCode;
private @Getter String duration;
private @Getter String arrivalAt;
private @Getter String departureAt;
protected FlightStop() {}
}
@ToString
public class Co2Emissions {
private @Getter int weight;
private @Getter String weightUnit;
private @Getter String cabin;
protected Co2Emissions() {}
}
@ToString
public class AirportInfo {
private @Getter String iataCode;
private @Getter String terminal;
private @Getter String at;
protected AirportInfo() {}
}
@ToString
public class Aircraft {
private @Getter String code;
protected Aircraft() {}
}
@ToString
public class SearchPrice {
private @Getter String currency;
private @Getter String total;
private @Getter String base;
private @Getter Fee[] fees;
private @Getter String grandTotal;
private @Getter Tax[] taxes;
private @Getter String refundableTaxes;
private @Getter String margin;
private @Getter String billingCurrency;
private @Getter AdditionalService[] additionalServices;
protected SearchPrice() {}
}
@ToString
public class Fee {
private @Getter String amount;
private @Getter String type;
protected Fee() {}
}
@ToString
public class Tax {
private @Getter String amount;
private @Getter String code;
protected Tax() {}
}
@ToString
public class AdditionalService {
private @Getter String amount;
private @Getter String type;
protected AdditionalService() {}
}
@ToString
public class PricingOptions {
private @Getter boolean includedCheckedBagsOnly;
private @Getter String[] fareType;
private @Getter String[] corporateCodes;
private @Getter boolean refundableFare;
private @Getter boolean noRestrictionFare;
private @Getter boolean noPenaltyFare;
}
@ToString
public class TravelerPricing {
private @Getter String travelerId;
private @Getter String fareOption;
private @Getter String travelerType;
private @Getter String associatedAdultId;
private @Getter SearchPrice price;
private @Getter FareDetailsBySegment[] fareDetailsBySegment;
protected TravelerPricing() {}
}
@ToString
public class FareDetailsBySegment {
private @Getter String segmentId;
private @Getter String cabin;
private @Getter String fareBasis;
private @Getter String brandedFare;
private @Getter String brandedFareLabel;
@SerializedName("class")
private @Getter String segmentClass;
private @Getter boolean isAllotment;
private @Getter AllotmentDetails allotmentDetails;
private @Getter String sliceDiceIndicator;
private @Getter BaggageAllowance includedCheckedBags;
private @Getter AdditionalServiceRequest additionalServices;
private @Getter Amenity[] amenities;
protected FareDetailsBySegment() {}
}
@ToString
public class AllotmentDetails {
private @Getter String tourName;
private @Getter String tourReference;
protected AllotmentDetails() {}
}
@ToString
public class BaggageAllowance {
private @Getter int quantity;
private @Getter int weight;
private @Getter String weightUnit;
protected BaggageAllowance() {}
}
@ToString
public class AdditionalServiceRequest {
private @Getter BaggageAllowance chargeableCheckedBags;
private @Getter String chargeableSeatNumber;
private @Getter String[] otherServices;
protected AdditionalServiceRequest() {}
}
@ToString
public class Amenity {
private @Getter String code;
private @Getter String description;
private @Getter Boolean isChargeable;
private @Getter String amenityType;
protected Amenity() {}
}
@ToString
public class FareRules {
private @Getter String currency;
private @Getter TermAndCondition[] rules;
protected FareRules() {}
}
@ToString
public class TermAndCondition {
private @Getter String category;
private @Getter String circumstances;
private @Getter boolean notApplicable;
private @Getter String maxPenaltyAmount;
private @Getter Description[] descriptions;
protected TermAndCondition() {}
}
@ToString
public class Description {
private @Getter String descriptionType;
private @Getter String text;
protected Description() {}
}
}