UALCommerceEvent

class UALCommerceEvent(val eventType: UALCommerceEvent.EventType, val currency: String?, val cart: Cart?, val transactionData: Transaction?, val iccpTransaction: ICCPTransaction?, val productList: List<Product>, val customAttributes: Map<String, String>)

Represents a commerce event for analytics in the purchase flow.

Parameters

eventType

The type of commerce event.

currency

The currency code, or null if not set.

cart

The Cart associated with the event, or null.

transactionData

The Transaction data, or null.

iccpTransaction

The ICCPTransaction data, or null.

productList

List of Product in the event.

customAttributes

Map of custom attributes for analytics.

Constructors

Link copied to clipboard
constructor(eventType: UALCommerceEvent.EventType, currency: String?, cart: Cart?, transactionData: Transaction?, iccpTransaction: ICCPTransaction?, productList: List<Product>, customAttributes: Map<String, String>)

Types

Link copied to clipboard

Represents the type of commerce event.

Properties

Link copied to clipboard
val cart: Cart?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val productList: List<Product>
Link copied to clipboard
val transactionData: Transaction?