我正在开发由Sabre的肥皂Api支持的旅行应用程序。选择不同的回程航班为廉价搜索最大航班
我打电话与给定的请求
<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="1" ID="1">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="1">
<DepartureDateTime>2017-05-19T17:33:49</DepartureDateTime>
<OriginLocation LocationCode="YYZ"/>
<DestinationLocation LocationCode="LHR"/>
<TPA_Extensions>
<SegmentType Code="O"/>
</TPA_Extensions>
</OriginDestinationInformation>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="2">
<DepartureDateTime>2017-05-29T00:00:00</DepartureDateTime>
<OriginLocation LocationCode="LHR"/>
<DestinationLocation LocationCode="YYZ"/>
<TPA_Extensions>
<SegmentType Code="O"/>
</TPA_Extensions>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
<TripType Value="Return"/>
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>
我得到了来自SOAP响应以下的BargainFinderMax(BFM)端点:
两个OriginDestinationOption
一个。 一种含航段的旅行目的地
湾另一个包含从目的地返程的航班段。
FarePriceInfo为每个OriginDestinationOption-包含整个行程(包括UpTrip和双程)的价格
考虑场景:
OriginDestinationOption:一个
UpTrip - a:YYZ - LHR -
回程 - 一个:LHR - YYZ
总行程价格= $ 900
OriginDestinationOption:乙
UpTrip - B:YYZ - LHR
回程 - b:LHR - YYZ
总行程价格= $ 940
我的问题是:
如果我选择UpTrip -a我uptrip,有可能是我的选择ReturnTrip - b为回程?
如果没有上述的问题,我失去了在请求任何参数,使该组合功能。
谢谢你的帮助。
非常感谢。 :)。 – Zee