public class EcommerceTransactionItem extends AbstractEvent
Implementation note: EcommerceTransaction/EcommerceTransactionItem uses a legacy design. We aim to deprecate it eventually. We advise using SelfDescribing events instead, and attaching the items as entities. EcommerceTransactionItems were designed for attaching data about purchased items to a EcommerceTransaction event. They can technically be sent as events in their own right, but this is not supported. To link the "transaction" and "transaction item" events, we recommend using the same orderId for the EcommerceTransaction and all attached EcommerceTransactionItems. To use the Currency Conversion pipeline enrichment, the currency string must be a valid Open Exchange Rates value.
Modifier and Type | Class and Description |
---|---|
static class |
EcommerceTransactionItem.Builder<T extends EcommerceTransactionItem.Builder<T>> |
context, subject, trueTimestamp
Modifier | Constructor and Description |
---|---|
protected |
EcommerceTransactionItem(EcommerceTransactionItem.Builder<?> builder) |
Modifier and Type | Method and Description |
---|---|
static EcommerceTransactionItem.Builder<?> |
builder() |
TrackerPayload |
getPayload()
Returns a TrackerPayload which can be passed to an Emitter.
|
getContext, getSubject, getTrueTimestamp, putTrueTimestamp
protected EcommerceTransactionItem(EcommerceTransactionItem.Builder<?> builder)
public static EcommerceTransactionItem.Builder<?> builder()
public TrackerPayload getPayload()
getPayload
in interface Event
getPayload
in class AbstractEvent