Class SubscriptionsResource.StartPaidServiceRequest
Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see manage subscriptions.
Inheritance
Inherited Members
Namespace: Google.Apis.Reseller.v1
Assembly: Google.Apis.Reseller.v1.dll
Syntax
public class StartPaidServiceRequest : ResellerBaseServiceRequest<Subscription>, IClientServiceRequest<Subscription>, IClientServiceRequest
Constructors
StartPaidServiceRequest(IClientService, String, String)
Constructs a new StartPaidService request.
Declaration
public StartPaidServiceRequest(IClientService service, string customerId, string subscriptionId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
System.String | customerId | |
System.String | subscriptionId |
Properties
CustomerId
Either the customer's primary domain name or the customer's unique identifier. If using the domain name,
we do not recommend using a customerId
as a key for persistent data. If the domain name for a
customerId
is changed, the Google system automatically updates.
Declaration
[RequestParameter("customerId", RequestParameterType.Path)]
public virtual string CustomerId { get; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
SubscriptionId
This is a required property. The subscriptionId
is the subscription identifier and is unique for each
customer. Since a subscriptionId
changes when a subscription is updated, we recommend to not use this
ID as a key for persistent data. And the subscriptionId
can be found using the retrieve all reseller
subscriptions method.
Declaration
[RequestParameter("subscriptionId", RequestParameterType.Path)]
public virtual string SubscriptionId { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InitParameters()
Initializes StartPaidService parameter list.
Declaration
protected override void InitParameters()