Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: generated/googleapis/lib/qpxexpress/v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/pubsub/v1.dart ('k') | generated/googleapis/lib/reseller/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.qpxExpress.v1; 3 library googleapis.qpxExpress.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client qpxExpress/v1'; 15 const core.String USER_AGENT = 'dart-api-client qpxExpress/v1';
16 16
17 /** Finds the least expensive flights between an origin and a destination. */ 17 /// Finds the least expensive flights between an origin and a destination.
18 class QpxExpressApi { 18 class QpxExpressApi {
19
20 final commons.ApiRequester _requester; 19 final commons.ApiRequester _requester;
21 20
22 TripsResourceApi get trips => new TripsResourceApi(_requester); 21 TripsResourceApi get trips => new TripsResourceApi(_requester);
23 22
24 QpxExpressApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "qpxExpress/v1/trips/"}) : 23 QpxExpressApi(http.Client client,
25 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 24 {core.String rootUrl: "https://www.googleapis.com/",
25 core.String servicePath: "qpxExpress/v1/trips/"})
26 : _requester =
27 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
26 } 28 }
27 29
28
29 class TripsResourceApi { 30 class TripsResourceApi {
30 final commons.ApiRequester _requester; 31 final commons.ApiRequester _requester;
31 32
32 TripsResourceApi(commons.ApiRequester client) : 33 TripsResourceApi(commons.ApiRequester client) : _requester = client;
33 _requester = client;
34 34
35 /** 35 /// Returns a list of flights.
36 * Returns a list of flights. 36 ///
37 * 37 /// [request] - The metadata request object.
38 * [request] - The metadata request object. 38 ///
39 * 39 /// Request parameters:
40 * Request parameters: 40 ///
41 * 41 /// Completes with a [TripsSearchResponse].
42 * Completes with a [TripsSearchResponse]. 42 ///
43 * 43 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
44 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 44 /// an error.
45 * error. 45 ///
46 * 46 /// If the used [http.Client] completes with an error when making a REST
47 * If the used [http.Client] completes with an error when making a REST call, 47 /// call, this method will complete with the same error.
48 * this method will complete with the same error.
49 */
50 async.Future<TripsSearchResponse> search(TripsSearchRequest request) { 48 async.Future<TripsSearchResponse> search(TripsSearchRequest request) {
51 var _url = null; 49 var _url = null;
52 var _queryParams = new core.Map(); 50 var _queryParams = new core.Map();
53 var _uploadMedia = null; 51 var _uploadMedia = null;
54 var _uploadOptions = null; 52 var _uploadOptions = null;
55 var _downloadOptions = commons.DownloadOptions.Metadata; 53 var _downloadOptions = commons.DownloadOptions.Metadata;
56 var _body = null; 54 var _body = null;
57 55
58 if (request != null) { 56 if (request != null) {
59 _body = convert.JSON.encode((request).toJson()); 57 _body = convert.JSON.encode((request).toJson());
60 } 58 }
61 59
62 _url = 'search'; 60 _url = 'search';
63 61
64 var _response = _requester.request(_url, 62 var _response = _requester.request(_url, "POST",
65 "POST", 63 body: _body,
66 body: _body, 64 queryParams: _queryParams,
67 queryParams: _queryParams, 65 uploadOptions: _uploadOptions,
68 uploadOptions: _uploadOptions, 66 uploadMedia: _uploadMedia,
69 uploadMedia: _uploadMedia, 67 downloadOptions: _downloadOptions);
70 downloadOptions: _downloadOptions);
71 return _response.then((data) => new TripsSearchResponse.fromJson(data)); 68 return _response.then((data) => new TripsSearchResponse.fromJson(data));
72 } 69 }
73
74 } 70 }
75 71
72 /// The make, model, and type of an aircraft.
73 class AircraftData {
74 /// The aircraft code. For example, for a Boeing 777 the code would be 777.
75 core.String code;
76 76
77 /// Identifies this as an aircraftData object. Value: the fixed string
78 /// qpxexpress#aircraftData
79 core.String kind;
77 80
78 /** The make, model, and type of an aircraft. */ 81 /// The name of an aircraft, for example Boeing 777.
79 class AircraftData {
80 /**
81 * The aircraft code. For example, for a Boeing 777 the code would be 777.
82 */
83 core.String code;
84 /**
85 * Identifies this as an aircraftData object. Value: the fixed string
86 * qpxexpress#aircraftData
87 */
88 core.String kind;
89 /** The name of an aircraft, for example Boeing 777. */
90 core.String name; 82 core.String name;
91 83
92 AircraftData(); 84 AircraftData();
93 85
94 AircraftData.fromJson(core.Map _json) { 86 AircraftData.fromJson(core.Map _json) {
95 if (_json.containsKey("code")) { 87 if (_json.containsKey("code")) {
96 code = _json["code"]; 88 code = _json["code"];
97 } 89 }
98 if (_json.containsKey("kind")) { 90 if (_json.containsKey("kind")) {
99 kind = _json["kind"]; 91 kind = _json["kind"];
100 } 92 }
101 if (_json.containsKey("name")) { 93 if (_json.containsKey("name")) {
102 name = _json["name"]; 94 name = _json["name"];
103 } 95 }
104 } 96 }
105 97
106 core.Map<core.String, core.Object> toJson() { 98 core.Map<core.String, core.Object> toJson() {
107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 99 final core.Map<core.String, core.Object> _json =
100 new core.Map<core.String, core.Object>();
108 if (code != null) { 101 if (code != null) {
109 _json["code"] = code; 102 _json["code"] = code;
110 } 103 }
111 if (kind != null) { 104 if (kind != null) {
112 _json["kind"] = kind; 105 _json["kind"] = kind;
113 } 106 }
114 if (name != null) { 107 if (name != null) {
115 _json["name"] = name; 108 _json["name"] = name;
116 } 109 }
117 return _json; 110 return _json;
118 } 111 }
119 } 112 }
120 113
121 /** An airport. */ 114 /// An airport.
122 class AirportData { 115 class AirportData {
123 /** 116 /// The city code an airport is located in. For example, for JFK airport,
124 * The city code an airport is located in. For example, for JFK airport, this 117 /// this is NYC.
125 * is NYC.
126 */
127 core.String city; 118 core.String city;
128 /** An airport's code. For example, for Boston Logan airport, this is BOS. */ 119
120 /// An airport's code. For example, for Boston Logan airport, this is BOS.
129 core.String code; 121 core.String code;
130 /** 122
131 * Identifies this as an airport object. Value: the fixed string 123 /// Identifies this as an airport object. Value: the fixed string
132 * qpxexpress#airportData. 124 /// qpxexpress#airportData.
133 */
134 core.String kind; 125 core.String kind;
135 /** 126
136 * The name of an airport. For example, for airport BOS the name is "Boston 127 /// The name of an airport. For example, for airport BOS the name is "Boston
137 * Logan International". 128 /// Logan International".
138 */
139 core.String name; 129 core.String name;
140 130
141 AirportData(); 131 AirportData();
142 132
143 AirportData.fromJson(core.Map _json) { 133 AirportData.fromJson(core.Map _json) {
144 if (_json.containsKey("city")) { 134 if (_json.containsKey("city")) {
145 city = _json["city"]; 135 city = _json["city"];
146 } 136 }
147 if (_json.containsKey("code")) { 137 if (_json.containsKey("code")) {
148 code = _json["code"]; 138 code = _json["code"];
149 } 139 }
150 if (_json.containsKey("kind")) { 140 if (_json.containsKey("kind")) {
151 kind = _json["kind"]; 141 kind = _json["kind"];
152 } 142 }
153 if (_json.containsKey("name")) { 143 if (_json.containsKey("name")) {
154 name = _json["name"]; 144 name = _json["name"];
155 } 145 }
156 } 146 }
157 147
158 core.Map<core.String, core.Object> toJson() { 148 core.Map<core.String, core.Object> toJson() {
159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 149 final core.Map<core.String, core.Object> _json =
150 new core.Map<core.String, core.Object>();
160 if (city != null) { 151 if (city != null) {
161 _json["city"] = city; 152 _json["city"] = city;
162 } 153 }
163 if (code != null) { 154 if (code != null) {
164 _json["code"] = code; 155 _json["code"] = code;
165 } 156 }
166 if (kind != null) { 157 if (kind != null) {
167 _json["kind"] = kind; 158 _json["kind"] = kind;
168 } 159 }
169 if (name != null) { 160 if (name != null) {
170 _json["name"] = name; 161 _json["name"] = name;
171 } 162 }
172 return _json; 163 return _json;
173 } 164 }
174 } 165 }
175 166
176 /** Information about an item of baggage. */ 167 /// Information about an item of baggage.
177 class BagDescriptor { 168 class BagDescriptor {
178 /** Provides the commercial name for an optional service. */ 169 /// Provides the commercial name for an optional service.
179 core.String commercialName; 170 core.String commercialName;
180 /** How many of this type of bag will be checked on this flight. */ 171
172 /// How many of this type of bag will be checked on this flight.
181 core.int count; 173 core.int count;
182 /** A description of the baggage. */ 174
175 /// A description of the baggage.
183 core.List<core.String> description; 176 core.List<core.String> description;
184 /** 177
185 * Identifies this as a baggage object. Value: the fixed string 178 /// Identifies this as a baggage object. Value: the fixed string
186 * qpxexpress#bagDescriptor. 179 /// qpxexpress#bagDescriptor.
187 */
188 core.String kind; 180 core.String kind;
189 /** The standard IATA subcode used to identify this optional service. */ 181
182 /// The standard IATA subcode used to identify this optional service.
190 core.String subcode; 183 core.String subcode;
191 184
192 BagDescriptor(); 185 BagDescriptor();
193 186
194 BagDescriptor.fromJson(core.Map _json) { 187 BagDescriptor.fromJson(core.Map _json) {
195 if (_json.containsKey("commercialName")) { 188 if (_json.containsKey("commercialName")) {
196 commercialName = _json["commercialName"]; 189 commercialName = _json["commercialName"];
197 } 190 }
198 if (_json.containsKey("count")) { 191 if (_json.containsKey("count")) {
199 count = _json["count"]; 192 count = _json["count"];
200 } 193 }
201 if (_json.containsKey("description")) { 194 if (_json.containsKey("description")) {
202 description = _json["description"]; 195 description = _json["description"];
203 } 196 }
204 if (_json.containsKey("kind")) { 197 if (_json.containsKey("kind")) {
205 kind = _json["kind"]; 198 kind = _json["kind"];
206 } 199 }
207 if (_json.containsKey("subcode")) { 200 if (_json.containsKey("subcode")) {
208 subcode = _json["subcode"]; 201 subcode = _json["subcode"];
209 } 202 }
210 } 203 }
211 204
212 core.Map<core.String, core.Object> toJson() { 205 core.Map<core.String, core.Object> toJson() {
213 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 206 final core.Map<core.String, core.Object> _json =
207 new core.Map<core.String, core.Object>();
214 if (commercialName != null) { 208 if (commercialName != null) {
215 _json["commercialName"] = commercialName; 209 _json["commercialName"] = commercialName;
216 } 210 }
217 if (count != null) { 211 if (count != null) {
218 _json["count"] = count; 212 _json["count"] = count;
219 } 213 }
220 if (description != null) { 214 if (description != null) {
221 _json["description"] = description; 215 _json["description"] = description;
222 } 216 }
223 if (kind != null) { 217 if (kind != null) {
224 _json["kind"] = kind; 218 _json["kind"] = kind;
225 } 219 }
226 if (subcode != null) { 220 if (subcode != null) {
227 _json["subcode"] = subcode; 221 _json["subcode"] = subcode;
228 } 222 }
229 return _json; 223 return _json;
230 } 224 }
231 } 225 }
232 226
233 /** 227 /// Information about a carrier (ie. an airline, bus line, railroad, etc) that
234 * Information about a carrier (ie. an airline, bus line, railroad, etc) that 228 /// might be useful to display to an end-user.
235 * might be useful to display to an end-user.
236 */
237 class CarrierData { 229 class CarrierData {
238 /** 230 /// The IATA designator of a carrier (airline, etc). For example, for
239 * The IATA designator of a carrier (airline, etc). For example, for American 231 /// American Airlines, the code is AA.
240 * Airlines, the code is AA.
241 */
242 core.String code; 232 core.String code;
243 /** 233
244 * Identifies this as a kind of carrier (ie. an airline, bus line, railroad, 234 /// Identifies this as a kind of carrier (ie. an airline, bus line, railroad,
245 * etc). Value: the fixed string qpxexpress#carrierData. 235 /// etc). Value: the fixed string qpxexpress#carrierData.
246 */
247 core.String kind; 236 core.String kind;
248 /** The long, full name of a carrier. For example: American Airlines. */ 237
238 /// The long, full name of a carrier. For example: American Airlines.
249 core.String name; 239 core.String name;
250 240
251 CarrierData(); 241 CarrierData();
252 242
253 CarrierData.fromJson(core.Map _json) { 243 CarrierData.fromJson(core.Map _json) {
254 if (_json.containsKey("code")) { 244 if (_json.containsKey("code")) {
255 code = _json["code"]; 245 code = _json["code"];
256 } 246 }
257 if (_json.containsKey("kind")) { 247 if (_json.containsKey("kind")) {
258 kind = _json["kind"]; 248 kind = _json["kind"];
259 } 249 }
260 if (_json.containsKey("name")) { 250 if (_json.containsKey("name")) {
261 name = _json["name"]; 251 name = _json["name"];
262 } 252 }
263 } 253 }
264 254
265 core.Map<core.String, core.Object> toJson() { 255 core.Map<core.String, core.Object> toJson() {
266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 256 final core.Map<core.String, core.Object> _json =
257 new core.Map<core.String, core.Object>();
267 if (code != null) { 258 if (code != null) {
268 _json["code"] = code; 259 _json["code"] = code;
269 } 260 }
270 if (kind != null) { 261 if (kind != null) {
271 _json["kind"] = kind; 262 _json["kind"] = kind;
272 } 263 }
273 if (name != null) { 264 if (name != null) {
274 _json["name"] = name; 265 _json["name"] = name;
275 } 266 }
276 return _json; 267 return _json;
277 } 268 }
278 } 269 }
279 270
280 /** 271 /// Information about a city that might be useful to an end-user; typically the
281 * Information about a city that might be useful to an end-user; typically the 272 /// city of an airport.
282 * city of an airport.
283 */
284 class CityData { 273 class CityData {
285 /** The IATA character ID of a city. For example, for Boston this is BOS. */ 274 /// The IATA character ID of a city. For example, for Boston this is BOS.
286 core.String code; 275 core.String code;
287 /** 276
288 * The two-character country code of the country the city is located in. For 277 /// The two-character country code of the country the city is located in. For
289 * example, US for the United States of America. 278 /// example, US for the United States of America.
290 */
291 core.String country; 279 core.String country;
292 /** 280
293 * Identifies this as a city, typically with one or more airports. Value: the 281 /// Identifies this as a city, typically with one or more airports. Value:
294 * fixed string qpxexpress#cityData. 282 /// the fixed string qpxexpress#cityData.
295 */
296 core.String kind; 283 core.String kind;
297 /** The full name of a city. An example would be: New York. */ 284
285 /// The full name of a city. An example would be: New York.
298 core.String name; 286 core.String name;
299 287
300 CityData(); 288 CityData();
301 289
302 CityData.fromJson(core.Map _json) { 290 CityData.fromJson(core.Map _json) {
303 if (_json.containsKey("code")) { 291 if (_json.containsKey("code")) {
304 code = _json["code"]; 292 code = _json["code"];
305 } 293 }
306 if (_json.containsKey("country")) { 294 if (_json.containsKey("country")) {
307 country = _json["country"]; 295 country = _json["country"];
308 } 296 }
309 if (_json.containsKey("kind")) { 297 if (_json.containsKey("kind")) {
310 kind = _json["kind"]; 298 kind = _json["kind"];
311 } 299 }
312 if (_json.containsKey("name")) { 300 if (_json.containsKey("name")) {
313 name = _json["name"]; 301 name = _json["name"];
314 } 302 }
315 } 303 }
316 304
317 core.Map<core.String, core.Object> toJson() { 305 core.Map<core.String, core.Object> toJson() {
318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 306 final core.Map<core.String, core.Object> _json =
307 new core.Map<core.String, core.Object>();
319 if (code != null) { 308 if (code != null) {
320 _json["code"] = code; 309 _json["code"] = code;
321 } 310 }
322 if (country != null) { 311 if (country != null) {
323 _json["country"] = country; 312 _json["country"] = country;
324 } 313 }
325 if (kind != null) { 314 if (kind != null) {
326 _json["kind"] = kind; 315 _json["kind"] = kind;
327 } 316 }
328 if (name != null) { 317 if (name != null) {
329 _json["name"] = name; 318 _json["name"] = name;
330 } 319 }
331 return _json; 320 return _json;
332 } 321 }
333 } 322 }
334 323
335 /** 324 /// Detailed information about components found in the solutions of this
336 * Detailed information about components found in the solutions of this 325 /// response, including a trip's airport, city, taxes, airline, and aircraft.
337 * response, including a trip's airport, city, taxes, airline, and aircraft.
338 */
339 class Data { 326 class Data {
340 /** The aircraft that is flying between an origin and destination. */ 327 /// The aircraft that is flying between an origin and destination.
341 core.List<AircraftData> aircraft; 328 core.List<AircraftData> aircraft;
342 /** The airport of an origin or destination. */ 329
330 /// The airport of an origin or destination.
343 core.List<AirportData> airport; 331 core.List<AirportData> airport;
344 /** 332
345 * The airline carrier of the aircraft flying between an origin and 333 /// The airline carrier of the aircraft flying between an origin and
346 * destination. Allowed values are IATA carrier codes. 334 /// destination. Allowed values are IATA carrier codes.
347 */
348 core.List<CarrierData> carrier; 335 core.List<CarrierData> carrier;
349 /** The city that is either the origin or destination of part of a trip. */ 336
337 /// The city that is either the origin or destination of part of a trip.
350 core.List<CityData> city; 338 core.List<CityData> city;
351 /** 339
352 * Identifies this as QPX Express response resource, including a trip's 340 /// Identifies this as QPX Express response resource, including a trip's
353 * airport, city, taxes, airline, and aircraft. Value: the fixed string 341 /// airport, city, taxes, airline, and aircraft. Value: the fixed string
354 * qpxexpress#data. 342 /// qpxexpress#data.
355 */
356 core.String kind; 343 core.String kind;
357 /** The taxes due for flying between an origin and a destination. */ 344
345 /// The taxes due for flying between an origin and a destination.
358 core.List<TaxData> tax; 346 core.List<TaxData> tax;
359 347
360 Data(); 348 Data();
361 349
362 Data.fromJson(core.Map _json) { 350 Data.fromJson(core.Map _json) {
363 if (_json.containsKey("aircraft")) { 351 if (_json.containsKey("aircraft")) {
364 aircraft = _json["aircraft"].map((value) => new AircraftData.fromJson(valu e)).toList(); 352 aircraft = _json["aircraft"]
353 .map((value) => new AircraftData.fromJson(value))
354 .toList();
365 } 355 }
366 if (_json.containsKey("airport")) { 356 if (_json.containsKey("airport")) {
367 airport = _json["airport"].map((value) => new AirportData.fromJson(value)) .toList(); 357 airport = _json["airport"]
358 .map((value) => new AirportData.fromJson(value))
359 .toList();
368 } 360 }
369 if (_json.containsKey("carrier")) { 361 if (_json.containsKey("carrier")) {
370 carrier = _json["carrier"].map((value) => new CarrierData.fromJson(value)) .toList(); 362 carrier = _json["carrier"]
363 .map((value) => new CarrierData.fromJson(value))
364 .toList();
371 } 365 }
372 if (_json.containsKey("city")) { 366 if (_json.containsKey("city")) {
373 city = _json["city"].map((value) => new CityData.fromJson(value)).toList() ; 367 city =
368 _json["city"].map((value) => new CityData.fromJson(value)).toList();
374 } 369 }
375 if (_json.containsKey("kind")) { 370 if (_json.containsKey("kind")) {
376 kind = _json["kind"]; 371 kind = _json["kind"];
377 } 372 }
378 if (_json.containsKey("tax")) { 373 if (_json.containsKey("tax")) {
379 tax = _json["tax"].map((value) => new TaxData.fromJson(value)).toList(); 374 tax = _json["tax"].map((value) => new TaxData.fromJson(value)).toList();
380 } 375 }
381 } 376 }
382 377
383 core.Map<core.String, core.Object> toJson() { 378 core.Map<core.String, core.Object> toJson() {
384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 379 final core.Map<core.String, core.Object> _json =
380 new core.Map<core.String, core.Object>();
385 if (aircraft != null) { 381 if (aircraft != null) {
386 _json["aircraft"] = aircraft.map((value) => (value).toJson()).toList(); 382 _json["aircraft"] = aircraft.map((value) => (value).toJson()).toList();
387 } 383 }
388 if (airport != null) { 384 if (airport != null) {
389 _json["airport"] = airport.map((value) => (value).toJson()).toList(); 385 _json["airport"] = airport.map((value) => (value).toJson()).toList();
390 } 386 }
391 if (carrier != null) { 387 if (carrier != null) {
392 _json["carrier"] = carrier.map((value) => (value).toJson()).toList(); 388 _json["carrier"] = carrier.map((value) => (value).toJson()).toList();
393 } 389 }
394 if (city != null) { 390 if (city != null) {
395 _json["city"] = city.map((value) => (value).toJson()).toList(); 391 _json["city"] = city.map((value) => (value).toJson()).toList();
396 } 392 }
397 if (kind != null) { 393 if (kind != null) {
398 _json["kind"] = kind; 394 _json["kind"] = kind;
399 } 395 }
400 if (tax != null) { 396 if (tax != null) {
401 _json["tax"] = tax.map((value) => (value).toJson()).toList(); 397 _json["tax"] = tax.map((value) => (value).toJson()).toList();
402 } 398 }
403 return _json; 399 return _json;
404 } 400 }
405 } 401 }
406 402
407 /** 403 /// Complete information about a fare used in the solution to a low-fare search
408 * Complete information about a fare used in the solution to a low-fare search 404 /// query. In the airline industry a fare is a price an airline charges for
409 * query. In the airline industry a fare is a price an airline charges for 405 /// one-way travel between two points. A fare typically contains a carrier
410 * one-way travel between two points. A fare typically contains a carrier code, 406 /// code, two city codes, a price, and a fare basis. (A fare basis is a
411 * two city codes, a price, and a fare basis. (A fare basis is a one-to-eight 407 /// one-to-eight character alphanumeric code used to identify a fare.)
412 * character alphanumeric code used to identify a fare.)
413 */
414 class FareInfo { 408 class FareInfo {
415 core.String basisCode; 409 core.String basisCode;
416 /** 410
417 * The carrier of the aircraft or other vehicle commuting between two points. 411 /// The carrier of the aircraft or other vehicle commuting between two
418 */ 412 /// points.
419 core.String carrier; 413 core.String carrier;
420 /** The city code of the city the trip ends at. */ 414
415 /// The city code of the city the trip ends at.
421 core.String destination; 416 core.String destination;
422 /** A unique identifier of the fare. */ 417
418 /// A unique identifier of the fare.
423 core.String id; 419 core.String id;
424 /** 420
425 * Identifies this as a fare object. Value: the fixed string 421 /// Identifies this as a fare object. Value: the fixed string
426 * qpxexpress#fareInfo. 422 /// qpxexpress#fareInfo.
427 */
428 core.String kind; 423 core.String kind;
429 /** The city code of the city the trip begins at. */ 424
425 /// The city code of the city the trip begins at.
430 core.String origin; 426 core.String origin;
431 /** 427
432 * Whether this is a private fare, for example one offered only to select 428 /// Whether this is a private fare, for example one offered only to select
433 * customers rather than the general public. 429 /// customers rather than the general public.
434 */
435 core.bool private; 430 core.bool private;
436 431
437 FareInfo(); 432 FareInfo();
438 433
439 FareInfo.fromJson(core.Map _json) { 434 FareInfo.fromJson(core.Map _json) {
440 if (_json.containsKey("basisCode")) { 435 if (_json.containsKey("basisCode")) {
441 basisCode = _json["basisCode"]; 436 basisCode = _json["basisCode"];
442 } 437 }
443 if (_json.containsKey("carrier")) { 438 if (_json.containsKey("carrier")) {
444 carrier = _json["carrier"]; 439 carrier = _json["carrier"];
445 } 440 }
446 if (_json.containsKey("destination")) { 441 if (_json.containsKey("destination")) {
447 destination = _json["destination"]; 442 destination = _json["destination"];
448 } 443 }
449 if (_json.containsKey("id")) { 444 if (_json.containsKey("id")) {
450 id = _json["id"]; 445 id = _json["id"];
451 } 446 }
452 if (_json.containsKey("kind")) { 447 if (_json.containsKey("kind")) {
453 kind = _json["kind"]; 448 kind = _json["kind"];
454 } 449 }
455 if (_json.containsKey("origin")) { 450 if (_json.containsKey("origin")) {
456 origin = _json["origin"]; 451 origin = _json["origin"];
457 } 452 }
458 if (_json.containsKey("private")) { 453 if (_json.containsKey("private")) {
459 private = _json["private"]; 454 private = _json["private"];
460 } 455 }
461 } 456 }
462 457
463 core.Map<core.String, core.Object> toJson() { 458 core.Map<core.String, core.Object> toJson() {
464 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 459 final core.Map<core.String, core.Object> _json =
460 new core.Map<core.String, core.Object>();
465 if (basisCode != null) { 461 if (basisCode != null) {
466 _json["basisCode"] = basisCode; 462 _json["basisCode"] = basisCode;
467 } 463 }
468 if (carrier != null) { 464 if (carrier != null) {
469 _json["carrier"] = carrier; 465 _json["carrier"] = carrier;
470 } 466 }
471 if (destination != null) { 467 if (destination != null) {
472 _json["destination"] = destination; 468 _json["destination"] = destination;
473 } 469 }
474 if (id != null) { 470 if (id != null) {
475 _json["id"] = id; 471 _json["id"] = id;
476 } 472 }
477 if (kind != null) { 473 if (kind != null) {
478 _json["kind"] = kind; 474 _json["kind"] = kind;
479 } 475 }
480 if (origin != null) { 476 if (origin != null) {
481 _json["origin"] = origin; 477 _json["origin"] = origin;
482 } 478 }
483 if (private != null) { 479 if (private != null) {
484 _json["private"] = private; 480 _json["private"] = private;
485 } 481 }
486 return _json; 482 return _json;
487 } 483 }
488 } 484 }
489 485
490 /** 486 /// A flight is a sequence of legs with the same airline carrier and flight
491 * A flight is a sequence of legs with the same airline carrier and flight 487 /// number. (A leg is the smallest unit of travel, in the case of a flight a
492 * number. (A leg is the smallest unit of travel, in the case of a flight a 488 /// takeoff immediately followed by a landing at two set points on a particular
493 * takeoff immediately followed by a landing at two set points on a particular 489 /// carrier with a particular flight number.) The naive view is that a flight
494 * carrier with a particular flight number.) The naive view is that a flight is 490 /// is scheduled travel of an aircraft between two points, with possibly
495 * scheduled travel of an aircraft between two points, with possibly 491 /// intermediate stops, but carriers will frequently list flights that require
496 * intermediate stops, but carriers will frequently list flights that require a 492 /// a change of aircraft between legs.
497 * change of aircraft between legs.
498 */
499 class FlightInfo { 493 class FlightInfo {
500 core.String carrier; 494 core.String carrier;
501 /** The flight number. */ 495
496 /// The flight number.
502 core.String number; 497 core.String number;
503 498
504 FlightInfo(); 499 FlightInfo();
505 500
506 FlightInfo.fromJson(core.Map _json) { 501 FlightInfo.fromJson(core.Map _json) {
507 if (_json.containsKey("carrier")) { 502 if (_json.containsKey("carrier")) {
508 carrier = _json["carrier"]; 503 carrier = _json["carrier"];
509 } 504 }
510 if (_json.containsKey("number")) { 505 if (_json.containsKey("number")) {
511 number = _json["number"]; 506 number = _json["number"];
512 } 507 }
513 } 508 }
514 509
515 core.Map<core.String, core.Object> toJson() { 510 core.Map<core.String, core.Object> toJson() {
516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 511 final core.Map<core.String, core.Object> _json =
512 new core.Map<core.String, core.Object>();
517 if (carrier != null) { 513 if (carrier != null) {
518 _json["carrier"] = carrier; 514 _json["carrier"] = carrier;
519 } 515 }
520 if (number != null) { 516 if (number != null) {
521 _json["number"] = number; 517 _json["number"] = number;
522 } 518 }
523 return _json; 519 return _json;
524 } 520 }
525 } 521 }
526 522
527 /** Information about free baggage allowed on one segment of a trip. */ 523 /// Information about free baggage allowed on one segment of a trip.
528 class FreeBaggageAllowance { 524 class FreeBaggageAllowance {
529 /** 525 /// A representation of a type of bag, such as an ATPCo subcode, Commercial
530 * A representation of a type of bag, such as an ATPCo subcode, Commercial 526 /// Name, or other description.
531 * Name, or other description.
532 */
533 core.List<BagDescriptor> bagDescriptor; 527 core.List<BagDescriptor> bagDescriptor;
534 /** The maximum number of kilos all the free baggage together may weigh. */ 528
529 /// The maximum number of kilos all the free baggage together may weigh.
535 core.int kilos; 530 core.int kilos;
536 /** The maximum number of kilos any one piece of baggage may weigh. */ 531
532 /// The maximum number of kilos any one piece of baggage may weigh.
537 core.int kilosPerPiece; 533 core.int kilosPerPiece;
538 /** 534
539 * Identifies this as free baggage object, allowed on one segment of a trip. 535 /// Identifies this as free baggage object, allowed on one segment of a trip.
540 * Value: the fixed string qpxexpress#freeBaggageAllowance. 536 /// Value: the fixed string qpxexpress#freeBaggageAllowance.
541 */
542 core.String kind; 537 core.String kind;
543 /** The number of free pieces of baggage allowed. */ 538
539 /// The number of free pieces of baggage allowed.
544 core.int pieces; 540 core.int pieces;
545 /** The number of pounds of free baggage allowed. */ 541
542 /// The number of pounds of free baggage allowed.
546 core.int pounds; 543 core.int pounds;
547 544
548 FreeBaggageAllowance(); 545 FreeBaggageAllowance();
549 546
550 FreeBaggageAllowance.fromJson(core.Map _json) { 547 FreeBaggageAllowance.fromJson(core.Map _json) {
551 if (_json.containsKey("bagDescriptor")) { 548 if (_json.containsKey("bagDescriptor")) {
552 bagDescriptor = _json["bagDescriptor"].map((value) => new BagDescriptor.fr omJson(value)).toList(); 549 bagDescriptor = _json["bagDescriptor"]
550 .map((value) => new BagDescriptor.fromJson(value))
551 .toList();
553 } 552 }
554 if (_json.containsKey("kilos")) { 553 if (_json.containsKey("kilos")) {
555 kilos = _json["kilos"]; 554 kilos = _json["kilos"];
556 } 555 }
557 if (_json.containsKey("kilosPerPiece")) { 556 if (_json.containsKey("kilosPerPiece")) {
558 kilosPerPiece = _json["kilosPerPiece"]; 557 kilosPerPiece = _json["kilosPerPiece"];
559 } 558 }
560 if (_json.containsKey("kind")) { 559 if (_json.containsKey("kind")) {
561 kind = _json["kind"]; 560 kind = _json["kind"];
562 } 561 }
563 if (_json.containsKey("pieces")) { 562 if (_json.containsKey("pieces")) {
564 pieces = _json["pieces"]; 563 pieces = _json["pieces"];
565 } 564 }
566 if (_json.containsKey("pounds")) { 565 if (_json.containsKey("pounds")) {
567 pounds = _json["pounds"]; 566 pounds = _json["pounds"];
568 } 567 }
569 } 568 }
570 569
571 core.Map<core.String, core.Object> toJson() { 570 core.Map<core.String, core.Object> toJson() {
572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 571 final core.Map<core.String, core.Object> _json =
572 new core.Map<core.String, core.Object>();
573 if (bagDescriptor != null) { 573 if (bagDescriptor != null) {
574 _json["bagDescriptor"] = bagDescriptor.map((value) => (value).toJson()).to List(); 574 _json["bagDescriptor"] =
575 bagDescriptor.map((value) => (value).toJson()).toList();
575 } 576 }
576 if (kilos != null) { 577 if (kilos != null) {
577 _json["kilos"] = kilos; 578 _json["kilos"] = kilos;
578 } 579 }
579 if (kilosPerPiece != null) { 580 if (kilosPerPiece != null) {
580 _json["kilosPerPiece"] = kilosPerPiece; 581 _json["kilosPerPiece"] = kilosPerPiece;
581 } 582 }
582 if (kind != null) { 583 if (kind != null) {
583 _json["kind"] = kind; 584 _json["kind"] = kind;
584 } 585 }
585 if (pieces != null) { 586 if (pieces != null) {
586 _json["pieces"] = pieces; 587 _json["pieces"] = pieces;
587 } 588 }
588 if (pounds != null) { 589 if (pounds != null) {
589 _json["pounds"] = pounds; 590 _json["pounds"] = pounds;
590 } 591 }
591 return _json; 592 return _json;
592 } 593 }
593 } 594 }
594 595
595 /** 596 /// Information about a leg. (A leg is the smallest unit of travel, in the case
596 * Information about a leg. (A leg is the smallest unit of travel, in the case 597 /// of a flight a takeoff immediately followed by a landing at two set points
597 * of a flight a takeoff immediately followed by a landing at two set points on 598 /// on a particular carrier with a particular flight number.)
598 * a particular carrier with a particular flight number.)
599 */
600 class LegInfo { 599 class LegInfo {
601 /** 600 /// The aircraft (or bus, ferry, railcar, etc) travelling between the two
602 * The aircraft (or bus, ferry, railcar, etc) travelling between the two 601 /// points of this leg.
603 * points of this leg.
604 */
605 core.String aircraft; 602 core.String aircraft;
606 /** 603
607 * The scheduled time of arrival at the destination of the leg, local to the 604 /// The scheduled time of arrival at the destination of the leg, local to the
608 * point of arrival. 605 /// point of arrival.
609 */
610 core.String arrivalTime; 606 core.String arrivalTime;
611 /** 607
612 * Whether you have to change planes following this leg. Only applies to the 608 /// Whether you have to change planes following this leg. Only applies to the
613 * next leg. 609 /// next leg.
614 */
615 core.bool changePlane; 610 core.bool changePlane;
616 /** Duration of a connection following this leg, in minutes. */ 611
612 /// Duration of a connection following this leg, in minutes.
617 core.int connectionDuration; 613 core.int connectionDuration;
618 /** 614
619 * The scheduled departure time of the leg, local to the point of departure. 615 /// The scheduled departure time of the leg, local to the point of departure.
620 */
621 core.String departureTime; 616 core.String departureTime;
622 /** The leg destination as a city and airport. */ 617
618 /// The leg destination as a city and airport.
623 core.String destination; 619 core.String destination;
624 /** The terminal the flight is scheduled to arrive at. */ 620
621 /// The terminal the flight is scheduled to arrive at.
625 core.String destinationTerminal; 622 core.String destinationTerminal;
626 /** The scheduled travelling time from the origin to the destination. */ 623
624 /// The scheduled travelling time from the origin to the destination.
627 core.int duration; 625 core.int duration;
628 /** An identifier that uniquely identifies this leg in the solution. */ 626
627 /// An identifier that uniquely identifies this leg in the solution.
629 core.String id; 628 core.String id;
630 /** 629
631 * Identifies this as a leg object. A leg is the smallest unit of travel, in 630 /// Identifies this as a leg object. A leg is the smallest unit of travel, in
632 * the case of a flight a takeoff immediately followed by a landing at two set 631 /// the case of a flight a takeoff immediately followed by a landing at two
633 * points on a particular carrier with a particular flight number. Value: the 632 /// set points on a particular carrier with a particular flight number.
634 * fixed string qpxexpress#legInfo. 633 /// Value: the fixed string qpxexpress#legInfo.
635 */
636 core.String kind; 634 core.String kind;
637 /** 635
638 * A simple, general description of the meal(s) served on the flight, for 636 /// A simple, general description of the meal(s) served on the flight, for
639 * example: "Hot meal". 637 /// example: "Hot meal".
640 */
641 core.String meal; 638 core.String meal;
642 /** The number of miles in this leg. */ 639
640 /// The number of miles in this leg.
643 core.int mileage; 641 core.int mileage;
644 /** In percent, the published on time performance on this leg. */ 642
643 /// In percent, the published on time performance on this leg.
645 core.int onTimePerformance; 644 core.int onTimePerformance;
646 /** 645
647 * Department of Transportation disclosure information on the actual operator 646 /// Department of Transportation disclosure information on the actual
648 * of a flight in a code share. (A code share refers to a marketing agreement 647 /// operator of a flight in a code share. (A code share refers to a marketing
649 * between two carriers, where one carrier will list in its schedules (and 648 /// agreement between two carriers, where one carrier will list in its
650 * take bookings for) flights that are actually operated by another carrier.) 649 /// schedules (and take bookings for) flights that are actually operated by
651 */ 650 /// another carrier.)
652 core.String operatingDisclosure; 651 core.String operatingDisclosure;
653 /** The leg origin as a city and airport. */ 652
653 /// The leg origin as a city and airport.
654 core.String origin; 654 core.String origin;
655 /** The terminal the flight is scheduled to depart from. */ 655
656 /// The terminal the flight is scheduled to depart from.
656 core.String originTerminal; 657 core.String originTerminal;
657 /** 658
658 * Whether passenger information must be furnished to the United States 659 /// Whether passenger information must be furnished to the United States
659 * Transportation Security Administration (TSA) prior to departure. 660 /// Transportation Security Administration (TSA) prior to departure.
660 */
661 core.bool secure; 661 core.bool secure;
662 662
663 LegInfo(); 663 LegInfo();
664 664
665 LegInfo.fromJson(core.Map _json) { 665 LegInfo.fromJson(core.Map _json) {
666 if (_json.containsKey("aircraft")) { 666 if (_json.containsKey("aircraft")) {
667 aircraft = _json["aircraft"]; 667 aircraft = _json["aircraft"];
668 } 668 }
669 if (_json.containsKey("arrivalTime")) { 669 if (_json.containsKey("arrivalTime")) {
670 arrivalTime = _json["arrivalTime"]; 670 arrivalTime = _json["arrivalTime"];
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 } 710 }
711 if (_json.containsKey("originTerminal")) { 711 if (_json.containsKey("originTerminal")) {
712 originTerminal = _json["originTerminal"]; 712 originTerminal = _json["originTerminal"];
713 } 713 }
714 if (_json.containsKey("secure")) { 714 if (_json.containsKey("secure")) {
715 secure = _json["secure"]; 715 secure = _json["secure"];
716 } 716 }
717 } 717 }
718 718
719 core.Map<core.String, core.Object> toJson() { 719 core.Map<core.String, core.Object> toJson() {
720 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 720 final core.Map<core.String, core.Object> _json =
721 new core.Map<core.String, core.Object>();
721 if (aircraft != null) { 722 if (aircraft != null) {
722 _json["aircraft"] = aircraft; 723 _json["aircraft"] = aircraft;
723 } 724 }
724 if (arrivalTime != null) { 725 if (arrivalTime != null) {
725 _json["arrivalTime"] = arrivalTime; 726 _json["arrivalTime"] = arrivalTime;
726 } 727 }
727 if (changePlane != null) { 728 if (changePlane != null) {
728 _json["changePlane"] = changePlane; 729 _json["changePlane"] = changePlane;
729 } 730 }
730 if (connectionDuration != null) { 731 if (connectionDuration != null) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 if (originTerminal != null) { 767 if (originTerminal != null) {
767 _json["originTerminal"] = originTerminal; 768 _json["originTerminal"] = originTerminal;
768 } 769 }
769 if (secure != null) { 770 if (secure != null) {
770 _json["secure"] = secure; 771 _json["secure"] = secure;
771 } 772 }
772 return _json; 773 return _json;
773 } 774 }
774 } 775 }
775 776
776 /** 777 /// The number and type of passengers. Unfortunately the definition of an
777 * The number and type of passengers. Unfortunately the definition of an infant, 778 /// infant, child, adult, and senior citizen varies across carriers and
778 * child, adult, and senior citizen varies across carriers and reservation 779 /// reservation systems.
779 * systems.
780 */
781 class PassengerCounts { 780 class PassengerCounts {
782 /** The number of passengers that are adults. */ 781 /// The number of passengers that are adults.
783 core.int adultCount; 782 core.int adultCount;
784 /** The number of passengers that are children. */ 783
784 /// The number of passengers that are children.
785 core.int childCount; 785 core.int childCount;
786 /** 786
787 * The number of passengers that are infants travelling in the lap of an 787 /// The number of passengers that are infants travelling in the lap of an
788 * adult. 788 /// adult.
789 */
790 core.int infantInLapCount; 789 core.int infantInLapCount;
791 /** The number of passengers that are infants each assigned a seat. */ 790
791 /// The number of passengers that are infants each assigned a seat.
792 core.int infantInSeatCount; 792 core.int infantInSeatCount;
793 /** 793
794 * Identifies this as a passenger count object, representing the number of 794 /// Identifies this as a passenger count object, representing the number of
795 * passengers. Value: the fixed string qpxexpress#passengerCounts. 795 /// passengers. Value: the fixed string qpxexpress#passengerCounts.
796 */
797 core.String kind; 796 core.String kind;
798 /** The number of passengers that are senior citizens. */ 797
798 /// The number of passengers that are senior citizens.
799 core.int seniorCount; 799 core.int seniorCount;
800 800
801 PassengerCounts(); 801 PassengerCounts();
802 802
803 PassengerCounts.fromJson(core.Map _json) { 803 PassengerCounts.fromJson(core.Map _json) {
804 if (_json.containsKey("adultCount")) { 804 if (_json.containsKey("adultCount")) {
805 adultCount = _json["adultCount"]; 805 adultCount = _json["adultCount"];
806 } 806 }
807 if (_json.containsKey("childCount")) { 807 if (_json.containsKey("childCount")) {
808 childCount = _json["childCount"]; 808 childCount = _json["childCount"];
809 } 809 }
810 if (_json.containsKey("infantInLapCount")) { 810 if (_json.containsKey("infantInLapCount")) {
811 infantInLapCount = _json["infantInLapCount"]; 811 infantInLapCount = _json["infantInLapCount"];
812 } 812 }
813 if (_json.containsKey("infantInSeatCount")) { 813 if (_json.containsKey("infantInSeatCount")) {
814 infantInSeatCount = _json["infantInSeatCount"]; 814 infantInSeatCount = _json["infantInSeatCount"];
815 } 815 }
816 if (_json.containsKey("kind")) { 816 if (_json.containsKey("kind")) {
817 kind = _json["kind"]; 817 kind = _json["kind"];
818 } 818 }
819 if (_json.containsKey("seniorCount")) { 819 if (_json.containsKey("seniorCount")) {
820 seniorCount = _json["seniorCount"]; 820 seniorCount = _json["seniorCount"];
821 } 821 }
822 } 822 }
823 823
824 core.Map<core.String, core.Object> toJson() { 824 core.Map<core.String, core.Object> toJson() {
825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 825 final core.Map<core.String, core.Object> _json =
826 new core.Map<core.String, core.Object>();
826 if (adultCount != null) { 827 if (adultCount != null) {
827 _json["adultCount"] = adultCount; 828 _json["adultCount"] = adultCount;
828 } 829 }
829 if (childCount != null) { 830 if (childCount != null) {
830 _json["childCount"] = childCount; 831 _json["childCount"] = childCount;
831 } 832 }
832 if (infantInLapCount != null) { 833 if (infantInLapCount != null) {
833 _json["infantInLapCount"] = infantInLapCount; 834 _json["infantInLapCount"] = infantInLapCount;
834 } 835 }
835 if (infantInSeatCount != null) { 836 if (infantInSeatCount != null) {
836 _json["infantInSeatCount"] = infantInSeatCount; 837 _json["infantInSeatCount"] = infantInSeatCount;
837 } 838 }
838 if (kind != null) { 839 if (kind != null) {
839 _json["kind"] = kind; 840 _json["kind"] = kind;
840 } 841 }
841 if (seniorCount != null) { 842 if (seniorCount != null) {
842 _json["seniorCount"] = seniorCount; 843 _json["seniorCount"] = seniorCount;
843 } 844 }
844 return _json; 845 return _json;
845 } 846 }
846 } 847 }
847 848
848 /** 849 /// The price of one or more travel segments. The currency used to purchase
849 * The price of one or more travel segments. The currency used to purchase 850 /// tickets is usually determined by the sale/ticketing city or the
850 * tickets is usually determined by the sale/ticketing city or the 851 /// sale/ticketing country, unless none are specified, in which case it
851 * sale/ticketing country, unless none are specified, in which case it defaults 852 /// defaults to that of the journey origin country.
852 * to that of the journey origin country.
853 */
854 class PricingInfo { 853 class PricingInfo {
855 /** 854 /// The total fare in the base fare currency (the currency of the country of
856 * The total fare in the base fare currency (the currency of the country of 855 /// origin). This element is only present when the sales currency and the
857 * origin). This element is only present when the sales currency and the 856 /// currency of the country of commencement are different.
858 * currency of the country of commencement are different.
859 */
860 core.String baseFareTotal; 857 core.String baseFareTotal;
861 /** The fare used to price one or more segments. */ 858
859 /// The fare used to price one or more segments.
862 core.List<FareInfo> fare; 860 core.List<FareInfo> fare;
863 /** 861
864 * The horizontal fare calculation. This is a field on a ticket that displays 862 /// The horizontal fare calculation. This is a field on a ticket that
865 * all of the relevant items that go into the calculation of the fare. 863 /// displays all of the relevant items that go into the calculation of the
866 */ 864 /// fare.
867 core.String fareCalculation; 865 core.String fareCalculation;
868 /** 866
869 * Identifies this as a pricing object, representing the price of one or more 867 /// Identifies this as a pricing object, representing the price of one or
870 * travel segments. Value: the fixed string qpxexpress#pricingInfo. 868 /// more travel segments. Value: the fixed string qpxexpress#pricingInfo.
871 */
872 core.String kind; 869 core.String kind;
873 /** 870
874 * The latest ticketing time for this pricing assuming the reservation occurs 871 /// The latest ticketing time for this pricing assuming the reservation
875 * at ticketing time and there is no change in fares/rules. The time is local 872 /// occurs at ticketing time and there is no change in fares/rules. The time
876 * to the point of sale (POS). 873 /// is local to the point of sale (POS).
877 */
878 core.String latestTicketingTime; 874 core.String latestTicketingTime;
879 /** The number of passengers to which this price applies. */ 875
876 /// The number of passengers to which this price applies.
880 PassengerCounts passengers; 877 PassengerCounts passengers;
881 /** 878
882 * The passenger type code for this pricing. An alphanumeric code used by a 879 /// The passenger type code for this pricing. An alphanumeric code used by a
883 * carrier to restrict fares to certain categories of passenger. For instance, 880 /// carrier to restrict fares to certain categories of passenger. For
884 * a fare might be valid only for senior citizens. 881 /// instance, a fare might be valid only for senior citizens.
885 */
886 core.String ptc; 882 core.String ptc;
887 /** Whether the fares on this pricing are refundable. */ 883
884 /// Whether the fares on this pricing are refundable.
888 core.bool refundable; 885 core.bool refundable;
889 /** The total fare in the sale or equivalent currency. */ 886
887 /// The total fare in the sale or equivalent currency.
890 core.String saleFareTotal; 888 core.String saleFareTotal;
891 /** The taxes in the sale or equivalent currency. */ 889
890 /// The taxes in the sale or equivalent currency.
892 core.String saleTaxTotal; 891 core.String saleTaxTotal;
893 /** 892
894 * Total per-passenger price (fare and tax) in the sale or equivalent 893 /// Total per-passenger price (fare and tax) in the sale or equivalent
895 * currency. 894 /// currency.
896 */
897 core.String saleTotal; 895 core.String saleTotal;
898 /** The per-segment price and baggage information. */ 896
897 /// The per-segment price and baggage information.
899 core.List<SegmentPricing> segmentPricing; 898 core.List<SegmentPricing> segmentPricing;
900 /** The taxes used to calculate the tax total per ticket. */ 899
900 /// The taxes used to calculate the tax total per ticket.
901 core.List<TaxInfo> tax; 901 core.List<TaxInfo> tax;
902 902
903 PricingInfo(); 903 PricingInfo();
904 904
905 PricingInfo.fromJson(core.Map _json) { 905 PricingInfo.fromJson(core.Map _json) {
906 if (_json.containsKey("baseFareTotal")) { 906 if (_json.containsKey("baseFareTotal")) {
907 baseFareTotal = _json["baseFareTotal"]; 907 baseFareTotal = _json["baseFareTotal"];
908 } 908 }
909 if (_json.containsKey("fare")) { 909 if (_json.containsKey("fare")) {
910 fare = _json["fare"].map((value) => new FareInfo.fromJson(value)).toList() ; 910 fare =
911 _json["fare"].map((value) => new FareInfo.fromJson(value)).toList();
911 } 912 }
912 if (_json.containsKey("fareCalculation")) { 913 if (_json.containsKey("fareCalculation")) {
913 fareCalculation = _json["fareCalculation"]; 914 fareCalculation = _json["fareCalculation"];
914 } 915 }
915 if (_json.containsKey("kind")) { 916 if (_json.containsKey("kind")) {
916 kind = _json["kind"]; 917 kind = _json["kind"];
917 } 918 }
918 if (_json.containsKey("latestTicketingTime")) { 919 if (_json.containsKey("latestTicketingTime")) {
919 latestTicketingTime = _json["latestTicketingTime"]; 920 latestTicketingTime = _json["latestTicketingTime"];
920 } 921 }
921 if (_json.containsKey("passengers")) { 922 if (_json.containsKey("passengers")) {
922 passengers = new PassengerCounts.fromJson(_json["passengers"]); 923 passengers = new PassengerCounts.fromJson(_json["passengers"]);
923 } 924 }
924 if (_json.containsKey("ptc")) { 925 if (_json.containsKey("ptc")) {
925 ptc = _json["ptc"]; 926 ptc = _json["ptc"];
926 } 927 }
927 if (_json.containsKey("refundable")) { 928 if (_json.containsKey("refundable")) {
928 refundable = _json["refundable"]; 929 refundable = _json["refundable"];
929 } 930 }
930 if (_json.containsKey("saleFareTotal")) { 931 if (_json.containsKey("saleFareTotal")) {
931 saleFareTotal = _json["saleFareTotal"]; 932 saleFareTotal = _json["saleFareTotal"];
932 } 933 }
933 if (_json.containsKey("saleTaxTotal")) { 934 if (_json.containsKey("saleTaxTotal")) {
934 saleTaxTotal = _json["saleTaxTotal"]; 935 saleTaxTotal = _json["saleTaxTotal"];
935 } 936 }
936 if (_json.containsKey("saleTotal")) { 937 if (_json.containsKey("saleTotal")) {
937 saleTotal = _json["saleTotal"]; 938 saleTotal = _json["saleTotal"];
938 } 939 }
939 if (_json.containsKey("segmentPricing")) { 940 if (_json.containsKey("segmentPricing")) {
940 segmentPricing = _json["segmentPricing"].map((value) => new SegmentPricing .fromJson(value)).toList(); 941 segmentPricing = _json["segmentPricing"]
942 .map((value) => new SegmentPricing.fromJson(value))
943 .toList();
941 } 944 }
942 if (_json.containsKey("tax")) { 945 if (_json.containsKey("tax")) {
943 tax = _json["tax"].map((value) => new TaxInfo.fromJson(value)).toList(); 946 tax = _json["tax"].map((value) => new TaxInfo.fromJson(value)).toList();
944 } 947 }
945 } 948 }
946 949
947 core.Map<core.String, core.Object> toJson() { 950 core.Map<core.String, core.Object> toJson() {
948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 951 final core.Map<core.String, core.Object> _json =
952 new core.Map<core.String, core.Object>();
949 if (baseFareTotal != null) { 953 if (baseFareTotal != null) {
950 _json["baseFareTotal"] = baseFareTotal; 954 _json["baseFareTotal"] = baseFareTotal;
951 } 955 }
952 if (fare != null) { 956 if (fare != null) {
953 _json["fare"] = fare.map((value) => (value).toJson()).toList(); 957 _json["fare"] = fare.map((value) => (value).toJson()).toList();
954 } 958 }
955 if (fareCalculation != null) { 959 if (fareCalculation != null) {
956 _json["fareCalculation"] = fareCalculation; 960 _json["fareCalculation"] = fareCalculation;
957 } 961 }
958 if (kind != null) { 962 if (kind != null) {
(...skipping 14 matching lines...) Expand all
973 if (saleFareTotal != null) { 977 if (saleFareTotal != null) {
974 _json["saleFareTotal"] = saleFareTotal; 978 _json["saleFareTotal"] = saleFareTotal;
975 } 979 }
976 if (saleTaxTotal != null) { 980 if (saleTaxTotal != null) {
977 _json["saleTaxTotal"] = saleTaxTotal; 981 _json["saleTaxTotal"] = saleTaxTotal;
978 } 982 }
979 if (saleTotal != null) { 983 if (saleTotal != null) {
980 _json["saleTotal"] = saleTotal; 984 _json["saleTotal"] = saleTotal;
981 } 985 }
982 if (segmentPricing != null) { 986 if (segmentPricing != null) {
983 _json["segmentPricing"] = segmentPricing.map((value) => (value).toJson()). toList(); 987 _json["segmentPricing"] =
988 segmentPricing.map((value) => (value).toJson()).toList();
984 } 989 }
985 if (tax != null) { 990 if (tax != null) {
986 _json["tax"] = tax.map((value) => (value).toJson()).toList(); 991 _json["tax"] = tax.map((value) => (value).toJson()).toList();
987 } 992 }
988 return _json; 993 return _json;
989 } 994 }
990 } 995 }
991 996
992 /** 997 /// Details of a segment of a flight; a segment is one or more consecutive legs
993 * Details of a segment of a flight; a segment is one or more consecutive legs 998 /// on the same flight. For example a hypothetical flight ZZ001, from DFW to
994 * on the same flight. For example a hypothetical flight ZZ001, from DFW to OGG, 999 /// OGG, would have one segment with two legs: DFW to HNL (leg 1), HNL to OGG
995 * would have one segment with two legs: DFW to HNL (leg 1), HNL to OGG (leg 2), 1000 /// (leg 2), and DFW to OGG (legs 1 and 2).
996 * and DFW to OGG (legs 1 and 2).
997 */
998 class SegmentInfo { 1001 class SegmentInfo {
999 /** The booking code or class for this segment. */ 1002 /// The booking code or class for this segment.
1000 core.String bookingCode; 1003 core.String bookingCode;
1001 /** The number of seats available in this booking code on this segment. */ 1004
1005 /// The number of seats available in this booking code on this segment.
1002 core.int bookingCodeCount; 1006 core.int bookingCodeCount;
1003 /** The cabin booked for this segment. */ 1007
1008 /// The cabin booked for this segment.
1004 core.String cabin; 1009 core.String cabin;
1005 /** In minutes, the duration of the connection following this segment. */ 1010
1011 /// In minutes, the duration of the connection following this segment.
1006 core.int connectionDuration; 1012 core.int connectionDuration;
1007 /** The duration of the flight segment in minutes. */ 1013
1014 /// The duration of the flight segment in minutes.
1008 core.int duration; 1015 core.int duration;
1009 /** The flight this is a segment of. */ 1016
1017 /// The flight this is a segment of.
1010 FlightInfo flight; 1018 FlightInfo flight;
1011 /** An id uniquely identifying the segment in the solution. */ 1019
1020 /// An id uniquely identifying the segment in the solution.
1012 core.String id; 1021 core.String id;
1013 /** 1022
1014 * Identifies this as a segment object. A segment is one or more consecutive 1023 /// Identifies this as a segment object. A segment is one or more consecutive
1015 * legs on the same flight. For example a hypothetical flight ZZ001, from DFW 1024 /// legs on the same flight. For example a hypothetical flight ZZ001, from
1016 * to OGG, could have one segment with two legs: DFW to HNL (leg 1), HNL to 1025 /// DFW to OGG, could have one segment with two legs: DFW to HNL (leg 1), HNL
1017 * OGG (leg 2). Value: the fixed string qpxexpress#segmentInfo. 1026 /// to OGG (leg 2). Value: the fixed string qpxexpress#segmentInfo.
1018 */
1019 core.String kind; 1027 core.String kind;
1020 /** The legs composing this segment. */ 1028
1029 /// The legs composing this segment.
1021 core.List<LegInfo> leg; 1030 core.List<LegInfo> leg;
1022 /** 1031
1023 * The solution-based index of a segment in a married segment group. Married 1032 /// The solution-based index of a segment in a married segment group. Married
1024 * segments can only be booked together. For example, an airline might report 1033 /// segments can only be booked together. For example, an airline might
1025 * a certain booking code as sold out from Boston to Pittsburgh, but as 1034 /// report a certain booking code as sold out from Boston to Pittsburgh, but
1026 * available as part of two married segments Boston to Chicago connecting 1035 /// as available as part of two married segments Boston to Chicago connecting
1027 * through Pittsburgh. For example content of this field, consider the 1036 /// through Pittsburgh. For example content of this field, consider the
1028 * round-trip flight ZZ1 PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has three 1037 /// round-trip flight ZZ1 PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has three
1029 * segments, with the two outbound ones (ZZ1 ZZ2) married. In this case, the 1038 /// segments, with the two outbound ones (ZZ1 ZZ2) married. In this case, the
1030 * two outbound segments belong to married segment group 0, and the return 1039 /// two outbound segments belong to married segment group 0, and the return
1031 * segment belongs to married segment group 1. 1040 /// segment belongs to married segment group 1.
1032 */
1033 core.String marriedSegmentGroup; 1041 core.String marriedSegmentGroup;
1034 /** 1042
1035 * Whether the operation of this segment remains subject to government 1043 /// Whether the operation of this segment remains subject to government
1036 * approval. 1044 /// approval.
1037 */
1038 core.bool subjectToGovernmentApproval; 1045 core.bool subjectToGovernmentApproval;
1039 1046
1040 SegmentInfo(); 1047 SegmentInfo();
1041 1048
1042 SegmentInfo.fromJson(core.Map _json) { 1049 SegmentInfo.fromJson(core.Map _json) {
1043 if (_json.containsKey("bookingCode")) { 1050 if (_json.containsKey("bookingCode")) {
1044 bookingCode = _json["bookingCode"]; 1051 bookingCode = _json["bookingCode"];
1045 } 1052 }
1046 if (_json.containsKey("bookingCodeCount")) { 1053 if (_json.containsKey("bookingCodeCount")) {
1047 bookingCodeCount = _json["bookingCodeCount"]; 1054 bookingCodeCount = _json["bookingCodeCount"];
(...skipping 21 matching lines...) Expand all
1069 } 1076 }
1070 if (_json.containsKey("marriedSegmentGroup")) { 1077 if (_json.containsKey("marriedSegmentGroup")) {
1071 marriedSegmentGroup = _json["marriedSegmentGroup"]; 1078 marriedSegmentGroup = _json["marriedSegmentGroup"];
1072 } 1079 }
1073 if (_json.containsKey("subjectToGovernmentApproval")) { 1080 if (_json.containsKey("subjectToGovernmentApproval")) {
1074 subjectToGovernmentApproval = _json["subjectToGovernmentApproval"]; 1081 subjectToGovernmentApproval = _json["subjectToGovernmentApproval"];
1075 } 1082 }
1076 } 1083 }
1077 1084
1078 core.Map<core.String, core.Object> toJson() { 1085 core.Map<core.String, core.Object> toJson() {
1079 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1086 final core.Map<core.String, core.Object> _json =
1087 new core.Map<core.String, core.Object>();
1080 if (bookingCode != null) { 1088 if (bookingCode != null) {
1081 _json["bookingCode"] = bookingCode; 1089 _json["bookingCode"] = bookingCode;
1082 } 1090 }
1083 if (bookingCodeCount != null) { 1091 if (bookingCodeCount != null) {
1084 _json["bookingCodeCount"] = bookingCodeCount; 1092 _json["bookingCodeCount"] = bookingCodeCount;
1085 } 1093 }
1086 if (cabin != null) { 1094 if (cabin != null) {
1087 _json["cabin"] = cabin; 1095 _json["cabin"] = cabin;
1088 } 1096 }
1089 if (connectionDuration != null) { 1097 if (connectionDuration != null) {
(...skipping 17 matching lines...) Expand all
1107 if (marriedSegmentGroup != null) { 1115 if (marriedSegmentGroup != null) {
1108 _json["marriedSegmentGroup"] = marriedSegmentGroup; 1116 _json["marriedSegmentGroup"] = marriedSegmentGroup;
1109 } 1117 }
1110 if (subjectToGovernmentApproval != null) { 1118 if (subjectToGovernmentApproval != null) {
1111 _json["subjectToGovernmentApproval"] = subjectToGovernmentApproval; 1119 _json["subjectToGovernmentApproval"] = subjectToGovernmentApproval;
1112 } 1120 }
1113 return _json; 1121 return _json;
1114 } 1122 }
1115 } 1123 }
1116 1124
1117 /** The price of this segment. */ 1125 /// The price of this segment.
1118 class SegmentPricing { 1126 class SegmentPricing {
1119 /** 1127 /// A segment identifier unique within a single solution. It is used to refer
1120 * A segment identifier unique within a single solution. It is used to refer 1128 /// to different parts of the same solution.
1121 * to different parts of the same solution.
1122 */
1123 core.String fareId; 1129 core.String fareId;
1124 /** Details of the free baggage allowance on this segment. */ 1130
1131 /// Details of the free baggage allowance on this segment.
1125 core.List<FreeBaggageAllowance> freeBaggageOption; 1132 core.List<FreeBaggageAllowance> freeBaggageOption;
1126 /** 1133
1127 * Identifies this as a segment pricing object, representing the price of this 1134 /// Identifies this as a segment pricing object, representing the price of
1128 * segment. Value: the fixed string qpxexpress#segmentPricing. 1135 /// this segment. Value: the fixed string qpxexpress#segmentPricing.
1129 */
1130 core.String kind; 1136 core.String kind;
1131 /** Unique identifier in the response of this segment. */ 1137
1138 /// Unique identifier in the response of this segment.
1132 core.String segmentId; 1139 core.String segmentId;
1133 1140
1134 SegmentPricing(); 1141 SegmentPricing();
1135 1142
1136 SegmentPricing.fromJson(core.Map _json) { 1143 SegmentPricing.fromJson(core.Map _json) {
1137 if (_json.containsKey("fareId")) { 1144 if (_json.containsKey("fareId")) {
1138 fareId = _json["fareId"]; 1145 fareId = _json["fareId"];
1139 } 1146 }
1140 if (_json.containsKey("freeBaggageOption")) { 1147 if (_json.containsKey("freeBaggageOption")) {
1141 freeBaggageOption = _json["freeBaggageOption"].map((value) => new FreeBagg ageAllowance.fromJson(value)).toList(); 1148 freeBaggageOption = _json["freeBaggageOption"]
1149 .map((value) => new FreeBaggageAllowance.fromJson(value))
1150 .toList();
1142 } 1151 }
1143 if (_json.containsKey("kind")) { 1152 if (_json.containsKey("kind")) {
1144 kind = _json["kind"]; 1153 kind = _json["kind"];
1145 } 1154 }
1146 if (_json.containsKey("segmentId")) { 1155 if (_json.containsKey("segmentId")) {
1147 segmentId = _json["segmentId"]; 1156 segmentId = _json["segmentId"];
1148 } 1157 }
1149 } 1158 }
1150 1159
1151 core.Map<core.String, core.Object> toJson() { 1160 core.Map<core.String, core.Object> toJson() {
1152 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1161 final core.Map<core.String, core.Object> _json =
1162 new core.Map<core.String, core.Object>();
1153 if (fareId != null) { 1163 if (fareId != null) {
1154 _json["fareId"] = fareId; 1164 _json["fareId"] = fareId;
1155 } 1165 }
1156 if (freeBaggageOption != null) { 1166 if (freeBaggageOption != null) {
1157 _json["freeBaggageOption"] = freeBaggageOption.map((value) => (value).toJs on()).toList(); 1167 _json["freeBaggageOption"] =
1168 freeBaggageOption.map((value) => (value).toJson()).toList();
1158 } 1169 }
1159 if (kind != null) { 1170 if (kind != null) {
1160 _json["kind"] = kind; 1171 _json["kind"] = kind;
1161 } 1172 }
1162 if (segmentId != null) { 1173 if (segmentId != null) {
1163 _json["segmentId"] = segmentId; 1174 _json["segmentId"] = segmentId;
1164 } 1175 }
1165 return _json; 1176 return _json;
1166 } 1177 }
1167 } 1178 }
1168 1179
1169 /** 1180 /// Information about a slice. A slice represents a traveller's intent, the
1170 * Information about a slice. A slice represents a traveller's intent, the 1181 /// portion of a low-fare search corresponding to a traveler's request to get
1171 * portion of a low-fare search corresponding to a traveler's request to get 1182 /// between two points. One-way journeys are generally expressed using 1 slice,
1172 * between two points. One-way journeys are generally expressed using 1 slice, 1183 /// round-trips using 2. For example, if a traveler specifies the following
1173 * round-trips using 2. For example, if a traveler specifies the following trip 1184 /// trip in a user interface:
1174 * in a user interface: 1185 /// | Origin | Destination | Departure Date | | BOS | LAX | March 10, 2007 | |
1175 * | Origin | Destination | Departure Date | | BOS | LAX | March 10, 2007 | | 1186 /// LAX | SYD | March 17, 2007 | | SYD | BOS | March 22, 2007 |
1176 * LAX | SYD | March 17, 2007 | | SYD | BOS | March 22, 2007 | 1187 /// then this is a three slice trip.
1177 * then this is a three slice trip.
1178 */
1179 class SliceInfo { 1188 class SliceInfo {
1180 /** The duration of the slice in minutes. */ 1189 /// The duration of the slice in minutes.
1181 core.int duration; 1190 core.int duration;
1182 /** 1191
1183 * Identifies this as a slice object. A slice represents a traveller's intent, 1192 /// Identifies this as a slice object. A slice represents a traveller's
1184 * the portion of a low-fare search corresponding to a traveler's request to 1193 /// intent, the portion of a low-fare search corresponding to a traveler's
1185 * get between two points. One-way journeys are generally expressed using 1 1194 /// request to get between two points. One-way journeys are generally
1186 * slice, round-trips using 2. Value: the fixed string qpxexpress#sliceInfo. 1195 /// expressed using 1 slice, round-trips using 2. Value: the fixed string
1187 */ 1196 /// qpxexpress#sliceInfo.
1188 core.String kind; 1197 core.String kind;
1189 /** The segment(s) constituting the slice. */ 1198
1199 /// The segment(s) constituting the slice.
1190 core.List<SegmentInfo> segment; 1200 core.List<SegmentInfo> segment;
1191 1201
1192 SliceInfo(); 1202 SliceInfo();
1193 1203
1194 SliceInfo.fromJson(core.Map _json) { 1204 SliceInfo.fromJson(core.Map _json) {
1195 if (_json.containsKey("duration")) { 1205 if (_json.containsKey("duration")) {
1196 duration = _json["duration"]; 1206 duration = _json["duration"];
1197 } 1207 }
1198 if (_json.containsKey("kind")) { 1208 if (_json.containsKey("kind")) {
1199 kind = _json["kind"]; 1209 kind = _json["kind"];
1200 } 1210 }
1201 if (_json.containsKey("segment")) { 1211 if (_json.containsKey("segment")) {
1202 segment = _json["segment"].map((value) => new SegmentInfo.fromJson(value)) .toList(); 1212 segment = _json["segment"]
1213 .map((value) => new SegmentInfo.fromJson(value))
1214 .toList();
1203 } 1215 }
1204 } 1216 }
1205 1217
1206 core.Map<core.String, core.Object> toJson() { 1218 core.Map<core.String, core.Object> toJson() {
1207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1219 final core.Map<core.String, core.Object> _json =
1220 new core.Map<core.String, core.Object>();
1208 if (duration != null) { 1221 if (duration != null) {
1209 _json["duration"] = duration; 1222 _json["duration"] = duration;
1210 } 1223 }
1211 if (kind != null) { 1224 if (kind != null) {
1212 _json["kind"] = kind; 1225 _json["kind"] = kind;
1213 } 1226 }
1214 if (segment != null) { 1227 if (segment != null) {
1215 _json["segment"] = segment.map((value) => (value).toJson()).toList(); 1228 _json["segment"] = segment.map((value) => (value).toJson()).toList();
1216 } 1229 }
1217 return _json; 1230 return _json;
1218 } 1231 }
1219 } 1232 }
1220 1233
1221 /** Criteria a desired slice must satisfy. */ 1234 /// Criteria a desired slice must satisfy.
1222 class SliceInput { 1235 class SliceInput {
1223 /** 1236 /// Slices with only the carriers in this alliance should be returned; do not
1224 * Slices with only the carriers in this alliance should be returned; do not 1237 /// use this field with permittedCarrier. Allowed values are ONEWORLD,
1225 * use this field with permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, 1238 /// SKYTEAM, and STAR.
1226 * and STAR.
1227 */
1228 core.String alliance; 1239 core.String alliance;
1229 /** Departure date in YYYY-MM-DD format. */ 1240
1241 /// Departure date in YYYY-MM-DD format.
1230 core.String date; 1242 core.String date;
1231 /** Airport or city IATA designator of the destination. */ 1243
1244 /// Airport or city IATA designator of the destination.
1232 core.String destination; 1245 core.String destination;
1233 /** 1246
1234 * Identifies this as a slice input object, representing the criteria a 1247 /// Identifies this as a slice input object, representing the criteria a
1235 * desired slice must satisfy. Value: the fixed string qpxexpress#sliceInput. 1248 /// desired slice must satisfy. Value: the fixed string
1236 */ 1249 /// qpxexpress#sliceInput.
1237 core.String kind; 1250 core.String kind;
1238 /** 1251
1239 * The longest connection between two legs, in minutes, you are willing to 1252 /// The longest connection between two legs, in minutes, you are willing to
1240 * accept. 1253 /// accept.
1241 */
1242 core.int maxConnectionDuration; 1254 core.int maxConnectionDuration;
1243 /** The maximum number of stops you are willing to accept in this slice. */ 1255
1256 /// The maximum number of stops you are willing to accept in this slice.
1244 core.int maxStops; 1257 core.int maxStops;
1245 /** Airport or city IATA designator of the origin. */ 1258
1259 /// Airport or city IATA designator of the origin.
1246 core.String origin; 1260 core.String origin;
1247 /** 1261
1248 * A list of 2-letter IATA airline designators. Slices with only these 1262 /// A list of 2-letter IATA airline designators. Slices with only these
1249 * carriers should be returned. 1263 /// carriers should be returned.
1250 */
1251 core.List<core.String> permittedCarrier; 1264 core.List<core.String> permittedCarrier;
1252 /** 1265
1253 * Slices must depart in this time of day range, local to the point of 1266 /// Slices must depart in this time of day range, local to the point of
1254 * departure. 1267 /// departure.
1255 */
1256 TimeOfDayRange permittedDepartureTime; 1268 TimeOfDayRange permittedDepartureTime;
1257 /** 1269
1258 * Prefer solutions that book in this cabin for this slice. Allowed values are 1270 /// Prefer solutions that book in this cabin for this slice. Allowed values
1259 * COACH, PREMIUM_COACH, BUSINESS, and FIRST. 1271 /// are COACH, PREMIUM_COACH, BUSINESS, and FIRST.
1260 */
1261 core.String preferredCabin; 1272 core.String preferredCabin;
1262 /** 1273
1263 * A list of 2-letter IATA airline designators. Exclude slices that use these 1274 /// A list of 2-letter IATA airline designators. Exclude slices that use
1264 * carriers. 1275 /// these carriers.
1265 */
1266 core.List<core.String> prohibitedCarrier; 1276 core.List<core.String> prohibitedCarrier;
1267 1277
1268 SliceInput(); 1278 SliceInput();
1269 1279
1270 SliceInput.fromJson(core.Map _json) { 1280 SliceInput.fromJson(core.Map _json) {
1271 if (_json.containsKey("alliance")) { 1281 if (_json.containsKey("alliance")) {
1272 alliance = _json["alliance"]; 1282 alliance = _json["alliance"];
1273 } 1283 }
1274 if (_json.containsKey("date")) { 1284 if (_json.containsKey("date")) {
1275 date = _json["date"]; 1285 date = _json["date"];
(...skipping 10 matching lines...) Expand all
1286 if (_json.containsKey("maxStops")) { 1296 if (_json.containsKey("maxStops")) {
1287 maxStops = _json["maxStops"]; 1297 maxStops = _json["maxStops"];
1288 } 1298 }
1289 if (_json.containsKey("origin")) { 1299 if (_json.containsKey("origin")) {
1290 origin = _json["origin"]; 1300 origin = _json["origin"];
1291 } 1301 }
1292 if (_json.containsKey("permittedCarrier")) { 1302 if (_json.containsKey("permittedCarrier")) {
1293 permittedCarrier = _json["permittedCarrier"]; 1303 permittedCarrier = _json["permittedCarrier"];
1294 } 1304 }
1295 if (_json.containsKey("permittedDepartureTime")) { 1305 if (_json.containsKey("permittedDepartureTime")) {
1296 permittedDepartureTime = new TimeOfDayRange.fromJson(_json["permittedDepar tureTime"]); 1306 permittedDepartureTime =
1307 new TimeOfDayRange.fromJson(_json["permittedDepartureTime"]);
1297 } 1308 }
1298 if (_json.containsKey("preferredCabin")) { 1309 if (_json.containsKey("preferredCabin")) {
1299 preferredCabin = _json["preferredCabin"]; 1310 preferredCabin = _json["preferredCabin"];
1300 } 1311 }
1301 if (_json.containsKey("prohibitedCarrier")) { 1312 if (_json.containsKey("prohibitedCarrier")) {
1302 prohibitedCarrier = _json["prohibitedCarrier"]; 1313 prohibitedCarrier = _json["prohibitedCarrier"];
1303 } 1314 }
1304 } 1315 }
1305 1316
1306 core.Map<core.String, core.Object> toJson() { 1317 core.Map<core.String, core.Object> toJson() {
1307 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1318 final core.Map<core.String, core.Object> _json =
1319 new core.Map<core.String, core.Object>();
1308 if (alliance != null) { 1320 if (alliance != null) {
1309 _json["alliance"] = alliance; 1321 _json["alliance"] = alliance;
1310 } 1322 }
1311 if (date != null) { 1323 if (date != null) {
1312 _json["date"] = date; 1324 _json["date"] = date;
1313 } 1325 }
1314 if (destination != null) { 1326 if (destination != null) {
1315 _json["destination"] = destination; 1327 _json["destination"] = destination;
1316 } 1328 }
1317 if (kind != null) { 1329 if (kind != null) {
(...skipping 17 matching lines...) Expand all
1335 if (preferredCabin != null) { 1347 if (preferredCabin != null) {
1336 _json["preferredCabin"] = preferredCabin; 1348 _json["preferredCabin"] = preferredCabin;
1337 } 1349 }
1338 if (prohibitedCarrier != null) { 1350 if (prohibitedCarrier != null) {
1339 _json["prohibitedCarrier"] = prohibitedCarrier; 1351 _json["prohibitedCarrier"] = prohibitedCarrier;
1340 } 1352 }
1341 return _json; 1353 return _json;
1342 } 1354 }
1343 } 1355 }
1344 1356
1345 /** Tax data. */ 1357 /// Tax data.
1346 class TaxData { 1358 class TaxData {
1347 /** An identifier uniquely identifying a tax in a response. */ 1359 /// An identifier uniquely identifying a tax in a response.
1348 core.String id; 1360 core.String id;
1349 /** 1361
1350 * Identifies this as a tax data object, representing some tax. Value: the 1362 /// Identifies this as a tax data object, representing some tax. Value: the
1351 * fixed string qpxexpress#taxData. 1363 /// fixed string qpxexpress#taxData.
1352 */
1353 core.String kind; 1364 core.String kind;
1354 /** The name of a tax. */ 1365
1366 /// The name of a tax.
1355 core.String name; 1367 core.String name;
1356 1368
1357 TaxData(); 1369 TaxData();
1358 1370
1359 TaxData.fromJson(core.Map _json) { 1371 TaxData.fromJson(core.Map _json) {
1360 if (_json.containsKey("id")) { 1372 if (_json.containsKey("id")) {
1361 id = _json["id"]; 1373 id = _json["id"];
1362 } 1374 }
1363 if (_json.containsKey("kind")) { 1375 if (_json.containsKey("kind")) {
1364 kind = _json["kind"]; 1376 kind = _json["kind"];
1365 } 1377 }
1366 if (_json.containsKey("name")) { 1378 if (_json.containsKey("name")) {
1367 name = _json["name"]; 1379 name = _json["name"];
1368 } 1380 }
1369 } 1381 }
1370 1382
1371 core.Map<core.String, core.Object> toJson() { 1383 core.Map<core.String, core.Object> toJson() {
1372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1384 final core.Map<core.String, core.Object> _json =
1385 new core.Map<core.String, core.Object>();
1373 if (id != null) { 1386 if (id != null) {
1374 _json["id"] = id; 1387 _json["id"] = id;
1375 } 1388 }
1376 if (kind != null) { 1389 if (kind != null) {
1377 _json["kind"] = kind; 1390 _json["kind"] = kind;
1378 } 1391 }
1379 if (name != null) { 1392 if (name != null) {
1380 _json["name"] = name; 1393 _json["name"] = name;
1381 } 1394 }
1382 return _json; 1395 return _json;
1383 } 1396 }
1384 } 1397 }
1385 1398
1386 /** Tax information. */ 1399 /// Tax information.
1387 class TaxInfo { 1400 class TaxInfo {
1388 /** Whether this is a government charge or a carrier surcharge. */ 1401 /// Whether this is a government charge or a carrier surcharge.
1389 core.String chargeType; 1402 core.String chargeType;
1390 /** The code to enter in the ticket's tax box. */ 1403
1404 /// The code to enter in the ticket's tax box.
1391 core.String code; 1405 core.String code;
1392 /** For government charges, the country levying the charge. */ 1406
1407 /// For government charges, the country levying the charge.
1393 core.String country; 1408 core.String country;
1394 /** 1409
1395 * Identifier uniquely identifying this tax in a response. Not present for 1410 /// Identifier uniquely identifying this tax in a response. Not present for
1396 * unnamed carrier surcharges. 1411 /// unnamed carrier surcharges.
1397 */
1398 core.String id; 1412 core.String id;
1399 /** 1413
1400 * Identifies this as a tax information object. Value: the fixed string 1414 /// Identifies this as a tax information object. Value: the fixed string
1401 * qpxexpress#taxInfo. 1415 /// qpxexpress#taxInfo.
1402 */
1403 core.String kind; 1416 core.String kind;
1404 /** The price of the tax in the sales or equivalent currency. */ 1417
1418 /// The price of the tax in the sales or equivalent currency.
1405 core.String salePrice; 1419 core.String salePrice;
1406 1420
1407 TaxInfo(); 1421 TaxInfo();
1408 1422
1409 TaxInfo.fromJson(core.Map _json) { 1423 TaxInfo.fromJson(core.Map _json) {
1410 if (_json.containsKey("chargeType")) { 1424 if (_json.containsKey("chargeType")) {
1411 chargeType = _json["chargeType"]; 1425 chargeType = _json["chargeType"];
1412 } 1426 }
1413 if (_json.containsKey("code")) { 1427 if (_json.containsKey("code")) {
1414 code = _json["code"]; 1428 code = _json["code"];
1415 } 1429 }
1416 if (_json.containsKey("country")) { 1430 if (_json.containsKey("country")) {
1417 country = _json["country"]; 1431 country = _json["country"];
1418 } 1432 }
1419 if (_json.containsKey("id")) { 1433 if (_json.containsKey("id")) {
1420 id = _json["id"]; 1434 id = _json["id"];
1421 } 1435 }
1422 if (_json.containsKey("kind")) { 1436 if (_json.containsKey("kind")) {
1423 kind = _json["kind"]; 1437 kind = _json["kind"];
1424 } 1438 }
1425 if (_json.containsKey("salePrice")) { 1439 if (_json.containsKey("salePrice")) {
1426 salePrice = _json["salePrice"]; 1440 salePrice = _json["salePrice"];
1427 } 1441 }
1428 } 1442 }
1429 1443
1430 core.Map<core.String, core.Object> toJson() { 1444 core.Map<core.String, core.Object> toJson() {
1431 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1445 final core.Map<core.String, core.Object> _json =
1446 new core.Map<core.String, core.Object>();
1432 if (chargeType != null) { 1447 if (chargeType != null) {
1433 _json["chargeType"] = chargeType; 1448 _json["chargeType"] = chargeType;
1434 } 1449 }
1435 if (code != null) { 1450 if (code != null) {
1436 _json["code"] = code; 1451 _json["code"] = code;
1437 } 1452 }
1438 if (country != null) { 1453 if (country != null) {
1439 _json["country"] = country; 1454 _json["country"] = country;
1440 } 1455 }
1441 if (id != null) { 1456 if (id != null) {
1442 _json["id"] = id; 1457 _json["id"] = id;
1443 } 1458 }
1444 if (kind != null) { 1459 if (kind != null) {
1445 _json["kind"] = kind; 1460 _json["kind"] = kind;
1446 } 1461 }
1447 if (salePrice != null) { 1462 if (salePrice != null) {
1448 _json["salePrice"] = salePrice; 1463 _json["salePrice"] = salePrice;
1449 } 1464 }
1450 return _json; 1465 return _json;
1451 } 1466 }
1452 } 1467 }
1453 1468
1454 /** Two times in a single day defining a time range. */ 1469 /// Two times in a single day defining a time range.
1455 class TimeOfDayRange { 1470 class TimeOfDayRange {
1456 /** The earliest time of day in HH:MM format. */ 1471 /// The earliest time of day in HH:MM format.
1457 core.String earliestTime; 1472 core.String earliestTime;
1458 /** 1473
1459 * Identifies this as a time of day range object, representing two times in a 1474 /// Identifies this as a time of day range object, representing two times in
1460 * single day defining a time range. Value: the fixed string 1475 /// a single day defining a time range. Value: the fixed string
1461 * qpxexpress#timeOfDayRange. 1476 /// qpxexpress#timeOfDayRange.
1462 */
1463 core.String kind; 1477 core.String kind;
1464 /** The latest time of day in HH:MM format. */ 1478
1479 /// The latest time of day in HH:MM format.
1465 core.String latestTime; 1480 core.String latestTime;
1466 1481
1467 TimeOfDayRange(); 1482 TimeOfDayRange();
1468 1483
1469 TimeOfDayRange.fromJson(core.Map _json) { 1484 TimeOfDayRange.fromJson(core.Map _json) {
1470 if (_json.containsKey("earliestTime")) { 1485 if (_json.containsKey("earliestTime")) {
1471 earliestTime = _json["earliestTime"]; 1486 earliestTime = _json["earliestTime"];
1472 } 1487 }
1473 if (_json.containsKey("kind")) { 1488 if (_json.containsKey("kind")) {
1474 kind = _json["kind"]; 1489 kind = _json["kind"];
1475 } 1490 }
1476 if (_json.containsKey("latestTime")) { 1491 if (_json.containsKey("latestTime")) {
1477 latestTime = _json["latestTime"]; 1492 latestTime = _json["latestTime"];
1478 } 1493 }
1479 } 1494 }
1480 1495
1481 core.Map<core.String, core.Object> toJson() { 1496 core.Map<core.String, core.Object> toJson() {
1482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1497 final core.Map<core.String, core.Object> _json =
1498 new core.Map<core.String, core.Object>();
1483 if (earliestTime != null) { 1499 if (earliestTime != null) {
1484 _json["earliestTime"] = earliestTime; 1500 _json["earliestTime"] = earliestTime;
1485 } 1501 }
1486 if (kind != null) { 1502 if (kind != null) {
1487 _json["kind"] = kind; 1503 _json["kind"] = kind;
1488 } 1504 }
1489 if (latestTime != null) { 1505 if (latestTime != null) {
1490 _json["latestTime"] = latestTime; 1506 _json["latestTime"] = latestTime;
1491 } 1507 }
1492 return _json; 1508 return _json;
1493 } 1509 }
1494 } 1510 }
1495 1511
1496 /** Trip information. */ 1512 /// Trip information.
1497 class TripOption { 1513 class TripOption {
1498 /** Identifier uniquely identifying this trip in a response. */ 1514 /// Identifier uniquely identifying this trip in a response.
1499 core.String id; 1515 core.String id;
1500 /** 1516
1501 * Identifies this as a trip information object. Value: the fixed string 1517 /// Identifies this as a trip information object. Value: the fixed string
1502 * qpxexpress#tripOption. 1518 /// qpxexpress#tripOption.
1503 */
1504 core.String kind; 1519 core.String kind;
1505 /** Per passenger pricing information. */ 1520
1521 /// Per passenger pricing information.
1506 core.List<PricingInfo> pricing; 1522 core.List<PricingInfo> pricing;
1507 /** 1523
1508 * The total price for all passengers on the trip, in the form of a currency 1524 /// The total price for all passengers on the trip, in the form of a currency
1509 * followed by an amount, e.g. USD253.35. 1525 /// followed by an amount, e.g. USD253.35.
1510 */
1511 core.String saleTotal; 1526 core.String saleTotal;
1512 /** The slices that make up this trip's itinerary. */ 1527
1528 /// The slices that make up this trip's itinerary.
1513 core.List<SliceInfo> slice; 1529 core.List<SliceInfo> slice;
1514 1530
1515 TripOption(); 1531 TripOption();
1516 1532
1517 TripOption.fromJson(core.Map _json) { 1533 TripOption.fromJson(core.Map _json) {
1518 if (_json.containsKey("id")) { 1534 if (_json.containsKey("id")) {
1519 id = _json["id"]; 1535 id = _json["id"];
1520 } 1536 }
1521 if (_json.containsKey("kind")) { 1537 if (_json.containsKey("kind")) {
1522 kind = _json["kind"]; 1538 kind = _json["kind"];
1523 } 1539 }
1524 if (_json.containsKey("pricing")) { 1540 if (_json.containsKey("pricing")) {
1525 pricing = _json["pricing"].map((value) => new PricingInfo.fromJson(value)) .toList(); 1541 pricing = _json["pricing"]
1542 .map((value) => new PricingInfo.fromJson(value))
1543 .toList();
1526 } 1544 }
1527 if (_json.containsKey("saleTotal")) { 1545 if (_json.containsKey("saleTotal")) {
1528 saleTotal = _json["saleTotal"]; 1546 saleTotal = _json["saleTotal"];
1529 } 1547 }
1530 if (_json.containsKey("slice")) { 1548 if (_json.containsKey("slice")) {
1531 slice = _json["slice"].map((value) => new SliceInfo.fromJson(value)).toLis t(); 1549 slice =
1550 _json["slice"].map((value) => new SliceInfo.fromJson(value)).toList();
1532 } 1551 }
1533 } 1552 }
1534 1553
1535 core.Map<core.String, core.Object> toJson() { 1554 core.Map<core.String, core.Object> toJson() {
1536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1555 final core.Map<core.String, core.Object> _json =
1556 new core.Map<core.String, core.Object>();
1537 if (id != null) { 1557 if (id != null) {
1538 _json["id"] = id; 1558 _json["id"] = id;
1539 } 1559 }
1540 if (kind != null) { 1560 if (kind != null) {
1541 _json["kind"] = kind; 1561 _json["kind"] = kind;
1542 } 1562 }
1543 if (pricing != null) { 1563 if (pricing != null) {
1544 _json["pricing"] = pricing.map((value) => (value).toJson()).toList(); 1564 _json["pricing"] = pricing.map((value) => (value).toJson()).toList();
1545 } 1565 }
1546 if (saleTotal != null) { 1566 if (saleTotal != null) {
1547 _json["saleTotal"] = saleTotal; 1567 _json["saleTotal"] = saleTotal;
1548 } 1568 }
1549 if (slice != null) { 1569 if (slice != null) {
1550 _json["slice"] = slice.map((value) => (value).toJson()).toList(); 1570 _json["slice"] = slice.map((value) => (value).toJson()).toList();
1551 } 1571 }
1552 return _json; 1572 return _json;
1553 } 1573 }
1554 } 1574 }
1555 1575
1556 /** A QPX Express search request, which will yield one or more solutions. */ 1576 /// A QPX Express search request, which will yield one or more solutions.
1557 class TripOptionsRequest { 1577 class TripOptionsRequest {
1558 /** 1578 /// Do not return solutions that cost more than this price. The alphabetical
1559 * Do not return solutions that cost more than this price. The alphabetical 1579 /// part of the price is in ISO 4217. The format, in regex, is
1560 * part of the price is in ISO 4217. The format, in regex, is 1580 /// [A-Z]{3}\d+(\.\d+)? Example: $102.07
1561 * [A-Z]{3}\d+(\.\d+)? Example: $102.07
1562 */
1563 core.String maxPrice; 1581 core.String maxPrice;
1564 /** Counts for each passenger type in the request. */ 1582
1583 /// Counts for each passenger type in the request.
1565 PassengerCounts passengers; 1584 PassengerCounts passengers;
1566 /** Return only solutions with refundable fares. */ 1585
1586 /// Return only solutions with refundable fares.
1567 core.bool refundable; 1587 core.bool refundable;
1568 /** 1588
1569 * IATA country code representing the point of sale. This determines the 1589 /// IATA country code representing the point of sale. This determines the
1570 * "equivalent amount paid" currency for the ticket. 1590 /// "equivalent amount paid" currency for the ticket.
1571 */
1572 core.String saleCountry; 1591 core.String saleCountry;
1573 /** 1592
1574 * The slices that make up the itinerary of this trip. A slice represents a 1593 /// The slices that make up the itinerary of this trip. A slice represents a
1575 * traveler's intent, the portion of a low-fare search corresponding to a 1594 /// traveler's intent, the portion of a low-fare search corresponding to a
1576 * traveler's request to get between two points. One-way journeys are 1595 /// traveler's request to get between two points. One-way journeys are
1577 * generally expressed using one slice, round-trips using two. An example of a 1596 /// generally expressed using one slice, round-trips using two. An example of
1578 * one slice trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS if 1597 /// a one slice trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS
1579 * the traveler only stopped in SYD and LAX just long enough to change planes. 1598 /// if the traveler only stopped in SYD and LAX just long enough to change
1580 */ 1599 /// planes.
1581 core.List<SliceInput> slice; 1600 core.List<SliceInput> slice;
1582 /** The number of solutions to return, maximum 500. */ 1601
1602 /// The number of solutions to return, maximum 500.
1583 core.int solutions; 1603 core.int solutions;
1584 /** IATA country code representing the point of ticketing. */ 1604
1605 /// IATA country code representing the point of ticketing.
1585 core.String ticketingCountry; 1606 core.String ticketingCountry;
1586 1607
1587 TripOptionsRequest(); 1608 TripOptionsRequest();
1588 1609
1589 TripOptionsRequest.fromJson(core.Map _json) { 1610 TripOptionsRequest.fromJson(core.Map _json) {
1590 if (_json.containsKey("maxPrice")) { 1611 if (_json.containsKey("maxPrice")) {
1591 maxPrice = _json["maxPrice"]; 1612 maxPrice = _json["maxPrice"];
1592 } 1613 }
1593 if (_json.containsKey("passengers")) { 1614 if (_json.containsKey("passengers")) {
1594 passengers = new PassengerCounts.fromJson(_json["passengers"]); 1615 passengers = new PassengerCounts.fromJson(_json["passengers"]);
1595 } 1616 }
1596 if (_json.containsKey("refundable")) { 1617 if (_json.containsKey("refundable")) {
1597 refundable = _json["refundable"]; 1618 refundable = _json["refundable"];
1598 } 1619 }
1599 if (_json.containsKey("saleCountry")) { 1620 if (_json.containsKey("saleCountry")) {
1600 saleCountry = _json["saleCountry"]; 1621 saleCountry = _json["saleCountry"];
1601 } 1622 }
1602 if (_json.containsKey("slice")) { 1623 if (_json.containsKey("slice")) {
1603 slice = _json["slice"].map((value) => new SliceInput.fromJson(value)).toLi st(); 1624 slice = _json["slice"]
1625 .map((value) => new SliceInput.fromJson(value))
1626 .toList();
1604 } 1627 }
1605 if (_json.containsKey("solutions")) { 1628 if (_json.containsKey("solutions")) {
1606 solutions = _json["solutions"]; 1629 solutions = _json["solutions"];
1607 } 1630 }
1608 if (_json.containsKey("ticketingCountry")) { 1631 if (_json.containsKey("ticketingCountry")) {
1609 ticketingCountry = _json["ticketingCountry"]; 1632 ticketingCountry = _json["ticketingCountry"];
1610 } 1633 }
1611 } 1634 }
1612 1635
1613 core.Map<core.String, core.Object> toJson() { 1636 core.Map<core.String, core.Object> toJson() {
1614 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1637 final core.Map<core.String, core.Object> _json =
1638 new core.Map<core.String, core.Object>();
1615 if (maxPrice != null) { 1639 if (maxPrice != null) {
1616 _json["maxPrice"] = maxPrice; 1640 _json["maxPrice"] = maxPrice;
1617 } 1641 }
1618 if (passengers != null) { 1642 if (passengers != null) {
1619 _json["passengers"] = (passengers).toJson(); 1643 _json["passengers"] = (passengers).toJson();
1620 } 1644 }
1621 if (refundable != null) { 1645 if (refundable != null) {
1622 _json["refundable"] = refundable; 1646 _json["refundable"] = refundable;
1623 } 1647 }
1624 if (saleCountry != null) { 1648 if (saleCountry != null) {
1625 _json["saleCountry"] = saleCountry; 1649 _json["saleCountry"] = saleCountry;
1626 } 1650 }
1627 if (slice != null) { 1651 if (slice != null) {
1628 _json["slice"] = slice.map((value) => (value).toJson()).toList(); 1652 _json["slice"] = slice.map((value) => (value).toJson()).toList();
1629 } 1653 }
1630 if (solutions != null) { 1654 if (solutions != null) {
1631 _json["solutions"] = solutions; 1655 _json["solutions"] = solutions;
1632 } 1656 }
1633 if (ticketingCountry != null) { 1657 if (ticketingCountry != null) {
1634 _json["ticketingCountry"] = ticketingCountry; 1658 _json["ticketingCountry"] = ticketingCountry;
1635 } 1659 }
1636 return _json; 1660 return _json;
1637 } 1661 }
1638 } 1662 }
1639 1663
1640 /** A QPX Express search response. */ 1664 /// A QPX Express search response.
1641 class TripOptionsResponse { 1665 class TripOptionsResponse {
1642 /** Informational data global to list of solutions. */ 1666 /// Informational data global to list of solutions.
1643 Data data; 1667 Data data;
1644 /** 1668
1645 * Identifies this as a QPX Express trip response object, which consists of 1669 /// Identifies this as a QPX Express trip response object, which consists of
1646 * zero or more solutions. Value: the fixed string qpxexpress#tripOptions. 1670 /// zero or more solutions. Value: the fixed string qpxexpress#tripOptions.
1647 */
1648 core.String kind; 1671 core.String kind;
1649 /** An identifier uniquely identifying this response. */ 1672
1673 /// An identifier uniquely identifying this response.
1650 core.String requestId; 1674 core.String requestId;
1651 /** A list of priced itinerary solutions to the QPX Express query. */ 1675
1676 /// A list of priced itinerary solutions to the QPX Express query.
1652 core.List<TripOption> tripOption; 1677 core.List<TripOption> tripOption;
1653 1678
1654 TripOptionsResponse(); 1679 TripOptionsResponse();
1655 1680
1656 TripOptionsResponse.fromJson(core.Map _json) { 1681 TripOptionsResponse.fromJson(core.Map _json) {
1657 if (_json.containsKey("data")) { 1682 if (_json.containsKey("data")) {
1658 data = new Data.fromJson(_json["data"]); 1683 data = new Data.fromJson(_json["data"]);
1659 } 1684 }
1660 if (_json.containsKey("kind")) { 1685 if (_json.containsKey("kind")) {
1661 kind = _json["kind"]; 1686 kind = _json["kind"];
1662 } 1687 }
1663 if (_json.containsKey("requestId")) { 1688 if (_json.containsKey("requestId")) {
1664 requestId = _json["requestId"]; 1689 requestId = _json["requestId"];
1665 } 1690 }
1666 if (_json.containsKey("tripOption")) { 1691 if (_json.containsKey("tripOption")) {
1667 tripOption = _json["tripOption"].map((value) => new TripOption.fromJson(va lue)).toList(); 1692 tripOption = _json["tripOption"]
1693 .map((value) => new TripOption.fromJson(value))
1694 .toList();
1668 } 1695 }
1669 } 1696 }
1670 1697
1671 core.Map<core.String, core.Object> toJson() { 1698 core.Map<core.String, core.Object> toJson() {
1672 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1699 final core.Map<core.String, core.Object> _json =
1700 new core.Map<core.String, core.Object>();
1673 if (data != null) { 1701 if (data != null) {
1674 _json["data"] = (data).toJson(); 1702 _json["data"] = (data).toJson();
1675 } 1703 }
1676 if (kind != null) { 1704 if (kind != null) {
1677 _json["kind"] = kind; 1705 _json["kind"] = kind;
1678 } 1706 }
1679 if (requestId != null) { 1707 if (requestId != null) {
1680 _json["requestId"] = requestId; 1708 _json["requestId"] = requestId;
1681 } 1709 }
1682 if (tripOption != null) { 1710 if (tripOption != null) {
1683 _json["tripOption"] = tripOption.map((value) => (value).toJson()).toList() ; 1711 _json["tripOption"] =
1712 tripOption.map((value) => (value).toJson()).toList();
1684 } 1713 }
1685 return _json; 1714 return _json;
1686 } 1715 }
1687 } 1716 }
1688 1717
1689 /** A QPX Express search request. */ 1718 /// A QPX Express search request.
1690 class TripsSearchRequest { 1719 class TripsSearchRequest {
1691 /** 1720 /// A QPX Express search request. Required values are at least one adult or
1692 * A QPX Express search request. Required values are at least one adult or 1721 /// senior passenger, an origin, a destination, and a date.
1693 * senior passenger, an origin, a destination, and a date.
1694 */
1695 TripOptionsRequest request; 1722 TripOptionsRequest request;
1696 1723
1697 TripsSearchRequest(); 1724 TripsSearchRequest();
1698 1725
1699 TripsSearchRequest.fromJson(core.Map _json) { 1726 TripsSearchRequest.fromJson(core.Map _json) {
1700 if (_json.containsKey("request")) { 1727 if (_json.containsKey("request")) {
1701 request = new TripOptionsRequest.fromJson(_json["request"]); 1728 request = new TripOptionsRequest.fromJson(_json["request"]);
1702 } 1729 }
1703 } 1730 }
1704 1731
1705 core.Map<core.String, core.Object> toJson() { 1732 core.Map<core.String, core.Object> toJson() {
1706 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1733 final core.Map<core.String, core.Object> _json =
1734 new core.Map<core.String, core.Object>();
1707 if (request != null) { 1735 if (request != null) {
1708 _json["request"] = (request).toJson(); 1736 _json["request"] = (request).toJson();
1709 } 1737 }
1710 return _json; 1738 return _json;
1711 } 1739 }
1712 } 1740 }
1713 1741
1714 /** A QPX Express search response. */ 1742 /// A QPX Express search response.
1715 class TripsSearchResponse { 1743 class TripsSearchResponse {
1716 /** 1744 /// Identifies this as a QPX Express API search response resource. Value: the
1717 * Identifies this as a QPX Express API search response resource. Value: the 1745 /// fixed string qpxExpress#tripsSearch.
1718 * fixed string qpxExpress#tripsSearch.
1719 */
1720 core.String kind; 1746 core.String kind;
1721 /** All possible solutions to the QPX Express search request. */ 1747
1748 /// All possible solutions to the QPX Express search request.
1722 TripOptionsResponse trips; 1749 TripOptionsResponse trips;
1723 1750
1724 TripsSearchResponse(); 1751 TripsSearchResponse();
1725 1752
1726 TripsSearchResponse.fromJson(core.Map _json) { 1753 TripsSearchResponse.fromJson(core.Map _json) {
1727 if (_json.containsKey("kind")) { 1754 if (_json.containsKey("kind")) {
1728 kind = _json["kind"]; 1755 kind = _json["kind"];
1729 } 1756 }
1730 if (_json.containsKey("trips")) { 1757 if (_json.containsKey("trips")) {
1731 trips = new TripOptionsResponse.fromJson(_json["trips"]); 1758 trips = new TripOptionsResponse.fromJson(_json["trips"]);
1732 } 1759 }
1733 } 1760 }
1734 1761
1735 core.Map<core.String, core.Object> toJson() { 1762 core.Map<core.String, core.Object> toJson() {
1736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1763 final core.Map<core.String, core.Object> _json =
1764 new core.Map<core.String, core.Object>();
1737 if (kind != null) { 1765 if (kind != null) {
1738 _json["kind"] = kind; 1766 _json["kind"] = kind;
1739 } 1767 }
1740 if (trips != null) { 1768 if (trips != null) {
1741 _json["trips"] = (trips).toJson(); 1769 _json["trips"] = (trips).toJson();
1742 } 1770 }
1743 return _json; 1771 return _json;
1744 } 1772 }
1745 } 1773 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/pubsub/v1.dart ('k') | generated/googleapis/lib/reseller/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698