public final class SubscriptionPurchase
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 |
|---|
SubscriptionPurchase() |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionPurchase |
clone() |
Integer |
getAcknowledgementState()
The acknowledgement state of the subscription product.
|
Boolean |
getAutoRenewing()
Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
Long |
getAutoResumeTimeMillis()
Time at which the subscription will be automatically resumed, in milliseconds since the Epoch.
|
Integer |
getCancelReason()
The reason why a subscription was canceled or is not auto-renewing.
|
SubscriptionCancelSurveyResult |
getCancelSurveyResult()
Information provided by the user when they complete the subscription cancellation flow
(cancellation reason survey).
|
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.
|
String |
getEmailAddress()
The email address of the user when the subscription was purchased.
|
Long |
getExpiryTimeMillis()
Time at which the subscription will expire, in milliseconds since the Epoch.
|
String |
getExternalAccountId()
User account identifier in the third-party service.
|
String |
getFamilyName()
The family name of the user when the subscription was purchased.
|
String |
getGivenName()
The given name of the user when the subscription was purchased.
|
IntroductoryPriceInfo |
getIntroductoryPriceInfo()
Introductory price information of the subscription.
|
String |
getKind()
This kind represents a subscriptionPurchase object in the androidpublisher service.
|
String |
getLinkedPurchaseToken()
The purchase token of the originating purchase if this subscription is one of the following: 0.
|
String |
getObfuscatedExternalAccountId()
An obfuscated version of the id that is uniquely associated with the user's account in your
app.
|
String |
getObfuscatedExternalProfileId()
An obfuscated version of the id that is uniquely associated with the user's profile in your
app.
|
String |
getOrderId()
The order id of the latest recurring order associated with the purchase of the subscription.
|
Integer |
getPaymentState()
The payment state of the subscription.
|
Long |
getPriceAmountMicros()
Price of the subscription, For tax exclusive countries, the price doesn't include tax.
|
SubscriptionPriceChange |
getPriceChange()
The latest price change information available.
|
String |
getPriceCurrencyCode()
ISO 4217 currency code for the subscription price.
|
String |
getProfileId()
The Google profile id of the user when the subscription was purchased.
|
String |
getProfileName()
The profile name of the user when the subscription was purchased.
|
String |
getPromotionCode()
The promotion code applied on this purchase.
|
Integer |
getPromotionType()
The type of promotion applied on this purchase.
|
Integer |
getPurchaseType()
The type of purchase of the subscription.
|
Long |
getStartTimeMillis()
Time at which the subscription was granted, in milliseconds since the Epoch.
|
Long |
getUserCancellationTimeMillis()
The time at which the subscription was canceled by the user, in milliseconds since the epoch.
|
SubscriptionPurchase |
set(String fieldName,
Object value) |
SubscriptionPurchase |
setAcknowledgementState(Integer acknowledgementState)
The acknowledgement state of the subscription product.
|
SubscriptionPurchase |
setAutoRenewing(Boolean autoRenewing)
Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
SubscriptionPurchase |
setAutoResumeTimeMillis(Long autoResumeTimeMillis)
Time at which the subscription will be automatically resumed, in milliseconds since the Epoch.
|
SubscriptionPurchase |
setCancelReason(Integer cancelReason)
The reason why a subscription was canceled or is not auto-renewing.
|
SubscriptionPurchase |
setCancelSurveyResult(SubscriptionCancelSurveyResult cancelSurveyResult)
Information provided by the user when they complete the subscription cancellation flow
(cancellation reason survey).
|
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 |
setEmailAddress(String emailAddress)
The email address of the user when the subscription was purchased.
|
SubscriptionPurchase |
setExpiryTimeMillis(Long expiryTimeMillis)
Time at which the subscription will expire, in milliseconds since the Epoch.
|
SubscriptionPurchase |
setExternalAccountId(String externalAccountId)
User account identifier in the third-party service.
|
SubscriptionPurchase |
setFamilyName(String familyName)
The family name of the user when the subscription was purchased.
|
SubscriptionPurchase |
setGivenName(String givenName)
The given name of the user when the subscription was purchased.
|
SubscriptionPurchase |
setIntroductoryPriceInfo(IntroductoryPriceInfo introductoryPriceInfo)
Introductory price information of the subscription.
|
SubscriptionPurchase |
setKind(String kind)
This kind represents a subscriptionPurchase object in the androidpublisher service.
|
SubscriptionPurchase |
setLinkedPurchaseToken(String linkedPurchaseToken)
The purchase token of the originating purchase if this subscription is one of the following: 0.
|
SubscriptionPurchase |
setObfuscatedExternalAccountId(String obfuscatedExternalAccountId)
An obfuscated version of the id that is uniquely associated with the user's account in your
app.
|
SubscriptionPurchase |
setObfuscatedExternalProfileId(String obfuscatedExternalProfileId)
An obfuscated version of the id that is uniquely associated with the user's profile in your
app.
|
SubscriptionPurchase |
setOrderId(String orderId)
The order id of the latest recurring order associated with the purchase of the subscription.
|
SubscriptionPurchase |
setPaymentState(Integer paymentState)
The payment state of the subscription.
|
SubscriptionPurchase |
setPriceAmountMicros(Long priceAmountMicros)
Price of the subscription, For tax exclusive countries, the price doesn't include tax.
|
SubscriptionPurchase |
setPriceChange(SubscriptionPriceChange priceChange)
The latest price change information available.
|
SubscriptionPurchase |
setPriceCurrencyCode(String priceCurrencyCode)
ISO 4217 currency code for the subscription price.
|
SubscriptionPurchase |
setProfileId(String profileId)
The Google profile id of the user when the subscription was purchased.
|
SubscriptionPurchase |
setProfileName(String profileName)
The profile name of the user when the subscription was purchased.
|
SubscriptionPurchase |
setPromotionCode(String promotionCode)
The promotion code applied on this purchase.
|
SubscriptionPurchase |
setPromotionType(Integer promotionType)
The type of promotion applied on this purchase.
|
SubscriptionPurchase |
setPurchaseType(Integer purchaseType)
The type of purchase of the subscription.
|
SubscriptionPurchase |
setStartTimeMillis(Long startTimeMillis)
Time at which the subscription was granted, in milliseconds since the Epoch.
|
SubscriptionPurchase |
setUserCancellationTimeMillis(Long userCancellationTimeMillis)
The time at which the subscription was canceled by the user, in milliseconds since the epoch.
|
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 Integer getAcknowledgementState()
null for nonepublic SubscriptionPurchase setAcknowledgementState(Integer acknowledgementState)
acknowledgementState - acknowledgementState or null for nonepublic Boolean getAutoRenewing()
null for nonepublic SubscriptionPurchase setAutoRenewing(Boolean autoRenewing)
autoRenewing - autoRenewing or null for nonepublic Long getAutoResumeTimeMillis()
null for nonepublic SubscriptionPurchase setAutoResumeTimeMillis(Long autoResumeTimeMillis)
autoResumeTimeMillis - autoResumeTimeMillis or null for nonepublic Integer getCancelReason()
null for nonepublic SubscriptionPurchase setCancelReason(Integer cancelReason)
cancelReason - cancelReason or null for nonepublic SubscriptionCancelSurveyResult getCancelSurveyResult()
null for nonepublic SubscriptionPurchase setCancelSurveyResult(SubscriptionCancelSurveyResult cancelSurveyResult)
cancelSurveyResult - cancelSurveyResult 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 String getEmailAddress()
null for nonepublic SubscriptionPurchase setEmailAddress(String emailAddress)
emailAddress - emailAddress or null for nonepublic Long getExpiryTimeMillis()
null for nonepublic SubscriptionPurchase setExpiryTimeMillis(Long expiryTimeMillis)
expiryTimeMillis - expiryTimeMillis or null for nonepublic String getExternalAccountId()
null for nonepublic SubscriptionPurchase setExternalAccountId(String externalAccountId)
externalAccountId - externalAccountId or null for nonepublic String getFamilyName()
null for nonepublic SubscriptionPurchase setFamilyName(String familyName)
familyName - familyName or null for nonepublic String getGivenName()
null for nonepublic SubscriptionPurchase setGivenName(String givenName)
givenName - givenName or null for nonepublic IntroductoryPriceInfo getIntroductoryPriceInfo()
null for nonepublic SubscriptionPurchase setIntroductoryPriceInfo(IntroductoryPriceInfo introductoryPriceInfo)
introductoryPriceInfo - introductoryPriceInfo or null for nonepublic String getKind()
null for nonepublic SubscriptionPurchase setKind(String kind)
kind - kind or null for nonepublic String getLinkedPurchaseToken()
null for nonepublic SubscriptionPurchase setLinkedPurchaseToken(String linkedPurchaseToken)
linkedPurchaseToken - linkedPurchaseToken or null for nonepublic String getObfuscatedExternalAccountId()
null for nonepublic SubscriptionPurchase setObfuscatedExternalAccountId(String obfuscatedExternalAccountId)
obfuscatedExternalAccountId - obfuscatedExternalAccountId or null for nonepublic String getObfuscatedExternalProfileId()
null for nonepublic SubscriptionPurchase setObfuscatedExternalProfileId(String obfuscatedExternalProfileId)
obfuscatedExternalProfileId - obfuscatedExternalProfileId or null for nonepublic String getOrderId()
null for nonepublic SubscriptionPurchase setOrderId(String orderId)
orderId - orderId 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 SubscriptionPriceChange getPriceChange()
null for nonepublic SubscriptionPurchase setPriceChange(SubscriptionPriceChange priceChange)
priceChange - priceChange or null for nonepublic String getPriceCurrencyCode()
null for nonepublic SubscriptionPurchase setPriceCurrencyCode(String priceCurrencyCode)
priceCurrencyCode - priceCurrencyCode or null for nonepublic String getProfileId()
null for nonepublic SubscriptionPurchase setProfileId(String profileId)
profileId - profileId or null for nonepublic String getProfileName()
null for nonepublic SubscriptionPurchase setProfileName(String profileName)
profileName - profileName or null for nonepublic String getPromotionCode()
null for nonepublic SubscriptionPurchase setPromotionCode(String promotionCode)
promotionCode - promotionCode or null for nonepublic Integer getPromotionType()
null for nonepublic SubscriptionPurchase setPromotionType(Integer promotionType)
promotionType - promotionType or null for nonepublic Integer getPurchaseType()
null for nonepublic SubscriptionPurchase setPurchaseType(Integer purchaseType)
purchaseType - purchaseType or null for nonepublic Long getStartTimeMillis()
null for nonepublic SubscriptionPurchase setStartTimeMillis(Long startTimeMillis)
startTimeMillis - startTimeMillis or null for nonepublic Long getUserCancellationTimeMillis()
null for nonepublic SubscriptionPurchase setUserCancellationTimeMillis(Long userCancellationTimeMillis)
userCancellationTimeMillis - userCancellationTimeMillis or null for nonepublic SubscriptionPurchase set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic SubscriptionPurchase clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.