Class DefaultFarePriceService
java.lang.Object
de.hybris.platform.shoppingservices.services.impl.DefaultFarePriceService
- All Implemented Interfaces:
FarePriceService
- Direct Known Subclasses:
DefaultIntelliPricerService
The type default fareprice service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequestData(RestRequestInfo restRequestInfo, FarePriceMessage farePriceMessage) Create request data.protected voidcreateSearchResponseWrapper(SearchResponseWrapper searchResponseWrapper, SearchResponseMessage searchResponseMessage) Create search response wrapper search response wrapper.doFarePrice(FarePriceMessage farePriceMessage) Do fare price search response wrapper.voidDo fare price search from session cartprotected de.hybris.platform.servicelayer.dto.converter.Converter<AbstractOrderModel,FarePriceMessage> get CartToFarePriceMessageConverterprotected de.hybris.platform.servicelayer.config.ConfigurationServiceget ConfigurationServiceprotected RestSenderGet RestSenderprotected SearchResponseServiceget the SearchResponseServiceprotected com.fasterxml.jackson.databind.ObjectMapperget ShoppingObjectMapperprotected TravelCartServiceget cart servicevoidsetCartToFarePriceMessageConverter(de.hybris.platform.servicelayer.dto.converter.Converter<AbstractOrderModel, FarePriceMessage> cartToFarePriceMessageConverter) set CartToFarePriceMessageConvertervoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) set ConfigurationServicevoidsetRestSender(RestSender restSender) set RestSendervoidsetSearchResponseService(SearchResponseService searchResponseService) set SearchResponseServicevoidsetShoppingObjectMapper(com.fasterxml.jackson.databind.ObjectMapper shoppingObjectMapper) set ShoppingObjectMappervoidsetTravelCartService(TravelCartService travelCartService) et TravelCartServices
-
Constructor Details
-
DefaultFarePriceService
public DefaultFarePriceService()
-
-
Method Details
-
doFarePriceFromSessionCart
public void doFarePriceFromSessionCart()Description copied from interface:FarePriceServiceDo fare price search from session cart- Specified by:
doFarePriceFromSessionCartin interfaceFarePriceService
-
doFarePrice
Description copied from interface:FarePriceServiceDo fare price search response wrapper.- Specified by:
doFarePricein interfaceFarePriceService- Parameters:
farePriceMessage- the fare price message- Returns:
- the search response wrapper
-
createSearchResponseWrapper
protected void createSearchResponseWrapper(SearchResponseWrapper searchResponseWrapper, SearchResponseMessage searchResponseMessage) Create search response wrapper search response wrapper. SHOPPING-INTEGRATION: override this method to populate the passengerTypeMap in theSearchResponseWrapper. This can be used to retrieve the passenger reference used in the response in case the reference data from the request are not present.- Parameters:
searchResponseWrapper- the search response wrappersearchResponseMessage- the search response message
-
createRequestData
protected void createRequestData(RestRequestInfo restRequestInfo, FarePriceMessage farePriceMessage) Create request data.- Parameters:
restRequestInfo- the rest request infofarePriceMessage- the intelli pricer message
-
getCartToFarePriceMessageConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AbstractOrderModel,FarePriceMessage> getCartToFarePriceMessageConverter()get CartToFarePriceMessageConverter- Returns:
- get cart to fare price message converter
-
setCartToFarePriceMessageConverter
public void setCartToFarePriceMessageConverter(de.hybris.platform.servicelayer.dto.converter.Converter<AbstractOrderModel, FarePriceMessage> cartToFarePriceMessageConverter) set CartToFarePriceMessageConverter- Parameters:
cartToFarePriceMessageConverter- the cart to fare price message converter
-
getTravelCartService
get cart service- Returns:
- getTravelCartService travel cart service
-
setTravelCartService
et TravelCartServices- Parameters:
travelCartService- the travel cart service
-
getRestSender
Get RestSender- Returns:
- RestSender rest sender
-
setRestSender
set RestSender- Parameters:
restSender- the rest sender
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()get ConfigurationService- Returns:
- ConfigurationService configuration service
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) set ConfigurationService- Parameters:
configurationService- the configuration service
-
getShoppingObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getShoppingObjectMapper()get ShoppingObjectMapper- Returns:
- ShoppingObjectMapper shopping object mapper
-
setShoppingObjectMapper
public void setShoppingObjectMapper(com.fasterxml.jackson.databind.ObjectMapper shoppingObjectMapper) set ShoppingObjectMapper- Parameters:
shoppingObjectMapper- the shopping object mapper
-
getSearchResponseService
get the SearchResponseService- Returns:
- SearchResponseService search response service
-
setSearchResponseService
set SearchResponseService- Parameters:
searchResponseService- the search response service
-