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 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 pagination
      sortDir - the direction of the sort: ascendent or descendent or null, null for default sorting
      searchFilterMap - 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 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception
    • removeDynamicPricing

      void removeDynamicPricing(DynamicPricingRuleData dynamicPricingData)
      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 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.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 dynamicPricingData
      dynamicPriceId - 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 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception