public abstract static class EcommerceTransaction.Builder<T extends EcommerceTransaction.Builder<T>> extends AbstractEvent.Builder<T>
trueTimestamp| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
affiliation(java.lang.String affiliation)
Optional.
|
EcommerceTransaction |
build() |
T |
city(java.lang.String city)
Optional.
|
T |
country(java.lang.String country)
Optional.
|
T |
currency(java.lang.String currency)
Optional.
|
T |
items(EcommerceTransactionItem... itemArgs)
Provide EcommerceTransactionItems directly, without explicitly adding them
to a list beforehand.
|
T |
items(java.util.List<EcommerceTransactionItem> items)
Provide a list of EcommerceTransactionItems.
|
T |
orderId(java.lang.String orderId)
Required.
|
T |
shipping(java.lang.Double shipping)
Optional.
|
T |
state(java.lang.String state)
Optional.
|
T |
taxValue(java.lang.Double taxValue)
Optional.
|
T |
totalValue(java.lang.Double totalValue)
Required.
|
customContext, self, subject, trueTimestamppublic T orderId(java.lang.String orderId)
orderId - ID of the eCommerce transactionpublic T totalValue(java.lang.Double totalValue)
totalValue - Total transaction valuepublic T affiliation(java.lang.String affiliation)
affiliation - Transaction affiliationpublic T taxValue(java.lang.Double taxValue)
taxValue - Transaction tax valuepublic T shipping(java.lang.Double shipping)
shipping - Delivery cost chargedpublic T city(java.lang.String city)
city - Delivery address citypublic T state(java.lang.String state)
state - Delivery address statepublic T country(java.lang.String country)
country - Delivery address countrypublic T currency(java.lang.String currency)
currency - The currency the price is expressed inpublic T items(java.util.List<EcommerceTransactionItem> items)
items - The items in the transactionpublic T items(EcommerceTransactionItem... itemArgs)
itemArgs - The items as a varargs argumentpublic EcommerceTransaction build()