Class SubscriptionsResource.ChangePlanRequest
Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments. How a plan is updated differs depending on the plan and the products. For more information, see the description in manage subscriptions.
Inheritance
Inherited Members
Namespace: Google.Apis.Reseller.v1
Assembly: Google.Apis.Reseller.v1.dll
Syntax
public class SubscriptionsResource.ChangePlanRequest : ResellerBaseServiceRequest<Subscription>, IClientServiceRequest<Subscription>, IClientServiceRequest
Constructors
ChangePlanRequest(IClientService, ChangePlanRequest, string, string)
Constructs a new ChangePlan request.
Declaration
public ChangePlanRequest(IClientService service, ChangePlanRequest body, string customerId, string subscriptionId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ChangePlanRequest | body | |
string | customerId | |
string | subscriptionId |
Properties
CustomerId
This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable.
Declaration
[RequestParameter("customerId", RequestParameterType.Path)]
public virtual string CustomerId { get; }
Property Value
Type | Description |
---|---|
string |
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes ChangePlan parameter list.
Declaration
protected override void InitParameters()