Interface ShoppingRepricingService
- All Known Implementing Classes:
DefaultPROSRepricingService,DefaultShoppingRepricingService
public interface ShoppingRepricingService
The interface for the shopping repricing services.
-
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 messagedoRepricing(ShoppingRepricingRequestMessage shoppingRepricingRequestMessage) Sends a repricing request message
-
Method Details
-
doRepricing
ShoppingRepricingResponseMessage doRepricing(ShoppingRepricingRequestMessage shoppingRepricingRequestMessage) throws RepricingException Sends a repricing request message- 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.
-
convertRepricingResponseToString
String convertRepricingResponseToString(ShoppingRepricingResponseMessage shoppingRepricingResponseMessage) throws RepricingException Convert the Repricing response message to string.- 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.
-
convertStringToRepricingResponseMessage
ShoppingRepricingResponseMessage convertStringToRepricingResponseMessage(String shoppingRepricingResponseMessage) Converts the repricing response message string to reprincing response message- Parameters:
shoppingRepricingResponseMessage- the string shoppingRepricingResponseMessage- Returns:
- the
ShoppingRepricingResponseMessage
-