OLD | NEW |
(Empty) | |
| 1 { |
| 2 "basePath": "/qpxExpress/v1/trips/", |
| 3 "baseUrl": "https://www.googleapis.com/qpxExpress/v1/trips/", |
| 4 "batchPath": "batch", |
| 5 "canonicalName": "QPX Express", |
| 6 "description": "Lets you find the least expensive flights between an origin
and a destination.", |
| 7 "discoveryVersion": "v1", |
| 8 "documentationLink": "http://developers.google.com/qpx-express", |
| 9 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/oRXkfQJbU2CyvfsUv40EHopWGd0\"", |
| 10 "icons": { |
| 11 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 12 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 13 }, |
| 14 "id": "qpxExpress:v1", |
| 15 "kind": "discovery#restDescription", |
| 16 "name": "qpxExpress", |
| 17 "ownerDomain": "google.com", |
| 18 "ownerName": "Google", |
| 19 "parameters": { |
| 20 "alt": { |
| 21 "default": "json", |
| 22 "description": "Data format for the response.", |
| 23 "enum": [ |
| 24 "json" |
| 25 ], |
| 26 "enumDescriptions": [ |
| 27 "Responses with Content-Type of application/json" |
| 28 ], |
| 29 "location": "query", |
| 30 "type": "string" |
| 31 }, |
| 32 "fields": { |
| 33 "description": "Selector specifying which fields to include in a par
tial response.", |
| 34 "location": "query", |
| 35 "type": "string" |
| 36 }, |
| 37 "key": { |
| 38 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 39 "location": "query", |
| 40 "type": "string" |
| 41 }, |
| 42 "oauth_token": { |
| 43 "description": "OAuth 2.0 token for the current user.", |
| 44 "location": "query", |
| 45 "type": "string" |
| 46 }, |
| 47 "prettyPrint": { |
| 48 "default": "true", |
| 49 "description": "Returns response with indentations and line breaks."
, |
| 50 "location": "query", |
| 51 "type": "boolean" |
| 52 }, |
| 53 "quotaUser": { |
| 54 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters. Overrides userIp if both are provided.", |
| 55 "location": "query", |
| 56 "type": "string" |
| 57 }, |
| 58 "userIp": { |
| 59 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
| 60 "location": "query", |
| 61 "type": "string" |
| 62 } |
| 63 }, |
| 64 "protocol": "rest", |
| 65 "resources": { |
| 66 "trips": { |
| 67 "methods": { |
| 68 "search": { |
| 69 "description": "Returns a list of flights.", |
| 70 "httpMethod": "POST", |
| 71 "id": "qpxExpress.trips.search", |
| 72 "path": "search", |
| 73 "request": { |
| 74 "$ref": "TripsSearchRequest" |
| 75 }, |
| 76 "response": { |
| 77 "$ref": "TripsSearchResponse" |
| 78 } |
| 79 } |
| 80 } |
| 81 } |
| 82 }, |
| 83 "revision": "20140321", |
| 84 "rootUrl": "https://www.googleapis.com/", |
| 85 "schemas": { |
| 86 "AircraftData": { |
| 87 "description": "The make, model, and type of an aircraft.", |
| 88 "id": "AircraftData", |
| 89 "properties": { |
| 90 "code": { |
| 91 "description": "The aircraft code. For example, for a Boeing
777 the code would be 777.", |
| 92 "type": "string" |
| 93 }, |
| 94 "kind": { |
| 95 "default": "qpxexpress#aircraftData", |
| 96 "description": "Identifies this as an aircraftData object. V
alue: the fixed string qpxexpress#aircraftData", |
| 97 "type": "string" |
| 98 }, |
| 99 "name": { |
| 100 "description": "The name of an aircraft, for example Boeing
777.", |
| 101 "type": "string" |
| 102 } |
| 103 }, |
| 104 "type": "object" |
| 105 }, |
| 106 "AirportData": { |
| 107 "description": "An airport.", |
| 108 "id": "AirportData", |
| 109 "properties": { |
| 110 "city": { |
| 111 "description": "The city code an airport is located in. For
example, for JFK airport, this is NYC.", |
| 112 "type": "string" |
| 113 }, |
| 114 "code": { |
| 115 "description": "An airport's code. For example, for Boston L
ogan airport, this is BOS.", |
| 116 "type": "string" |
| 117 }, |
| 118 "kind": { |
| 119 "default": "qpxexpress#airportData", |
| 120 "description": "Identifies this as an airport object. Value:
the fixed string qpxexpress#airportData.", |
| 121 "type": "string" |
| 122 }, |
| 123 "name": { |
| 124 "description": "The name of an airport. For example, for air
port BOS the name is \"Boston Logan International\".", |
| 125 "type": "string" |
| 126 } |
| 127 }, |
| 128 "type": "object" |
| 129 }, |
| 130 "BagDescriptor": { |
| 131 "description": "Information about an item of baggage.", |
| 132 "id": "BagDescriptor", |
| 133 "properties": { |
| 134 "commercialName": { |
| 135 "description": "Provides the commercial name for an optional
service.", |
| 136 "type": "string" |
| 137 }, |
| 138 "count": { |
| 139 "description": "How many of this type of bag will be checked
on this flight.", |
| 140 "format": "int32", |
| 141 "type": "integer" |
| 142 }, |
| 143 "description": { |
| 144 "description": "A description of the baggage.", |
| 145 "items": { |
| 146 "type": "string" |
| 147 }, |
| 148 "type": "array" |
| 149 }, |
| 150 "kind": { |
| 151 "default": "qpxexpress#bagDescriptor", |
| 152 "description": "Identifies this as a baggage object. Value:
the fixed string qpxexpress#bagDescriptor.", |
| 153 "type": "string" |
| 154 }, |
| 155 "subcode": { |
| 156 "description": "The standard IATA subcode used to identify t
his optional service.", |
| 157 "type": "string" |
| 158 } |
| 159 }, |
| 160 "type": "object" |
| 161 }, |
| 162 "CarrierData": { |
| 163 "description": "Information about a carrier (ie. an airline, bus lin
e, railroad, etc) that might be useful to display to an end-user.", |
| 164 "id": "CarrierData", |
| 165 "properties": { |
| 166 "code": { |
| 167 "description": "The IATA designator of a carrier (airline, e
tc). For example, for American Airlines, the code is AA.", |
| 168 "type": "string" |
| 169 }, |
| 170 "kind": { |
| 171 "default": "qpxexpress#carrierData", |
| 172 "description": "Identifies this as a kind of carrier (ie. an
airline, bus line, railroad, etc). Value: the fixed string qpxexpress#carrierDa
ta.", |
| 173 "type": "string" |
| 174 }, |
| 175 "name": { |
| 176 "description": "The long, full name of a carrier. For exampl
e: American Airlines.", |
| 177 "type": "string" |
| 178 } |
| 179 }, |
| 180 "type": "object" |
| 181 }, |
| 182 "CityData": { |
| 183 "description": "Information about a city that might be useful to an
end-user; typically the city of an airport.", |
| 184 "id": "CityData", |
| 185 "properties": { |
| 186 "code": { |
| 187 "description": "The IATA character ID of a city. For example
, for Boston this is BOS.", |
| 188 "type": "string" |
| 189 }, |
| 190 "country": { |
| 191 "description": "The two-character country code of the countr
y the city is located in. For example, US for the United States of America.", |
| 192 "type": "string" |
| 193 }, |
| 194 "kind": { |
| 195 "default": "qpxexpress#cityData", |
| 196 "description": "Identifies this as a city, typically with on
e or more airports. Value: the fixed string qpxexpress#cityData.", |
| 197 "type": "string" |
| 198 }, |
| 199 "name": { |
| 200 "description": "The full name of a city. An example would be
: New York.", |
| 201 "type": "string" |
| 202 } |
| 203 }, |
| 204 "type": "object" |
| 205 }, |
| 206 "Data": { |
| 207 "description": "Detailed information about components found in the s
olutions of this response, including a trip's airport, city, taxes, airline, and
aircraft.", |
| 208 "id": "Data", |
| 209 "properties": { |
| 210 "aircraft": { |
| 211 "description": "The aircraft that is flying between an origi
n and destination.", |
| 212 "items": { |
| 213 "$ref": "AircraftData" |
| 214 }, |
| 215 "type": "array" |
| 216 }, |
| 217 "airport": { |
| 218 "description": "The airport of an origin or destination.", |
| 219 "items": { |
| 220 "$ref": "AirportData" |
| 221 }, |
| 222 "type": "array" |
| 223 }, |
| 224 "carrier": { |
| 225 "description": "The airline carrier of the aircraft flying b
etween an origin and destination. Allowed values are IATA carrier codes.", |
| 226 "items": { |
| 227 "$ref": "CarrierData" |
| 228 }, |
| 229 "type": "array" |
| 230 }, |
| 231 "city": { |
| 232 "description": "The city that is either the origin or destin
ation of part of a trip.", |
| 233 "items": { |
| 234 "$ref": "CityData" |
| 235 }, |
| 236 "type": "array" |
| 237 }, |
| 238 "kind": { |
| 239 "default": "qpxexpress#data", |
| 240 "description": "Identifies this as QPX Express response reso
urce, including a trip's airport, city, taxes, airline, and aircraft. Value: the
fixed string qpxexpress#data.", |
| 241 "type": "string" |
| 242 }, |
| 243 "tax": { |
| 244 "description": "The taxes due for flying between an origin a
nd a destination.", |
| 245 "items": { |
| 246 "$ref": "TaxData" |
| 247 }, |
| 248 "type": "array" |
| 249 } |
| 250 }, |
| 251 "type": "object" |
| 252 }, |
| 253 "FareInfo": { |
| 254 "description": "Complete information about a fare used in the soluti
on to a low-fare search query. In the airline industry a fare is a price an airl
ine charges for one-way travel between two points. A fare typically contains a c
arrier code, two city codes, a price, and a fare basis. (A fare basis is a one-t
o-eight character alphanumeric code used to identify a fare.)", |
| 255 "id": "FareInfo", |
| 256 "properties": { |
| 257 "basisCode": { |
| 258 "type": "string" |
| 259 }, |
| 260 "carrier": { |
| 261 "description": "The carrier of the aircraft or other vehicle
commuting between two points.", |
| 262 "type": "string" |
| 263 }, |
| 264 "destination": { |
| 265 "description": "The city code of the city the trip ends at."
, |
| 266 "type": "string" |
| 267 }, |
| 268 "id": { |
| 269 "description": "A unique identifier of the fare.", |
| 270 "type": "string" |
| 271 }, |
| 272 "kind": { |
| 273 "default": "qpxexpress#fareInfo", |
| 274 "description": "Identifies this as a fare object. Value: the
fixed string qpxexpress#fareInfo.", |
| 275 "type": "string" |
| 276 }, |
| 277 "origin": { |
| 278 "description": "The city code of the city the trip begins at
.", |
| 279 "type": "string" |
| 280 }, |
| 281 "private": { |
| 282 "description": "Whether this is a private fare, for example
one offered only to select customers rather than the general public.", |
| 283 "type": "boolean" |
| 284 } |
| 285 }, |
| 286 "type": "object" |
| 287 }, |
| 288 "FlightInfo": { |
| 289 "description": "A flight is a sequence of legs with the same airline
carrier and flight number. (A leg is the smallest unit of travel, in the case o
f a flight a takeoff immediately followed by a landing at two set points on a pa
rticular carrier with a particular flight number.) The naive view is that a flig
ht is scheduled travel of an aircraft between two points, with possibly intermed
iate stops, but carriers will frequently list flights that require a change of a
ircraft between legs.", |
| 290 "id": "FlightInfo", |
| 291 "properties": { |
| 292 "carrier": { |
| 293 "type": "string" |
| 294 }, |
| 295 "number": { |
| 296 "description": "The flight number.", |
| 297 "type": "string" |
| 298 } |
| 299 }, |
| 300 "type": "object" |
| 301 }, |
| 302 "FreeBaggageAllowance": { |
| 303 "description": "Information about free baggage allowed on one segmen
t of a trip.", |
| 304 "id": "FreeBaggageAllowance", |
| 305 "properties": { |
| 306 "bagDescriptor": { |
| 307 "description": "A representation of a type of bag, such as a
n ATPCo subcode, Commercial Name, or other description.", |
| 308 "items": { |
| 309 "$ref": "BagDescriptor" |
| 310 }, |
| 311 "type": "array" |
| 312 }, |
| 313 "kilos": { |
| 314 "description": "The maximum number of kilos all the free bag
gage together may weigh.", |
| 315 "format": "int32", |
| 316 "type": "integer" |
| 317 }, |
| 318 "kilosPerPiece": { |
| 319 "description": "The maximum number of kilos any one piece of
baggage may weigh.", |
| 320 "format": "int32", |
| 321 "type": "integer" |
| 322 }, |
| 323 "kind": { |
| 324 "default": "qpxexpress#freeBaggageAllowance", |
| 325 "description": "Identifies this as free baggage object, allo
wed on one segment of a trip. Value: the fixed string qpxexpress#freeBaggageAllo
wance.", |
| 326 "type": "string" |
| 327 }, |
| 328 "pieces": { |
| 329 "description": "The number of free pieces of baggage allowed
.", |
| 330 "format": "int32", |
| 331 "type": "integer" |
| 332 }, |
| 333 "pounds": { |
| 334 "description": "The number of pounds of free baggage allowed
.", |
| 335 "format": "int32", |
| 336 "type": "integer" |
| 337 } |
| 338 }, |
| 339 "type": "object" |
| 340 }, |
| 341 "LegInfo": { |
| 342 "description": "Information about a leg. (A leg is the smallest unit
of travel, in the case of a flight a takeoff immediately followed by a landing
at two set points on a particular carrier with a particular flight number.)", |
| 343 "id": "LegInfo", |
| 344 "properties": { |
| 345 "aircraft": { |
| 346 "description": "The aircraft (or bus, ferry, railcar, etc) t
ravelling between the two points of this leg.", |
| 347 "type": "string" |
| 348 }, |
| 349 "arrivalTime": { |
| 350 "description": "The scheduled time of arrival at the destina
tion of the leg, local to the point of arrival.", |
| 351 "type": "string" |
| 352 }, |
| 353 "changePlane": { |
| 354 "description": "Whether you have to change planes following
this leg. Only applies to the next leg.", |
| 355 "type": "boolean" |
| 356 }, |
| 357 "connectionDuration": { |
| 358 "description": "Duration of a connection following this leg,
in minutes.", |
| 359 "format": "int32", |
| 360 "type": "integer" |
| 361 }, |
| 362 "departureTime": { |
| 363 "description": "The scheduled departure time of the leg, loc
al to the point of departure.", |
| 364 "type": "string" |
| 365 }, |
| 366 "destination": { |
| 367 "description": "The leg destination as a city and airport.", |
| 368 "type": "string" |
| 369 }, |
| 370 "destinationTerminal": { |
| 371 "description": "The terminal the flight is scheduled to arri
ve at.", |
| 372 "type": "string" |
| 373 }, |
| 374 "duration": { |
| 375 "description": "The scheduled travelling time from the origi
n to the destination.", |
| 376 "format": "int32", |
| 377 "type": "integer" |
| 378 }, |
| 379 "id": { |
| 380 "description": "An identifier that uniquely identifies this
leg in the solution.", |
| 381 "type": "string" |
| 382 }, |
| 383 "kind": { |
| 384 "default": "qpxexpress#legInfo", |
| 385 "description": "Identifies this as a leg object. A leg is th
e smallest unit of travel, in the case of a flight a takeoff immediately followe
d by a landing at two set points on a particular carrier with a particular fligh
t number. Value: the fixed string qpxexpress#legInfo.", |
| 386 "type": "string" |
| 387 }, |
| 388 "meal": { |
| 389 "description": "A simple, general description of the meal(s)
served on the flight, for example: \"Hot meal\".", |
| 390 "type": "string" |
| 391 }, |
| 392 "mileage": { |
| 393 "description": "The number of miles in this leg.", |
| 394 "format": "int32", |
| 395 "type": "integer" |
| 396 }, |
| 397 "onTimePerformance": { |
| 398 "description": "In percent, the published on time performanc
e on this leg.", |
| 399 "format": "int32", |
| 400 "type": "integer" |
| 401 }, |
| 402 "operatingDisclosure": { |
| 403 "description": "Department of Transportation disclosure info
rmation on the actual operator of a flight in a code share. (A code share refers
to a marketing agreement between two carriers, where one carrier will list in i
ts schedules (and take bookings for) flights that are actually operated by anoth
er carrier.)", |
| 404 "type": "string" |
| 405 }, |
| 406 "origin": { |
| 407 "description": "The leg origin as a city and airport.", |
| 408 "type": "string" |
| 409 }, |
| 410 "originTerminal": { |
| 411 "description": "The terminal the flight is scheduled to depa
rt from.", |
| 412 "type": "string" |
| 413 }, |
| 414 "secure": { |
| 415 "description": "Whether passenger information must be furnis
hed to the United States Transportation Security Administration (TSA) prior to d
eparture.", |
| 416 "type": "boolean" |
| 417 } |
| 418 }, |
| 419 "type": "object" |
| 420 }, |
| 421 "PassengerCounts": { |
| 422 "description": "The number and type of passengers. Unfortunately the
definition of an infant, child, adult, and senior citizen varies across carrier
s and reservation systems.", |
| 423 "id": "PassengerCounts", |
| 424 "properties": { |
| 425 "adultCount": { |
| 426 "description": "The number of passengers that are adults.", |
| 427 "format": "int32", |
| 428 "type": "integer" |
| 429 }, |
| 430 "childCount": { |
| 431 "description": "The number of passengers that are children."
, |
| 432 "format": "int32", |
| 433 "type": "integer" |
| 434 }, |
| 435 "infantInLapCount": { |
| 436 "description": "The number of passengers that are infants tr
avelling in the lap of an adult.", |
| 437 "format": "int32", |
| 438 "type": "integer" |
| 439 }, |
| 440 "infantInSeatCount": { |
| 441 "description": "The number of passengers that are infants ea
ch assigned a seat.", |
| 442 "format": "int32", |
| 443 "type": "integer" |
| 444 }, |
| 445 "kind": { |
| 446 "default": "qpxexpress#passengerCounts", |
| 447 "description": "Identifies this as a passenger count object,
representing the number of passengers. Value: the fixed string qpxexpress#passe
ngerCounts.", |
| 448 "type": "string" |
| 449 }, |
| 450 "seniorCount": { |
| 451 "description": "The number of passengers that are senior cit
izens.", |
| 452 "format": "int32", |
| 453 "type": "integer" |
| 454 } |
| 455 }, |
| 456 "type": "object" |
| 457 }, |
| 458 "PricingInfo": { |
| 459 "description": "The price of one or more travel segments. The curren
cy used to purchase tickets is usually determined by the sale/ticketing city or
the sale/ticketing country, unless none are specified, in which case it defaults
to that of the journey origin country.", |
| 460 "id": "PricingInfo", |
| 461 "properties": { |
| 462 "baseFareTotal": { |
| 463 "description": "The total fare in the base fare currency (th
e currency of the country of origin). This element is only present when the sale
s currency and the currency of the country of commencement are different.", |
| 464 "type": "string" |
| 465 }, |
| 466 "fare": { |
| 467 "description": "The fare used to price one or more segments.
", |
| 468 "items": { |
| 469 "$ref": "FareInfo" |
| 470 }, |
| 471 "type": "array" |
| 472 }, |
| 473 "fareCalculation": { |
| 474 "description": "The horizontal fare calculation. This is a f
ield on a ticket that displays all of the relevant items that go into the calcul
ation of the fare.", |
| 475 "type": "string" |
| 476 }, |
| 477 "kind": { |
| 478 "default": "qpxexpress#pricingInfo", |
| 479 "description": "Identifies this as a pricing object, represe
nting the price of one or more travel segments. Value: the fixed string qpxexpre
ss#pricingInfo.", |
| 480 "type": "string" |
| 481 }, |
| 482 "latestTicketingTime": { |
| 483 "description": "The latest ticketing time for this pricing a
ssuming the reservation occurs at ticketing time and there is no change in fares
/rules. The time is local to the point of sale (POS).", |
| 484 "type": "string" |
| 485 }, |
| 486 "passengers": { |
| 487 "$ref": "PassengerCounts", |
| 488 "description": "The number of passengers to which this price
applies." |
| 489 }, |
| 490 "ptc": { |
| 491 "description": "The passenger type code for this pricing. An
alphanumeric code used by a carrier to restrict fares to certain categories of
passenger. For instance, a fare might be valid only for senior citizens.", |
| 492 "type": "string" |
| 493 }, |
| 494 "refundable": { |
| 495 "description": "Whether the fares on this pricing are refund
able.", |
| 496 "type": "boolean" |
| 497 }, |
| 498 "saleFareTotal": { |
| 499 "description": "The total fare in the sale or equivalent cur
rency.", |
| 500 "type": "string" |
| 501 }, |
| 502 "saleTaxTotal": { |
| 503 "description": "The taxes in the sale or equivalent currency
.", |
| 504 "type": "string" |
| 505 }, |
| 506 "saleTotal": { |
| 507 "description": "Total per-passenger price (fare and tax) in
the sale or equivalent currency.", |
| 508 "type": "string" |
| 509 }, |
| 510 "segmentPricing": { |
| 511 "description": "The per-segment price and baggage informatio
n.", |
| 512 "items": { |
| 513 "$ref": "SegmentPricing" |
| 514 }, |
| 515 "type": "array" |
| 516 }, |
| 517 "tax": { |
| 518 "description": "The taxes used to calculate the tax total pe
r ticket.", |
| 519 "items": { |
| 520 "$ref": "TaxInfo" |
| 521 }, |
| 522 "type": "array" |
| 523 } |
| 524 }, |
| 525 "type": "object" |
| 526 }, |
| 527 "SegmentInfo": { |
| 528 "description": "Details of a segment of a flight; a segment is one o
r more consecutive legs on the same flight. For example a hypothetical flight ZZ
001, from DFW to OGG, would have one segment with two legs: DFW to HNL (leg 1),
HNL to OGG (leg 2), and DFW to OGG (legs 1 and 2).", |
| 529 "id": "SegmentInfo", |
| 530 "properties": { |
| 531 "bookingCode": { |
| 532 "description": "The booking code or class for this segment."
, |
| 533 "type": "string" |
| 534 }, |
| 535 "bookingCodeCount": { |
| 536 "description": "The number of seats available in this bookin
g code on this segment.", |
| 537 "format": "int32", |
| 538 "type": "integer" |
| 539 }, |
| 540 "cabin": { |
| 541 "description": "The cabin booked for this segment.", |
| 542 "type": "string" |
| 543 }, |
| 544 "connectionDuration": { |
| 545 "description": "In minutes, the duration of the connection f
ollowing this segment.", |
| 546 "format": "int32", |
| 547 "type": "integer" |
| 548 }, |
| 549 "duration": { |
| 550 "description": "The duration of the flight segment in minute
s.", |
| 551 "format": "int32", |
| 552 "type": "integer" |
| 553 }, |
| 554 "flight": { |
| 555 "$ref": "FlightInfo", |
| 556 "description": "The flight this is a segment of." |
| 557 }, |
| 558 "id": { |
| 559 "description": "An id uniquely identifying the segment in th
e solution.", |
| 560 "type": "string" |
| 561 }, |
| 562 "kind": { |
| 563 "default": "qpxexpress#segmentInfo", |
| 564 "description": "Identifies this as a segment object. A segme
nt is one or more consecutive legs on the same flight. For example a hypothetica
l flight ZZ001, from DFW to OGG, could have one segment with two legs: DFW to HN
L (leg 1), HNL to OGG (leg 2). Value: the fixed string qpxexpress#segmentInfo.", |
| 565 "type": "string" |
| 566 }, |
| 567 "leg": { |
| 568 "description": "The legs composing this segment.", |
| 569 "items": { |
| 570 "$ref": "LegInfo" |
| 571 }, |
| 572 "type": "array" |
| 573 }, |
| 574 "marriedSegmentGroup": { |
| 575 "description": "The solution-based index of a segment in a m
arried segment group. Married segments can only be booked together. For example,
an airline might report a certain booking code as sold out from Boston to Pitts
burgh, but as available as part of two married segments Boston to Chicago connec
ting through Pittsburgh. For example content of this field, consider the round-t
rip flight ZZ1 PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has three segments, with th
e two outbound ones (ZZ1 ZZ2) married. In this case, the two outbound segments b
elong to married segment group 0, and the return segment belongs to married segm
ent group 1.", |
| 576 "type": "string" |
| 577 }, |
| 578 "subjectToGovernmentApproval": { |
| 579 "description": "Whether the operation of this segment remain
s subject to government approval.", |
| 580 "type": "boolean" |
| 581 } |
| 582 }, |
| 583 "type": "object" |
| 584 }, |
| 585 "SegmentPricing": { |
| 586 "description": "The price of this segment.", |
| 587 "id": "SegmentPricing", |
| 588 "properties": { |
| 589 "fareId": { |
| 590 "description": "A segment identifier unique within a single
solution. It is used to refer to different parts of the same solution.", |
| 591 "type": "string" |
| 592 }, |
| 593 "freeBaggageOption": { |
| 594 "description": "Details of the free baggage allowance on thi
s segment.", |
| 595 "items": { |
| 596 "$ref": "FreeBaggageAllowance" |
| 597 }, |
| 598 "type": "array" |
| 599 }, |
| 600 "kind": { |
| 601 "default": "qpxexpress#segmentPricing", |
| 602 "description": "Identifies this as a segment pricing object,
representing the price of this segment. Value: the fixed string qpxexpress#segm
entPricing.", |
| 603 "type": "string" |
| 604 }, |
| 605 "segmentId": { |
| 606 "description": "Unique identifier in the response of this se
gment.", |
| 607 "type": "string" |
| 608 } |
| 609 }, |
| 610 "type": "object" |
| 611 }, |
| 612 "SliceInfo": { |
| 613 "description": "Information about a slice. A slice represents a trav
eller's intent, the portion of a low-fare search corresponding to a traveler's r
equest to get between two points. One-way journeys are generally expressed using
1 slice, round-trips using 2. For example, if a traveler specifies the followin
g trip in a user interface:\n| Origin | Destination | Departure Date | | BOS | L
AX | March 10, 2007 | | LAX | SYD | March 17, 2007 | | SYD | BOS | March 22, 200
7 |\nthen this is a three slice trip.", |
| 614 "id": "SliceInfo", |
| 615 "properties": { |
| 616 "duration": { |
| 617 "description": "The duration of the slice in minutes.", |
| 618 "format": "int32", |
| 619 "type": "integer" |
| 620 }, |
| 621 "kind": { |
| 622 "default": "qpxexpress#sliceInfo", |
| 623 "description": "Identifies this as a slice object. A slice r
epresents a traveller's intent, the portion of a low-fare search corresponding t
o a traveler's request to get between two points. One-way journeys are generally
expressed using 1 slice, round-trips using 2. Value: the fixed string qpxexpres
s#sliceInfo.", |
| 624 "type": "string" |
| 625 }, |
| 626 "segment": { |
| 627 "description": "The segment(s) constituting the slice.", |
| 628 "items": { |
| 629 "$ref": "SegmentInfo" |
| 630 }, |
| 631 "type": "array" |
| 632 } |
| 633 }, |
| 634 "type": "object" |
| 635 }, |
| 636 "SliceInput": { |
| 637 "description": "Criteria a desired slice must satisfy.", |
| 638 "id": "SliceInput", |
| 639 "properties": { |
| 640 "alliance": { |
| 641 "description": "Slices with only the carriers in this allian
ce should be returned; do not use this field with permittedCarrier. Allowed valu
es are ONEWORLD, SKYTEAM, and STAR.", |
| 642 "type": "string" |
| 643 }, |
| 644 "date": { |
| 645 "description": "Departure date in YYYY-MM-DD format.", |
| 646 "type": "string" |
| 647 }, |
| 648 "destination": { |
| 649 "description": "Airport or city IATA designator of the desti
nation.", |
| 650 "type": "string" |
| 651 }, |
| 652 "kind": { |
| 653 "default": "qpxexpress#sliceInput", |
| 654 "description": "Identifies this as a slice input object, rep
resenting the criteria a desired slice must satisfy. Value: the fixed string qpx
express#sliceInput.", |
| 655 "type": "string" |
| 656 }, |
| 657 "maxConnectionDuration": { |
| 658 "description": "The longest connection between two legs, in
minutes, you are willing to accept.", |
| 659 "format": "int32", |
| 660 "type": "integer" |
| 661 }, |
| 662 "maxStops": { |
| 663 "description": "The maximum number of stops you are willing
to accept in this slice.", |
| 664 "format": "int32", |
| 665 "type": "integer" |
| 666 }, |
| 667 "origin": { |
| 668 "description": "Airport or city IATA designator of the origi
n.", |
| 669 "type": "string" |
| 670 }, |
| 671 "permittedCarrier": { |
| 672 "description": "A list of 2-letter IATA airline designators.
Slices with only these carriers should be returned.", |
| 673 "items": { |
| 674 "type": "string" |
| 675 }, |
| 676 "type": "array" |
| 677 }, |
| 678 "permittedDepartureTime": { |
| 679 "$ref": "TimeOfDayRange", |
| 680 "description": "Slices must depart in this time of day range
, local to the point of departure." |
| 681 }, |
| 682 "preferredCabin": { |
| 683 "description": "Prefer solutions that book in this cabin for
this slice. Allowed values are COACH, PREMIUM_COACH, BUSINESS, and FIRST.", |
| 684 "type": "string" |
| 685 }, |
| 686 "prohibitedCarrier": { |
| 687 "description": "A list of 2-letter IATA airline designators.
Exclude slices that use these carriers.", |
| 688 "items": { |
| 689 "type": "string" |
| 690 }, |
| 691 "type": "array" |
| 692 } |
| 693 }, |
| 694 "type": "object" |
| 695 }, |
| 696 "TaxData": { |
| 697 "description": "Tax data.", |
| 698 "id": "TaxData", |
| 699 "properties": { |
| 700 "id": { |
| 701 "description": "An identifier uniquely identifying a tax in
a response.", |
| 702 "type": "string" |
| 703 }, |
| 704 "kind": { |
| 705 "default": "qpxexpress#taxData", |
| 706 "description": "Identifies this as a tax data object, repres
enting some tax. Value: the fixed string qpxexpress#taxData.", |
| 707 "type": "string" |
| 708 }, |
| 709 "name": { |
| 710 "description": "The name of a tax.", |
| 711 "type": "string" |
| 712 } |
| 713 }, |
| 714 "type": "object" |
| 715 }, |
| 716 "TaxInfo": { |
| 717 "description": "Tax information.", |
| 718 "id": "TaxInfo", |
| 719 "properties": { |
| 720 "chargeType": { |
| 721 "description": "Whether this is a government charge or a car
rier surcharge.", |
| 722 "type": "string" |
| 723 }, |
| 724 "code": { |
| 725 "description": "The code to enter in the ticket's tax box.", |
| 726 "type": "string" |
| 727 }, |
| 728 "country": { |
| 729 "description": "For government charges, the country levying
the charge.", |
| 730 "type": "string" |
| 731 }, |
| 732 "id": { |
| 733 "description": "Identifier uniquely identifying this tax in
a response. Not present for unnamed carrier surcharges.", |
| 734 "type": "string" |
| 735 }, |
| 736 "kind": { |
| 737 "default": "qpxexpress#taxInfo", |
| 738 "description": "Identifies this as a tax information object.
Value: the fixed string qpxexpress#taxInfo.", |
| 739 "type": "string" |
| 740 }, |
| 741 "salePrice": { |
| 742 "description": "The price of the tax in the sales or equival
ent currency.", |
| 743 "type": "string" |
| 744 } |
| 745 }, |
| 746 "type": "object" |
| 747 }, |
| 748 "TimeOfDayRange": { |
| 749 "description": "Two times in a single day defining a time range.", |
| 750 "id": "TimeOfDayRange", |
| 751 "properties": { |
| 752 "earliestTime": { |
| 753 "description": "The earliest time of day in HH:MM format.", |
| 754 "type": "string" |
| 755 }, |
| 756 "kind": { |
| 757 "default": "qpxexpress#timeOfDayRange", |
| 758 "description": "Identifies this as a time of day range objec
t, representing two times in a single day defining a time range. Value: the fixe
d string qpxexpress#timeOfDayRange.", |
| 759 "type": "string" |
| 760 }, |
| 761 "latestTime": { |
| 762 "description": "The latest time of day in HH:MM format.", |
| 763 "type": "string" |
| 764 } |
| 765 }, |
| 766 "type": "object" |
| 767 }, |
| 768 "TripOption": { |
| 769 "description": "Trip information.", |
| 770 "id": "TripOption", |
| 771 "properties": { |
| 772 "id": { |
| 773 "description": "Identifier uniquely identifying this trip in
a response.", |
| 774 "type": "string" |
| 775 }, |
| 776 "kind": { |
| 777 "default": "qpxexpress#tripOption", |
| 778 "description": "Identifies this as a trip information object
. Value: the fixed string qpxexpress#tripOption.", |
| 779 "type": "string" |
| 780 }, |
| 781 "pricing": { |
| 782 "description": "Per passenger pricing information.", |
| 783 "items": { |
| 784 "$ref": "PricingInfo" |
| 785 }, |
| 786 "type": "array" |
| 787 }, |
| 788 "saleTotal": { |
| 789 "description": "The total price for all passengers on the tr
ip, in the form of a currency followed by an amount, e.g. USD253.35.", |
| 790 "type": "string" |
| 791 }, |
| 792 "slice": { |
| 793 "description": "The slices that make up this trip's itinerar
y.", |
| 794 "items": { |
| 795 "$ref": "SliceInfo" |
| 796 }, |
| 797 "type": "array" |
| 798 } |
| 799 }, |
| 800 "type": "object" |
| 801 }, |
| 802 "TripOptionsRequest": { |
| 803 "description": "A QPX Express search request, which will yield one o
r more solutions.", |
| 804 "id": "TripOptionsRequest", |
| 805 "properties": { |
| 806 "maxPrice": { |
| 807 "description": "Do not return solutions that cost more than
this price. The alphabetical part of the price is in ISO 4217. The format, in re
gex, is [A-Z]{3}\\d+(\\.\\d+)? Example: $102.07", |
| 808 "type": "string" |
| 809 }, |
| 810 "passengers": { |
| 811 "$ref": "PassengerCounts", |
| 812 "description": "Counts for each passenger type in the reques
t." |
| 813 }, |
| 814 "refundable": { |
| 815 "description": "Return only solutions with refundable fares.
", |
| 816 "type": "boolean" |
| 817 }, |
| 818 "saleCountry": { |
| 819 "description": "IATA country code representing the point of
sale. This determines the \"equivalent amount paid\" currency for the ticket.", |
| 820 "type": "string" |
| 821 }, |
| 822 "slice": { |
| 823 "description": "The slices that make up the itinerary of thi
s trip. A slice represents a traveler's intent, the portion of a low-fare search
corresponding to a traveler's request to get between two points. One-way journe
ys are generally expressed using one slice, round-trips using two. An example of
a one slice trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS if the
traveler only stopped in SYD and LAX just long enough to change planes.", |
| 824 "items": { |
| 825 "$ref": "SliceInput" |
| 826 }, |
| 827 "type": "array" |
| 828 }, |
| 829 "solutions": { |
| 830 "description": "The number of solutions to return, maximum 5
00.", |
| 831 "format": "int32", |
| 832 "type": "integer" |
| 833 } |
| 834 }, |
| 835 "type": "object" |
| 836 }, |
| 837 "TripOptionsResponse": { |
| 838 "description": "A QPX Express search response.", |
| 839 "id": "TripOptionsResponse", |
| 840 "properties": { |
| 841 "data": { |
| 842 "$ref": "Data", |
| 843 "description": "Informational data global to list of solutio
ns." |
| 844 }, |
| 845 "kind": { |
| 846 "default": "qpxexpress#tripOptions", |
| 847 "description": "Identifies this as a QPX Express trip respon
se object, which consists of zero or more solutions. Value: the fixed string qpx
express#tripOptions.", |
| 848 "type": "string" |
| 849 }, |
| 850 "requestId": { |
| 851 "description": "An identifier uniquely identifying this resp
onse.", |
| 852 "type": "string" |
| 853 }, |
| 854 "tripOption": { |
| 855 "description": "A list of priced itinerary solutions to the
QPX Express query.", |
| 856 "items": { |
| 857 "$ref": "TripOption" |
| 858 }, |
| 859 "type": "array" |
| 860 } |
| 861 }, |
| 862 "type": "object" |
| 863 }, |
| 864 "TripsSearchRequest": { |
| 865 "description": "A QPX Express search request.", |
| 866 "id": "TripsSearchRequest", |
| 867 "properties": { |
| 868 "request": { |
| 869 "$ref": "TripOptionsRequest", |
| 870 "description": "A QPX Express search request. Required value
s are at least one adult or senior passenger, an origin, a destination, and a da
te." |
| 871 } |
| 872 }, |
| 873 "type": "object" |
| 874 }, |
| 875 "TripsSearchResponse": { |
| 876 "description": "A QPX Express search response.", |
| 877 "id": "TripsSearchResponse", |
| 878 "properties": { |
| 879 "kind": { |
| 880 "default": "qpxExpress#tripsSearch", |
| 881 "description": "Identifies this as a QPX Express API search
response resource. Value: the fixed string qpxExpress#tripsSearch.", |
| 882 "type": "string" |
| 883 }, |
| 884 "trips": { |
| 885 "$ref": "TripOptionsResponse", |
| 886 "description": "All possible solutions to the QPX Express se
arch request." |
| 887 } |
| 888 }, |
| 889 "type": "object" |
| 890 } |
| 891 }, |
| 892 "servicePath": "qpxExpress/v1/trips/", |
| 893 "title": "QPX Express API", |
| 894 "version": "v1" |
| 895 } |
OLD | NEW |