public final class SubscriptionPurchaseV2
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 Android 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| SubscriptionPurchaseV2() | 
| Modifier and Type | Method and Description | 
|---|---|
| SubscriptionPurchaseV2 | clone() | 
| String | getAcknowledgementState()The acknowledgement state of the subscription. | 
| CanceledStateContext | getCanceledStateContext()Additional context around canceled subscriptions. | 
| ExternalAccountIdentifiers | getExternalAccountIdentifiers()User account identifier in the third-party service. | 
| String | getKind()This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. | 
| String | getLatestOrderId()The order id of the latest order associated with the purchase of the subscription. | 
| List<SubscriptionPurchaseLineItem> | getLineItems()Item-level info for a subscription purchase. | 
| String | getLinkedPurchaseToken()The purchase token of the old subscription if this subscription is one of the following: * Re-
 signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous
 subscription. | 
| PausedStateContext | getPausedStateContext()Additional context around paused subscriptions. | 
| String | getRegionCode()ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was
 granted. | 
| String | getStartTime()Time at which the subscription was granted. | 
| SubscribeWithGoogleInfo | getSubscribeWithGoogleInfo()User profile associated with purchases made with 'Subscribe with Google'. | 
| String | getSubscriptionState()The current state of the subscription. | 
| TestPurchase | getTestPurchase()Only present if this subscription purchase is a test purchase. | 
| SubscriptionPurchaseV2 | set(String fieldName,
   Object value) | 
| SubscriptionPurchaseV2 | setAcknowledgementState(String acknowledgementState)The acknowledgement state of the subscription. | 
| SubscriptionPurchaseV2 | setCanceledStateContext(CanceledStateContext canceledStateContext)Additional context around canceled subscriptions. | 
| SubscriptionPurchaseV2 | setExternalAccountIdentifiers(ExternalAccountIdentifiers externalAccountIdentifiers)User account identifier in the third-party service. | 
| SubscriptionPurchaseV2 | setKind(String kind)This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. | 
| SubscriptionPurchaseV2 | setLatestOrderId(String latestOrderId)The order id of the latest order associated with the purchase of the subscription. | 
| SubscriptionPurchaseV2 | setLineItems(List<SubscriptionPurchaseLineItem> lineItems)Item-level info for a subscription purchase. | 
| SubscriptionPurchaseV2 | setLinkedPurchaseToken(String linkedPurchaseToken)The purchase token of the old subscription if this subscription is one of the following: * Re-
 signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous
 subscription. | 
| SubscriptionPurchaseV2 | setPausedStateContext(PausedStateContext pausedStateContext)Additional context around paused subscriptions. | 
| SubscriptionPurchaseV2 | setRegionCode(String regionCode)ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was
 granted. | 
| SubscriptionPurchaseV2 | setStartTime(String startTime)Time at which the subscription was granted. | 
| SubscriptionPurchaseV2 | setSubscribeWithGoogleInfo(SubscribeWithGoogleInfo subscribeWithGoogleInfo)User profile associated with purchases made with 'Subscribe with Google'. | 
| SubscriptionPurchaseV2 | setSubscriptionState(String subscriptionState)The current state of the subscription. | 
| SubscriptionPurchaseV2 | setTestPurchase(TestPurchase testPurchase)Only present if this subscription purchase is a test purchase. | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAcknowledgementState()
null for nonepublic SubscriptionPurchaseV2 setAcknowledgementState(String acknowledgementState)
acknowledgementState - acknowledgementState or null for nonepublic CanceledStateContext getCanceledStateContext()
null for nonepublic SubscriptionPurchaseV2 setCanceledStateContext(CanceledStateContext canceledStateContext)
canceledStateContext - canceledStateContext or null for nonepublic ExternalAccountIdentifiers getExternalAccountIdentifiers()
null for nonepublic SubscriptionPurchaseV2 setExternalAccountIdentifiers(ExternalAccountIdentifiers externalAccountIdentifiers)
externalAccountIdentifiers - externalAccountIdentifiers or null for nonepublic String getKind()
null for nonepublic SubscriptionPurchaseV2 setKind(String kind)
kind - kind or null for nonepublic String getLatestOrderId()
null for nonepublic SubscriptionPurchaseV2 setLatestOrderId(String latestOrderId)
latestOrderId - latestOrderId or null for nonepublic List<SubscriptionPurchaseLineItem> getLineItems()
null for nonepublic SubscriptionPurchaseV2 setLineItems(List<SubscriptionPurchaseLineItem> lineItems)
lineItems - lineItems or null for nonepublic String getLinkedPurchaseToken()
null for nonepublic SubscriptionPurchaseV2 setLinkedPurchaseToken(String linkedPurchaseToken)
linkedPurchaseToken - linkedPurchaseToken or null for nonepublic PausedStateContext getPausedStateContext()
null for nonepublic SubscriptionPurchaseV2 setPausedStateContext(PausedStateContext pausedStateContext)
pausedStateContext - pausedStateContext or null for nonepublic String getRegionCode()
null for nonepublic SubscriptionPurchaseV2 setRegionCode(String regionCode)
regionCode - regionCode or null for nonepublic String getStartTime()
null for nonepublic SubscriptionPurchaseV2 setStartTime(String startTime)
startTime - startTime or null for nonepublic SubscribeWithGoogleInfo getSubscribeWithGoogleInfo()
null for nonepublic SubscriptionPurchaseV2 setSubscribeWithGoogleInfo(SubscribeWithGoogleInfo subscribeWithGoogleInfo)
subscribeWithGoogleInfo - subscribeWithGoogleInfo or null for nonepublic String getSubscriptionState()
null for nonepublic SubscriptionPurchaseV2 setSubscriptionState(String subscriptionState)
subscriptionState - subscriptionState or null for nonepublic TestPurchase getTestPurchase()
null for nonepublic SubscriptionPurchaseV2 setTestPurchase(TestPurchase testPurchase)
testPurchase - testPurchase or null for nonepublic SubscriptionPurchaseV2 set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic SubscriptionPurchaseV2 clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.