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

PiCartItem

data class PiCartItem : Parcelable

A cart content item to be used as part of the PiCart.cartItems.

Constructors

<init>

PiCartItem(item: String, quantity: Int, price: Double)

A cart content item to be used as part of the PiCart.cartItems.

PiCartItem(item: String, quantity: Int, price: Double, uniqueId: String?)

Properties

item

val item: String

price

val price: Double

quantity

val quantity: Int

uniqueId

val uniqueId: String?

Functions

item

fun item(): String

price

fun price(): Double

quantity

fun quantity(): Int

uniqueId

fun uniqueId(): String?

Companion Object Functions

create

fun create(item: String, quantity: Int, price: Double): PiCartItem
fun create(item: String, quantity: Int, price: Double, uniqueId: String?): PiCartItem