public final class ProductPurchase 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 Google Play Developer API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ProductPurchase() |
Modifier and Type | Method and Description |
---|---|
ProductPurchase |
clone() |
Integer |
getConsumptionState()
The consumption state of the inapp product.
|
String |
getDeveloperPayload()
A developer-specified string that contains supplemental information about an order.
|
String |
getKind()
This kind represents an inappPurchase object in the androidpublisher service.
|
String |
getOrderId()
The order id associated with the purchase of the inapp product.
|
Integer |
getPurchaseState()
The purchase state of the order.
|
Long |
getPurchaseTimeMillis()
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
Integer |
getPurchaseType()
The type of purchase of the inapp product.
|
ProductPurchase |
set(String fieldName,
Object value) |
ProductPurchase |
setConsumptionState(Integer consumptionState)
The consumption state of the inapp product.
|
ProductPurchase |
setDeveloperPayload(String developerPayload)
A developer-specified string that contains supplemental information about an order.
|
ProductPurchase |
setKind(String kind)
This kind represents an inappPurchase object in the androidpublisher service.
|
ProductPurchase |
setOrderId(String orderId)
The order id associated with the purchase of the inapp product.
|
ProductPurchase |
setPurchaseState(Integer purchaseState)
The purchase state of the order.
|
ProductPurchase |
setPurchaseTimeMillis(Long purchaseTimeMillis)
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
ProductPurchase |
setPurchaseType(Integer purchaseType)
The type of purchase of the inapp product.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Integer getConsumptionState()
null
for nonepublic ProductPurchase setConsumptionState(Integer consumptionState)
consumptionState
- consumptionState or null
for nonepublic String getDeveloperPayload()
null
for nonepublic ProductPurchase setDeveloperPayload(String developerPayload)
developerPayload
- developerPayload or null
for nonepublic String getKind()
null
for nonepublic ProductPurchase setKind(String kind)
kind
- kind or null
for nonepublic String getOrderId()
null
for nonepublic ProductPurchase setOrderId(String orderId)
orderId
- orderId or null
for nonepublic Integer getPurchaseState()
null
for nonepublic ProductPurchase setPurchaseState(Integer purchaseState)
purchaseState
- purchaseState or null
for nonepublic Long getPurchaseTimeMillis()
null
for nonepublic ProductPurchase setPurchaseTimeMillis(Long purchaseTimeMillis)
purchaseTimeMillis
- purchaseTimeMillis or null
for nonepublic Integer getPurchaseType()
null
for nonepublic ProductPurchase setPurchaseType(Integer purchaseType)
purchaseType
- purchaseType or null
for nonepublic ProductPurchase set(String fieldName, Object value)
set
in class GenericJson
public ProductPurchase clone()
clone
in class GenericJson