public class EcommerceTransactionItem extends AbstractPrimitive
| Modifier and Type | Field and Description |
|---|---|
String |
category
Category of the item.
|
String |
currency
Currency used for the price of the item.
|
String |
name
Name of the item.
|
String |
orderId
OrderID of the order that contains this item.
|
Double |
price
Price of the item.
|
Integer |
quantity
Quantity of the item.
|
String |
sku
Stock Keeping Unit of the item.
|
customContexts, trueTimestamp| Constructor and Description |
|---|
EcommerceTransactionItem(String sku,
double price,
int quantity)
Creates an ecommerce item event.
|
| Modifier and Type | Method and Description |
|---|---|
EcommerceTransactionItem |
category(String category)
Category of the item.
|
EcommerceTransactionItem |
currency(String currency)
Currency used for the price of the item.
|
Map<String,Object> |
getDataPayload() |
String |
getName() |
EcommerceTransactionItem |
name(String name)
Name of the item.
|
EcommerceTransactionItem |
orderId(String orderId)
OrderID of the order that contains this item.
|
beginProcessing, contexts, endProcessing, getContexts, getTrueTimestamp, trueTimestamp@NonNull public final String sku
@NonNull public final Double price
@NonNull public final Integer quantity
@Nullable public String name
@Nullable public String category
@Nullable public String currency
@Nullable public String orderId
public EcommerceTransactionItem(@NonNull
String sku,
double price,
int quantity)
sku - Stock Keeping Unit of the item.price - Price of the item.quantity - Quantity of the item.@NonNull public EcommerceTransactionItem name(@Nullable String name)
@NonNull public EcommerceTransactionItem category(@Nullable String category)
@NonNull public EcommerceTransactionItem currency(@Nullable String currency)
@NonNull public EcommerceTransactionItem orderId(@Nullable String orderId)
@NonNull public String getName()
getName in class AbstractPrimitive