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
constructor(catalogObjectType: String, catalogObjectId: String, quantity: Int, price: Double? = null, currency: String? = null, attributes: Map<String, Any> = mapOf())

Properties

Link copied to clipboard

A map of user-supplied values.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

The currency for the price field.

Link copied to clipboard

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

Link copied to clipboard

The number of catalog objects in this line item.