如果只是简单的,写出发城市,到达城市,销售航司或开票航司, 很多farerule是取不到的。
实际BFM结果里已经告诉咱们了。 --------------------------------------------- <FareBasisCodes> <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="CDG" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="AF">EKWSRCN</FareBasisCode> <FareBasisCode BookingCode="X" AvailabilityBreak="true" DepartureAirportCode="CDG" ArrivalAirportCode="PVG" FareComponentBeginAirport="CDG" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="AF">XXP9CN</FareBasisCode> </FareBasisCodes>
PVG-CDG,AF,EKWSRCN PVG-CDG,AF,XXP9CN 转为RD指令就是: RDPVGCDG03JUN18EKWSRCN-AF*16 RDPVGCDG03JUN18XXP9CN-AF*16
------------------------------------------------------- <FareBasisCodes> <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="CDG" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="AF">EKWSRCN</FareBasisCode> <FareBasisCode BookingCode="L" DepartureAirportCode="CDG" ArrivalAirportCode="AMS" FareComponentBeginAirport="CDG" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="AF">TKXSFCN</FareBasisCode> <FareBasisCode BookingCode="T" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="PVG" GovCarrier="AF">TKXSFCN</FareBasisCode> </FareBasisCodes> 第三行没有FareComponentBeginAirport和FareComponentEndAirport,所以忽略掉。 PVG-CDG,AF,EKWSRCN PVG-CDG,AF,TKXSFCN 转为RD指令就是: RDPVGCDG03JUN18EKWSRCN-AF*16 RDPVGCDG03JUN18TKXSFCN-AF*16
------------------------------------------------------- <FareBasisCodes> <FareBasisCode BookingCode="Q" DepartureAirportCode="PVG" ArrivalAirportCode="AMS" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="AF">QKWSFCN</FareBasisCode> <FareBasisCode BookingCode="L" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="CDG" GovCarrier="AF">QKWSFCN</FareBasisCode> <FareBasisCode BookingCode="L" DepartureAirportCode="CDG" ArrivalAirportCode="AMS" FareComponentBeginAirport="CDG" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="AF">TKXSFCN</FareBasisCode> <FareBasisCode BookingCode="T" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="PVG" GovCarrier="AF">TKXSFCN</FareBasisCode> </FareBasisCodes> 这个没啥。 PVG-CDG,AF,QKWSFCN PVG-CDG,AF,TKXSFCN 转为RD指令就是: RDPVGCDG03JUN18QKWSFCN-AF*16 RDPVGCDG03JUN18TKXSFCN-AF*16 ------------------------------------------------------- <FareBasisCodes> <FareBasisCode BookingCode="S" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="ICN" FareComponentBeginAirport="PVG" FareComponentEndAirport="ICN" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="OZ">SLCK</FareBasisCode> <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="ICN" ArrivalAirportCode="IST" FareComponentBeginAirport="ICN" FareComponentEndAirport="IST" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="OZ">EKWKP</FareBasisCode> <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="IST" ArrivalAirportCode="ICN" FareComponentBeginAirport="IST" FareComponentEndAirport="ICN" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="OZ">EKWKP</FareBasisCode> <FareBasisCode BookingCode="Q" AvailabilityBreak="true" DepartureAirportCode="ICN" ArrivalAirportCode="PVG" FareComponentBeginAirport="ICN" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="OZ">QLCK</FareBasisCode> </FareBasisCodes> 这个特殊,是往返中间夹了一个往返 PVG-ICN,OZ,SLCK ICN-IST,OZ,EKWKP PVG-ICN,OZ,QLCK 转为RD指令就是: RDPVGICN03JUN18SLCK-OZ*16 RDICNIST03JUN18EKWKP-OZ*16 RDPVGICN03JUN18QLCK-OZ*16 懂了吗? FareComponentDirectionality="FROM" 时, fromCity永远是FareComponentBeginAirport toCity永远是FareComponentEndAirport. FareComponentDirectionality="TO" 时,就反过来.
------------------------------------------------------- <FareBasisCodes> <FareBasisCode BookingCode="L" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="CDG" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="MU">LKSFCN</FareBasisCode> <FareBasisCode BookingCode="B" AvailabilityBreak="true" DepartureAirportCode="CDG" ArrivalAirportCode="IST" FareComponentBeginAirport="CDG" FareComponentEndAirport="IST" FareComponentDirectionality="FROM" FareComponentVendorCode="SITA" GovCarrier="AF">YIF</FareBasisCode> <FareBasisCode BookingCode="Q" AvailabilityBreak="true" DepartureAirportCode="IST" ArrivalAirportCode="AMS" FareComponentBeginAirport="IST" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="MU">NKSRCE</FareBasisCode> <FareBasisCode BookingCode="N" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="PVG" GovCarrier="MU">NKSRCE</FareBasisCode> </FareBasisCodes> 注意航司 PVG-CDG,MU,LKSFCN CDG-IST,AF,YIF PVG-IST,MU,NKSRCE 转为RD指令就是: RDPVGCDG03JUN18LKSFCN-MU*16 RDCDGIST03JUN18YIF-AF*16 RDPVGIST03JUN18NKSRCE-MU*16 ---------------------------------------- <FareBasisCode PrivateFareType="*" AccountCode="123456" 有AccountCode的,在OTA_AirRulesRQ请求时要把code带上,否则取不到farerule的。
|