Class RefundFeePROSPriceCalculationStrategy
java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
de.hybris.platform.prosservices.price.strategies.impl.RefundFeePROSPriceCalculationStrategy
- All Implemented Interfaces:
ShoppingPriceCalculationStrategy
The price calculation strategy to calculate price for Refund 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
-
RefundFeePROSPriceCalculationStrategy
public RefundFeePROSPriceCalculationStrategy()
-
-
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 refund fee corresponds to the total of all the penalty fees in the paxTkt list to pay in order to cancel a flight.- Parameters:
entry- the entry- Returns:
- the total amount of the refund fees 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
-