Class PartnersResource.SubscriptionsResource.CancelRequest
Cancels a subscription service either immediately or by the end of the current billing cycle for their customers. It should be called directly by the partner using service accounts.
Inheritance
PartnersResource.SubscriptionsResource.CancelRequest
Inherited Members
Namespace: Google.Apis.PaymentsResellerSubscription.v1
Assembly: Google.Apis.PaymentsResellerSubscription.v1.dll
Syntax
public class PartnersResource.SubscriptionsResource.CancelRequest : PaymentsResellerSubscriptionBaseServiceRequest<CancelSubscriptionResponse>, IClientServiceRequest<CancelSubscriptionResponse>, IClientServiceRequest
Constructors
CancelRequest(IClientService, CancelSubscriptionRequest, string)
Constructs a new Cancel request.
Declaration
public CancelRequest(IClientService service, CancelSubscriptionRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| CancelSubscriptionRequest | body | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
Required. The name of the subscription resource to be cancelled. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}"
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Cancel parameter list.
Declaration
protected override void InitParameters()