Class DefaultPROSFarePriceFacade
java.lang.Object
de.hybris.platform.shoppingfacades.facades.impl.DefaultFarePriceFacade
de.hybris.platform.prosfacades.facades.impl.DefaultPROSFarePriceFacade
- All Implemented Interfaces:
FarePriceFacade
The type Default pros fare price facade.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoFarePrice(AddSolutionRequestData addSolutionRequestData) Performs a fareprice call to an external API using data contained in the addSolutionRequestDatadoFarePrice(List<AddBundleToCartRequestData> addBundleToCartRequestDataList) performs a fareprice call to an external API using data contained in the addBundleRequest Dataprotected de.hybris.platform.servicelayer.dto.converter.Converter<List<AddBundleToCartRequestData>,FarePriceMessage> Gets fare price message converter.protected FarePriceServiceGets fare price service.protected List<FareValidationStrategy>Gets fare validation strategy list.protected IntelliPricerMessagePipelineManagerGets intelli pricer message pipeline manager.voidsetFarePriceMessageConverter(de.hybris.platform.servicelayer.dto.converter.Converter<List<AddBundleToCartRequestData>, FarePriceMessage> farePriceMessageConverter) Sets fare price message converter.voidsetFarePriceService(FarePriceService farePriceService) Sets fare price service.voidsetFareValidationStrategyList(List<FareValidationStrategy> fareValidationStrategyList) Sets fare validation strategy list.voidsetIntelliPricerMessagePipelineManager(IntelliPricerMessagePipelineManager intelliPricerMessagePipelineManager) Sets intelli pricer message pipeline manager.voidvalidateFares(AbstractOrderModel orderModel) Validate fare products in the cart.
-
Constructor Details
-
DefaultPROSFarePriceFacade
public DefaultPROSFarePriceFacade()
-
-
Method Details
-
doFarePrice
public SearchResponseWrapper doFarePrice(List<AddBundleToCartRequestData> addBundleToCartRequestDataList) performs a fareprice call to an external API using data contained in the addBundleRequest Data- Specified by:
doFarePricein interfaceFarePriceFacade- Specified by:
doFarePricein classDefaultFarePriceFacade- Parameters:
addBundleToCartRequestDataList- the add bundle to cart request data list- Returns:
- the search response message wrapper
-
doFarePrice
public SearchResponseWrapper doFarePrice(AddSolutionRequestData addSolutionRequestData) throws FarePriceException, InvalidSessionCartException Performs a fareprice call to an external API using data contained in the addSolutionRequestData- Specified by:
doFarePricein interfaceFarePriceFacade- Specified by:
doFarePricein classDefaultFarePriceFacade- Parameters:
addSolutionRequestData- the add solution request data- Returns:
- the search response message wrapper
- Throws:
FarePriceException- the fare price exceptionInvalidSessionCartException- the invalid session cart exception
-
validateFares
Description copied from class:DefaultFarePriceFacadeValidate fare products in the cart.- Specified by:
validateFaresin interfaceFarePriceFacade- Specified by:
validateFaresin classDefaultFarePriceFacade- Parameters:
orderModel- the cart model- Throws:
TravelCartValidationException
-
getFarePriceService
Gets fare price service.- Returns:
- the fare price service
-
setFarePriceService
Sets fare price service.- Parameters:
farePriceService- the fare price service
-
getFarePriceMessageConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<List<AddBundleToCartRequestData>,FarePriceMessage> getFarePriceMessageConverter()Gets fare price message converter.- Returns:
- the fare price message converter
-
setFarePriceMessageConverter
public void setFarePriceMessageConverter(de.hybris.platform.servicelayer.dto.converter.Converter<List<AddBundleToCartRequestData>, FarePriceMessage> farePriceMessageConverter) Sets fare price message converter.- Parameters:
farePriceMessageConverter- the fare price message converter
-
getIntelliPricerMessagePipelineManager
Gets intelli pricer message pipeline manager.- Returns:
- the intelli pricer message pipeline manager
-
setIntelliPricerMessagePipelineManager
public void setIntelliPricerMessagePipelineManager(IntelliPricerMessagePipelineManager intelliPricerMessagePipelineManager) Sets intelli pricer message pipeline manager.- Parameters:
intelliPricerMessagePipelineManager- the intelli pricer message pipeline manager
-
getFareValidationStrategyList
Gets fare validation strategy list.- Returns:
- the fare validation strategy list
-
setFareValidationStrategyList
Sets fare validation strategy list.- Parameters:
fareValidationStrategyList- the fare validation strategy list
-