Class CartToIntelliPricerMessagePopulator
java.lang.Object
de.hybris.platform.shoppingservices.converters.populator.CartToFarePriceMessagePopulator
de.hybris.platform.prosservices.converters.populator.CartToIntelliPricerMessagePopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<AbstractOrderModel,FarePriceMessage>
The type Cart to intelli pricer message populator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.i18n.CommonI18NServiceGets common i 18 n service.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected intgetNextFareRestrictionId(IntelliPricerRequest intelliPricer) Gets next fare restriction id.Gets passenger code to pax type mapping.getPassengersForFareRestriction(List<AbstractOrderEntryModel> odEntries, IntelliPricerRequest intelliPricerRequest) Calculates the list of passenger for the fare restriction.protected PROSTransportOfferingServiceGets the pros transport offering serviceprotected TransportOfferingServiceGets transport offering service.protected Set<TravellerModel>getTravellers(AbstractOrderModel source) Gets travellers.protected TravelRouteServiceGets travel route service.voidpopulate(AbstractOrderModel source, FarePriceMessage target) protected voidpopulateFareRestrictions(AbstractOrderModel abstractOrderModel, IntelliPricerRequest intelliPricerRequest) Populate fare restrictions.protected voidpopulateFlights(AbstractOrderEntryModel orderEntryModel, OriginDestinationGroup originDestinationGroup, int flightNumber) Populate flights.protected voidpopulateIntelliPricer(AbstractOrderModel source, IntelliPricerRequest intelliPricer) Populate intelli pricer.protected voidpopulateOriginDestinationGroups(AbstractOrderModel source, IntelliPricerRequest intelliPricer) Populate origin destination groups.protected voidpopulatePassengerGroups(AbstractOrderModel abstractOrderModel, IntelliPricerRequest intelliPricerRequest) Populate passenger group.protected voidpopulatePassengerTypes(AbstractOrderModel source, IntelliPricerRequest intelliPricerRequest) Populate passenger types.protected voidpopulatePreferences(IntelliPricerRequest intelliPricerRequest) Populate preferences.protected StringpopulateRBDs(TransportOfferingModel transportOffering, AbstractOrderEntryModel orderEntryModel) Populate rb ds string.protected voidpopulateSellers(IntelliPricerRequest intelliPricerRequest) Populate sellers.voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Sets common i 18 n service.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetPassengerCodeToPaxTypeMapping(Map<String, String> passengerCodeToPaxTypeMapping) Sets passenger code to pax type mapping.voidsetProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService) Sets the pros transport offering servicevoidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.voidsetTravelRouteService(TravelRouteService travelRouteService) Sets travel route service.
-
Constructor Details
-
CartToIntelliPricerMessagePopulator
public CartToIntelliPricerMessagePopulator()
-
-
Method Details
-
populate
- Specified by:
populatein interfacede.hybris.platform.converters.Populator<AbstractOrderModel,FarePriceMessage> - Overrides:
populatein classCartToFarePriceMessagePopulator
-
populateIntelliPricer
Populate intelli pricer.- Parameters:
source- the sourceintelliPricer- the intelli pricer
-
populatePassengerGroups
protected void populatePassengerGroups(AbstractOrderModel abstractOrderModel, IntelliPricerRequest intelliPricerRequest) Populate passenger group.- Parameters:
abstractOrderModel- the cart modelintelliPricerRequest- the intelli pricer request
-
populateOriginDestinationGroups
protected void populateOriginDestinationGroups(AbstractOrderModel source, IntelliPricerRequest intelliPricer) Populate origin destination groups.- Parameters:
source- the sourceintelliPricer- the intelli pricer
-
populateFareRestrictions
protected void populateFareRestrictions(AbstractOrderModel abstractOrderModel, IntelliPricerRequest intelliPricerRequest) Populate fare restrictions.- Parameters:
abstractOrderModel- the cart modelintelliPricerRequest- the intelli pricer request
-
getPassengersForFareRestriction
protected List<Passenger> getPassengersForFareRestriction(List<AbstractOrderEntryModel> odEntries, IntelliPricerRequest intelliPricerRequest) Calculates the list of passenger for the fare restriction.- Parameters:
odEntries- the list of AbstractOrderEntryModel entriesintelliPricerRequest- the intelliPricerRequest- Returns:
- the list of Passengers
-
getNextFareRestrictionId
Gets next fare restriction id.- Parameters:
intelliPricer- the intelli pricer- Returns:
- the next fare restriction id
-
populateFlights
protected void populateFlights(AbstractOrderEntryModel orderEntryModel, OriginDestinationGroup originDestinationGroup, int flightNumber) Populate flights.- Parameters:
orderEntryModel- the order entry modeloriginDestinationGroup- the origin destination groupflightNumber- the flight number
-
populateRBDs
protected String populateRBDs(TransportOfferingModel transportOffering, AbstractOrderEntryModel orderEntryModel) Populate rb ds string.- Parameters:
transportOffering- the transport offeringorderEntryModel- the order entry model- Returns:
- the string
-
populatePreferences
Populate preferences.- Parameters:
intelliPricerRequest- the intelli pricer request
-
populateSellers
Populate sellers.- Parameters:
intelliPricerRequest- the intelli pricer request
-
populatePassengerTypes
protected void populatePassengerTypes(AbstractOrderModel source, IntelliPricerRequest intelliPricerRequest) Populate passenger types.- Parameters:
source- the sourceintelliPricerRequest- the intelli pricer request
-
getTravellers
Gets travellers.- Parameters:
source- the source- Returns:
- the travellers
-
getPassengerCodeToPaxTypeMapping
Gets passenger code to pax type mapping.- Returns:
- the passenger code to pax type mapping
-
setPassengerCodeToPaxTypeMapping
Sets passenger code to pax type mapping.- Parameters:
passengerCodeToPaxTypeMapping- the passenger code to pax type mapping
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets configuration service.- Returns:
- the configuration service
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.- Parameters:
configurationService- the configuration service
-
getTravelRouteService
Gets travel route service.- Returns:
- the travel route service
-
setTravelRouteService
Sets travel route service.- Parameters:
travelRouteService- the travel route service
-
getTransportOfferingService
Gets transport offering service.- Returns:
- the transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-
getCommonI18NService
protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()Gets common i 18 n service.- Returns:
- the common i 18 n service
-
setCommonI18NService
public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Sets common i 18 n service.- Parameters:
commonI18NService- the common i 18 n service
-
getProsTransportOfferingService
Gets the pros transport offering service- Returns:
- the pros transport offering service
-
setProsTransportOfferingService
public void setProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService) Sets the pros transport offering service- Parameters:
prosTransportOfferingService- the pros transport offering service
-