PiOrder

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.

  • Implements: android.os.Parcelable
ParameterTypeDescription
cartPiCartThe shopping cart associated with this order
orderNumberStringThe unique identifier for this order
shippingDoubleThe shipping cost for this order
discountDoubleThe discount amount applied to this order

The shopping cart object containing the items in this order.

The unique order number identifying this transaction.

The shipping cost amount for this order.

The 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.