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) |
EcommerceTransaction |
build() |
T |
city(java.lang.String city) |
T |
country(java.lang.String country) |
T |
currency(java.lang.String currency) |
T |
items(EcommerceTransactionItem... itemArgs) |
T |
items(java.util.List<EcommerceTransactionItem> items) |
T |
orderId(java.lang.String orderId) |
T |
shipping(java.lang.Double shipping) |
T |
state(java.lang.String state) |
T |
taxValue(java.lang.Double taxValue) |
T |
totalValue(java.lang.Double totalValue) |
customContext, deviceCreatedTimestamp, eventId, self, subject, timestamp, 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()