public class AndroidPublisher.Purchases.Subscriptions extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AndroidPublisher.Purchases.Subscriptions.Acknowledge |
class |
AndroidPublisher.Purchases.Subscriptions.Cancel |
class |
AndroidPublisher.Purchases.Subscriptions.Defer |
class |
AndroidPublisher.Purchases.Subscriptions.Get |
class |
AndroidPublisher.Purchases.Subscriptions.Refund |
class |
AndroidPublisher.Purchases.Subscriptions.Revoke |
| Constructor and Description |
|---|
Subscriptions() |
| Modifier and Type | Method and Description |
|---|---|
AndroidPublisher.Purchases.Subscriptions.Acknowledge |
acknowledge(String packageName,
String subscriptionId,
String token,
SubscriptionPurchasesAcknowledgeRequest content)
Acknowledges a subscription purchase.
|
AndroidPublisher.Purchases.Subscriptions.Cancel |
cancel(String packageName,
String subscriptionId,
String token)
Cancels a user's subscription purchase.
|
AndroidPublisher.Purchases.Subscriptions.Defer |
defer(String packageName,
String subscriptionId,
String token,
SubscriptionPurchasesDeferRequest content)
Defers a user's subscription purchase until a specified future expiration time.
|
AndroidPublisher.Purchases.Subscriptions.Get |
get(String packageName,
String subscriptionId,
String token)
Deprecated: Use purchases.subscriptionsv2.get instead.
|
AndroidPublisher.Purchases.Subscriptions.Refund |
refund(String packageName,
String subscriptionId,
String token)
Deprecated: Use orders.refund instead.
|
AndroidPublisher.Purchases.Subscriptions.Revoke |
revoke(String packageName,
String subscriptionId,
String token)
Deprecated: Use purchases.subscriptionsv2.revoke instead.
|
public AndroidPublisher.Purchases.Subscriptions.Acknowledge acknowledge(String packageName, String subscriptionId, String token, SubscriptionPurchasesAcknowledgeRequest content) 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 - Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
add-ons. The purchased subscription ID (for example, 'monthly001').token - The token provided to the user's device when the subscription was purchased.content - the SubscriptionPurchasesAcknowledgeRequestIOExceptionpublic AndroidPublisher.Purchases.Subscriptions.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 - Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
add-ons. The purchased subscription ID (for example, 'monthly001').token - The token provided to the user's device when the subscription was purchased.IOExceptionpublic AndroidPublisher.Purchases.Subscriptions.Defer defer(String packageName, String subscriptionId, String token, SubscriptionPurchasesDeferRequest content) 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.content - the SubscriptionPurchasesDeferRequestIOExceptionpublic AndroidPublisher.Purchases.Subscriptions.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.IOExceptionpublic AndroidPublisher.Purchases.Subscriptions.Refund refund(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.IOExceptionpublic AndroidPublisher.Purchases.Subscriptions.Revoke revoke(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.IOExceptionCopyright © 2011–2025 Google. All rights reserved.