LineItem

data class LineItem @JvmOverloads constructor(val catalogObjectType: String, val catalogObjectId: String, val quantity: Int, var price: Double? = null, var currency: String? = null, var attributes: Map<String, Any> = mapOf())

Line items are intended to describe purchasable items for Cart & Order events.

Constructors

Link copied to clipboard
@JvmOverloads
constructor(catalogObjectType: String, catalogObjectId: String, quantity: Int, price: Double? = null, currency: String? = null, attributes: Map<String, Any> = mapOf())

Properties

Link copied to clipboard
var attributes: Map<String, Any>

A map of user-supplied values.

Link copied to clipboard
val catalogObjectId: String

A unique identifier representing the catalog object referenced in the line item.

Link copied to clipboard
val catalogObjectType: String

A type name representing the catalog object referenced in the line item.

Link copied to clipboard
var currency: String?

The currency for the price field.

Link copied to clipboard
var price: Double?

The price of the catalog object referenced in the line item.

Link copied to clipboard
val quantity: Int

The number of catalog objects in this line item.