Class AbstractOrderToRepricingRequestDataPopulator

java.lang.Object
de.hybris.platform.prosfacades.converters.populator.AbstractOrderToRepricingRequestDataPopulator
All Implemented Interfaces:
de.hybris.platform.converters.Populator<AbstractOrderModel,RepricingRequestData>

public class AbstractOrderToRepricingRequestDataPopulator extends Object implements de.hybris.platform.converters.Populator<AbstractOrderModel,RepricingRequestData>
Populator to populate RepricingRequestData from AbstractOrderModel
  • Constructor Details

    • AbstractOrderToRepricingRequestDataPopulator

      public AbstractOrderToRepricingRequestDataPopulator()
  • Method Details

    • populate

      public void populate(AbstractOrderModel abstractOrderModel, RepricingRequestData repricingRequestData) throws de.hybris.platform.servicelayer.dto.converter.ConversionException
      Specified by:
      populate in interface de.hybris.platform.converters.Populator<AbstractOrderModel,RepricingRequestData>
      Throws:
      de.hybris.platform.servicelayer.dto.converter.ConversionException
    • populateChangeSolutionRequestData

      protected void populateChangeSolutionRequestData(AbstractOrderModel abstractOrderModel, RepricingRequestData repricingRequestData, RepricerResponseMessage cartRepricerResponseMessage)
      Populate change solution request data. Retrieves changed flight ids for the request by comparing the changed and new entries.
      Parameters:
      abstractOrderModel - the abstract order model
      repricingRequestData - the repricing request data
      cartRepricerResponseMessage - the cart repricer response message
    • getRBD

      protected List<PaxRBD> getRBD(TransportOfferingModel transportOffering, RepricerResponseMessage repricerResponseMessage)
      Gets pax rbd from the repricer response stored in the cart.
      Parameters:
      transportOffering - the transport offering
      repricerResponseMessage - the repricer response message
      Returns:
      the rbd
    • filterByFlightCode

      protected boolean filterByFlightCode(RepricerResponseFlight repricerResponseFlight, TransportOfferingModel transportOffering)
      Filter by flight code. Returns true if flight from the repricer response and flight from the entry is same otherwise returns false
      Parameters:
      repricerResponseFlight - the repricer response flight
      transportOffering - the transport offering
      Returns:
      true if flight are same else false
    • getProsTransportOfferingService

      protected PROSTransportOfferingService getProsTransportOfferingService()
      Gets pros transport offering service.
      Returns:
      the pros transport offering service
    • setProsTransportOfferingService

      public void setProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService)
      Sets pros transport offering service.
      Parameters:
      prosTransportOfferingService - the pros transport offering service
    • getTravellerService

      protected TravellerService getTravellerService()
      Gets traveller service.
      Returns:
      the traveller service
    • setTravellerService

      public void setTravellerService(TravellerService travellerService)
      Sets traveller service.
      Parameters:
      travellerService - the traveller service
    • getProsTransportOfferingFacade

      protected PROSTransportOfferingFacade getProsTransportOfferingFacade()
      Gets pros transport offering facade.
      Returns:
      the pros transport offering facade
    • setProsTransportOfferingFacade

      public void setProsTransportOfferingFacade(PROSTransportOfferingFacade prosTransportOfferingFacade)
      Sets pros transport offering facade.
      Parameters:
      prosTransportOfferingFacade - the pros transport offering facade
    • getShoppingRepricingService

      protected ShoppingRepricingService getShoppingRepricingService()
      Gets shopping repricing service.
      Returns:
      the shopping repricing service
    • setShoppingRepricingService

      public void setShoppingRepricingService(ShoppingRepricingService shoppingRepricingService)
      Sets shopping repricing service.
      Parameters:
      shoppingRepricingService - the shopping repricing service