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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfilterByFlightCode(RepricerResponseFlight repricerResponseFlight, TransportOfferingModel transportOffering) Filter by flight code.protected PROSTransportOfferingFacadeGets pros transport offering facade.protected PROSTransportOfferingServiceGets pros transport offering service.getRBD(TransportOfferingModel transportOffering, RepricerResponseMessage repricerResponseMessage) Gets pax rbd from the repricer response stored in the cart.protected ShoppingRepricingServiceGets shopping repricing service.protected TravellerServiceGets traveller service.voidpopulate(AbstractOrderModel abstractOrderModel, RepricingRequestData repricingRequestData) protected voidpopulateChangeSolutionRequestData(AbstractOrderModel abstractOrderModel, RepricingRequestData repricingRequestData, RepricerResponseMessage cartRepricerResponseMessage) Populate change solution request data.voidsetProsTransportOfferingFacade(PROSTransportOfferingFacade prosTransportOfferingFacade) Sets pros transport offering facade.voidsetProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService) Sets pros transport offering service.voidsetShoppingRepricingService(ShoppingRepricingService shoppingRepricingService) Sets shopping repricing service.voidsetTravellerService(TravellerService travellerService) Sets traveller service.
-
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:
populatein interfacede.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 modelrepricingRequestData- the repricing request datacartRepricerResponseMessage- 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 offeringrepricerResponseMessage- 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 flighttransportOffering- the transport offering- Returns:
- true if flight are same else false
-
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
Gets traveller service.- Returns:
- the traveller service
-
setTravellerService
Sets traveller service.- Parameters:
travellerService- the traveller service
-
getProsTransportOfferingFacade
Gets pros transport offering facade.- Returns:
- the pros transport offering facade
-
setProsTransportOfferingFacade
Sets pros transport offering facade.- Parameters:
prosTransportOfferingFacade- the pros transport offering facade
-
getShoppingRepricingService
Gets shopping repricing service.- Returns:
- the shopping repricing service
-
setShoppingRepricingService
Sets shopping repricing service.- Parameters:
shoppingRepricingService- the shopping repricing service
-