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>

public class CartToIntelliPricerMessagePopulator extends CartToFarePriceMessagePopulator
The type Cart to intelli pricer message populator.
  • Constructor Details

    • CartToIntelliPricerMessagePopulator

      public CartToIntelliPricerMessagePopulator()
  • Method Details

    • populate

      public void populate(AbstractOrderModel source, FarePriceMessage target)
      Specified by:
      populate in interface de.hybris.platform.converters.Populator<AbstractOrderModel,FarePriceMessage>
      Overrides:
      populate in class CartToFarePriceMessagePopulator
    • populateIntelliPricer

      protected void populateIntelliPricer(AbstractOrderModel source, IntelliPricerRequest intelliPricer)
      Populate intelli pricer.
      Parameters:
      source - the source
      intelliPricer - the intelli pricer
    • populatePassengerGroups

      protected void populatePassengerGroups(AbstractOrderModel abstractOrderModel, IntelliPricerRequest intelliPricerRequest)
      Populate passenger group.
      Parameters:
      abstractOrderModel - the cart model
      intelliPricerRequest - the intelli pricer request
    • populateOriginDestinationGroups

      protected void populateOriginDestinationGroups(AbstractOrderModel source, IntelliPricerRequest intelliPricer)
      Populate origin destination groups.
      Parameters:
      source - the source
      intelliPricer - the intelli pricer
    • populateFareRestrictions

      protected void populateFareRestrictions(AbstractOrderModel abstractOrderModel, IntelliPricerRequest intelliPricerRequest)
      Populate fare restrictions.
      Parameters:
      abstractOrderModel - the cart model
      intelliPricerRequest - 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 entries
      intelliPricerRequest - the intelliPricerRequest
      Returns:
      the list of Passengers
    • getNextFareRestrictionId

      protected int getNextFareRestrictionId(IntelliPricerRequest intelliPricer)
      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 model
      originDestinationGroup - the origin destination group
      flightNumber - the flight number
    • populateRBDs

      protected String populateRBDs(TransportOfferingModel transportOffering, AbstractOrderEntryModel orderEntryModel)
      Populate rb ds string.
      Parameters:
      transportOffering - the transport offering
      orderEntryModel - the order entry model
      Returns:
      the string
    • populatePreferences

      protected void populatePreferences(IntelliPricerRequest intelliPricerRequest)
      Populate preferences.
      Parameters:
      intelliPricerRequest - the intelli pricer request
    • populateSellers

      protected void populateSellers(IntelliPricerRequest intelliPricerRequest)
      Populate sellers.
      Parameters:
      intelliPricerRequest - the intelli pricer request
    • populatePassengerTypes

      protected void populatePassengerTypes(AbstractOrderModel source, IntelliPricerRequest intelliPricerRequest)
      Populate passenger types.
      Parameters:
      source - the source
      intelliPricerRequest - the intelli pricer request
    • getTravellers

      protected Set<TravellerModel> getTravellers(AbstractOrderModel source)
      Gets travellers.
      Parameters:
      source - the source
      Returns:
      the travellers
    • getPassengerCodeToPaxTypeMapping

      protected Map<String,String> getPassengerCodeToPaxTypeMapping()
      Gets passenger code to pax type mapping.
      Returns:
      the passenger code to pax type mapping
    • setPassengerCodeToPaxTypeMapping

      public void setPassengerCodeToPaxTypeMapping(Map<String,String> passengerCodeToPaxTypeMapping)
      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

      protected TravelRouteService getTravelRouteService()
      Gets travel route service.
      Returns:
      the travel route service
    • setTravelRouteService

      public void setTravelRouteService(TravelRouteService travelRouteService)
      Sets travel route service.
      Parameters:
      travelRouteService - the travel route service
    • getTransportOfferingService

      protected TransportOfferingService getTransportOfferingService()
      Gets transport offering service.
      Returns:
      the transport offering service
    • setTransportOfferingService

      public void setTransportOfferingService(TransportOfferingService transportOfferingService)
      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

      protected PROSTransportOfferingService 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