Class ReservationOfferPricingInfoHandler
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractReservationOfferPricingInfoHandler
de.hybris.platform.travelfacades.reservation.handlers.impl.ReservationOfferPricingInfoHandler
- All Implemented Interfaces:
ReservationHandler
public class ReservationOfferPricingInfoHandler
extends AbstractReservationOfferPricingInfoHandler
implements ReservationHandler
This handler is responsible for instantiating a list of Offer Pricing Infos for given leg which will contain summary of
ancillaries selected by user. It populates the OfferPricingInfo of the ReservationData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OfferPricingInfoDataCreates a new instance of OfferPricingInfo for a new ancillary productprotected TravellerBreakdownDataCreates a new TravellerBreakdown instanceprotected List<OfferPricingInfoData>createOfferPricingInfo(List<AbstractOrderEntryModel> ancillaryEntries) Creates a list of offer pricing infos for the given ancillary entries.protected voidcreateOfferPricingInfosForBookingBreakdown(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry) Creates a list of offerPricingInfos for the bookingBreakdown for the given entryprotected voidcreateOfferPricingInfosForTravellerBreakdown(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry) Creates a list of offerPricingInfos for the travellerBreakdown for the given entryprotected TravellerDataFinds requested travellerDataprotected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> Gets traveller data converter.voidhandle(AbstractOrderModel abstractOrderModel, ReservationData reservationData) Handle method.voidsetTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel, TravellerData> travellerDataConverter) Sets traveller data converter.Methods inherited from class de.hybris.platform.travelfacades.reservation.handlers.impl.AbstractReservationOfferPricingInfoHandler
checkBundleNo, checkBundleNo, createNewBookingBreakdown, createNewOfferPricingInfoForBookingBreakdown, getCommonI18NService, getNotAncillaryProductTypes, getOfferPricingInfoFromList, getPriceDataFactory, getProductConverter, getProductTypeInstanceMap, getTravelCommercePriceFacade, getTravellerBreakdownForTraveller, isAncillaryEntry, isAncillaryEntry, isPerBookingEntry, isPerLegEntry, isPerLegPerPaxEntry, isPerPaxEntry, setCommonI18NService, setNotAncillaryProductTypes, setPriceDataFactory, setProductConverter, setProductTypeInstanceMap, setTravelCommercePriceFacade, updateBookingBreakdown, updateBookingBreakdown, updateTravellerBreakdown, updateTravellerBreakdown
-
Constructor Details
-
ReservationOfferPricingInfoHandler
public ReservationOfferPricingInfoHandler()
-
-
Method Details
-
handle
Description copied from interface:ReservationHandlerHandle method.- Specified by:
handlein interfaceReservationHandler- Parameters:
abstractOrderModel- the abstract order modelreservationData- the reservation data
-
createOfferPricingInfo
protected List<OfferPricingInfoData> createOfferPricingInfo(List<AbstractOrderEntryModel> ancillaryEntries) Creates a list of offer pricing infos for the given ancillary entries.- Parameters:
ancillaryEntries- - ancillary entries for given Abstract Order and leg- Returns:
- list of offer pricing info for traveller
-
createOfferPricingInfosForTravellerBreakdown
protected void createOfferPricingInfosForTravellerBreakdown(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry) Creates a list of offerPricingInfos for the travellerBreakdown for the given entry- Parameters:
offerPricingInfos- the list of offerPricingInfo to be populatedentry- the abstractOrderEntry
-
createOfferPricingInfosForBookingBreakdown
protected void createOfferPricingInfosForBookingBreakdown(List<OfferPricingInfoData> offerPricingInfos, AbstractOrderEntryModel entry) Creates a list of offerPricingInfos for the bookingBreakdown for the given entry- Parameters:
offerPricingInfos- the list of offerPricingInfo to be populatedentry- the abstractOrderEntry
-
createNewTravellerBreakdown
Creates a new TravellerBreakdown instance- Parameters:
entry- - entry which needs to be included in traveller breakdown- Returns:
- new traveller breakdown for traveller in the entry
-
getTraveller
Finds requested travellerData- Parameters:
entry- - entry containing requested traveller- Returns:
- traveller data matching traveller from the entry
-
createNewOfferPricingInfoForTravellerBreakdown
protected OfferPricingInfoData createNewOfferPricingInfoForTravellerBreakdown(AbstractOrderEntryModel entry) Creates a new instance of OfferPricingInfo for a new ancillary product- Parameters:
entry- - new ancillary entry which needs to be translated into offer pricing info- Returns:
- new offer pricing info containing information about current entry product
-
getTravellerDataConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel,TravellerData> getTravellerDataConverter()Gets traveller data converter.- Returns:
- the travellerDataConverter
-
setTravellerDataConverter
public void setTravellerDataConverter(de.hybris.platform.servicelayer.dto.converter.Converter<TravellerModel, TravellerData> travellerDataConverter) Sets traveller data converter.- Parameters:
travellerDataConverter- the travellerDataConverter to set
-