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

PiOrder

data class PiOrder : Parcelable

The Order object to be used with AnalyticsManager.trackCartConversion. All fields are required and may not be null.

Constructors

<init>

The Order object to be used with AnalyticsManager.trackCartConversion. All fields are required and may not be null.

PiOrder(cart: PiCart, orderNumber: String, shipping: Double, discount: Double)

Properties

cart

val cart: PiCart

discount

val discount: Double

orderNumber

val orderNumber: String

shipping

val shipping: Double

Functions

cart

fun cart(): PiCart

discount

fun discount(): Double

orderNumber

fun orderNumber(): String

shipping

fun shipping(): Double

Companion Object Functions

create

fun create(cart: PiCart, orderNumber: String, shipping: Double, discount: Double): PiOrder