Class DefaultPPSClient

  • All Implemented Interfaces:
    com.sap.ppengine.client.util.PPSClientBeanAccessor, PPSClient

    public class DefaultPPSClient
    extends DefaultPPSClientBeanAccessor
    implements PPSClient
    PPS client supporting remote call via REST. For the remote call OAuth authentication is supported. via configuration (see PPSConfigService)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String AUTHORIZATION  
      protected static java.lang.String DESTINATIONID  
      protected static java.lang.String X_REQUEST_ID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.sap.ppengine.client.dto.PriceCalculateResponse callPPS​(com.sap.ppengine.client.dto.PriceCalculate priceCalculate, SAPConfigurationModel sapConfig)
      Call promotion pricing service
      de.hybris.platform.store.services.BaseStoreService getBaseStoreService()  
      protected ConsumedDestinationModel getConsumedDestinationModelById​(java.lang.String destinationId)  
      de.hybris.platform.servicelayer.search.FlexibleSearchService getFlexibleSearchService()  
      de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()  
      void setBaseStoreService​(de.hybris.platform.store.services.BaseStoreService baseStoreService)  
      void setFlexibleSearchService​(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)  
      void setIntegrationRestTemplateFactory​(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)  
      • Methods inherited from class com.sap.ppengine.client.util.impl.PPSClientBeanAccessorImpl

        getHelper, getObjectFactory, getPromotionPricingService
      • Methods inherited from class com.sap.ppengine.core.spring.impl.PPSContextAware

        getContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultPPSClient

        public DefaultPPSClient()
    • Method Detail

      • getConsumedDestinationModelById

        protected ConsumedDestinationModel getConsumedDestinationModelById​(java.lang.String destinationId)
      • callPPS

        public com.sap.ppengine.client.dto.PriceCalculateResponse callPPS​(com.sap.ppengine.client.dto.PriceCalculate priceCalculate,
                                                                          SAPConfigurationModel sapConfig)
        Description copied from interface: PPSClient
        Call promotion pricing service
        Specified by:
        callPPS in interface PPSClient
        Parameters:
        priceCalculate - PriceCalculate
        sapConfig - SAP base store configuration
        Returns:
        PriceCalculateResponse
      • getBaseStoreService

        public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      • setBaseStoreService

        public void setBaseStoreService​(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      • getFlexibleSearchService

        public de.hybris.platform.servicelayer.search.FlexibleSearchService getFlexibleSearchService()
      • setFlexibleSearchService

        public void setFlexibleSearchService​(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)
      • getIntegrationRestTemplateFactory

        public de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
      • setIntegrationRestTemplateFactory

        public void setIntegrationRestTemplateFactory​(de.hybris.platform.outboundservices.client.IntegrationRestTemplateFactory integrationRestTemplateFactory)