(1)前提: 使用EnhancedAirBookRS服务,使用BargainFinder查找最低舱位。
(2)现象: 当指定的航段是商务舱时,BargainFinder返回的最低舱是商务舱的价格,很贵~~ <BargainFinder> <AlternateBooking ResBookDesigCode="1Z"/> <AlternateBooking ResBookDesigCode="2J"/> <AlternateBooking ResBookDesigCode="3J"/> <AlternateBooking ResBookDesigCode="4D"/> </BargainFinder> 查询文档后,发现有个Cabin参数。 http://files.developer.sabre.com/doc/providerdoc/ServicesPlatform/EnhancedAirBookRQ_v3.7.0_Design.xml http://files.developer.sabre.com/wsdl/sabreXML1.0.00/ServicesPlatform/EnhancedAirBook3.7.0RQ.xsd <OTA_AirPriceRQ> <PriceRequestInformation Retain="false"> <OptionalQualifiers> <PricingQualifiers> <BargainFinder Rebook="true"/> <Cabin>YB</Cabin> <PassengerType Code="ADT" Quantity="1"/> </PricingQualifiers> </OptionalQualifiers> </PriceRequestInformation> </OTA_AirPriceRQ>
通过CabinCode的值: P – Premium first class cabin F – First class cabin J – Premium business class cabin C – Business class cabin S – Premium economy class cabin Y – Economy class cabin 猜测Cabin的可选值是PB,FB,JB,CB,SB,YB 实际测试: PB,FB,JB 返回:CABIN REQUESTED IS NOT OFFERED/AVAILABLE CB 返回 INVALID CABIN CODE SB 返回CABIN REQUESTED IS NOT OFFERED/AVAILABLE YB 可以使用。 ------------------------------------------- 咨询Sabre人员后,答案如下: Premium first class cabin (PB) Premium business class cabin (JB) Premium economy class cabin (SB) All cabin (AB) First class cabin (FB) Business class cabin (BB) Economy class cabin (YB)
那我们这里使用AB就行了,不管舱位是什么,返回最低价那个就行了。
|