ShipOrderEvent
com.salesforce.marketingcloud.sfmcsdk.components.events
An E-commerce event to manage details of an order shipment.
- Target: androidJvm
- SDK Version: SFMC SDK v3.1.0 (Salesforce Marketing Cloud Unified SDK 11.0.0)
- Available Versions: 11.0.0, 10.0.0
ShipOrderEvent is a concrete implementation of OrderEvent used to track when an order has been shipped in an e-commerce flow. It extends the sealed OrderEvent class, which is part of the engagement event system in the Salesforce Marketing Cloud SDK.
A property that holds an Order object containing details about the shipment.
The Event category Name. Category contains list of allowed values.
Defines the priority level for the event.
The Event attributes for this event.
Returns: Map<String, Any> - A map of event attributes.
The name for the event. 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.
Returns: String - The event name.
The Order data class contains the following properties:
Constructor Parameters:
- id (
String, required) - A unique identifier representing the order - lineItems (
List<LineItem>, optional, default:listOf()) - A list of Line Item Data values - totalValue (
Double?, optional, default:null) - The total value of the order - currency (
String?, optional, default:null) - The currency of the total value for the order - attributes (
Map<String, Any>, optional, default:mapOf()) - A map of user-supplied values
The OrderEvent class (parent of ShipOrderEvent) includes a companion object for factory methods or constants.
Other OrderEvent subclasses available in the SDK:
PurchaseOrderEvent- For when a user makes a purchasePreorderEvent- For preorder transactionsCancelOrderEvent- For order cancellationsDeliverOrderEvent- For order deliveriesReturnOrderEvent- For order returnsExchangeOrderEvent- For order exchanges
- The event name set via
name()must match the Event Name configured in the Marketing Cloud UI for tracking to trigger any associated actions. - Use this event to track the shipment stage of an order in your e-commerce flow.
- The
Orderobject should contain the complete order details including line items and total value.