Class ChangeFlightNewTicketItineraryRequestPopulationHandler
java.lang.Object
de.hybris.platform.prosfacades.repricer.handler.impl.ChangeFlightNewTicketItineraryRequestPopulationHandler
- All Implemented Interfaces:
RepricerRequestPopulationHandler
public class ChangeFlightNewTicketItineraryRequestPopulationHandler
extends Object
implements RepricerRequestPopulationHandler
This class populates the new ticket itinerary information to the
RepricerRequest during change flight.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<RepricerFlight>createFlights(List<SelectedFlightData> flights, int flightId, List<Integer> changePax) Create flights list.protected List<OriginDestinationGroup>createOriginDestinations(RepricingRequestData repricingRequestData, List<Integer> changePax) Create origin destinations list.protected PaxRBDcreatePaxRBD(SelectedFlightData selectedFlight, List<Integer> changePax) Create pax rbds list.protected TransportOfferingServiceGets transport offering service.voidhandle(AbstractOrderModel order, RepricingRequestData repricingRequestData, RepricerRequest repricerRequest) PopulatesRepricerRequestusing data from order and repricing request data.voidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.
-
Constructor Details
-
ChangeFlightNewTicketItineraryRequestPopulationHandler
public ChangeFlightNewTicketItineraryRequestPopulationHandler()
-
-
Method Details
-
handle
public void handle(AbstractOrderModel order, RepricingRequestData repricingRequestData, RepricerRequest repricerRequest) throws RepricingException Description copied from interface:RepricerRequestPopulationHandlerPopulatesRepricerRequestusing data from order and repricing request data.- Specified by:
handlein interfaceRepricerRequestPopulationHandler- Parameters:
order- the orderrepricingRequestData- the repricing request datarepricerRequest- the repricer request- Throws:
RepricingException
-
createOriginDestinations
protected List<OriginDestinationGroup> createOriginDestinations(RepricingRequestData repricingRequestData, List<Integer> changePax) Create origin destinations list.- Parameters:
repricingRequestData- the repricing request datachangePax-- Returns:
- the list
-
createFlights
protected List<RepricerFlight> createFlights(List<SelectedFlightData> flights, int flightId, List<Integer> changePax) Create flights list.- Parameters:
flights- the flightsflightId- the flight idchangePax-- Returns:
- the list
-
createPaxRBD
Create pax rbds list.- Parameters:
selectedFlight- the selected flightchangePax-- Returns:
- the list
-
getTransportOfferingService
Gets transport offering service.- Returns:
- the transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-