Skip to content

Commit da8d899

Browse files
committed
Updated Reseller.php
This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info.
1 parent 44d0abd commit da8d899

File tree

1 file changed

+75
-1
lines changed

1 file changed

+75
-1
lines changed

src/Google/Service/Reseller.php

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,22 @@ public function __construct(Google_Client $client)
107107
'subscriptions',
108108
array(
109109
'methods' => array(
110-
'changePlan' => array(
110+
'activate' => array(
111+
'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/activate',
112+
'httpMethod' => 'POST',
113+
'parameters' => array(
114+
'customerId' => array(
115+
'location' => 'path',
116+
'type' => 'string',
117+
'required' => true,
118+
),
119+
'subscriptionId' => array(
120+
'location' => 'path',
121+
'type' => 'string',
122+
'required' => true,
123+
),
124+
),
125+
),'changePlan' => array(
111126
'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan',
112127
'httpMethod' => 'POST',
113128
'parameters' => array(
@@ -241,6 +256,21 @@ public function __construct(Google_Client $client)
241256
'required' => true,
242257
),
243258
),
259+
),'suspend' => array(
260+
'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/suspend',
261+
'httpMethod' => 'POST',
262+
'parameters' => array(
263+
'customerId' => array(
264+
'location' => 'path',
265+
'type' => 'string',
266+
'required' => true,
267+
),
268+
'subscriptionId' => array(
269+
'location' => 'path',
270+
'type' => 'string',
271+
'required' => true,
272+
),
273+
),
244274
),
245275
)
246276
)
@@ -337,6 +367,23 @@ public function update($customerId, Google_Service_Reseller_Customer $postBody,
337367
class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource
338368
{
339369

370+
/**
371+
* Activates a subscription previously suspended by the reseller
372+
* (subscriptions.activate)
373+
*
374+
* @param string $customerId
375+
* Id of the Customer
376+
* @param string $subscriptionId
377+
* Id of the subscription, which is unique for a customer
378+
* @param array $optParams Optional parameters.
379+
* @return Google_Service_Reseller_Subscription
380+
*/
381+
public function activate($customerId, $subscriptionId, $optParams = array())
382+
{
383+
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
384+
$params = array_merge($params, $optParams);
385+
return $this->call('activate', array($params), "Google_Service_Reseller_Subscription");
386+
}
340387
/**
341388
* Changes the plan of a subscription (subscriptions.changePlan)
342389
*
@@ -482,6 +529,22 @@ public function startPaidService($customerId, $subscriptionId, $optParams = arra
482529
$params = array_merge($params, $optParams);
483530
return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription");
484531
}
532+
/**
533+
* Suspends an active subscription (subscriptions.suspend)
534+
*
535+
* @param string $customerId
536+
* Id of the Customer
537+
* @param string $subscriptionId
538+
* Id of the subscription, which is unique for a customer
539+
* @param array $optParams Optional parameters.
540+
* @return Google_Service_Reseller_Subscription
541+
*/
542+
public function suspend($customerId, $subscriptionId, $optParams = array())
543+
{
544+
$params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
545+
$params = array_merge($params, $optParams);
546+
return $this->call('suspend', array($params), "Google_Service_Reseller_Subscription");
547+
}
485548
}
486549

487550

@@ -771,6 +834,7 @@ class Google_Service_Reseller_Seats extends Google_Model
771834
protected $internal_gapi_mappings = array(
772835
);
773836
public $kind;
837+
public $licensedNumberOfSeats;
774838
public $maximumNumberOfSeats;
775839
public $numberOfSeats;
776840

@@ -784,6 +848,16 @@ public function getKind()
784848
return $this->kind;
785849
}
786850

851+
public function setLicensedNumberOfSeats($licensedNumberOfSeats)
852+
{
853+
$this->licensedNumberOfSeats = $licensedNumberOfSeats;
854+
}
855+
856+
public function getLicensedNumberOfSeats()
857+
{
858+
return $this->licensedNumberOfSeats;
859+
}
860+
787861
public function setMaximumNumberOfSeats($maximumNumberOfSeats)
788862
{
789863
$this->maximumNumberOfSeats = $maximumNumberOfSeats;

0 commit comments

Comments
 (0)