An E-commerce event for when a user places a preorder. This class represents a specific type of order event within the Salesforce Marketing Cloud Unified SDK, designed to track when users place preorders in an e-commerce context.
Class Declaration
1class PreorderEvent : OrderEvent
Properties
Inherited from OrderEvent
order
1val order: Order
The order associated with this event.
Inherited from EngagementEvent
category
1open override var category: Event.Category
The event category name. Category contains a list of allowed values.
priority
1open override val priority: Priority
The priority level for this event.
Methods
Inherited from EngagementEvent
attributes()
1open override fun attributes(): Map<String, Any>
Returns the event attributes for this event as a map of string keys to any values.
Returns:Map<String, Any> - The event attributes
name()
1open override fun name(): String
Returns the name for the event.
Returns:String - The event name
Note: This value must match the Event Name used when creating the event in the Marketing Cloud UI for any action to result from tracking this event.
Order Class Reference
The order property contains an instance of the Order class with the following structure: