
commonMain.com.algolia.client.model.insights.PurchasedObjectIDsAfterSearch.kt Maven / Gradle / Ivy
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
package com.algolia.client.model.insights
import kotlinx.serialization.*
import kotlinx.serialization.json.*
/**
* Use this event to track when users make a purchase after a previous Algolia request. If you're building your category pages with Algolia, you'll also use this event.
*
* @param eventName Can contain 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.
* @param eventType
* @param eventSubtype
* @param index Name of the Algolia index.
* @param queryID 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.
* @param objectIDs List of object identifiers for items of an Algolia index.
* @param userToken Anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens.
* @param objectData Extra information about the records involved in the event—for example, to add price and quantities of purchased products. If provided, must be the same length as `objectIDs`.
* @param currency If you include pricing information in the `objectData` parameter, you must also specify the currency as ISO-4217 currency code, such as USD or EUR.
* @param timestamp Time 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.
*/
@Serializable
public data class PurchasedObjectIDsAfterSearch(
/** Can contain 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. */
@SerialName(value = "eventName") val eventName: String,
@SerialName(value = "eventType") val eventType: ConversionEvent,
@SerialName(value = "eventSubtype") val eventSubtype: PurchaseEvent,
/** Name of the Algolia index. */
@SerialName(value = "index") val index: String,
/** 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. */
@SerialName(value = "queryID") val queryID: String,
/** List of object identifiers for items of an Algolia index. */
@SerialName(value = "objectIDs") val objectIDs: List,
/** Anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens. */
@SerialName(value = "userToken") val userToken: String,
/** Extra information about the records involved in the event—for example, to add price and quantities of purchased products. If provided, must be the same length as `objectIDs`. */
@SerialName(value = "objectData") val objectData: List? = null,
/** If you include pricing information in the `objectData` parameter, you must also specify the currency as ISO-4217 currency code, such as USD or EUR. */
@SerialName(value = "currency") val currency: String? = null,
/** Time 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. */
@SerialName(value = "timestamp") val timestamp: Long? = null,
) : EventsItems
© 2015 - 2025 Weber Informatics LLC | Privacy Policy