public class AndroidPublisher.Purchases.Cancel extends AndroidPublisherRequest<Void>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
AndroidPublisher.Purchases.Cancel(String packageName,
String subscriptionId,
String token)
Cancels a user's subscription purchase.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPackageName()
The package name of the application for which this subscription was purchased (for example,
'com.some.thing').
|
String |
getSubscriptionId()
The purchased subscription ID (for example, 'monthly001').
|
String |
getToken()
The token provided to the user's device when the subscription was purchased.
|
AndroidPublisher.Purchases.Cancel |
setAlt(String alt)
Data format for the response.
|
AndroidPublisher.Purchases.Cancel |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
AndroidPublisher.Purchases.Cancel |
setKey(String key)
API key.
|
AndroidPublisher.Purchases.Cancel |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
AndroidPublisher.Purchases.Cancel |
setPackageName(String packageName)
The package name of the application for which this subscription was purchased (for example,
'com.some.thing').
|
AndroidPublisher.Purchases.Cancel |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
AndroidPublisher.Purchases.Cancel |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
AndroidPublisher.Purchases.Cancel |
setSubscriptionId(String subscriptionId)
The purchased subscription ID (for example, 'monthly001').
|
AndroidPublisher.Purchases.Cancel |
setToken(String token)
The token provided to the user's device when the subscription was purchased.
|
AndroidPublisher.Purchases.Cancel |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected AndroidPublisher.Purchases.Cancel(String packageName, String subscriptionId, String token)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
AndroidPublisher.initialize(AbstractGoogleClientRequest) must be called to initialize this
instance immediately after invoking the constructor.
packageName - The package name of the application for which this subscription was purchased (for example,
'com.some.thing').subscriptionId - The purchased subscription ID (for example, 'monthly001').token - The token provided to the user's device when the subscription was purchased.public AndroidPublisher.Purchases.Cancel setAlt(String alt)
AndroidPublisherRequestsetAlt in class AndroidPublisherRequest<Void>public AndroidPublisher.Purchases.Cancel setFields(String fields)
AndroidPublisherRequestsetFields in class AndroidPublisherRequest<Void>public AndroidPublisher.Purchases.Cancel setKey(String key)
AndroidPublisherRequestsetKey in class AndroidPublisherRequest<Void>public AndroidPublisher.Purchases.Cancel setOauthToken(String oauthToken)
AndroidPublisherRequestsetOauthToken in class AndroidPublisherRequest<Void>public AndroidPublisher.Purchases.Cancel setPrettyPrint(Boolean prettyPrint)
AndroidPublisherRequestsetPrettyPrint in class AndroidPublisherRequest<Void>public AndroidPublisher.Purchases.Cancel setQuotaUser(String quotaUser)
AndroidPublisherRequestsetQuotaUser in class AndroidPublisherRequest<Void>public AndroidPublisher.Purchases.Cancel setUserIp(String userIp)
AndroidPublisherRequestsetUserIp in class AndroidPublisherRequest<Void>public String getPackageName()
public AndroidPublisher.Purchases.Cancel setPackageName(String packageName)
public String getSubscriptionId()
public AndroidPublisher.Purchases.Cancel setSubscriptionId(String subscriptionId)
public String getToken()
public AndroidPublisher.Purchases.Cancel setToken(String token)