Package com.algolia.model.insights
Class PurchasedObjectIDs
java.lang.Object
com.algolia.model.insights.PurchasedObjectIDs
- All Implemented Interfaces:
EventsItems
Use this event to track when users make a purchase unrelated to a previous Algolia request. For
example, if you don't use Algolia to build your category pages, use this event. To track purchase
events related to Algolia requests, use the \"Purchased object IDs after search\" event.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.algolia.model.insights.EventsItems
EventsItems.Deserializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddObjectData(ObjectData objectDataItem) addObjectIDs(String objectIDsItem) booleanAn identifier for authenticated users.Three-letter [currency code](https://www.iso.org/iso-4217-currency-codes.html).The name of the event, up to 64 ASCII characters.Get eventSubtypeGet eventTypegetIndex()The name of an Algolia index.Extra information about the records involved in a purchase or add-to-cart event.The object IDs of the records that are part of the event.The timestamp of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time).An anonymous or pseudonymous user identifier.getValue()Get valueinthashCode()setAuthenticatedUserToken(String authenticatedUserToken) setCurrency(String currency) setEventName(String eventName) setEventSubtype(PurchaseEvent eventSubtype) setEventType(ConversionEvent eventType) setObjectData(List<ObjectData> objectData) setObjectIDs(List<String> objectIDs) setTimestamp(Long timestamp) setUserToken(String userToken) toString()
-
Constructor Details
-
PurchasedObjectIDs
public PurchasedObjectIDs()
-
-
Method Details
-
setEventName
-
getEventName
The name of the event, 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
-
getEventType
Get eventType -
setEventSubtype
-
getEventSubtype
Get eventSubtype -
setIndex
-
getIndex
The name of an Algolia index. -
setObjectIDs
-
addObjectIDs
-
getObjectIDs
The object IDs of the records that are part of the event. -
setUserToken
-
getUserToken
An anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens. -
setAuthenticatedUserToken
-
getAuthenticatedUserToken
An identifier for authenticated users. > **Note**: Never include personally identifiable information in user tokens. -
setCurrency
-
getCurrency
Three-letter [currency code](https://www.iso.org/iso-4217-currency-codes.html). -
setObjectData
-
addObjectData
-
getObjectData
Extra information about the records involved in a purchase or add-to-cart event. If specified, it must have the same length as `objectIDs`. -
setTimestamp
-
getTimestamp
The 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
-
getValue
Get value -
equals
-
hashCode
public int hashCode() -
toString
-