Google Play Android Developer API v1 (revision 13)



com.google.api.services.androidpublisher.model
Class SubscriptionPurchase

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.androidpublisher.model.SubscriptionPurchase
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class SubscriptionPurchase
extends GenericJson

A Purchase resource indicates the status of a user's subscription purchase.

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 Android Developer API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
SubscriptionPurchase()
           
 
Method Summary
 SubscriptionPurchase clone()
           
 Boolean getAutoRenewing()
          Whether the subscription will automatically be renewed when it reaches its current expiry time.
 Long getInitiationTimestampMsec()
          Time at which the subscription was granted, in milliseconds since Epoch.
 String getKind()
          This kind represents a subscriptionPurchase object in the androidpublisher service.
 Long getValidUntilTimestampMsec()
          Time at which the subscription will expire, 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 setInitiationTimestampMsec(Long initiationTimestampMsec)
          Time at which the subscription was granted, in milliseconds since Epoch.
 SubscriptionPurchase setKind(String kind)
          This kind represents a subscriptionPurchase object in the androidpublisher service.
 SubscriptionPurchase setValidUntilTimestampMsec(Long validUntilTimestampMsec)
          Time at which the subscription will expire, in milliseconds since Epoch.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscriptionPurchase

public SubscriptionPurchase()
Method Detail

getAutoRenewing

public Boolean getAutoRenewing()
Whether the subscription will automatically be renewed when it reaches its current expiry time.

Returns:
value or null for none

setAutoRenewing

public SubscriptionPurchase setAutoRenewing(Boolean autoRenewing)
Whether the subscription will automatically be renewed when it reaches its current expiry time.

Parameters:
autoRenewing - autoRenewing or null for none

getInitiationTimestampMsec

public Long getInitiationTimestampMsec()
Time at which the subscription was granted, in milliseconds since Epoch.

Returns:
value or null for none

setInitiationTimestampMsec

public SubscriptionPurchase setInitiationTimestampMsec(Long initiationTimestampMsec)
Time at which the subscription was granted, in milliseconds since Epoch.

Parameters:
initiationTimestampMsec - initiationTimestampMsec or null for none

getKind

public String getKind()
This kind represents a subscriptionPurchase object in the androidpublisher service.

Returns:
value or null for none

setKind

public SubscriptionPurchase setKind(String kind)
This kind represents a subscriptionPurchase object in the androidpublisher service.

Parameters:
kind - kind or null for none

getValidUntilTimestampMsec

public Long getValidUntilTimestampMsec()
Time at which the subscription will expire, in milliseconds since Epoch.

Returns:
value or null for none

setValidUntilTimestampMsec

public SubscriptionPurchase setValidUntilTimestampMsec(Long validUntilTimestampMsec)
Time at which the subscription will expire, in milliseconds since Epoch.

Parameters:
validUntilTimestampMsec - validUntilTimestampMsec or null for none

set

public SubscriptionPurchase set(String fieldName,
                                Object value)
Overrides:
set in class GenericJson

clone

public SubscriptionPurchase clone()
Overrides:
clone in class GenericJson