An E-commerce event to manage details of exchanging an order. This class is part of the Salesforce Marketing Cloud Unified SDK and is used to track order exchange activities in your Android application.
Based on the OrderEvent pattern, the constructor accepts:
1ExchangeOrderEvent(order: Order)
Parameters
order: Order - An Order object containing the details of the order being exchanged
Properties
Inherited from OrderEvent
order
1val order: Order
Contains order information associated with the event.
Inherited from EngagementEvent
category
1open override var category: Event.Category
The Event category Name. Category contains list of allowed values.
priority
1open override val priority: Priority
Priority level for the event.
Inherited from Event
id
1@JvmField2val id: String
Event identifier.
producer
1val producer: Event.Producer
The Event Producer Name. Producer contains list of allowed values.
Methods
Inherited from EngagementEvent
name()
1open override fun name(): String
Returns the name for the event. This value must match the Event Name used when creating the event in the Marketing Cloud UI for tracking functionality.
Returns: Event name as a String
attributes()
1open override fun attributes(): Map<String, Any>
The Event attributes for this event.
Returns: A map of attribute names to values
Inherited from Event
track()
1fun track(): void
Method to track this Event via EventManager to subscriber EventSubscriber.