Class PurchasesResource.SubscriptionsResource
The "subscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class PurchasesResource.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. |
string | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
string | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
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 |
---|---|---|
string | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
string | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
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. |
string | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
string | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
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 |
---|---|---|
string | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
string | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
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 |
---|---|---|
string | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
string | subscriptionId | "The purchased subscription ID (for example, 'monthly001'). |
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 |
---|---|---|
string | packageName | The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). |
string | subscriptionId | The purchased subscription ID (for example, 'monthly001'). |
string | token | The token provided to the user's device when the subscription was purchased. |
Returns
Type | Description |
---|---|
PurchasesResource.SubscriptionsResource.RevokeRequest |