Purchase

data class Purchase(val occurredAt: String, val opaqueUserId: String, val id: String, val items: List<PurchasedItem>, val deviceType: Device? = null, val channel: Channel? = null, val page: Page? = null) : JsonSerializable(source)

Constructors

Link copied to clipboard
constructor(occurredAt: String, opaqueUserId: String, id: String, items: List<PurchasedItem>, deviceType: Device? = null, channel: Channel? = null, page: Page? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The channel where the purchase occurred.

Link copied to clipboard

The device type where the purchase occurred.

Link copied to clipboard
val id: String

The marketplace assigned ID for the order

Link copied to clipboard

Items purchased

Link copied to clipboard

RFC3339 formatted timestamp including UTC offset.

Link copied to clipboard

The opaque user ID which allows correlating user activity.

Link copied to clipboard
val page: Page?

The page context where the purchase occurred. Typically used for checkout or cart pages.

Functions

Link copied to clipboard
open override fun toJsonObject(): JSONObject