public class EcommerceTransaction extends AbstractPrimitive
| Modifier and Type | Field and Description |
|---|---|
String |
affiliation
Identifies an affiliation.
|
String |
city
City for shipping.
|
String |
country
Country for shipping.
|
String |
currency
Currency used for totalValue and taxValue.
|
List<EcommerceTransactionItem> |
items
Items purchased.
|
String |
orderId
Identifier of the order.
|
Double |
shipping
Total amount for shipping.
|
String |
state
State for shipping.
|
Double |
taxValue
Taxes applied to the purchase.
|
Double |
totalValue
Total amount of the order.
|
customContexts, trueTimestamp| Constructor and Description |
|---|
EcommerceTransaction(String orderId,
Double totalValue,
List<EcommerceTransactionItem> items)
Creates an ecommerce event.
|
| Modifier and Type | Method and Description |
|---|---|
EcommerceTransaction |
affiliation(String affiliation)
Identifies an affiliation.
|
EcommerceTransaction |
city(String city)
City for shipping.
|
EcommerceTransaction |
country(String country)
Country for shipping.
|
EcommerceTransaction |
currency(String currency)
Currency used for totalValue and taxValue.
|
void |
endProcessing(com.snowplowanalytics.snowplow.internal.tracker.Tracker tracker)
Hook method called just after the event processing in order to execute special operations.
|
Map<String,Object> |
getDataPayload() |
List<EcommerceTransactionItem> |
getItems()
The list of Transaction Items passed with the event.
|
String |
getName() |
EcommerceTransaction |
shipping(Double shipping)
Total amount for shipping.
|
EcommerceTransaction |
state(String state)
State for shipping.
|
EcommerceTransaction |
taxValue(Double taxValue)
Taxes applied to the purchase.
|
beginProcessing, contexts, getContexts, getTrueTimestamp, trueTimestamp@NonNull public final String orderId
@NonNull public final Double totalValue
@NonNull public final List<EcommerceTransactionItem> items
@Nullable public String affiliation
@Nullable public Double taxValue
@Nullable public Double shipping
@Nullable public String city
@Nullable public String state
@Nullable public String country
@Nullable public String currency
public EcommerceTransaction(@NonNull
String orderId,
@NonNull
Double totalValue,
@NonNull
List<EcommerceTransactionItem> items)
orderId - Identifier of the order.totalValue - Total amount of the order.items - Items purchased.@NonNull public EcommerceTransaction affiliation(@Nullable String affiliation)
@NonNull public EcommerceTransaction taxValue(@Nullable Double taxValue)
@NonNull public EcommerceTransaction shipping(@Nullable Double shipping)
@NonNull public EcommerceTransaction city(@Nullable String city)
@NonNull public EcommerceTransaction state(@Nullable String state)
@NonNull public EcommerceTransaction country(@Nullable String country)
@NonNull public EcommerceTransaction currency(@Nullable String currency)
@NonNull public String getName()
getName in class AbstractPrimitive@NonNull public List<EcommerceTransactionItem> getItems()
public void endProcessing(@NonNull
com.snowplowanalytics.snowplow.internal.tracker.Tracker tracker)
EventendProcessing in interface EventendProcessing in class AbstractEvent