public final class ProductPurchase
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ProductPurchase() |
Modifier and Type | Method and Description |
---|---|
ProductPurchase |
clone() |
java.lang.Integer |
getConsumptionState()
The consumption state of the inapp product.
|
java.lang.String |
getDeveloperPayload()
A developer-specified string that contains supplemental information about an order.
|
java.lang.String |
getKind()
This kind represents an inappPurchase object in the androidpublisher service.
|
java.lang.String |
getOrderId()
The order id associated with the purchase of the inapp product.
|
java.lang.Integer |
getPurchaseState()
The purchase state of the order.
|
java.lang.Long |
getPurchaseTimeMillis()
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
java.lang.Integer |
getPurchaseType()
The type of purchase of the inapp product.
|
ProductPurchase |
set(java.lang.String fieldName,
java.lang.Object value) |
ProductPurchase |
setConsumptionState(java.lang.Integer consumptionState)
The consumption state of the inapp product.
|
ProductPurchase |
setDeveloperPayload(java.lang.String developerPayload)
A developer-specified string that contains supplemental information about an order.
|
ProductPurchase |
setKind(java.lang.String kind)
This kind represents an inappPurchase object in the androidpublisher service.
|
ProductPurchase |
setOrderId(java.lang.String orderId)
The order id associated with the purchase of the inapp product.
|
ProductPurchase |
setPurchaseState(java.lang.Integer purchaseState)
The purchase state of the order.
|
ProductPurchase |
setPurchaseTimeMillis(java.lang.Long purchaseTimeMillis)
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
|
ProductPurchase |
setPurchaseType(java.lang.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
public java.lang.Integer getConsumptionState()
null
for nonepublic ProductPurchase setConsumptionState(java.lang.Integer consumptionState)
consumptionState
- consumptionState or null
for nonepublic java.lang.String getDeveloperPayload()
null
for nonepublic ProductPurchase setDeveloperPayload(java.lang.String developerPayload)
developerPayload
- developerPayload or null
for nonepublic java.lang.String getKind()
null
for nonepublic ProductPurchase setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getOrderId()
null
for nonepublic ProductPurchase setOrderId(java.lang.String orderId)
orderId
- orderId or null
for nonepublic java.lang.Integer getPurchaseState()
null
for nonepublic ProductPurchase setPurchaseState(java.lang.Integer purchaseState)
purchaseState
- purchaseState or null
for nonepublic java.lang.Long getPurchaseTimeMillis()
null
for nonepublic ProductPurchase setPurchaseTimeMillis(java.lang.Long purchaseTimeMillis)
purchaseTimeMillis
- purchaseTimeMillis or null
for nonepublic java.lang.Integer getPurchaseType()
null
for nonepublic ProductPurchase setPurchaseType(java.lang.Integer purchaseType)
purchaseType
- purchaseType or null
for nonepublic ProductPurchase set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ProductPurchase clone()
clone
in class com.google.api.client.json.GenericJson