Marketing Cloud SDK / com.salesforce.marketingcloud.analytics / PiCart

PiCart

data class PiCart : Parcelable

A Cart object to be used with AnalyticsManager.trackCartContents or as the Cart value for PiOrder.cart.

Constructors

<init>

A Cart object to be used with AnalyticsManager.trackCartContents or as the Cart value for PiOrder.cart.

PiCart(cartItems: List<PiCartItem>)

Properties

cartItems

val cartItems: List<PiCartItem>

Functions

cartItems

fun cartItems(): List<PiCartItem>

Companion Object Functions

create

fun create(cartItems: List<PiCartItem>): PiCart