Class OfferInteractionService


  • public class OfferInteractionService
    extends java.lang.Object
    This services is used to send offer interactions to SAP Marketing
    • Constructor Detail

      • OfferInteractionService

        public OfferInteractionService()
    • Method Detail

      • buildInteractionMap

        protected java.util.Map<java.lang.String,​java.lang.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​(java.util.List<SAPOfferInteractionModel> interactionModels)
      • sendOfferInteractions

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

        public void setModelService​(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)