Class PartnersResource.SubscriptionsResource.CancelRequest
Used by partners to cancel 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
PaymentsResellerSubscriptionBaseServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse>
PartnersResource.SubscriptionsResource.CancelRequest
Implements
Inherited Members
ClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse>.ETagAction
Namespace: Google.Apis.PaymentsResellerSubscription.v1
Assembly: Google.Apis.PaymentsResellerSubscription.v1.dll
Syntax
public class PartnersResource.SubscriptionsResource.CancelRequest : PaymentsResellerSubscriptionBaseServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse>, IClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse>, IClientServiceRequest
Constructors
CancelRequest(IClientService, GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest, string)
Constructs a new Cancel request.
Declaration
public CancelRequest(IClientService service, GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse>.MethodName
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()