Class OfferInteractionService

java.lang.Object
com.hybris.ymkt.recommendation.services.OfferInteractionService

public class OfferInteractionService extends Object
This services is used to send offer interactions to SAP Marketing
  • Field Details

  • Constructor Details

    • OfferInteractionService

      public OfferInteractionService()
  • Method Details

    • buildInteractionMap

      protected Map<String,Object> buildInteractionMap(SAPOfferInteractionModel model)
      Helper method that will bundle all the interactions for the property "Interactions" in the payload we send to ymkt
      Parameters:
      model -
      Returns:
      Interaction Map
    • saveOfferInteraction

      public void saveOfferInteraction(OfferInteractionContext offerInteractionContext)
      Saves the interaction in the database table with itemType SAPOfferInteraction
      Parameters:
      offerInteractionContext - OfferInteractionContext
    • sendOfferInteraction

      protected boolean sendOfferInteraction(List<SAPOfferInteractionModel> interactionModels)
    • sendOfferInteractions

      public void sendOfferInteractions()
      Send all offer interaction records via OData service.
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
    • setODataService

      public void setODataService(ODataService oDataService)
    • setReadBatchSize

      public void setReadBatchSize(int readBatchSize)
    • setRecommendationBufferService

      public void setRecommendationBufferService(RecommendationBufferService recommendationBufferService)
    • setUserContextService

      public void setUserContextService(UserContextService userContextService)