public final class TransactionData extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Analytics Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TransactionData() |
| Modifier and Type | Method and Description |
|---|---|
TransactionData |
clone() |
String |
getTransactionId()
The transaction ID, supplied by the e-commerce tracking method, for the purchase in the
shopping cart.
|
Double |
getTransactionRevenue()
The total sale revenue (excluding shipping and tax) of the transaction.
|
Double |
getTransactionShipping()
Total cost of shipping.
|
Double |
getTransactionTax()
Total tax for the transaction.
|
TransactionData |
set(String fieldName,
Object value) |
TransactionData |
setTransactionId(String transactionId)
The transaction ID, supplied by the e-commerce tracking method, for the purchase in the
shopping cart.
|
TransactionData |
setTransactionRevenue(Double transactionRevenue)
The total sale revenue (excluding shipping and tax) of the transaction.
|
TransactionData |
setTransactionShipping(Double transactionShipping)
Total cost of shipping.
|
TransactionData |
setTransactionTax(Double transactionTax)
Total tax for the transaction.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getTransactionId()
null for nonepublic TransactionData setTransactionId(String transactionId)
transactionId - transactionId or null for nonepublic Double getTransactionRevenue()
null for nonepublic TransactionData setTransactionRevenue(Double transactionRevenue)
transactionRevenue - transactionRevenue or null for nonepublic Double getTransactionShipping()
null for nonepublic TransactionData setTransactionShipping(Double transactionShipping)
transactionShipping - transactionShipping or null for nonepublic Double getTransactionTax()
null for nonepublic TransactionData setTransactionTax(Double transactionTax)
transactionTax - transactionTax or null for nonepublic TransactionData set(String fieldName, Object value)
set in class GenericJsonpublic TransactionData clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.