public final class SubscriptionPurchase 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SubscriptionPurchase() |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionPurchase |
clone() |
Boolean |
getAutoRenewing()
Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
Integer |
getCancelReason()
The cancel reason of the subscription, if the subscription is not auto renewing.
|
String |
getCountryCode()
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was
granted.
|
String |
getDeveloperPayload()
A developer-specified string that contains supplemental information about an order.
|
Long |
getExpiryTimeMillis()
Time at which the subscription will expire, in milliseconds since Epoch.
|
String |
getKind()
This kind represents a subscriptionPurchase object in the androidpublisher service.
|
Integer |
getPaymentState()
The payment state of the subscription.
|
Long |
getPriceAmountMicros()
Price of the subscription, not including tax.
|
String |
getPriceCurrencyCode()
ISO 4217 currency code for the subscription price.
|
Long |
getStartTimeMillis()
Time at which the subscription was granted, in milliseconds since Epoch.
|
SubscriptionPurchase |
set(String fieldName,
Object value) |
SubscriptionPurchase |
setAutoRenewing(Boolean autoRenewing)
Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
SubscriptionPurchase |
setCancelReason(Integer cancelReason)
The cancel reason of the subscription, if the subscription is not auto renewing.
|
SubscriptionPurchase |
setCountryCode(String countryCode)
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was
granted.
|
SubscriptionPurchase |
setDeveloperPayload(String developerPayload)
A developer-specified string that contains supplemental information about an order.
|
SubscriptionPurchase |
setExpiryTimeMillis(Long expiryTimeMillis)
Time at which the subscription will expire, in milliseconds since Epoch.
|
SubscriptionPurchase |
setKind(String kind)
This kind represents a subscriptionPurchase object in the androidpublisher service.
|
SubscriptionPurchase |
setPaymentState(Integer paymentState)
The payment state of the subscription.
|
SubscriptionPurchase |
setPriceAmountMicros(Long priceAmountMicros)
Price of the subscription, not including tax.
|
SubscriptionPurchase |
setPriceCurrencyCode(String priceCurrencyCode)
ISO 4217 currency code for the subscription price.
|
SubscriptionPurchase |
setStartTimeMillis(Long startTimeMillis)
Time at which the subscription was granted, in milliseconds since Epoch.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic Boolean getAutoRenewing()
null for nonepublic SubscriptionPurchase setAutoRenewing(Boolean autoRenewing)
autoRenewing - autoRenewing or null for nonepublic Integer getCancelReason()
null for nonepublic SubscriptionPurchase setCancelReason(Integer cancelReason)
cancelReason - cancelReason or null for nonepublic String getCountryCode()
null for nonepublic SubscriptionPurchase setCountryCode(String countryCode)
countryCode - countryCode or null for nonepublic String getDeveloperPayload()
null for nonepublic SubscriptionPurchase setDeveloperPayload(String developerPayload)
developerPayload - developerPayload or null for nonepublic Long getExpiryTimeMillis()
null for nonepublic SubscriptionPurchase setExpiryTimeMillis(Long expiryTimeMillis)
expiryTimeMillis - expiryTimeMillis or null for nonepublic String getKind()
null for nonepublic SubscriptionPurchase setKind(String kind)
kind - kind or null for nonepublic Integer getPaymentState()
null for nonepublic SubscriptionPurchase setPaymentState(Integer paymentState)
paymentState - paymentState or null for nonepublic Long getPriceAmountMicros()
null for nonepublic SubscriptionPurchase setPriceAmountMicros(Long priceAmountMicros)
priceAmountMicros - priceAmountMicros or null for nonepublic String getPriceCurrencyCode()
null for nonepublic SubscriptionPurchase setPriceCurrencyCode(String priceCurrencyCode)
priceCurrencyCode - priceCurrencyCode or null for nonepublic Long getStartTimeMillis()
null for nonepublic SubscriptionPurchase setStartTimeMillis(Long startTimeMillis)
startTimeMillis - startTimeMillis or null for nonepublic SubscriptionPurchase set(String fieldName, Object value)
set in class GenericJsonpublic SubscriptionPurchase clone()
clone in class GenericJson