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 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 |
---|
SubscriptionPurchase() |
Modifier and Type | Method and Description |
---|---|
SubscriptionPurchase |
clone() |
java.lang.Integer |
getAcknowledgementState()
The acknowledgement state of the subscription product.
|
java.lang.Boolean |
getAutoRenewing()
Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
java.lang.Long |
getAutoResumeTimeMillis()
Time at which the subscription will be automatically resumed, in milliseconds since the Epoch.
|
java.lang.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).
|
java.lang.String |
getCountryCode()
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was
granted.
|
java.lang.String |
getDeveloperPayload()
A developer-specified string that contains supplemental information about an order.
|
java.lang.String |
getEmailAddress()
The email address of the user when the subscription was purchased.
|
java.lang.Long |
getExpiryTimeMillis()
Time at which the subscription will expire, in milliseconds since the Epoch.
|
java.lang.String |
getExternalAccountId()
User account identifier in the third-party service.
|
java.lang.String |
getFamilyName()
The family name of the user when the subscription was purchased.
|
java.lang.String |
getGivenName()
The given name of the user when the subscription was purchased.
|
IntroductoryPriceInfo |
getIntroductoryPriceInfo()
Introductory price information of the subscription.
|
java.lang.String |
getKind()
This kind represents a subscriptionPurchase object in the androidpublisher service.
|
java.lang.String |
getLinkedPurchaseToken()
The purchase token of the originating purchase if this subscription is one of the following: -
Re-signup of a canceled but non-lapsed subscription - Upgrade/downgrade from a previous
subscription For example, suppose a user originally signs up and you receive purchase token X,
then the user cancels and goes through the resignup flow (before their subscription lapses) and
you receive purchase token Y, and finally the user upgrades their subscription and you receive
purchase token Z.
|
java.lang.String |
getOrderId()
The order id of the latest recurring order associated with the purchase of the subscription.
|
java.lang.Integer |
getPaymentState()
The payment state of the subscription.
|
java.lang.Long |
getPriceAmountMicros()
Price of the subscription, not including tax.
|
SubscriptionPriceChange |
getPriceChange()
The latest price change information available.
|
java.lang.String |
getPriceCurrencyCode()
ISO 4217 currency code for the subscription price.
|
java.lang.String |
getProfileId()
The Google profile id of the user when the subscription was purchased.
|
java.lang.String |
getProfileName()
The profile name of the user when the subscription was purchased.
|
java.lang.String |
getPromotionCode()
The promotion code applied on this purchase.
|
java.lang.Integer |
getPromotionType()
The type of promotion applied on this purchase.
|
java.lang.Integer |
getPurchaseType()
The type of purchase of the subscription.
|
java.lang.Long |
getStartTimeMillis()
Time at which the subscription was granted, in milliseconds since the Epoch.
|
java.lang.Long |
getUserCancellationTimeMillis()
The time at which the subscription was canceled by the user, in milliseconds since the epoch.
|
SubscriptionPurchase |
set(java.lang.String fieldName,
java.lang.Object value) |
SubscriptionPurchase |
setAcknowledgementState(java.lang.Integer acknowledgementState)
The acknowledgement state of the subscription product.
|
SubscriptionPurchase |
setAutoRenewing(java.lang.Boolean autoRenewing)
Whether the subscription will automatically be renewed when it reaches its current expiry time.
|
SubscriptionPurchase |
setAutoResumeTimeMillis(java.lang.Long autoResumeTimeMillis)
Time at which the subscription will be automatically resumed, in milliseconds since the Epoch.
|
SubscriptionPurchase |
setCancelReason(java.lang.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(java.lang.String countryCode)
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was
granted.
|
SubscriptionPurchase |
setDeveloperPayload(java.lang.String developerPayload)
A developer-specified string that contains supplemental information about an order.
|
SubscriptionPurchase |
setEmailAddress(java.lang.String emailAddress)
The email address of the user when the subscription was purchased.
|
SubscriptionPurchase |
setExpiryTimeMillis(java.lang.Long expiryTimeMillis)
Time at which the subscription will expire, in milliseconds since the Epoch.
|
SubscriptionPurchase |
setExternalAccountId(java.lang.String externalAccountId)
User account identifier in the third-party service.
|
SubscriptionPurchase |
setFamilyName(java.lang.String familyName)
The family name of the user when the subscription was purchased.
|
SubscriptionPurchase |
setGivenName(java.lang.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(java.lang.String kind)
This kind represents a subscriptionPurchase object in the androidpublisher service.
|
SubscriptionPurchase |
setLinkedPurchaseToken(java.lang.String linkedPurchaseToken)
The purchase token of the originating purchase if this subscription is one of the following: -
Re-signup of a canceled but non-lapsed subscription - Upgrade/downgrade from a previous
subscription For example, suppose a user originally signs up and you receive purchase token X,
then the user cancels and goes through the resignup flow (before their subscription lapses) and
you receive purchase token Y, and finally the user upgrades their subscription and you receive
purchase token Z.
|
SubscriptionPurchase |
setOrderId(java.lang.String orderId)
The order id of the latest recurring order associated with the purchase of the subscription.
|
SubscriptionPurchase |
setPaymentState(java.lang.Integer paymentState)
The payment state of the subscription.
|
SubscriptionPurchase |
setPriceAmountMicros(java.lang.Long priceAmountMicros)
Price of the subscription, not including tax.
|
SubscriptionPurchase |
setPriceChange(SubscriptionPriceChange priceChange)
The latest price change information available.
|
SubscriptionPurchase |
setPriceCurrencyCode(java.lang.String priceCurrencyCode)
ISO 4217 currency code for the subscription price.
|
SubscriptionPurchase |
setProfileId(java.lang.String profileId)
The Google profile id of the user when the subscription was purchased.
|
SubscriptionPurchase |
setProfileName(java.lang.String profileName)
The profile name of the user when the subscription was purchased.
|
SubscriptionPurchase |
setPromotionCode(java.lang.String promotionCode)
The promotion code applied on this purchase.
|
SubscriptionPurchase |
setPromotionType(java.lang.Integer promotionType)
The type of promotion applied on this purchase.
|
SubscriptionPurchase |
setPurchaseType(java.lang.Integer purchaseType)
The type of purchase of the subscription.
|
SubscriptionPurchase |
setStartTimeMillis(java.lang.Long startTimeMillis)
Time at which the subscription was granted, in milliseconds since the Epoch.
|
SubscriptionPurchase |
setUserCancellationTimeMillis(java.lang.Long userCancellationTimeMillis)
The time at which the subscription was canceled by the user, in milliseconds since the epoch.
|
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 getAcknowledgementState()
null
for nonepublic SubscriptionPurchase setAcknowledgementState(java.lang.Integer acknowledgementState)
acknowledgementState
- acknowledgementState or null
for nonepublic java.lang.Boolean getAutoRenewing()
null
for nonepublic SubscriptionPurchase setAutoRenewing(java.lang.Boolean autoRenewing)
autoRenewing
- autoRenewing or null
for nonepublic java.lang.Long getAutoResumeTimeMillis()
null
for nonepublic SubscriptionPurchase setAutoResumeTimeMillis(java.lang.Long autoResumeTimeMillis)
autoResumeTimeMillis
- autoResumeTimeMillis or null
for nonepublic java.lang.Integer getCancelReason()
null
for nonepublic SubscriptionPurchase setCancelReason(java.lang.Integer cancelReason)
cancelReason
- cancelReason or null
for nonepublic SubscriptionCancelSurveyResult getCancelSurveyResult()
null
for nonepublic SubscriptionPurchase setCancelSurveyResult(SubscriptionCancelSurveyResult cancelSurveyResult)
cancelSurveyResult
- cancelSurveyResult or null
for nonepublic java.lang.String getCountryCode()
null
for nonepublic SubscriptionPurchase setCountryCode(java.lang.String countryCode)
countryCode
- countryCode or null
for nonepublic java.lang.String getDeveloperPayload()
null
for nonepublic SubscriptionPurchase setDeveloperPayload(java.lang.String developerPayload)
developerPayload
- developerPayload or null
for nonepublic java.lang.String getEmailAddress()
null
for nonepublic SubscriptionPurchase setEmailAddress(java.lang.String emailAddress)
emailAddress
- emailAddress or null
for nonepublic java.lang.Long getExpiryTimeMillis()
null
for nonepublic SubscriptionPurchase setExpiryTimeMillis(java.lang.Long expiryTimeMillis)
expiryTimeMillis
- expiryTimeMillis or null
for nonepublic java.lang.String getExternalAccountId()
null
for nonepublic SubscriptionPurchase setExternalAccountId(java.lang.String externalAccountId)
externalAccountId
- externalAccountId or null
for nonepublic java.lang.String getFamilyName()
null
for nonepublic SubscriptionPurchase setFamilyName(java.lang.String familyName)
familyName
- familyName or null
for nonepublic java.lang.String getGivenName()
null
for nonepublic SubscriptionPurchase setGivenName(java.lang.String givenName)
givenName
- givenName or null
for nonepublic IntroductoryPriceInfo getIntroductoryPriceInfo()
null
for nonepublic SubscriptionPurchase setIntroductoryPriceInfo(IntroductoryPriceInfo introductoryPriceInfo)
introductoryPriceInfo
- introductoryPriceInfo or null
for nonepublic java.lang.String getKind()
null
for nonepublic SubscriptionPurchase setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getLinkedPurchaseToken()
null
for nonepublic SubscriptionPurchase setLinkedPurchaseToken(java.lang.String linkedPurchaseToken)
linkedPurchaseToken
- linkedPurchaseToken or null
for nonepublic java.lang.String getOrderId()
null
for nonepublic SubscriptionPurchase setOrderId(java.lang.String orderId)
orderId
- orderId or null
for nonepublic java.lang.Integer getPaymentState()
null
for nonepublic SubscriptionPurchase setPaymentState(java.lang.Integer paymentState)
paymentState
- paymentState or null
for nonepublic java.lang.Long getPriceAmountMicros()
null
for nonepublic SubscriptionPurchase setPriceAmountMicros(java.lang.Long priceAmountMicros)
priceAmountMicros
- priceAmountMicros or null
for nonepublic SubscriptionPriceChange getPriceChange()
null
for nonepublic SubscriptionPurchase setPriceChange(SubscriptionPriceChange priceChange)
priceChange
- priceChange or null
for nonepublic java.lang.String getPriceCurrencyCode()
null
for nonepublic SubscriptionPurchase setPriceCurrencyCode(java.lang.String priceCurrencyCode)
priceCurrencyCode
- priceCurrencyCode or null
for nonepublic java.lang.String getProfileId()
null
for nonepublic SubscriptionPurchase setProfileId(java.lang.String profileId)
profileId
- profileId or null
for nonepublic java.lang.String getProfileName()
null
for nonepublic SubscriptionPurchase setProfileName(java.lang.String profileName)
profileName
- profileName or null
for nonepublic java.lang.String getPromotionCode()
null
for nonepublic SubscriptionPurchase setPromotionCode(java.lang.String promotionCode)
promotionCode
- promotionCode or null
for nonepublic java.lang.Integer getPromotionType()
null
for nonepublic SubscriptionPurchase setPromotionType(java.lang.Integer promotionType)
promotionType
- promotionType or null
for nonepublic java.lang.Integer getPurchaseType()
null
for nonepublic SubscriptionPurchase setPurchaseType(java.lang.Integer purchaseType)
purchaseType
- purchaseType or null
for nonepublic java.lang.Long getStartTimeMillis()
null
for nonepublic SubscriptionPurchase setStartTimeMillis(java.lang.Long startTimeMillis)
startTimeMillis
- startTimeMillis or null
for nonepublic java.lang.Long getUserCancellationTimeMillis()
null
for nonepublic SubscriptionPurchase setUserCancellationTimeMillis(java.lang.Long userCancellationTimeMillis)
userCancellationTimeMillis
- userCancellationTimeMillis or null
for nonepublic SubscriptionPurchase set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SubscriptionPurchase clone()
clone
in class com.google.api.client.json.GenericJson