Using Cabin Code in FareComponent Versus FlightSegment
The following situation can occur in the AllBrandsPricing
response for an offer (Summary
element):
<FareComponent PricingUnitCount="1" PricingUnitType="O" GlobalDirection="AT" FareCalcDirectionality="FR" CommencementDate="2016-09-13" StopoverInd="false" CabinCode="C" BrandId="EF" BrandName="BUSINESS FLEXIBLE" ProgramCode="CFFAC" ProgramName="INTERNATIONAL" ProgramSystemCode="Q" ProgramID="85412">
...
<FlightSegments>
<FlightSegment SequenceNumber="01" RequiredBookingCode="J" RebookSameBookingCodeInd="false" GlobalDirection="AT" FareBreakPointInd="false" GeographyType="I" CabinCode="Y" EquipmentType="343">
...
</FlightSegment>
<FlightSegment SequenceNumber="02" RequiredBookingCode="J" RebookSameBookingCodeInd="false" GlobalDirection="WH" FareBreakPointInd="true" GeographyType="T" CabinCode="Y" EquipmentType="319">
...
</FlightSegment>
</FlightSegments>
</FareComponent>
...
<FlightSegments>
<FlightSegment SequenceNumber="01" RequiredBookingCode="J" RebookSameBookingCodeInd="false" GlobalDirection="AT" FareBreakPointInd="false" GeographyType="I" CabinCode="Y" EquipmentType="343">
...
</FlightSegment>
<FlightSegment SequenceNumber="02" RequiredBookingCode="J" RebookSameBookingCodeInd="false" GlobalDirection="WH" FareBreakPointInd="true" GeographyType="T" CabinCode="Y" EquipmentType="319">
...
</FlightSegment>
</FlightSegments>
</FareComponent>
-
In
FlightSegment/CabinCode
, the Air Pricing operation returns the requested cabin, even if the offered fare andRequiredBookingCode
are in a different class. -
The
BrandId
option belongs to the CabinCode attribute returned in the FareComponent. -
Use the
CabinCode="C"
returned inFareComponent
; this is the cabin from which the API offers a brand in theSummary
element. It may be different than the requested cabin, as shown in the example above.