Class AbstractPROSPriceCalculationStrategy
java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
- All Implemented Interfaces:
ShoppingPriceCalculationStrategy
- Direct Known Subclasses:
AllowancePROSPriceCalculationStrategy,AncillaryChangeFeePROSPriceCalculationStrategy,AncillaryPROSPriceCalculationStrategy,BaggagePROSPriceCalculationStrategy,CarryOnAllowancePROSPriceCalculationStrategy,ChangeFeePROSPriceCalculationStrategy,EvenExchangeFeePROSPriceCalculationStrategy,FarePROSPriceCalculationStrategy,RefundFeePROSPriceCalculationStrategy
public abstract class AbstractPROSPriceCalculationStrategy
extends Object
implements ShoppingPriceCalculationStrategy
The type Abstract pros price calculation strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PricingSolutionfindPricingSolution(AbstractOrderEntryModel orderEntry, SearchResponseWrapper searchResponseWrapper) Find pricing solution.protected IntegerfindPricingSolutionByFareReferenceEntry(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper) Find pricing solution by bundle entry integer.protected IntegerfindPricingSolutionID(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper) Find pricing solution id integer.protected IntegerfindPricingSolutionIDFromSameODEntries(AbstractOrderEntryModel orderEntryModel, SearchResponseWrapper searchResponseWrapper) Find pricing solution id from same od entries.protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceGets common i 18 n service.protected PROSSearchResponseServiceprotected PROSTravelBundleTemplateServiceGets pros travel bundle template service.protected SearchResponseServiceget SearchResponseServiceprotected de.hybris.platform.servicelayer.session.SessionServiceGets session service.voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Sets common i 18 n service.voidsetProsSearchResponseService(PROSSearchResponseService prosSearchResponseService) Sets pros search response service.voidsetProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService) Sets pros travel bundle template service.voidsetSearchResponseService(SearchResponseService searchResponseService) set SearchResponseServicevoidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.shoppingservices.price.strategies.ShoppingPriceCalculationStrategy
getBasePrice, getTaxValues
-
Constructor Details
-
AbstractPROSPriceCalculationStrategy
public AbstractPROSPriceCalculationStrategy()
-
-
Method Details
-
findPricingSolution
protected PricingSolution findPricingSolution(AbstractOrderEntryModel orderEntry, SearchResponseWrapper searchResponseWrapper) throws de.hybris.platform.order.exceptions.CalculationException Find pricing solution. Only one solution should be present in the response since it is just a validation of an itinerary passed in the request.- Parameters:
orderEntry- the order entrysearchResponseWrapper- the search response message- Returns:
- the pricing solution
- Throws:
de.hybris.platform.order.exceptions.CalculationException- the calculation exception
-
findPricingSolutionID
protected Integer findPricingSolutionID(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper) throws de.hybris.platform.order.exceptions.CalculationException Find pricing solution id integer. TheSolutionlist is access with get(0) since only one solution is expected to be in theSearchResponseMessagewhen the IntelliPricer service is called. If the product is aShoppingFareProductModel, the prosFareReference is used to retrieve thePricingSolution. If not, theShoppingFareProductModelof the same leg is used to retrieve the correctPricingSolution. Otherwise the first PricingSolutionID is returned.- Parameters:
entry- the entrysearchResponseWrapper- the search response message- Returns:
- the integer
- Throws:
de.hybris.platform.order.exceptions.CalculationException- the calculation exception
-
findPricingSolutionByFareReferenceEntry
protected Integer findPricingSolutionByFareReferenceEntry(AbstractOrderEntryModel entry, SearchResponseWrapper searchResponseWrapper) Find pricing solution by bundle entry integer.- Parameters:
entry- the entrysearchResponseWrapper- the search response wrapper- Returns:
- the integer
-
findPricingSolutionIDFromSameODEntries
protected Integer findPricingSolutionIDFromSameODEntries(AbstractOrderEntryModel orderEntryModel, SearchResponseWrapper searchResponseWrapper) Find pricing solution id from same od entries.- Parameters:
orderEntryModel- the order Entry ModelsearchResponseWrapper- the search response wrapper- Returns:
- the integer
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()Gets session service.- Returns:
- the session service
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.- Parameters:
sessionService- the session 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
-
getProsTravelBundleTemplateService
Gets pros travel bundle template service.- Returns:
- the pros travel bundle template service
-
setProsTravelBundleTemplateService
public void setProsTravelBundleTemplateService(PROSTravelBundleTemplateService prosTravelBundleTemplateService) Sets pros travel bundle template service.- Parameters:
prosTravelBundleTemplateService- the pros travel bundle template service
-
getProsSearchResponseService
-
setProsSearchResponseService
Sets pros search response service.- Parameters:
prosSearchResponseService- the pros search response service
-
getSearchResponseService
get SearchResponseService- Returns:
- SearchResponseService search response service
-
setSearchResponseService
set SearchResponseService- Parameters:
searchResponseService- the search response service
-