Class ChangeFeePROSPriceCalculationStrategy
java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
de.hybris.platform.prosservices.price.strategies.impl.ChangeFeePROSPriceCalculationStrategy
- All Implemented Interfaces:
ShoppingPriceCalculationStrategy
The price calculation strategy to calculate price for Change fee.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.util.PriceValueGets the base price from the repricer response message.protected ShoppingRepricingServiceGets pros repricer service.Collection<de.hybris.platform.util.TaxValue>Get tax values collection.voidsetProsRepricerService(ShoppingRepricingService prosRepricerService) Sets pros repricer service.Methods inherited from class de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
findPricingSolution, findPricingSolutionByFareReferenceEntry, findPricingSolutionID, findPricingSolutionIDFromSameODEntries, getCommonI18NService, getProsSearchResponseService, getProsTravelBundleTemplateService, getSearchResponseService, getSessionService, setCommonI18NService, setProsSearchResponseService, setProsTravelBundleTemplateService, setSearchResponseService, setSessionService
-
Constructor Details
-
ChangeFeePROSPriceCalculationStrategy
public ChangeFeePROSPriceCalculationStrategy()
-
-
Method Details
-
getTaxValues
public Collection<de.hybris.platform.util.TaxValue> getTaxValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException Description copied from interface:ShoppingPriceCalculationStrategyGet tax values collection.- Parameters:
entry- the entry- Returns:
- the collection
- Throws:
de.hybris.platform.order.exceptions.CalculationException- the calculation exception
-
getBasePrice
public de.hybris.platform.util.PriceValue getBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException Gets the base price from the repricer response message. The change fee is associated to a single passenger in the cart.- Parameters:
entry- the entry- Returns:
- the amount of the change fee per passenger in the repricer response message.
- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
getProsRepricerService
Gets pros repricer service.- Returns:
- the pros repricer service
-
setProsRepricerService
Sets pros repricer service.- Parameters:
prosRepricerService- the pros repricer service
-