Class IntelliPricerMessagePopulator
java.lang.Object
de.hybris.platform.prosfacades.converters.populator.IntelliPricerMessagePopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<List<AddBundleToCartRequestData>,IntelliPricerMessage>
- Direct Known Subclasses:
DealIntelliPricerMessagePopulator
public class IntelliPricerMessagePopulator
extends Object
implements de.hybris.platform.converters.Populator<List<AddBundleToCartRequestData>,IntelliPricerMessage>
The type Intelli pricer message populator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected intgetNextFareRestrictionId(IntelliPricerRequest intelliPricer) Gets next fare restriction id.Gets passenger code to pax type mapping.protected PROSTransportOfferingServiceGets the pros transport offering serviceprotected de.hybris.platform.commercefacades.storesession.StoreSessionFacadeGets store session facade.voidpopulate(List<AddBundleToCartRequestData> source, IntelliPricerMessage target) protected voidpopulateFareRestrictions(AddBundleToCartRequestData addBundleToCartRequestData, OriginDestinationGroup originDestinationGroup, IntelliPricerRequest intelliPricerRequest) Populate fare restrictions.protected voidpopulateFlights(AddBundleToCartRequestData addBundleToCartRequestData, AddBundleToCartData addBundleToCartData, OriginDestinationGroup originDestinationGroup, int flightNumber) Populate flights.protected voidpopulateIntelliPricer(List<AddBundleToCartRequestData> source, IntelliPricerRequest intelliPricer) Populate intelli pricer.protected voidpopulateOriginDestinationGroups(List<AddBundleToCartRequestData> source, IntelliPricerRequest intelliPricer) Populate origin destination groups.protected voidpopulatePassengerGroups(AddBundleToCartRequestData addBundleToCartRequestData, IntelliPricerRequest intelliPricerRequest) Populate passenger group.protected voidpopulatePassengerTypes(AddBundleToCartRequestData addBundleToCartRequestData, IntelliPricerRequest intelliPricerRequest) Populate passenger types.protected voidpopulatePreferences(IntelliPricerRequest intelliPricerRequest) Populate preferences.protected StringpopulateRBDs(TransportOfferingModel transportOffering, AddBundleToCartRequestData addBundleToCartRequestData) Populate rb ds string.protected voidpopulateSellers(IntelliPricerRequest intelliPricerRequest) Populate sellers.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 servicevoidsetStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.
-
Constructor Details
-
IntelliPricerMessagePopulator
public IntelliPricerMessagePopulator()
-
-
Method Details
-
populate
- Specified by:
populatein interfacede.hybris.platform.converters.Populator<List<AddBundleToCartRequestData>,IntelliPricerMessage>
-
populateIntelliPricer
protected void populateIntelliPricer(List<AddBundleToCartRequestData> source, IntelliPricerRequest intelliPricer) Populate intelli pricer.- Parameters:
source- the sourceintelliPricer- the intelli pricer
-
populatePassengerGroups
protected void populatePassengerGroups(AddBundleToCartRequestData addBundleToCartRequestData, IntelliPricerRequest intelliPricerRequest) Populate passenger group.- Parameters:
addBundleToCartRequestData- the add bundle to cart request dataintelliPricerRequest- the intelli pricer request
-
populateOriginDestinationGroups
protected void populateOriginDestinationGroups(List<AddBundleToCartRequestData> source, IntelliPricerRequest intelliPricer) Populate origin destination groups.- Parameters:
source- the sourceintelliPricer- the intelli pricer
-
populateFareRestrictions
protected void populateFareRestrictions(AddBundleToCartRequestData addBundleToCartRequestData, OriginDestinationGroup originDestinationGroup, IntelliPricerRequest intelliPricerRequest) Populate fare restrictions.- Parameters:
addBundleToCartRequestData- the add bundle to cart request dataoriginDestinationGroup- the origin destination groupintelliPricerRequest- the intelli pricer request
-
getNextFareRestrictionId
Gets next fare restriction id.- Parameters:
intelliPricer- the intelli pricer- Returns:
- the next fare restriction id
-
populateFlights
protected void populateFlights(AddBundleToCartRequestData addBundleToCartRequestData, AddBundleToCartData addBundleToCartData, OriginDestinationGroup originDestinationGroup, int flightNumber) Populate flights.- Parameters:
addBundleToCartRequestData- the add bundle to cart request dataaddBundleToCartData- the add bundle to cart dataoriginDestinationGroup- the origin destination groupflightNumber- the flight number
-
populateRBDs
protected String populateRBDs(TransportOfferingModel transportOffering, AddBundleToCartRequestData addBundleToCartRequestData) Populate rb ds string.- Parameters:
transportOffering- the transport offeringaddBundleToCartRequestData- the add bundle to cart request data- 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(AddBundleToCartRequestData addBundleToCartRequestData, IntelliPricerRequest intelliPricerRequest) Populate passenger types.- Parameters:
addBundleToCartRequestData- the add bundle to cart request dataintelliPricerRequest- the intelli pricer request
-
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
-
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
-
getStoreSessionFacade
protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade getStoreSessionFacade()Gets store session facade.- Returns:
- the store session facade
-
setStoreSessionFacade
public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade) Sets store session facade.- Parameters:
storeSessionFacade- the store session facade
-