Class AddedToCartObjectIDsAfterSearch

java.lang.Object
com.algolia.model.insights.AddedToCartObjectIDsAfterSearch
All Implemented Interfaces:
EventsItems

public class AddedToCartObjectIDsAfterSearch extends Object implements EventsItems
Use this event to track when users add items to their shopping cart after a previous Algolia request. If you're building your category pages with Algolia, you'll also use this event.
  • Constructor Details

    • AddedToCartObjectIDsAfterSearch

      public AddedToCartObjectIDsAfterSearch()
  • Method Details

    • setEventName

      public AddedToCartObjectIDsAfterSearch setEventName(String eventName)
    • getEventName

      @Nonnull public String getEventName()
      Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework.
    • setEventType

      public AddedToCartObjectIDsAfterSearch setEventType(ConversionEvent eventType)
    • getEventType

      @Nonnull public ConversionEvent getEventType()
      Get eventType
    • setEventSubtype

      public AddedToCartObjectIDsAfterSearch setEventSubtype(AddToCartEvent eventSubtype)
    • getEventSubtype

      @Nonnull public AddToCartEvent getEventSubtype()
      Get eventSubtype
    • setIndex

      public AddedToCartObjectIDsAfterSearch setIndex(String index)
    • getIndex

      @Nonnull public String getIndex()
      Index name to which the event's items belong.
    • setQueryID

      public AddedToCartObjectIDsAfterSearch setQueryID(String queryID)
    • getQueryID

      @Nonnull public String getQueryID()
      Unique identifier for a search query. The query ID is required for events related to search or browse requests. If you add `clickAnalytics: true` as a search request parameter, the query ID is included in the API response.
    • setObjectIDs

      public AddedToCartObjectIDsAfterSearch setObjectIDs(List<String> objectIDs)
    • addObjectIDs

      public AddedToCartObjectIDsAfterSearch addObjectIDs(String objectIDsItem)
    • getObjectIDs

      @Nonnull public List<String> getObjectIDs()
      Object IDs of the records that are part of the event.
    • setUserToken

      public AddedToCartObjectIDsAfterSearch setUserToken(String userToken)
    • getUserToken

      @Nonnull public String getUserToken()
      Anonymous or pseudonymous user identifier. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
    • setAuthenticatedUserToken

      public AddedToCartObjectIDsAfterSearch setAuthenticatedUserToken(String authenticatedUserToken)
    • getAuthenticatedUserToken

      @Nullable public String getAuthenticatedUserToken()
      Identifier for authenticated users. When the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`. This lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
    • setCurrency

      public AddedToCartObjectIDsAfterSearch setCurrency(String currency)
    • getCurrency

      @Nullable public String getCurrency()
      Three-letter [currency code](https://www.iso.org/iso-4217-currency-codes.html).
    • setObjectData

      public AddedToCartObjectIDsAfterSearch setObjectData(List<ObjectDataAfterSearch> objectData)
    • addObjectData

      public AddedToCartObjectIDsAfterSearch addObjectData(ObjectDataAfterSearch objectDataItem)
    • getObjectData

      @Nullable public List<ObjectDataAfterSearch> getObjectData()
      Extra information about the records involved in a purchase or add-to-cart events. If provided, it must be the same length as `objectIDs`.
    • setTimestamp

      public AddedToCartObjectIDsAfterSearch setTimestamp(Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      Timestamp of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time). By default, the Insights API uses the time it receives an event as its timestamp.
    • setValue

      public AddedToCartObjectIDsAfterSearch setValue(Value value)
    • getValue

      @Nullable public Value getValue()
      Get value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object