为“特价搜寻器"最大航班选择其他返程航班 [英] Choose different return flight for Bargain Finder Max Flight

查看:60
本文介绍了为“特价搜寻器"最大航班选择其他返程航班的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个由Sabre的Soap Api驱动的旅行应用程序.

I'm developing a travel application powered by Sabre's Soap Api.

我正在通过给定请求调用BargainFinderMax(BFM)端点

I am calling the BargainFinderMax(BFM) endpoint with the Given request

<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>

我从肥皂反应中得到以下信息:

I get the following from the soap response:

  1. 两个OriginDestinationOption

  1. Two OriginDestinationOption

a.一个包含前往目的地的航班的航段

b.另一个包含从目的地返程的航班段.

每个OriginDestinationOption的FarePriceInfo-包含整个行程的价格(包括UpTrip和Return行程)

FarePriceInfo for the each OriginDestinationOption- contains the price of the entire trip (including UpTrip and Return trip)

考虑场景:

OriginDestinationOption:a

UpTrip-a :YYZ-LHR-

回程-a :LHR-YYZ

总旅行价格= $ 900

OriginDestinationOption:b

UpTrip-b :YYZ-LHR

回程-b :LHR-YYZ

总旅行价格= $ 940

我的问题是:

  1. 如果我为出行选择 UpTrip -a ,是否可以为回程选择 ReturnTrip-b ?

  1. if i select UpTrip -a for my uptrip, is it possible for me to select ReturnTrip - b for the return trip?

如果没有上述问题,我是否在请求中缺少启用该组合功能的任何参数.

If no the above question, am I missing any parameters in the request to enable that combination feature.

感谢您的帮助.

推荐答案

您在 PricedItinerary 中有一个 AirItinerary 元素,该元素具有要预订的完整路线.不建议混合来自不同 AirItinerary 元素的腿,因为可能不符合票价规则.

You have an AirItinerary element inside PricedItinerary that have the complete itinerary to be booked. It is not recommended to mix legs from different AirItinerary elements, because fare rules may not be met.

因此,不仅不能保证价格会保持不变,也不能保证新行程的价格.

So, not only there's no guarantee that the price will remain the same, there's no guarantee that the new itinerary will price.

没有功能可以满足您的需求,更紧密的是多票制.在 DevStudio的资源页面中,您已经在线帮助文档,具体来说,请检查

There's no feature that will do what you want, the thing that gets closer is Multi-Ticket. In the resources page of DevStudio, you have online help documents, specifically, please check on this link.

这篇关于为“特价搜寻器"最大航班选择其他返程航班的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆