这是我对Sabre BFM的要求:
$scope.addImage = function (campaign) {
if(!campaign) return;
if ($scope.length < campaign.max_slots) {
$scope.slots.push({
"slot_id": $scope.length + 1,
"base_image": $scope.preview,
"path_image": ""
});
} else {
window.alert("you have to delete a slot to generate a new one");
}
};
这是Sabre BFM的回复:
{
"OTA_AirLowFareSearchRQ": {
"Target": "Production",
"OriginDestinationInformation": [
{
"DepartureDateTime": "2017-10-02T00:00:00",
"DestinationLocation": {
"LocationCode": "JFK"
},
"OriginLocation": {
"LocationCode": "LAX"
},
"RPH": "1"
},
{
"DepartureDateTime": "2017-10-27T00:00:00",
"DestinationLocation": {
"LocationCode": "LAX"
},
"OriginLocation": {
"LocationCode": "JFK"
},
"RPH": "2"
}
],
"POS": {
"Source": [
{
"PseudoCityCode": "4OMI",
"RequestorID": {
"CompanyName": {
"Code": "TN"
},
"ID": "REQ.ID",
"Type": "1"
}
}
]
},
"TPA_Extensions": {
"IntelliSellTransaction": {
"RequestType": {
"Name": "50ITINS"
}
}
},
"TravelPreferences": {
"ValidInterlineTicket": true,
"CabinPref": [
{
"Cabin": "Y",
"PreferLevel": "Only"
}
],
"TPA_Extensions": {
"TripType": {
"Value": "Return"
}
}
},
"TravelerInfoSummary": {
"SpecificPTC_Indicator": false,
"SeatsRequested": [
4
],
"AirTravelerAvail": [
{
"PassengerTypeQuantity": [
{
"Quantity": 2,
"Code": "ADT",
"Changeable": true
},
{
"Quantity": 2,
"Code": "CNN11",
"Changeable": true
},
{
"Quantity": 2,
"Code": "INF",
"Changeable": true
}
]
}
]
}
}
}
我的请求有2个ADT,2个CNN11和2个INF。为什么SABRE返回4 ADT和2 INF?
答案 0 :(得分:1)
如果C11(CNN11不存在)pax类型不适用,系统可以默认为ADT。
*IA«
1 SY 424Z 02OCT 1 LAXMSP SS4 1300 1833 /DCSY /E
2 SY 249Z 02OCT 1 MSPJFK SS4 1945 2335 /DCSY /E
3 SY 240Z 27OCT 5 JFKMSP SS4 0700 0905 /DCSY /E
4 SY 423Z 27OCT 5 MSPLAX SS4 1005 1200 /DCSY /E
WPPCNN11«
‡FORMAT‡
WPPC11«
02OCT DEPARTURE DATE-----LAST DAY TO PURCHASE 30SEP/1341
BASE FARE EQUIV AMT TAXES/FEES/CHARGES TOTAL
4- USD229.77 BRL732.29 200.20XT BRL932.49ADT
XT 54.92US 52.24ZP 35.68AY 57.36XF
919.08 2929.16 800.80 3729.96TTL
ADT-04 ZT ZT14
LAX SY X/MSP SY NYC128.37SY X/MSP SY LAX101.40USD229.77END ZP
LAXMSPJFKMSP XFLAX4.5MSP4.5JFK4.5MSP4.5
NONREF/SVCCHGPLUSFAREDIF/CXL BY FLT TIME OR NOVALUE
C11不适用 - 使用ADT - 验证限制
VALIDATING CARRIER - SY
BAG ALLOWANCE -LAXJFK-NIL/SY
1STCHECKED BAG FEE-LAXJFK-BRL79.67/SY/UP TO 50 POUNDS/23 KILOGR
AMS AND UP TO 62 LINEAR INCHES/158 LINEAR CENTIMETERS
2NDCHECKED BAG FEE-LAXJFK-BRL111.54/SY/UP TO 50 POUNDS/23 KILOG
RAMS AND UP TO 62 LINEAR INCHES/158 LINEAR CENTIMETERS
BAG ALLOWANCE -JFKLAX-NIL/SY
1STCHECKED BAG FEE-JFKLAX-BRL79.67/SY/UP TO 50 POUNDS/23 KILOGR
AMS AND UP TO 62 LINEAR INCHES/158 LINEAR CENTIMETERS ‡
如果不需要,您可以强制使用C11 pax类型但如果不适用,则不会返回票价。
WPPC11‡XO«
NO RULES VALID FOR PASSENGER TYPE/CLASS OF SERVICE‡33
答案 1 :(得分:1)
我在这里找到了回复:
Passenger type mismatch in search request and response
当请求中的XOFares值为true时,SABRE将返回:NO COMBINABLE FARES FOR CLASS USED。
默认情况下,此值为false,然后SABRE会将成人替换为儿童。