Class DefaultPROSRepricingService
java.lang.Object
de.hybris.platform.shoppingservices.services.impl.DefaultShoppingRepricingService
de.hybris.platform.prosservices.services.impl.DefaultPROSRepricingService
- All Implemented Interfaces:
ShoppingRepricingService
The Pros extension of
DefaultShoppingRepricingService class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertRepricingResponseToString(ShoppingRepricingResponseMessage shoppingRepricingResponseMessage) Convert the Repricing response message to string.convertStringToRepricingResponseMessage(String shoppingRepricingResponseMessage) Converts the repricing response message string to reprincing response messageprotected voidcreateRequestData(RestRequestInfo restRequestInfo, ShoppingRepricingRequestMessage shoppingRepricingRequestMessage) Creates the final request objectdoRepricing(ShoppingRepricingRequestMessage shoppingRepricingRequestMessage) Sends a repricing request messageprotected voidsetRepricingResponseInCart(ShoppingRepricingResponseMessage shoppingRepricingResponseMessage) Sets the repricing response in cart.Methods inherited from class de.hybris.platform.shoppingservices.services.impl.DefaultShoppingRepricingService
getConfigurationService, getModelService, getRestSender, getShoppingObjectMapper, getTravelCartService, setConfigurationService, setModelService, setRestSender, setShoppingObjectMapper, setTravelCartService
-
Constructor Details
-
DefaultPROSRepricingService
public DefaultPROSRepricingService()
-
-
Method Details
-
doRepricing
public ShoppingRepricingResponseMessage doRepricing(ShoppingRepricingRequestMessage shoppingRepricingRequestMessage) throws RepricingException Description copied from interface:ShoppingRepricingServiceSends a repricing request message- Specified by:
doRepricingin interfaceShoppingRepricingService- Overrides:
doRepricingin classDefaultShoppingRepricingService- Parameters:
shoppingRepricingRequestMessage- the shopping repricing request message- Returns:
- the
ShoppingRepricingResponseMessage - Throws:
RepricingException- thrown either when an error response is retrieved from the repricing service or when an error occurs during the json convertion of the request message.
-
setRepricingResponseInCart
protected void setRepricingResponseInCart(ShoppingRepricingResponseMessage shoppingRepricingResponseMessage) throws RepricingException Description copied from class:DefaultShoppingRepricingServiceSets the repricing response in cart.- Overrides:
setRepricingResponseInCartin classDefaultShoppingRepricingService- Parameters:
shoppingRepricingResponseMessage- the shoppingRepricingResponseMessage- Throws:
RepricingException
-
convertRepricingResponseToString
public String convertRepricingResponseToString(ShoppingRepricingResponseMessage shoppingRepricingResponseMessage) throws RepricingException Description copied from interface:ShoppingRepricingServiceConvert the Repricing response message to string.- Specified by:
convertRepricingResponseToStringin interfaceShoppingRepricingService- Overrides:
convertRepricingResponseToStringin classDefaultShoppingRepricingService- Parameters:
shoppingRepricingResponseMessage- the shoppingRepricingResponseMessage- Returns:
- the message converted into string
- Throws:
RepricingException- to be thrown when an error occurs during the conversion of the repricing response message to string.
-
createRequestData
protected void createRequestData(RestRequestInfo restRequestInfo, ShoppingRepricingRequestMessage shoppingRepricingRequestMessage) throws RepricingException Description copied from class:DefaultShoppingRepricingServiceCreates the final request object- Overrides:
createRequestDatain classDefaultShoppingRepricingService- Parameters:
restRequestInfo- the rest request info objectshoppingRepricingRequestMessage- the shoppingRepricingRequestMessage- Throws:
RepricingException
-
convertStringToRepricingResponseMessage
public ShoppingRepricingResponseMessage convertStringToRepricingResponseMessage(String shoppingRepricingResponseMessage) Description copied from interface:ShoppingRepricingServiceConverts the repricing response message string to reprincing response message- Specified by:
convertStringToRepricingResponseMessagein interfaceShoppingRepricingService- Overrides:
convertStringToRepricingResponseMessagein classDefaultShoppingRepricingService- Parameters:
shoppingRepricingResponseMessage- the string shoppingRepricingResponseMessage- Returns:
- the
ShoppingRepricingResponseMessage
-