Interface DynamicPricingService
- All Known Implementing Classes:
DefaultDynamicPricingService
public interface DynamicPricingService
The Dynamic Pricing Service interface to call the api for get, edit and remove the dynamic pricing.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDynamicPricing(DynamicPricingData dynamicPricingData) This method will create modification in prosgetDynamicPricing(String dynamicPriceId) This method returns the dynamic pricing by dynamic price Id and calling pros service.This method returns the list of available dynamic pricing in pros.voidremoveDynamicPricing(DynamicPricingRuleData dynamicPricingData) This method will remove the modification from both the system and pros.updateDynamicPricing(DynamicPricingData dynamicPricingData, String dynamicPriceId) This method will update modification in pros
-
Method Details
-
getDynamicPricings
DynamicPricingData getDynamicPricings(Integer pageNumber, String sortDir, Map<String, Object> searchFilterMap) This method returns the list of available dynamic pricing in pros.- Parameters:
pageNumber- the page Number to handle the paginationsortDir- the direction of the sort: ascendent or descendent or null, null for default sortingsearchFilterMap- the search filter attribute map- Returns:
- the
DynamicPricingData
-
getDynamicPricing
DynamicPricingRuleData getDynamicPricing(String dynamicPriceId) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException This method returns the dynamic pricing by dynamic price Id and calling pros service.- Parameters:
dynamicPriceId- the dynamicPriceId- Returns:
- the ModificationData
- Throws:
org.springframework.web.client.HttpServerErrorException- the exception when http response is not 200 e.g. status 5xxorg.springframework.web.client.HttpClientErrorException- the exception when http response is not 200 e.g. status 4xxorg.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-
removeDynamicPricing
This method will remove the modification from both the system and pros.- Parameters:
dynamicPricingData- the dynamic price to be removed- Throws:
org.springframework.web.client.RestClientException- if removal of modification is unsuccessful
-
createDynamicPricing
DynamicPricingData createDynamicPricing(DynamicPricingData dynamicPricingData) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException This method will create modification in pros- Parameters:
dynamicPricingData- the dynamic pricing data- Returns:
- the modification data if http status response is 200 else return null
- Throws:
org.springframework.web.client.HttpServerErrorException- the exception when http response is not 200 e.g. status 5xxorg.springframework.web.client.HttpClientErrorException- the exception when http response is not 200 e.g. status 4xxorg.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-
updateDynamicPricing
DynamicPricingData updateDynamicPricing(DynamicPricingData dynamicPricingData, String dynamicPriceId) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException This method will update modification in pros- Parameters:
dynamicPricingData- the dynamicPricingDatadynamicPriceId- the dynamic price id- Returns:
- the modification data if http status response is 200 else return null
- Throws:
org.springframework.web.client.HttpServerErrorException- the exception when http response is not 200 e.g. status 5xxorg.springframework.web.client.HttpClientErrorException- the exception when http response is not 200 e.g. status 4xxorg.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-