All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.androidpublisher.AndroidPublisher.Purchases.Subscriptions.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240509-2.0.0
Show newest version






AndroidPublisher.Purchases.Subscriptions (Google Play Android Developer API v3-rev20240328-2.0.0)












com.google.api.services.androidpublisher

Class AndroidPublisher.Purchases.Subscriptions

  • java.lang.Object
    • com.google.api.services.androidpublisher.AndroidPublisher.Purchases.Subscriptions
    • Constructor Detail

      • Subscriptions

        public Subscriptions()
    • Method Detail

      • acknowledge

        public AndroidPublisher.Purchases.Subscriptions.Acknowledge acknowledge(String packageName,
                                                                                String subscriptionId,
                                                                                String token,
                                                                                SubscriptionPurchasesAcknowledgeRequest content)
                                                                         throws IOException
        Acknowledges a subscription purchase. Create a request for the method "subscriptions.acknowledge". This request holds the parameters needed by the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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 SubscriptionPurchasesAcknowledgeRequest
        Returns:
        the request
        Throws:
        IOException
      • cancel

        public AndroidPublisher.Purchases.Subscriptions.Cancel cancel(String packageName,
                                                                      String subscriptionId,
                                                                      String token)
                                                               throws IOException
        Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Create a request for the method "subscriptions.cancel". This request holds the parameters needed by the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        Returns:
        the request
        Throws:
        IOException
      • defer

        public AndroidPublisher.Purchases.Subscriptions.Defer defer(String packageName,
                                                                    String subscriptionId,
                                                                    String token,
                                                                    SubscriptionPurchasesDeferRequest content)
                                                             throws IOException
        Defers a user's subscription purchase until a specified future expiration time. Create a request for the method "subscriptions.defer". This request holds the parameters needed by the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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 SubscriptionPurchasesDeferRequest
        Returns:
        the request
        Throws:
        IOException
      • get

        public AndroidPublisher.Purchases.Subscriptions.Get get(String packageName,
                                                                String subscriptionId,
                                                                String token)
                                                         throws IOException
        Checks whether a user's subscription purchase is valid and returns its expiry time. Create a request for the method "subscriptions.get". This request holds the parameters needed by the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        Returns:
        the request
        Throws:
        IOException
      • refund

        public AndroidPublisher.Purchases.Subscriptions.Refund refund(String packageName,
                                                                      String subscriptionId,
                                                                      String token)
                                                               throws IOException
        Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur. Create a request for the method "subscriptions.refund". This request holds the parameters needed by the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        Returns:
        the request
        Throws:
        IOException
      • revoke

        public AndroidPublisher.Purchases.Subscriptions.Revoke revoke(String packageName,
                                                                      String subscriptionId,
                                                                      String token)
                                                               throws IOException
        Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring. Create a request for the method "subscriptions.revoke". This request holds the parameters needed by the androidpublisher server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy