Class BaggagePROSPriceCalculationStrategy
java.lang.Object
de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
de.hybris.platform.prosservices.price.strategies.impl.BaggagePROSPriceCalculationStrategy
- All Implemented Interfaces:
ShoppingPriceCalculationStrategy
The type Baggage pros price calculation strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.util.PriceValuefindPROSBaggageProductBasePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage) Resolves price from merchandising response.protected de.hybris.platform.util.PriceValuefindPROSBaggageProductBasePriceFromShoppingSearchResponse(AbstractOrderEntryModel orderEntryModel, SearchResponseWrapper searchResponseWrapper) Resolves price from searchResponseWrapper.de.hybris.platform.util.PriceValueGet base price price value.Gets passenger code to PTC mapping.protected PROSMerchandisingServiceGets pros merchandising service.protected PROSSearchResponseServiceGets the prosSearchResponseServiceprotected 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.voidsetProsSearchResponseService(PROSSearchResponseService prosSearchResponseService) Sets the prosSearchResponseServicevoidsetProsTransportOfferingService(PROSTransportOfferingService prosTransportOfferingService) Sets pros transport offering service.Methods inherited from class de.hybris.platform.prosservices.price.strategies.impl.AbstractPROSPriceCalculationStrategy
findPricingSolution, findPricingSolutionByFareReferenceEntry, findPricingSolutionID, findPricingSolutionIDFromSameODEntries, getCommonI18NService, getProsTravelBundleTemplateService, getSearchResponseService, getSessionService, setCommonI18NService, setProsTravelBundleTemplateService, setSearchResponseService, setSessionService
-
Constructor Details
-
BaggagePROSPriceCalculationStrategy
public BaggagePROSPriceCalculationStrategy()
-
-
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
-
findPROSBaggageProductBasePrice
protected de.hybris.platform.util.PriceValue findPROSBaggageProductBasePrice(AbstractOrderEntryModel orderEntryModel, MerchandisingResponseMessage merchandisingResponseMessage) Resolves price from merchandising response.- Parameters:
orderEntryModel- the order entrymerchandisingResponseMessage- the merchandising response- Returns:
- the price value
-
findPROSBaggageProductBasePriceFromShoppingSearchResponse
protected de.hybris.platform.util.PriceValue findPROSBaggageProductBasePriceFromShoppingSearchResponse(AbstractOrderEntryModel orderEntryModel, SearchResponseWrapper searchResponseWrapper) Resolves price from searchResponseWrapper.- Parameters:
orderEntryModel- the order entrysearchResponseWrapper- the searchResponseWrapper response- Returns:
- the price value
-
getProsMerchandisingService
Gets pros merchandising service.- Returns:
- the pros merchandising service
-
setProsMerchandisingService
Sets pros merchandising service.- Parameters:
prosMerchandisingService- the pros merchandising service
-
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
-
getProsSearchResponseService
Gets the prosSearchResponseService- Overrides:
getProsSearchResponseServicein classAbstractPROSPriceCalculationStrategy- Returns:
- the prosSearchResponseService
-
setProsSearchResponseService
Sets the prosSearchResponseService- Overrides:
setProsSearchResponseServicein classAbstractPROSPriceCalculationStrategy- Parameters:
prosSearchResponseService- the prosSearchResponseService
-
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
-