public final class EcommerceData 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 |
---|
EcommerceData() |
Modifier and Type | Method and Description |
---|---|
EcommerceData |
clone() |
String |
getActionType()
Action associated with this e-commerce action.
|
String |
getEcommerceType()
The type of this e-commerce activity.
|
List<ProductData> |
getProducts()
Details of the products in this transaction.
|
TransactionData |
getTransaction()
Transaction details of this e-commerce action.
|
EcommerceData |
set(String fieldName,
Object value) |
EcommerceData |
setActionType(String actionType)
Action associated with this e-commerce action.
|
EcommerceData |
setEcommerceType(String ecommerceType)
The type of this e-commerce activity.
|
EcommerceData |
setProducts(List<ProductData> products)
Details of the products in this transaction.
|
EcommerceData |
setTransaction(TransactionData transaction)
Transaction details of this e-commerce action.
|
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 getActionType()
null
for nonepublic EcommerceData setActionType(String actionType)
actionType
- actionType or null
for nonepublic String getEcommerceType()
null
for nonepublic EcommerceData setEcommerceType(String ecommerceType)
ecommerceType
- ecommerceType or null
for nonepublic List<ProductData> getProducts()
null
for nonepublic EcommerceData setProducts(List<ProductData> products)
products
- products or null
for nonepublic TransactionData getTransaction()
null
for nonepublic EcommerceData setTransaction(TransactionData transaction)
transaction
- transaction or null
for nonepublic EcommerceData set(String fieldName, Object value)
set
in class GenericJson
public EcommerceData clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.