Overview

Classes

  • Google_Service_Reseller
  • Google_Service_Reseller_Address
  • Google_Service_Reseller_ChangePlanRequest
  • Google_Service_Reseller_Customer
  • Google_Service_Reseller_Customers_Resource
  • Google_Service_Reseller_RenewalSettings
  • Google_Service_Reseller_Resellernotify_Resource
  • Google_Service_Reseller_ResellernotifyGetwatchdetailsResponse
  • Google_Service_Reseller_ResellernotifyResource
  • Google_Service_Reseller_Seats
  • Google_Service_Reseller_Subscription
  • Google_Service_Reseller_SubscriptionPlan
  • Google_Service_Reseller_SubscriptionPlanCommitmentInterval
  • Google_Service_Reseller_Subscriptions
  • Google_Service_Reseller_Subscriptions_Resource
  • Google_Service_Reseller_SubscriptionTransferInfo
  • Google_Service_Reseller_SubscriptionTrialSettings
  • Overview
  • Class
  • Tree

Class Google_Service_Reseller_Subscriptions_Resource

The "subscriptions" collection of methods. Typical usage is:

 $resellerService = new Google_Service_Reseller(...);
 $subscriptions = $resellerService->subscriptions;
Google_Service_Resource
Extended by Google_Service_Reseller_Subscriptions_Resource
Located at Reseller.php
Methods summary
public Google_Service_Reseller_Subscription
# activate( string $customerId, string $subscriptionId, array $optParams = array() )

Activates a subscription previously suspended by the reseller (subscriptions.activate)

Activates a subscription previously suspended by the reseller (subscriptions.activate)

Parameters

$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.
$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.
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
public Google_Service_Reseller_Subscription
# changePlan( string $customerId, string $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, array $optParams = array() )

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. (subscriptions.changePlan)

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. (subscriptions.changePlan)

Parameters

$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.
$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.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
public Google_Service_Reseller_Subscription
# changeRenewalSettings( string $customerId, string $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, array $optParams = array() )

Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. (subscriptions.changeRenewalSettings)

Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. (subscriptions.changeRenewalSettings)

Parameters

$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.
$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.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
public Google_Service_Reseller_Subscription
# changeSeats( string $customerId, string $subscriptionId, Google_Service_Reseller_Seats $postBody, array $optParams = array() )

Update a subscription's user license settings. (subscriptions.changeSeats)

Update a subscription's user license settings. (subscriptions.changeSeats)

Parameters

$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.
$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.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
public
# delete( string $customerId, string $subscriptionId, string $deletionType, array $optParams = array() )

Cancel, suspend, or transfer a subscription to direct. (subscriptions.delete)

Cancel, suspend, or transfer a subscription to direct. (subscriptions.delete)

Parameters

$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.
$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.
$deletionType
The deletionType query string enables the cancellation, downgrade, or suspension of a subscription.
$optParams
Optional parameters.
public Google_Service_Reseller_Subscription
# get( string $customerId, string $subscriptionId, array $optParams = array() )

Get a specific subscription. (subscriptions.get)

Get a specific subscription. (subscriptions.get)

Parameters

$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.
$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.
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
public Google_Service_Reseller_Subscription
# insert( string $customerId, Google_Service_Reseller_Subscription $postBody, array $optParams = array() )

Create or transfer a subscription. (subscriptions.insert)

Create or transfer a subscription. (subscriptions.insert)

Parameters

$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.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription

Opt_param

string customerAuthToken The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
public Google_Service_Reseller_Subscriptions
# listSubscriptions( array $optParams = array() )

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. (subscriptions.listSubscriptions)

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. (subscriptions.listSubscriptions)

Parameters

$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscriptions
Google_Service_Reseller_Subscriptions

Opt_param

string customerAuthToken The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
string 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.
string customerNamePrefix When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includes exam.com, example20.com and example.com: - exa -- Returns all customer names that start with 'exa' which could include exam.com, example20.com, and example.com. A name prefix is similar to using a regular expression's asterisk, exa*. - example -- Returns example20.com and example.com.
string maxResults When retrieving a large list, the maxResults is the maximum number of results per page. The nextPageToken value takes you to the next page. The default is 20.
string pageToken Token to specify next page in the list
public Google_Service_Reseller_Subscription
# startPaidService( string $customerId, string $subscriptionId, array $optParams = array() )

Immediately move a 30-day free trial subscription to a paid service subscription. (subscriptions.startPaidService)

Immediately move a 30-day free trial subscription to a paid service subscription. (subscriptions.startPaidService)

Parameters

$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.
$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.
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
public Google_Service_Reseller_Subscription
# suspend( string $customerId, string $subscriptionId, array $optParams = array() )

Suspends an active subscription. (subscriptions.suspend)

Suspends an active subscription. (subscriptions.suspend)

Parameters

$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.
$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.
$optParams
Optional parameters.

Returns

Google_Service_Reseller_Subscription
Google_Service_Reseller_Subscription
© 2020 Google Inc.
Enterprise Apps Reseller API documentation generated by ApiGen 2.8.0