Skip to content

Commit

Permalink
Merge pull request #48 from Travelport-Ukraine/issue/47-connection-se…
Browse files Browse the repository at this point in the history
…gments

Issue/47 connection segments
  • Loading branch information
shmuga authored Oct 27, 2016
2 parents 5f2a591 + f12f55d commit 1fad545
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/Air.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ After searching for air segments and fares, air bookings are created using the r

Each search response has `Directions` array which represents different variations of the same trip (with same price), but with the different flight options. Each index of `Directions` array represents leg index. For example if you have IEV-PAR-IEV roundtrip search request it will have IEV-PAR, PAR-IEV legs. And `Directions` array will have length 2. Under `Directions[0]` and `Directions[1]` will be different options for the flight.
So under `Directions[0][1]` you will find `Segments` array. This segments are used for booking.
Please specify `transfer` field to mark connection segment.

`Segment` object sample.
```json
Expand All @@ -94,6 +95,7 @@ So under `Directions[0][1]` you will find `Segments` array. This segments are us
"serviceClass": "Economy",
"plane": "E90",
"fareBasisCode": "GSRUA",
"transfer": false
}
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uapi-json",
"version": "0.4.0",
"version": "0.4.1",
"description": "Travelport Universal API",
"main": "build/",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions src/Services/Air/templates/AIR_PRICE_REQ.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
Key="{{@index}}"
Group="0">
</air:AirSegment>
{{#if transfer}}
<air:Connection/>
{{/if}}
{{/segments}}
</air:AirItinerary>
{{#if business}}
Expand Down

0 comments on commit 1fad545

Please sign in to comment.