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
PiOrder is a data class representing an order object used with the Salesforce Marketing Cloud SDK’s analytics tracking functionality. It implements Parcelable for Android serialization and is specifically designed for tracking cart conversions through the AnalyticsManager.trackCartConversion method.
All fields in this class are required and cannot be null.
1data class PiOrder(
2 val cart: PiCart,
3 val orderNumber: String,
4 val shipping: Double,
5 val discount: Double
6) : Parcelableandroid.os.Parcelable1constructor(
2 cart: PiCart,
3 orderNumber: String,
4 shipping: Double,
5 discount: Double
6)| Parameter | Type | Description |
|---|---|---|
cart | PiCart | The shopping cart associated with this order |
orderNumber | String | The unique identifier for this order |
shipping | Double | The shipping cost for this order |
discount | Double | The discount amount applied to this order |
1@JvmField
2val cart: PiCartThe shopping cart object containing the items in this order.
1@JvmField
2val orderNumber: StringThe unique order number identifying this transaction.
1@JvmField
2val shipping: DoubleThe shipping cost amount for this order.
1@JvmField
2val discount: DoubleThe discount amount applied to this order.
This class is used in conjunction with AnalyticsManager.trackCartConversion() to track e-commerce order conversions in the Salesforce Marketing Cloud platform.