Class PurchasesResource.SubscriptionsResource
The "subscriptions" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class SubscriptionsResource
Constructors
SubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SubscriptionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Acknowledge(SubscriptionPurchasesAcknowledgeRequest, String, String, String)
Acknowledges a subscription purchase.
Declaration
public virtual PurchasesResource.SubscriptionsResource.AcknowledgeRequest Acknowledge(SubscriptionPurchasesAcknowledgeRequest body, string packageName, string subscriptionId, string token)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionPurchasesAcknowledgeRequest | body | The body of the request. |
System.String | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
System.String | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
System.String | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.AcknowledgeRequest |
Cancel(String, String, String)
Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
Declaration
public virtual PurchasesResource.SubscriptionsResource.CancelRequest Cancel(string packageName, string subscriptionId, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
System.String | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
System.String | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.CancelRequest |
Defer(SubscriptionPurchasesDeferRequest, String, String, String)
Defers a user's subscription purchase until a specified future expiration time.
Declaration
public virtual PurchasesResource.SubscriptionsResource.DeferRequest Defer(SubscriptionPurchasesDeferRequest body, string packageName, string subscriptionId, string token)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionPurchasesDeferRequest | body | The body of the request. |
System.String | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
System.String | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
System.String | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.DeferRequest |
Get(String, String, String)
Checks whether a user's subscription purchase is valid and returns its expiry time.
Declaration
public virtual PurchasesResource.SubscriptionsResource.GetRequest Get(string packageName, string subscriptionId, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
System.String | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
System.String | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.GetRequest |
Refund(String, String, String)
Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur.
Declaration
public virtual PurchasesResource.SubscriptionsResource.RefundRequest Refund(string packageName, string subscriptionId, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
System.String | subscriptionId | "The purchased subscription ID (for example, 'monthly001'). |
System.String | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.RefundRequest |
Revoke(String, String, String)
Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring.
Declaration
public virtual PurchasesResource.SubscriptionsResource.RevokeRequest Revoke(string packageName, string subscriptionId, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
System.String | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
System.String | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.RevokeRequest |