Class AncillaryPROSPriceCalculationStrategy
java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
de.hybris.platform.prosservices.price.strategies.impl.AncillaryPROSPriceCalculationStrategy
- All Implemented Interfaces:
ShoppingPriceCalculationStrategy
The type Ancillary pros price calculation strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.util.PriceValuefindPROSAncillaryProductBasePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage) Find pros ancillary product base price price value.de.hybris.platform.util.PriceValueGet base price price value.getFlightIds(List<String> originDestinationIds, MerchandisingResponse merchandisingResponse) Get all the flight Ids for the origin destination idsGets passenger code to ptc mapping.protected PROSMerchandisingServiceGets pros merchandising service.protected PROSTransportOfferingServiceGets pros transport offering service.Collection<de.hybris.platform.util.TaxValue>Find pros ancillary product tax values list.voidsetPassengerCodeToPTCMapping(Map<String, String> passengerCodeToPTCMapping) Sets passenger code to ptc mapping.voidsetProsMerchandisingService(PROSMerchandisingService prosMerchandisingService) Sets pros merchandising service.voidsetProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService) Sets pros transport offering 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
-
AncillaryPROSPriceCalculationStrategy
public AncillaryPROSPriceCalculationStrategy()
-
-
Method Details
-
getTaxValues
Find pros ancillary product tax values list. This method should return the list of taxes associated to a certain ancillaries. For the current implementation, no tax value is associated to any ancillary. There is no element in the PROSSearchResponseMessageto handle ta values.- Parameters:
entry- the entry- Returns:
- the collection
-
getBasePrice
public de.hybris.platform.util.PriceValue getBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException Description copied from interface:ShoppingPriceCalculationStrategyGet base price price value.- Parameters:
entry- the entry- Returns:
- the price value
- Throws:
de.hybris.platform.order.exceptions.CalculationException- the calculation exception
-
findPROSAncillaryProductBasePrice
protected de.hybris.platform.util.PriceValue findPROSAncillaryProductBasePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage) Find pros ancillary product base price price value.- Parameters:
orderEntryModel- the order Entry ModelmerchandisingResponseMessage- the merchandising response message- Returns:
- the price value
-
getFlightIds
protected Set<String> getFlightIds(List<String> originDestinationIds, MerchandisingResponse merchandisingResponse) Get all the flight Ids for the origin destination ids- Parameters:
originDestinationIds- origin destination idsmerchandisingResponse- merchandising response- Returns:
- set of flight ids
-
getPassengerCodeToPTCMapping
Gets passenger code to ptc mapping.- Returns:
- the passenger code to ptc mapping
-
setPassengerCodeToPTCMapping
Sets passenger code to ptc mapping.- Parameters:
passengerCodeToPTCMapping- the passenger code to ptc mapping
-
getProsMerchandisingService
Gets pros merchandising service.- Returns:
- the pros merchandising service
-
setProsMerchandisingService
Sets pros merchandising service.- Parameters:
prosMerchandisingService- the pros merchandising service
-
getProsTransportOfferingService
Gets pros transport offering service.- Returns:
- the pros transport offering service
-
setProsTransportOfferingService
public void setProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService) Sets pros transport offering service.- Parameters:
prosTransportOfferingService- the pros transport offering service
-