Object OfferUtils

  • All Implemented Interfaces:

    
    public class OfferUtils
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static OfferUtils INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit displayed(List<Offer> $self) Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the display interaction data for the given list of Offers.
      final static Map<String, Object> generateDisplayInteractionXdm(List<Offer> $self) Generates a map containing XDM formatted data for Experience Event - OptimizeProposition Interactions field group from the given list of Offers.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • displayed

         final static Unit displayed(List<Offer> $self)

        Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the display interaction data for the given list of Offers.

        This function extracts unique OptimizePropositions from the list of offers based on their proposition ID and dispatches an event with multiple propositions.

      • generateDisplayInteractionXdm

         final static Map<String, Object> generateDisplayInteractionXdm(List<Offer> $self)

        Generates a map containing XDM formatted data for Experience Event - OptimizeProposition Interactions field group from the given list of Offers.

        This function extracts unique OptimizePropositions from the list of offers based on their proposition ID and generates XDM data for the interaction.

        Returns:

        Map containing the XDM data for the proposition interaction, or null if the list is empty or no valid propositions are found