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.Flags
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 GenericJson
public TransactionData clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.