public class AndroidPublisher.Purchases extends Object
Modifier and Type | Class and Description |
---|---|
class |
AndroidPublisher.Purchases.Cancel |
class |
AndroidPublisher.Purchases.Get |
Constructor and Description |
---|
AndroidPublisher.Purchases() |
Modifier and Type | Method and Description |
---|---|
AndroidPublisher.Purchases.Cancel |
cancel(String packageName,
String subscriptionId,
String token)
Cancels a user's subscription purchase.
|
AndroidPublisher.Purchases.Get |
get(String packageName,
String subscriptionId,
String token)
Checks whether a user's subscription purchase is valid and returns its expiry time.
|
public AndroidPublisher.Purchases.Cancel cancel(String packageName, String subscriptionId, String token) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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.IOException
public AndroidPublisher.Purchases.Get get(String packageName, String subscriptionId, String token) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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.IOException