Class AncillaryChangeFeePROSPriceCalculationStrategy
java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
de.hybris.platform.prosservices.price.strategies.impl.AncillaryChangeFeePROSPriceCalculationStrategy
- All Implemented Interfaces:
ShoppingPriceCalculationStrategy
public class AncillaryChangeFeePROSPriceCalculationStrategy
extends AbstractPROSPriceCalculationStrategy
The price calculation strategy to calculate price for ancillary change fees.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.util.PriceValueGets the base price from the order entries associated to the ancillaryChangeFee order entry.Collection<de.hybris.platform.util.TaxValue>Gets the taxValues from the order entries associated to the ancillaryChangeFee order entry.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
-
AncillaryChangeFeePROSPriceCalculationStrategy
public AncillaryChangeFeePROSPriceCalculationStrategy()
-
-
Method Details
-
getTaxValues
public Collection<de.hybris.platform.util.TaxValue> getTaxValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException Gets the taxValues from the order entries associated to the ancillaryChangeFee order entry.- Parameters:
entry- the entry- Returns:
- the total list of tax value
- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
getBasePrice
public de.hybris.platform.util.PriceValue getBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException Gets the base price from the order entries associated to the ancillaryChangeFee order entry. The base price will be the sum of all the base prices of the associated order entries.- Parameters:
entry- the entry- Returns:
- the total base price
- Throws:
de.hybris.platform.order.exceptions.CalculationException
-