Class CharonPricingFacadeImpl

java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.impl.CharonPricingFacadeImpl
All Implemented Interfaces:
CharonPricingFacade

public class CharonPricingFacadeImpl extends Object implements CharonPricingFacade
Default implementation of CharonPricingFacade. Traces REST input as JSON
  • Field Details

  • Constructor Details

    • CharonPricingFacadeImpl

      public CharonPricingFacadeImpl()
  • Method Details

    • getProductConfigurationPassportService

      protected ProductConfigurationPassportService getProductConfigurationPassportService()
    • getApiRegistryClientService

      protected de.hybris.platform.apiregistryservices.services.ApiRegistryClientService getApiRegistryClientService()
      Returns:
      the apiRegistryClientService
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • createPricingDocument

      public PricingDocumentResult createPricingDocument(PricingDocumentInput pricingInput) throws de.hybris.platform.sap.productconfig.runtime.interf.PricingEngineException
      Description copied from interface: CharonPricingFacade
      Create pricing document
      Specified by:
      createPricingDocument in interface CharonPricingFacade
      Parameters:
      pricingInput - input document needed to call the pricing service
      Returns:
      result of the pricing call
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.PricingEngineException - indicates error during pricing engine call
    • traceJsonRequestBody

      protected void traceJsonRequestBody(String prefix, Object obj)
    • getClient

      protected PricingClientBase getClient()
    • setClient

      public void setClient(PricingClientBase newClient)
      Sets Charon client from outside (only for test purposes)
      Parameters:
      newClient - Charon client representing REST calls for pricing
    • getScheduler

      protected rx.Scheduler getScheduler()
    • getRequestErrorHandler

      protected RequestErrorHandler getRequestErrorHandler()
    • setRequestErrorHandler

      public void setRequestErrorHandler(RequestErrorHandler requestErrorHandler)
      Parameters:
      requestErrorHandler - For wrapping the http errors we receive from the REST service call
    • setApiRegistryClientService

      public void setApiRegistryClientService(de.hybris.platform.apiregistryservices.services.ApiRegistryClientService apiRegistryClientService)
    • setProductConfigurationPassportService

      public void setProductConfigurationPassportService(ProductConfigurationPassportService productConfigurationPassportService)