SubscriptionsResourceApi class

Constructors

SubscriptionsResourceApi(ApiRequester client)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

activate(String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Activates a subscription previously suspended by the reseller [...]
changePlan(ChangePlanRequest request, String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Update 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. [...]
changeRenewalSettings(RenewalSettings request, String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. [...]
changeSeats(Seats request, String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Update a subscription's user license settings. [...]
delete(String customerId, String subscriptionId, String deletionType, { String $fields }) → Future
Cancel, suspend or transfer a subscription to direct. [...]
get(String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Get a specific subscription. [...]
insert(Subscription request, String customerId, { String customerAuthToken, String $fields }) → Future<Subscription>
Create or transfer a subscription. [...]
list({String customerAuthToken, String customerId, String customerNamePrefix, int maxResults, String pageToken, String $fields }) → Future<Subscriptions>
List of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. [...]
startPaidService(String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Immediately move a 30-day free trial subscription to a paid service subscription. [...]
suspend(String customerId, String subscriptionId, { String $fields }) → Future<Subscription>
Suspends an active subscription. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited