PiCart
PiCartItem
PiOrder
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Package: com.salesforce.marketingcloud.analytics
SDK Version: 11.0.0
1data class PiCartItem(
2 val item: String,
3 val quantity: Int,
4 val price: Double,
5 val uniqueId: String?
6) : ParcelableA data class representing a cart content item, designed to be used as part of PiCart.cartItems.
1constructor(
2 item: String,
3 quantity: Int,
4 price: Double,
5 uniqueId: String?
6)Creates a PiCartItem with all parameters including an optional unique identifier.
Parameters:
item - The item name or identifierquantity - The quantity of this itemprice - The price of the itemuniqueId - Optional unique identifier for the item1constructor(
2 item: String,
3 quantity: Int,
4 price: Double
5)Creates a PiCartItem without a unique identifier (uniqueId will be null).
Parameters:
item - The item name or identifierquantity - The quantity of this itemprice - The price of the item1@JvmField
2val item: StringThe item name or identifier.
1@JvmField
2val quantity: IntThe quantity of this item in the cart.
1@JvmField
2val price: DoubleThe price of the item.
1@JvmField
2val uniqueId: String?Optional unique identifier for the cart item.
Implements android.os.Parcelable for Android parcelization support.