Google_Service_Reseller_Resource_Subscriptions
extends Google_Service_Resource
in package
The "subscriptions" collection of methods.
Typical usage is:
$resellerService = new Google_Service_Reseller(...);
$subscriptions = $resellerService->subscriptions;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- activate() : Google_Service_Reseller_Subscription
- Activates a subscription previously suspended by the reseller (subscriptions.activate)
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- changePlan() : Google_Service_Reseller_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. (subscriptions.changePlan)
- changeRenewalSettings() : Google_Service_Reseller_Subscription
- Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. (subscriptions.changeRenewalSettings)
- changeSeats() : Google_Service_Reseller_Subscription
- Update a subscription's user license settings. (subscriptions.changeSeats)
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : mixed
- Cancel, suspend, or transfer a subscription to direct. (subscriptions.delete)
- get() : Google_Service_Reseller_Subscription
- Get a specific subscription. (subscriptions.get)
- insert() : Google_Service_Reseller_Subscription
- Create or transfer a subscription. (subscriptions.insert)
- listSubscriptions() : Google_Service_Reseller_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. (subscriptions.listSubscriptions)
- startPaidService() : Google_Service_Reseller_Subscription
- Immediately move a 30-day free trial subscription to a paid service subscription. (subscriptions.startPaidService)
- suspend() : Google_Service_Reseller_Subscription
- Suspends an active subscription. (subscriptions.suspend)
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —activate()
Activates a subscription previously suspended by the reseller (subscriptions.activate)
public
activate(string $customerId, string $subscriptionId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —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)
public
changePlan(string $customerId, string $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : Google_Service_Reseller_ChangePlanRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —changeRenewalSettings()
Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. (subscriptions.changeRenewalSettings)
public
changeRenewalSettings(string $customerId, string $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : Google_Service_Reseller_RenewalSettings
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —changeSeats()
Update a subscription's user license settings. (subscriptions.changeSeats)
public
changeSeats(string $customerId, string $subscriptionId, Google_Service_Reseller_Seats $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : Google_Service_Reseller_Seats
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Cancel, suspend, or transfer a subscription to direct. (subscriptions.delete)
public
delete(string $customerId, string $subscriptionId, string $deletionType[, array<string|int, mixed> $optParams = array() ]) : mixed
Parameters
- $customerId : string
-
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 : string
-
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 : string
-
The deletionType query string enables the cancellation, downgrade, or suspension of a subscription.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
mixed —get()
Get a specific subscription. (subscriptions.get)
public
get(string $customerId, string $subscriptionId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —insert()
Create or transfer a subscription. (subscriptions.insert)
public
insert(string $customerId, Google_Service_Reseller_Subscription $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : Google_Service_Reseller_Subscription
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Reseller_Subscription —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)
public
listSubscriptions([array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscriptions
Parameters
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Reseller_Subscriptions —startPaidService()
Immediately move a 30-day free trial subscription to a paid service subscription. (subscriptions.startPaidService)
public
startPaidService(string $customerId, string $subscriptionId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —suspend()
Suspends an active subscription. (subscriptions.suspend)
public
suspend(string $customerId, string $subscriptionId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Reseller_Subscription
Parameters
- $customerId : string
-
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 : string
-
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 : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Reseller_Subscription —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed