Class DealPTCWasRateHandler
java.lang.Object
de.hybris.platform.travelfacades.fare.search.handlers.impl.TaxHandler
de.hybris.platform.travelfacades.fare.search.handlers.impl.DealPTCWasRateHandler
- All Implemented Interfaces:
FareSearchHandler
Concrete implementation of the
FareSearchHandler interface. This handler is responsible for populating the wasRate
value of each PTCFareBreakdownData for every ItineraryPricingInfoData.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateWasPriceForPTCs(List<String> transportFacilityCodes, List<String> countryCodes, ItineraryPricingInfoData itineraryPricingInfoData) Calculates the wasFare for each ptcFareBreakdownData, based on the full price of the products included.getTaxesForProduct(ProductData productData, double basePrice, List<String> transportFacilityCodes, List<String> countryCodes, String passengerType, String currencyIso) Returns the list of TaxData for the given parametersvoidhandle(List<ScheduledRouteData> scheduledRoutes, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Handle method.Methods inherited from class de.hybris.platform.travelfacades.fare.search.handlers.impl.TaxHandler
calculateTax, calculateTaxForExtras, calculateTaxForProduct, checkIfProductPerTO, createPriceData, createTaxData, evaluateTaxesForPTCs, evaluateTaxesForPTCs, getBaseStoreService, getConfigurationService, getOfferGroupToOriginDestinationMapping, getPriceDataFactory, getProductService, getSessionService, getTaxesForProduct, getTransportFacilityFacade, getTravelCommercePriceFacade, getTravelCommercePriceService, populateTransportFacilityInfoFromItinerary, setBaseStoreService, setConfigurationService, setOfferGroupToOriginDestinationMapping, setPriceDataFactory, setProductService, setSessionService, setTaxSearchCriteriaInContext, setTransportFacilityFacade, setTravelCommercePriceFacade, setTravelCommercePriceService, updateGrossPrice
-
Constructor Details
-
DealPTCWasRateHandler
public DealPTCWasRateHandler()
-
-
Method Details
-
handle
public void handle(List<ScheduledRouteData> scheduledRoutes, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData) Description copied from interface:FareSearchHandlerHandle method.- Specified by:
handlein interfaceFareSearchHandler- Overrides:
handlein classTaxHandler- Parameters:
scheduledRoutes- the scheduled routesfareSearchRequestData- the fare search request datafareSelectionData- the fare selection data
-
calculateWasPriceForPTCs
protected void calculateWasPriceForPTCs(List<String> transportFacilityCodes, List<String> countryCodes, ItineraryPricingInfoData itineraryPricingInfoData) Calculates the wasFare for each ptcFareBreakdownData, based on the full price of the products included.- Parameters:
transportFacilityCodes- as the transportFacilityCodescountryCodes- as the countryCodesitineraryPricingInfoData- as the itineraryPricingInfoData
-
getTaxesForProduct
protected List<TaxData> getTaxesForProduct(ProductData productData, double basePrice, List<String> transportFacilityCodes, List<String> countryCodes, String passengerType, String currencyIso) Returns the list of TaxData for the given parameters- Parameters:
productData- as the productDatabasePrice- as the basePricetransportFacilityCodes- as the transportFacilityCodescountryCodes- as the countryCodespassengerType- as the passengerTypecurrencyIso- as the currencyIso- Returns:
- the list of TaxData
-