EcommerceTransactionItem

An ecommerce item event.

Parameters

sku

Stock Keeping Unit of the item.

price

Price of the item.

quantity

Quantity of the item.

Constructors

Link copied to clipboard
fun EcommerceTransactionItem(sku: String, price: Double, quantity: Int)

Functions

Link copied to clipboard
open override fun beginProcessing(tracker: Tracker)

Hook method called just before the event processing in order to execute special operations.

Link copied to clipboard

Category of the item.

Link copied to clipboard

Adds a list of contexts.

Link copied to clipboard

Currency used for the price of the item.

Link copied to clipboard
open override fun endProcessing(tracker: Tracker)

Hook method called just after the event processing in order to execute special operations.

Link copied to clipboard

Adds a list of contexts.

Link copied to clipboard

Name of the item.

Link copied to clipboard

OrderID of the order that contains this item.

Link copied to clipboard
fun trueTimestamp(trueTimestamp: Long?): AbstractEvent

Set the custom timestamp of the event.

Properties

Link copied to clipboard
var category: String? = null

Category of the item.

Link copied to clipboard
open override val contexts: List<SelfDescribingJson>
Link copied to clipboard
var currency: String? = null

Currency used for the price of the item.

Link copied to clipboard

List of custom contexts associated with the event.

Link copied to clipboard
open override val dataPayload: Map<String, Any?>
Link copied to clipboard
open override val entities: List<SelfDescribingJson>
Link copied to clipboard
var itemName: String? = null

Name of the item.

Link copied to clipboard
open override val name: String
Link copied to clipboard
var orderId: String? = null

OrderID of the order that contains this item.

Link copied to clipboard

Price of the item.

Link copied to clipboard

Quantity of the item.

Link copied to clipboard
val sku: String

Stock Keeping Unit of the item.

Link copied to clipboard
open override var trueTimestamp: Long? = null