/includes/api-libs/Google/Service/Reseller.php

  1. <?php 
  2. /** 
  3. * Copyright 2010 Google Inc. 
  4. * 
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
  6. * use this file except in compliance with the License. You may obtain a copy of 
  7. * the License at 
  8. * 
  9. * http://www.apache.org/licenses/LICENSE-2.0 
  10. * 
  11. * Unless required by applicable law or agreed to in writing, software 
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
  14. * License for the specific language governing permissions and limitations under 
  15. * the License. 
  16. */ 
  17.  
  18. /** 
  19. * Service definition for Reseller (v1). 
  20. * 
  21. * <p> 
  22. * Lets you create and manage your customers and their subscriptions.</p> 
  23. * 
  24. * <p> 
  25. * For more information about this service, see the API 
  26. * <a href="https://developers.google.com/google-apps/reseller/" target="_blank">Documentation</a> 
  27. * </p> 
  28. * 
  29. * @author Google, Inc. 
  30. */ 
  31. class Google_Service_Reseller extends Google_Service 
  32. /** Manage users on your domain. */ 
  33. const APPS_ORDER = 
  34. "https://www.googleapis.com/auth/apps.order"; 
  35. /** Manage users on your domain. */ 
  36. const APPS_ORDER_READONLY = 
  37. "https://www.googleapis.com/auth/apps.order.readonly"; 
  38.  
  39. public $customers; 
  40. public $subscriptions; 
  41.  
  42.  
  43. /** 
  44. * Constructs the internal representation of the Reseller service. 
  45. * 
  46. * @param Google_Client $client 
  47. */ 
  48. public function __construct(Google_Client $client) 
  49. parent::__construct($client); 
  50. $this->servicePath = 'apps/reseller/v1/'; 
  51. $this->version = 'v1'; 
  52. $this->serviceName = 'reseller'; 
  53.  
  54. $this->customers = new Google_Service_Reseller_Customers_Resource( 
  55. $this,  
  56. $this->serviceName,  
  57. 'customers',  
  58. array( 
  59. 'methods' => array( 
  60. 'get' => array( 
  61. 'path' => 'customers/{customerId}',  
  62. 'httpMethod' => 'GET',  
  63. 'parameters' => array( 
  64. 'customerId' => array( 
  65. 'location' => 'path',  
  66. 'type' => 'string',  
  67. 'required' => true,  
  68. ),  
  69. ),  
  70. ), 'insert' => array( 
  71. 'path' => 'customers',  
  72. 'httpMethod' => 'POST',  
  73. 'parameters' => array( 
  74. 'customerAuthToken' => array( 
  75. 'location' => 'query',  
  76. 'type' => 'string',  
  77. ),  
  78. ),  
  79. ), 'patch' => array( 
  80. 'path' => 'customers/{customerId}',  
  81. 'httpMethod' => 'PATCH',  
  82. 'parameters' => array( 
  83. 'customerId' => array( 
  84. 'location' => 'path',  
  85. 'type' => 'string',  
  86. 'required' => true,  
  87. ),  
  88. ),  
  89. ), 'update' => array( 
  90. 'path' => 'customers/{customerId}',  
  91. 'httpMethod' => 'PUT',  
  92. 'parameters' => array( 
  93. 'customerId' => array( 
  94. 'location' => 'path',  
  95. 'type' => 'string',  
  96. 'required' => true,  
  97. ),  
  98. ),  
  99. ),  
  100. ); 
  101. $this->subscriptions = new Google_Service_Reseller_Subscriptions_Resource( 
  102. $this,  
  103. $this->serviceName,  
  104. 'subscriptions',  
  105. array( 
  106. 'methods' => array( 
  107. 'activate' => array( 
  108. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/activate',  
  109. 'httpMethod' => 'POST',  
  110. 'parameters' => array( 
  111. 'customerId' => array( 
  112. 'location' => 'path',  
  113. 'type' => 'string',  
  114. 'required' => true,  
  115. ),  
  116. 'subscriptionId' => array( 
  117. 'location' => 'path',  
  118. 'type' => 'string',  
  119. 'required' => true,  
  120. ),  
  121. ),  
  122. ), 'changePlan' => array( 
  123. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan',  
  124. 'httpMethod' => 'POST',  
  125. 'parameters' => array( 
  126. 'customerId' => array( 
  127. 'location' => 'path',  
  128. 'type' => 'string',  
  129. 'required' => true,  
  130. ),  
  131. 'subscriptionId' => array( 
  132. 'location' => 'path',  
  133. 'type' => 'string',  
  134. 'required' => true,  
  135. ),  
  136. ),  
  137. ), 'changeRenewalSettings' => array( 
  138. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings',  
  139. 'httpMethod' => 'POST',  
  140. 'parameters' => array( 
  141. 'customerId' => array( 
  142. 'location' => 'path',  
  143. 'type' => 'string',  
  144. 'required' => true,  
  145. ),  
  146. 'subscriptionId' => array( 
  147. 'location' => 'path',  
  148. 'type' => 'string',  
  149. 'required' => true,  
  150. ),  
  151. ),  
  152. ), 'changeSeats' => array( 
  153. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats',  
  154. 'httpMethod' => 'POST',  
  155. 'parameters' => array( 
  156. 'customerId' => array( 
  157. 'location' => 'path',  
  158. 'type' => 'string',  
  159. 'required' => true,  
  160. ),  
  161. 'subscriptionId' => array( 
  162. 'location' => 'path',  
  163. 'type' => 'string',  
  164. 'required' => true,  
  165. ),  
  166. ),  
  167. ), 'delete' => array( 
  168. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}',  
  169. 'httpMethod' => 'DELETE',  
  170. 'parameters' => array( 
  171. 'customerId' => array( 
  172. 'location' => 'path',  
  173. 'type' => 'string',  
  174. 'required' => true,  
  175. ),  
  176. 'subscriptionId' => array( 
  177. 'location' => 'path',  
  178. 'type' => 'string',  
  179. 'required' => true,  
  180. ),  
  181. 'deletionType' => array( 
  182. 'location' => 'query',  
  183. 'type' => 'string',  
  184. 'required' => true,  
  185. ),  
  186. ),  
  187. ), 'get' => array( 
  188. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}',  
  189. 'httpMethod' => 'GET',  
  190. 'parameters' => array( 
  191. 'customerId' => array( 
  192. 'location' => 'path',  
  193. 'type' => 'string',  
  194. 'required' => true,  
  195. ),  
  196. 'subscriptionId' => array( 
  197. 'location' => 'path',  
  198. 'type' => 'string',  
  199. 'required' => true,  
  200. ),  
  201. ),  
  202. ), 'insert' => array( 
  203. 'path' => 'customers/{customerId}/subscriptions',  
  204. 'httpMethod' => 'POST',  
  205. 'parameters' => array( 
  206. 'customerId' => array( 
  207. 'location' => 'path',  
  208. 'type' => 'string',  
  209. 'required' => true,  
  210. ),  
  211. 'customerAuthToken' => array( 
  212. 'location' => 'query',  
  213. 'type' => 'string',  
  214. ),  
  215. ),  
  216. ), 'list' => array( 
  217. 'path' => 'subscriptions',  
  218. 'httpMethod' => 'GET',  
  219. 'parameters' => array( 
  220. 'customerAuthToken' => array( 
  221. 'location' => 'query',  
  222. 'type' => 'string',  
  223. ),  
  224. 'pageToken' => array( 
  225. 'location' => 'query',  
  226. 'type' => 'string',  
  227. ),  
  228. 'customerId' => array( 
  229. 'location' => 'query',  
  230. 'type' => 'string',  
  231. ),  
  232. 'maxResults' => array( 
  233. 'location' => 'query',  
  234. 'type' => 'integer',  
  235. ),  
  236. 'customerNamePrefix' => array( 
  237. 'location' => 'query',  
  238. 'type' => 'string',  
  239. ),  
  240. ),  
  241. ), 'startPaidService' => array( 
  242. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService',  
  243. 'httpMethod' => 'POST',  
  244. 'parameters' => array( 
  245. 'customerId' => array( 
  246. 'location' => 'path',  
  247. 'type' => 'string',  
  248. 'required' => true,  
  249. ),  
  250. 'subscriptionId' => array( 
  251. 'location' => 'path',  
  252. 'type' => 'string',  
  253. 'required' => true,  
  254. ),  
  255. ),  
  256. ), 'suspend' => array( 
  257. 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/suspend',  
  258. 'httpMethod' => 'POST',  
  259. 'parameters' => array( 
  260. 'customerId' => array( 
  261. 'location' => 'path',  
  262. 'type' => 'string',  
  263. 'required' => true,  
  264. ),  
  265. 'subscriptionId' => array( 
  266. 'location' => 'path',  
  267. 'type' => 'string',  
  268. 'required' => true,  
  269. ),  
  270. ),  
  271. ),  
  272. ); 
  273.  
  274.  
  275. /** 
  276. * The "customers" collection of methods. 
  277. * Typical usage is: 
  278. * <code> 
  279. * $resellerService = new Google_Service_Reseller(...); 
  280. * $customers = $resellerService->customers; 
  281. * </code> 
  282. */ 
  283. class Google_Service_Reseller_Customers_Resource extends Google_Service_Resource 
  284.  
  285. /** 
  286. * Gets a customer resource if one exists and is owned by the reseller. 
  287. * (customers.get) 
  288. * 
  289. * @param string $customerId Id of the Customer 
  290. * @param array $optParams Optional parameters. 
  291. * @return Google_Service_Reseller_Customer 
  292. */ 
  293. public function get($customerId, $optParams = array()) 
  294. $params = array('customerId' => $customerId); 
  295. $params = array_merge($params, $optParams); 
  296. return $this->call('get', array($params), "Google_Service_Reseller_Customer"); 
  297.  
  298. /** 
  299. * Creates a customer resource if one does not already exist. (customers.insert) 
  300. * 
  301. * @param Google_Customer $postBody 
  302. * @param array $optParams Optional parameters. 
  303. * 
  304. * @opt_param string customerAuthToken An auth token needed for inserting a 
  305. * customer for which domain already exists. Can be generated at 
  306. * https://www.google.com/a/cpanel//TransferToken. Optional. 
  307. * @return Google_Service_Reseller_Customer 
  308. */ 
  309. public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array()) 
  310. $params = array('postBody' => $postBody); 
  311. $params = array_merge($params, $optParams); 
  312. return $this->call('insert', array($params), "Google_Service_Reseller_Customer"); 
  313.  
  314. /** 
  315. * Update a customer resource if one it exists and is owned by the reseller. 
  316. * This method supports patch semantics. (customers.patch) 
  317. * 
  318. * @param string $customerId Id of the Customer 
  319. * @param Google_Customer $postBody 
  320. * @param array $optParams Optional parameters. 
  321. * @return Google_Service_Reseller_Customer 
  322. */ 
  323. public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) 
  324. $params = array('customerId' => $customerId, 'postBody' => $postBody); 
  325. $params = array_merge($params, $optParams); 
  326. return $this->call('patch', array($params), "Google_Service_Reseller_Customer"); 
  327.  
  328. /** 
  329. * Update a customer resource if one it exists and is owned by the reseller. 
  330. * (customers.update) 
  331. * 
  332. * @param string $customerId Id of the Customer 
  333. * @param Google_Customer $postBody 
  334. * @param array $optParams Optional parameters. 
  335. * @return Google_Service_Reseller_Customer 
  336. */ 
  337. public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) 
  338. $params = array('customerId' => $customerId, 'postBody' => $postBody); 
  339. $params = array_merge($params, $optParams); 
  340. return $this->call('update', array($params), "Google_Service_Reseller_Customer"); 
  341.  
  342. /** 
  343. * The "subscriptions" collection of methods. 
  344. * Typical usage is: 
  345. * <code> 
  346. * $resellerService = new Google_Service_Reseller(...); 
  347. * $subscriptions = $resellerService->subscriptions; 
  348. * </code> 
  349. */ 
  350. class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource 
  351.  
  352. /** 
  353. * Activates a subscription previously suspended by the reseller 
  354. * (subscriptions.activate) 
  355. * 
  356. * @param string $customerId Id of the Customer 
  357. * @param string $subscriptionId Id of the subscription, which is unique for a 
  358. * customer 
  359. * @param array $optParams Optional parameters. 
  360. * @return Google_Service_Reseller_Subscription 
  361. */ 
  362. public function activate($customerId, $subscriptionId, $optParams = array()) 
  363. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); 
  364. $params = array_merge($params, $optParams); 
  365. return $this->call('activate', array($params), "Google_Service_Reseller_Subscription"); 
  366.  
  367. /** 
  368. * Changes the plan of a subscription (subscriptions.changePlan) 
  369. * 
  370. * @param string $customerId Id of the Customer 
  371. * @param string $subscriptionId Id of the subscription, which is unique for a 
  372. * customer 
  373. * @param Google_ChangePlanRequest $postBody 
  374. * @param array $optParams Optional parameters. 
  375. * @return Google_Service_Reseller_Subscription 
  376. */ 
  377. public function changePlan($customerId, $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, $optParams = array()) 
  378. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); 
  379. $params = array_merge($params, $optParams); 
  380. return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription"); 
  381.  
  382. /** 
  383. * Changes the renewal settings of a subscription 
  384. * (subscriptions.changeRenewalSettings) 
  385. * 
  386. * @param string $customerId Id of the Customer 
  387. * @param string $subscriptionId Id of the subscription, which is unique for a 
  388. * customer 
  389. * @param Google_RenewalSettings $postBody 
  390. * @param array $optParams Optional parameters. 
  391. * @return Google_Service_Reseller_Subscription 
  392. */ 
  393. public function changeRenewalSettings($customerId, $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, $optParams = array()) 
  394. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); 
  395. $params = array_merge($params, $optParams); 
  396. return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription"); 
  397.  
  398. /** 
  399. * Changes the seats configuration of a subscription (subscriptions.changeSeats) 
  400. * 
  401. * @param string $customerId Id of the Customer 
  402. * @param string $subscriptionId Id of the subscription, which is unique for a 
  403. * customer 
  404. * @param Google_Seats $postBody 
  405. * @param array $optParams Optional parameters. 
  406. * @return Google_Service_Reseller_Subscription 
  407. */ 
  408. public function changeSeats($customerId, $subscriptionId, Google_Service_Reseller_Seats $postBody, $optParams = array()) 
  409. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); 
  410. $params = array_merge($params, $optParams); 
  411. return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription"); 
  412.  
  413. /** 
  414. * Cancels/Downgrades a subscription. (subscriptions.delete) 
  415. * 
  416. * @param string $customerId Id of the Customer 
  417. * @param string $subscriptionId Id of the subscription, which is unique for a 
  418. * customer 
  419. * @param string $deletionType Whether the subscription is to be fully cancelled 
  420. * or downgraded 
  421. * @param array $optParams Optional parameters. 
  422. */ 
  423. public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) 
  424. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType); 
  425. $params = array_merge($params, $optParams); 
  426. return $this->call('delete', array($params)); 
  427.  
  428. /** 
  429. * Gets a subscription of the customer. (subscriptions.get) 
  430. * 
  431. * @param string $customerId Id of the Customer 
  432. * @param string $subscriptionId Id of the subscription, which is unique for a 
  433. * customer 
  434. * @param array $optParams Optional parameters. 
  435. * @return Google_Service_Reseller_Subscription 
  436. */ 
  437. public function get($customerId, $subscriptionId, $optParams = array()) 
  438. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); 
  439. $params = array_merge($params, $optParams); 
  440. return $this->call('get', array($params), "Google_Service_Reseller_Subscription"); 
  441.  
  442. /** 
  443. * Creates/Transfers a subscription for the customer. (subscriptions.insert) 
  444. * 
  445. * @param string $customerId Id of the Customer 
  446. * @param Google_Subscription $postBody 
  447. * @param array $optParams Optional parameters. 
  448. * 
  449. * @opt_param string customerAuthToken An auth token needed for transferring a 
  450. * subscription. Can be generated at https://www.google.com/a/cpanel/customer- 
  451. * domain/TransferToken. Optional. 
  452. * @return Google_Service_Reseller_Subscription 
  453. */ 
  454. public function insert($customerId, Google_Service_Reseller_Subscription $postBody, $optParams = array()) 
  455. $params = array('customerId' => $customerId, 'postBody' => $postBody); 
  456. $params = array_merge($params, $optParams); 
  457. return $this->call('insert', array($params), "Google_Service_Reseller_Subscription"); 
  458.  
  459. /** 
  460. * Lists subscriptions of a reseller, optionally filtered by a customer name 
  461. * prefix. (subscriptions.listSubscriptions) 
  462. * 
  463. * @param array $optParams Optional parameters. 
  464. * 
  465. * @opt_param string customerAuthToken An auth token needed if the customer is 
  466. * not a resold customer of this reseller. Can be generated at 
  467. * https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. 
  468. * @opt_param string pageToken Token to specify next page in the list 
  469. * @opt_param string customerId Id of the Customer 
  470. * @opt_param string maxResults Maximum number of results to return 
  471. * @opt_param string customerNamePrefix Prefix of the customer's domain name by 
  472. * which the subscriptions should be filtered. Optional 
  473. * @return Google_Service_Reseller_Subscriptions 
  474. */ 
  475. public function listSubscriptions($optParams = array()) 
  476. $params = array(); 
  477. $params = array_merge($params, $optParams); 
  478. return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions"); 
  479.  
  480. /** 
  481. * Starts paid service of a trial subscription (subscriptions.startPaidService) 
  482. * 
  483. * @param string $customerId Id of the Customer 
  484. * @param string $subscriptionId Id of the subscription, which is unique for a 
  485. * customer 
  486. * @param array $optParams Optional parameters. 
  487. * @return Google_Service_Reseller_Subscription 
  488. */ 
  489. public function startPaidService($customerId, $subscriptionId, $optParams = array()) 
  490. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); 
  491. $params = array_merge($params, $optParams); 
  492. return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription"); 
  493.  
  494. /** 
  495. * Suspends an active subscription (subscriptions.suspend) 
  496. * 
  497. * @param string $customerId Id of the Customer 
  498. * @param string $subscriptionId Id of the subscription, which is unique for a 
  499. * customer 
  500. * @param array $optParams Optional parameters. 
  501. * @return Google_Service_Reseller_Subscription 
  502. */ 
  503. public function suspend($customerId, $subscriptionId, $optParams = array()) 
  504. $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); 
  505. $params = array_merge($params, $optParams); 
  506. return $this->call('suspend', array($params), "Google_Service_Reseller_Subscription"); 
  507.  
  508.  
  509.  
  510.  
  511. class Google_Service_Reseller_Address extends Google_Model 
  512. protected $internal_gapi_mappings = array( 
  513. ); 
  514. public $addressLine1; 
  515. public $addressLine2; 
  516. public $addressLine3; 
  517. public $contactName; 
  518. public $countryCode; 
  519. public $kind; 
  520. public $locality; 
  521. public $organizationName; 
  522. public $postalCode; 
  523. public $region; 
  524.  
  525.  
  526. public function setAddressLine1($addressLine1) 
  527. $this->addressLine1 = $addressLine1; 
  528. public function getAddressLine1() 
  529. return $this->addressLine1; 
  530. public function setAddressLine2($addressLine2) 
  531. $this->addressLine2 = $addressLine2; 
  532. public function getAddressLine2() 
  533. return $this->addressLine2; 
  534. public function setAddressLine3($addressLine3) 
  535. $this->addressLine3 = $addressLine3; 
  536. public function getAddressLine3() 
  537. return $this->addressLine3; 
  538. public function setContactName($contactName) 
  539. $this->contactName = $contactName; 
  540. public function getContactName() 
  541. return $this->contactName; 
  542. public function setCountryCode($countryCode) 
  543. $this->countryCode = $countryCode; 
  544. public function getCountryCode() 
  545. return $this->countryCode; 
  546. public function setKind($kind) 
  547. $this->kind = $kind; 
  548. public function getKind() 
  549. return $this->kind; 
  550. public function setLocality($locality) 
  551. $this->locality = $locality; 
  552. public function getLocality() 
  553. return $this->locality; 
  554. public function setOrganizationName($organizationName) 
  555. $this->organizationName = $organizationName; 
  556. public function getOrganizationName() 
  557. return $this->organizationName; 
  558. public function setPostalCode($postalCode) 
  559. $this->postalCode = $postalCode; 
  560. public function getPostalCode() 
  561. return $this->postalCode; 
  562. public function setRegion($region) 
  563. $this->region = $region; 
  564. public function getRegion() 
  565. return $this->region; 
  566.  
  567. class Google_Service_Reseller_ChangePlanRequest extends Google_Model 
  568. protected $internal_gapi_mappings = array( 
  569. ); 
  570. public $kind; 
  571. public $planName; 
  572. public $purchaseOrderId; 
  573. protected $seatsType = 'Google_Service_Reseller_Seats'; 
  574. protected $seatsDataType = ''; 
  575.  
  576.  
  577. public function setKind($kind) 
  578. $this->kind = $kind; 
  579. public function getKind() 
  580. return $this->kind; 
  581. public function setPlanName($planName) 
  582. $this->planName = $planName; 
  583. public function getPlanName() 
  584. return $this->planName; 
  585. public function setPurchaseOrderId($purchaseOrderId) 
  586. $this->purchaseOrderId = $purchaseOrderId; 
  587. public function getPurchaseOrderId() 
  588. return $this->purchaseOrderId; 
  589. public function setSeats(Google_Service_Reseller_Seats $seats) 
  590. $this->seats = $seats; 
  591. public function getSeats() 
  592. return $this->seats; 
  593.  
  594. class Google_Service_Reseller_Customer extends Google_Model 
  595. protected $internal_gapi_mappings = array( 
  596. ); 
  597. public $alternateEmail; 
  598. public $customerDomain; 
  599. public $customerId; 
  600. public $kind; 
  601. public $phoneNumber; 
  602. protected $postalAddressType = 'Google_Service_Reseller_Address'; 
  603. protected $postalAddressDataType = ''; 
  604. public $resourceUiUrl; 
  605.  
  606.  
  607. public function setAlternateEmail($alternateEmail) 
  608. $this->alternateEmail = $alternateEmail; 
  609. public function getAlternateEmail() 
  610. return $this->alternateEmail; 
  611. public function setCustomerDomain($customerDomain) 
  612. $this->customerDomain = $customerDomain; 
  613. public function getCustomerDomain() 
  614. return $this->customerDomain; 
  615. public function setCustomerId($customerId) 
  616. $this->customerId = $customerId; 
  617. public function getCustomerId() 
  618. return $this->customerId; 
  619. public function setKind($kind) 
  620. $this->kind = $kind; 
  621. public function getKind() 
  622. return $this->kind; 
  623. public function setPhoneNumber($phoneNumber) 
  624. $this->phoneNumber = $phoneNumber; 
  625. public function getPhoneNumber() 
  626. return $this->phoneNumber; 
  627. public function setPostalAddress(Google_Service_Reseller_Address $postalAddress) 
  628. $this->postalAddress = $postalAddress; 
  629. public function getPostalAddress() 
  630. return $this->postalAddress; 
  631. public function setResourceUiUrl($resourceUiUrl) 
  632. $this->resourceUiUrl = $resourceUiUrl; 
  633. public function getResourceUiUrl() 
  634. return $this->resourceUiUrl; 
  635.  
  636. class Google_Service_Reseller_RenewalSettings extends Google_Model 
  637. protected $internal_gapi_mappings = array( 
  638. ); 
  639. public $kind; 
  640. public $renewalType; 
  641.  
  642.  
  643. public function setKind($kind) 
  644. $this->kind = $kind; 
  645. public function getKind() 
  646. return $this->kind; 
  647. public function setRenewalType($renewalType) 
  648. $this->renewalType = $renewalType; 
  649. public function getRenewalType() 
  650. return $this->renewalType; 
  651.  
  652. class Google_Service_Reseller_Seats extends Google_Model 
  653. protected $internal_gapi_mappings = array( 
  654. ); 
  655. public $kind; 
  656. public $licensedNumberOfSeats; 
  657. public $maximumNumberOfSeats; 
  658. public $numberOfSeats; 
  659.  
  660.  
  661. public function setKind($kind) 
  662. $this->kind = $kind; 
  663. public function getKind() 
  664. return $this->kind; 
  665. public function setLicensedNumberOfSeats($licensedNumberOfSeats) 
  666. $this->licensedNumberOfSeats = $licensedNumberOfSeats; 
  667. public function getLicensedNumberOfSeats() 
  668. return $this->licensedNumberOfSeats; 
  669. public function setMaximumNumberOfSeats($maximumNumberOfSeats) 
  670. $this->maximumNumberOfSeats = $maximumNumberOfSeats; 
  671. public function getMaximumNumberOfSeats() 
  672. return $this->maximumNumberOfSeats; 
  673. public function setNumberOfSeats($numberOfSeats) 
  674. $this->numberOfSeats = $numberOfSeats; 
  675. public function getNumberOfSeats() 
  676. return $this->numberOfSeats; 
  677.  
  678. class Google_Service_Reseller_Subscription extends Google_Model 
  679. protected $internal_gapi_mappings = array( 
  680. ); 
  681. public $billingMethod; 
  682. public $creationTime; 
  683. public $customerId; 
  684. public $kind; 
  685. protected $planType = 'Google_Service_Reseller_SubscriptionPlan'; 
  686. protected $planDataType = ''; 
  687. public $purchaseOrderId; 
  688. protected $renewalSettingsType = 'Google_Service_Reseller_RenewalSettings'; 
  689. protected $renewalSettingsDataType = ''; 
  690. public $resourceUiUrl; 
  691. protected $seatsType = 'Google_Service_Reseller_Seats'; 
  692. protected $seatsDataType = ''; 
  693. public $skuId; 
  694. public $status; 
  695. public $subscriptionId; 
  696. protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo'; 
  697. protected $transferInfoDataType = ''; 
  698. protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; 
  699. protected $trialSettingsDataType = ''; 
  700.  
  701.  
  702. public function setBillingMethod($billingMethod) 
  703. $this->billingMethod = $billingMethod; 
  704. public function getBillingMethod() 
  705. return $this->billingMethod; 
  706. public function setCreationTime($creationTime) 
  707. $this->creationTime = $creationTime; 
  708. public function getCreationTime() 
  709. return $this->creationTime; 
  710. public function setCustomerId($customerId) 
  711. $this->customerId = $customerId; 
  712. public function getCustomerId() 
  713. return $this->customerId; 
  714. public function setKind($kind) 
  715. $this->kind = $kind; 
  716. public function getKind() 
  717. return $this->kind; 
  718. public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan) 
  719. $this->plan = $plan; 
  720. public function getPlan() 
  721. return $this->plan; 
  722. public function setPurchaseOrderId($purchaseOrderId) 
  723. $this->purchaseOrderId = $purchaseOrderId; 
  724. public function getPurchaseOrderId() 
  725. return $this->purchaseOrderId; 
  726. public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $renewalSettings) 
  727. $this->renewalSettings = $renewalSettings; 
  728. public function getRenewalSettings() 
  729. return $this->renewalSettings; 
  730. public function setResourceUiUrl($resourceUiUrl) 
  731. $this->resourceUiUrl = $resourceUiUrl; 
  732. public function getResourceUiUrl() 
  733. return $this->resourceUiUrl; 
  734. public function setSeats(Google_Service_Reseller_Seats $seats) 
  735. $this->seats = $seats; 
  736. public function getSeats() 
  737. return $this->seats; 
  738. public function setSkuId($skuId) 
  739. $this->skuId = $skuId; 
  740. public function getSkuId() 
  741. return $this->skuId; 
  742. public function setStatus($status) 
  743. $this->status = $status; 
  744. public function getStatus() 
  745. return $this->status; 
  746. public function setSubscriptionId($subscriptionId) 
  747. $this->subscriptionId = $subscriptionId; 
  748. public function getSubscriptionId() 
  749. return $this->subscriptionId; 
  750. public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) 
  751. $this->transferInfo = $transferInfo; 
  752. public function getTransferInfo() 
  753. return $this->transferInfo; 
  754. public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings $trialSettings) 
  755. $this->trialSettings = $trialSettings; 
  756. public function getTrialSettings() 
  757. return $this->trialSettings; 
  758.  
  759. class Google_Service_Reseller_SubscriptionPlan extends Google_Model 
  760. protected $internal_gapi_mappings = array( 
  761. ); 
  762. protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval'; 
  763. protected $commitmentIntervalDataType = ''; 
  764. public $isCommitmentPlan; 
  765. public $planName; 
  766.  
  767.  
  768. public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval) 
  769. $this->commitmentInterval = $commitmentInterval; 
  770. public function getCommitmentInterval() 
  771. return $this->commitmentInterval; 
  772. public function setIsCommitmentPlan($isCommitmentPlan) 
  773. $this->isCommitmentPlan = $isCommitmentPlan; 
  774. public function getIsCommitmentPlan() 
  775. return $this->isCommitmentPlan; 
  776. public function setPlanName($planName) 
  777. $this->planName = $planName; 
  778. public function getPlanName() 
  779. return $this->planName; 
  780.  
  781. class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model 
  782. protected $internal_gapi_mappings = array( 
  783. ); 
  784. public $endTime; 
  785. public $startTime; 
  786.  
  787.  
  788. public function setEndTime($endTime) 
  789. $this->endTime = $endTime; 
  790. public function getEndTime() 
  791. return $this->endTime; 
  792. public function setStartTime($startTime) 
  793. $this->startTime = $startTime; 
  794. public function getStartTime() 
  795. return $this->startTime; 
  796.  
  797. class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model 
  798. protected $internal_gapi_mappings = array( 
  799. ); 
  800. public $minimumTransferableSeats; 
  801. public $transferabilityExpirationTime; 
  802.  
  803.  
  804. public function setMinimumTransferableSeats($minimumTransferableSeats) 
  805. $this->minimumTransferableSeats = $minimumTransferableSeats; 
  806. public function getMinimumTransferableSeats() 
  807. return $this->minimumTransferableSeats; 
  808. public function setTransferabilityExpirationTime($transferabilityExpirationTime) 
  809. $this->transferabilityExpirationTime = $transferabilityExpirationTime; 
  810. public function getTransferabilityExpirationTime() 
  811. return $this->transferabilityExpirationTime; 
  812.  
  813. class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model 
  814. protected $internal_gapi_mappings = array( 
  815. ); 
  816. public $isInTrial; 
  817. public $trialEndTime; 
  818.  
  819.  
  820. public function setIsInTrial($isInTrial) 
  821. $this->isInTrial = $isInTrial; 
  822. public function getIsInTrial() 
  823. return $this->isInTrial; 
  824. public function setTrialEndTime($trialEndTime) 
  825. $this->trialEndTime = $trialEndTime; 
  826. public function getTrialEndTime() 
  827. return $this->trialEndTime; 
  828.  
  829. class Google_Service_Reseller_Subscriptions extends Google_Collection 
  830. protected $collection_key = 'subscriptions'; 
  831. protected $internal_gapi_mappings = array( 
  832. ); 
  833. public $kind; 
  834. public $nextPageToken; 
  835. protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; 
  836. protected $subscriptionsDataType = 'array'; 
  837.  
  838.  
  839. public function setKind($kind) 
  840. $this->kind = $kind; 
  841. public function getKind() 
  842. return $this->kind; 
  843. public function setNextPageToken($nextPageToken) 
  844. $this->nextPageToken = $nextPageToken; 
  845. public function getNextPageToken() 
  846. return $this->nextPageToken; 
  847. public function setSubscriptions($subscriptions) 
  848. $this->subscriptions = $subscriptions; 
  849. public function getSubscriptions() 
  850. return $this->subscriptions; 
.