PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Reseller.php

Reseller.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Reseller.php

1,143 lines 32.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Reseller (v1).
18 *
19 * <p>
20 * Lets you create and manage your customers and their subscriptions.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://developers.google.com/google-apps/reseller/" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_Reseller extends Google_Service
30 {
31 /** Manage users on your domain. */
32 const APPS_ORDER =
33 "https://www.googleapis.com/auth/apps.order";
34 /** Manage users on your domain. */
35 const APPS_ORDER_READONLY =
36 "https://www.googleapis.com/auth/apps.order.readonly";
37
38 public $customers;
39 public $subscriptions;
40
41
42 /**
43 * Constructs the internal representation of the Reseller service.
44 *
45 * @param Google_Client $client
46 */
47 public function __construct(Google_Client $client)
48 {
49 parent::__construct($client);
50 $this->rootUrl = 'https://www.googleapis.com/';
51 $this->servicePath = 'apps/reseller/v1/';
52 $this->version = 'v1';
53 $this->serviceName = 'reseller';
54
55 $this->customers = new Google_Service_Reseller_Customers_Resource(
56 $this,
57 $this->serviceName,
58 'customers',
59 array(
60 'methods' => array(
61 'get' => array(
62 'path' => 'customers/{customerId}',
63 'httpMethod' => 'GET',
64 'parameters' => array(
65 'customerId' => array(
66 'location' => 'path',
67 'type' => 'string',
68 'required' => true,
69 ),
70 ),
71 ),'insert' => array(
72 'path' => 'customers',
73 'httpMethod' => 'POST',
74 'parameters' => array(
75 'customerAuthToken' => array(
76 'location' => 'query',
77 'type' => 'string',
78 ),
79 ),
80 ),'patch' => array(
81 'path' => 'customers/{customerId}',
82 'httpMethod' => 'PATCH',
83 'parameters' => array(
84 'customerId' => array(
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ),
89 ),
90 ),'update' => array(
91 'path' => 'customers/{customerId}',
92 'httpMethod' => 'PUT',
93 'parameters' => array(
94 'customerId' => array(
95 'location' => 'path',
96 'type' => 'string',
97 'required' => true,
98 ),
99 ),
100 ),
101 )
102 )
103 );
104 $this->subscriptions = new Google_Service_Reseller_Subscriptions_Resource(
105 $this,
106 $this->serviceName,
107 'subscriptions',
108 array(
109 'methods' => 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(
126 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan',
127 'httpMethod' => 'POST',
128 'parameters' => array(
129 'customerId' => array(
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
133 ),
134 'subscriptionId' => array(
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ),
139 ),
140 ),'changeRenewalSettings' => array(
141 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings',
142 'httpMethod' => 'POST',
143 'parameters' => array(
144 'customerId' => array(
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ),
149 'subscriptionId' => array(
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ),
154 ),
155 ),'changeSeats' => array(
156 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats',
157 'httpMethod' => 'POST',
158 'parameters' => array(
159 'customerId' => array(
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ),
164 'subscriptionId' => array(
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ),
169 ),
170 ),'delete' => array(
171 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}',
172 'httpMethod' => 'DELETE',
173 'parameters' => array(
174 'customerId' => array(
175 'location' => 'path',
176 'type' => 'string',
177 'required' => true,
178 ),
179 'subscriptionId' => array(
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ),
184 'deletionType' => array(
185 'location' => 'query',
186 'type' => 'string',
187 'required' => true,
188 ),
189 ),
190 ),'get' => array(
191 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}',
192 'httpMethod' => 'GET',
193 'parameters' => array(
194 'customerId' => array(
195 'location' => 'path',
196 'type' => 'string',
197 'required' => true,
198 ),
199 'subscriptionId' => array(
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ),
204 ),
205 ),'insert' => array(
206 'path' => 'customers/{customerId}/subscriptions',
207 'httpMethod' => 'POST',
208 'parameters' => array(
209 'customerId' => array(
210 'location' => 'path',
211 'type' => 'string',
212 'required' => true,
213 ),
214 'customerAuthToken' => array(
215 'location' => 'query',
216 'type' => 'string',
217 ),
218 ),
219 ),'list' => array(
220 'path' => 'subscriptions',
221 'httpMethod' => 'GET',
222 'parameters' => array(
223 'customerAuthToken' => array(
224 'location' => 'query',
225 'type' => 'string',
226 ),
227 'customerId' => array(
228 'location' => 'query',
229 'type' => 'string',
230 ),
231 'customerNamePrefix' => array(
232 'location' => 'query',
233 'type' => 'string',
234 ),
235 'maxResults' => array(
236 'location' => 'query',
237 'type' => 'integer',
238 ),
239 'pageToken' => array(
240 'location' => 'query',
241 'type' => 'string',
242 ),
243 ),
244 ),'startPaidService' => array(
245 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService',
246 'httpMethod' => 'POST',
247 'parameters' => array(
248 'customerId' => array(
249 'location' => 'path',
250 'type' => 'string',
251 'required' => true,
252 ),
253 'subscriptionId' => array(
254 'location' => 'path',
255 'type' => 'string',
256 'required' => true,
257 ),
258 ),
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 ),
274 ),
275 )
276 )
277 );
278 }
279 }
280
281
282 /**
283 * The "customers" collection of methods.
284 * Typical usage is:
285 * <code>
286 * $resellerService = new Google_Service_Reseller(...);
287 * $customers = $resellerService->customers;
288 * </code>
289 */
290 class Google_Service_Reseller_Customers_Resource extends Google_Service_Resource
291 {
292
293 /**
294 * Gets a customer resource if one exists and is owned by the reseller.
295 * (customers.get)
296 *
297 * @param string $customerId Id of the Customer
298 * @param array $optParams Optional parameters.
299 * @return Google_Service_Reseller_Customer
300 */
301 public function get($customerId, $optParams = array())
302 {
303 $params = array('customerId' => $customerId);
304 $params = array_merge($params, $optParams);
305 return $this->call('get', array($params), "Google_Service_Reseller_Customer");
306 }
307
308 /**
309 * Creates a customer resource if one does not already exist. (customers.insert)
310 *
311 * @param Google_Customer $postBody
312 * @param array $optParams Optional parameters.
313 *
314 * @opt_param string customerAuthToken An auth token needed for inserting a
315 * customer for which domain already exists. Can be generated at
316 * https://admin.google.com/TransferToken. Optional.
317 * @return Google_Service_Reseller_Customer
318 */
319 public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array())
320 {
321 $params = array('postBody' => $postBody);
322 $params = array_merge($params, $optParams);
323 return $this->call('insert', array($params), "Google_Service_Reseller_Customer");
324 }
325
326 /**
327 * Update a customer resource if one it exists and is owned by the reseller.
328 * This method supports patch semantics. (customers.patch)
329 *
330 * @param string $customerId Id of the Customer
331 * @param Google_Customer $postBody
332 * @param array $optParams Optional parameters.
333 * @return Google_Service_Reseller_Customer
334 */
335 public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array())
336 {
337 $params = array('customerId' => $customerId, 'postBody' => $postBody);
338 $params = array_merge($params, $optParams);
339 return $this->call('patch', array($params), "Google_Service_Reseller_Customer");
340 }
341
342 /**
343 * Update a customer resource if one it exists and is owned by the reseller.
344 * (customers.update)
345 *
346 * @param string $customerId Id of the Customer
347 * @param Google_Customer $postBody
348 * @param array $optParams Optional parameters.
349 * @return Google_Service_Reseller_Customer
350 */
351 public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array())
352 {
353 $params = array('customerId' => $customerId, 'postBody' => $postBody);
354 $params = array_merge($params, $optParams);
355 return $this->call('update', array($params), "Google_Service_Reseller_Customer");
356 }
357 }
358
359 /**
360 * The "subscriptions" collection of methods.
361 * Typical usage is:
362 * <code>
363 * $resellerService = new Google_Service_Reseller(...);
364 * $subscriptions = $resellerService->subscriptions;
365 * </code>
366 */
367 class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource
368 {
369
370 /**
371 * Activates a subscription previously suspended by the reseller
372 * (subscriptions.activate)
373 *
374 * @param string $customerId Id of the Customer
375 * @param string $subscriptionId Id of the subscription, which is unique for a
376 * customer
377 * @param array $optParams Optional parameters.
378 * @return Google_Service_Reseller_Subscription
379 */
380 public function activate($customerId, $subscriptionId, $optParams = array())
381 {
382 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
383 $params = array_merge($params, $optParams);
384 return $this->call('activate', array($params), "Google_Service_Reseller_Subscription");
385 }
386
387 /**
388 * Changes the plan of a subscription (subscriptions.changePlan)
389 *
390 * @param string $customerId Id of the Customer
391 * @param string $subscriptionId Id of the subscription, which is unique for a
392 * customer
393 * @param Google_ChangePlanRequest $postBody
394 * @param array $optParams Optional parameters.
395 * @return Google_Service_Reseller_Subscription
396 */
397 public function changePlan($customerId, $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, $optParams = array())
398 {
399 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
400 $params = array_merge($params, $optParams);
401 return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription");
402 }
403
404 /**
405 * Changes the renewal settings of a subscription
406 * (subscriptions.changeRenewalSettings)
407 *
408 * @param string $customerId Id of the Customer
409 * @param string $subscriptionId Id of the subscription, which is unique for a
410 * customer
411 * @param Google_RenewalSettings $postBody
412 * @param array $optParams Optional parameters.
413 * @return Google_Service_Reseller_Subscription
414 */
415 public function changeRenewalSettings($customerId, $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, $optParams = array())
416 {
417 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
418 $params = array_merge($params, $optParams);
419 return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription");
420 }
421
422 /**
423 * Changes the seats configuration of a subscription (subscriptions.changeSeats)
424 *
425 * @param string $customerId Id of the Customer
426 * @param string $subscriptionId Id of the subscription, which is unique for a
427 * customer
428 * @param Google_Seats $postBody
429 * @param array $optParams Optional parameters.
430 * @return Google_Service_Reseller_Subscription
431 */
432 public function changeSeats($customerId, $subscriptionId, Google_Service_Reseller_Seats $postBody, $optParams = array())
433 {
434 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
435 $params = array_merge($params, $optParams);
436 return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription");
437 }
438
439 /**
440 * Cancels/Downgrades a subscription. (subscriptions.delete)
441 *
442 * @param string $customerId Id of the Customer
443 * @param string $subscriptionId Id of the subscription, which is unique for a
444 * customer
445 * @param string $deletionType Whether the subscription is to be fully cancelled
446 * or downgraded
447 * @param array $optParams Optional parameters.
448 */
449 public function delete($customerId, $subscriptionId, $deletionType, $optParams = array())
450 {
451 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType);
452 $params = array_merge($params, $optParams);
453 return $this->call('delete', array($params));
454 }
455
456 /**
457 * Gets a subscription of the customer. (subscriptions.get)
458 *
459 * @param string $customerId Id of the Customer
460 * @param string $subscriptionId Id of the subscription, which is unique for a
461 * customer
462 * @param array $optParams Optional parameters.
463 * @return Google_Service_Reseller_Subscription
464 */
465 public function get($customerId, $subscriptionId, $optParams = array())
466 {
467 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
468 $params = array_merge($params, $optParams);
469 return $this->call('get', array($params), "Google_Service_Reseller_Subscription");
470 }
471
472 /**
473 * Creates/Transfers a subscription for the customer. (subscriptions.insert)
474 *
475 * @param string $customerId Id of the Customer
476 * @param Google_Subscription $postBody
477 * @param array $optParams Optional parameters.
478 *
479 * @opt_param string customerAuthToken An auth token needed for transferring a
480 * subscription. Can be generated at https://www.google.com/a/cpanel/customer-
481 * domain/TransferToken. Optional.
482 * @return Google_Service_Reseller_Subscription
483 */
484 public function insert($customerId, Google_Service_Reseller_Subscription $postBody, $optParams = array())
485 {
486 $params = array('customerId' => $customerId, 'postBody' => $postBody);
487 $params = array_merge($params, $optParams);
488 return $this->call('insert', array($params), "Google_Service_Reseller_Subscription");
489 }
490
491 /**
492 * Lists subscriptions of a reseller, optionally filtered by a customer name
493 * prefix. (subscriptions.listSubscriptions)
494 *
495 * @param array $optParams Optional parameters.
496 *
497 * @opt_param string customerAuthToken An auth token needed if the customer is
498 * not a resold customer of this reseller. Can be generated at
499 * https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional.
500 * @opt_param string customerId Id of the Customer
501 * @opt_param string customerNamePrefix Prefix of the customer's domain name by
502 * which the subscriptions should be filtered. Optional
503 * @opt_param string maxResults Maximum number of results to return
504 * @opt_param string pageToken Token to specify next page in the list
505 * @return Google_Service_Reseller_Subscriptions
506 */
507 public function listSubscriptions($optParams = array())
508 {
509 $params = array();
510 $params = array_merge($params, $optParams);
511 return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions");
512 }
513
514 /**
515 * Starts paid service of a trial subscription (subscriptions.startPaidService)
516 *
517 * @param string $customerId Id of the Customer
518 * @param string $subscriptionId Id of the subscription, which is unique for a
519 * customer
520 * @param array $optParams Optional parameters.
521 * @return Google_Service_Reseller_Subscription
522 */
523 public function startPaidService($customerId, $subscriptionId, $optParams = array())
524 {
525 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
526 $params = array_merge($params, $optParams);
527 return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription");
528 }
529
530 /**
531 * Suspends an active subscription (subscriptions.suspend)
532 *
533 * @param string $customerId Id of the Customer
534 * @param string $subscriptionId Id of the subscription, which is unique for a
535 * customer
536 * @param array $optParams Optional parameters.
537 * @return Google_Service_Reseller_Subscription
538 */
539 public function suspend($customerId, $subscriptionId, $optParams = array())
540 {
541 $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
542 $params = array_merge($params, $optParams);
543 return $this->call('suspend', array($params), "Google_Service_Reseller_Subscription");
544 }
545 }
546
547
548
549
550 class Google_Service_Reseller_Address extends Google_Model
551 {
552 protected $internal_gapi_mappings = array(
553 );
554 public $addressLine1;
555 public $addressLine2;
556 public $addressLine3;
557 public $contactName;
558 public $countryCode;
559 public $kind;
560 public $locality;
561 public $organizationName;
562 public $postalCode;
563 public $region;
564
565
566 public function setAddressLine1($addressLine1)
567 {
568 $this->addressLine1 = $addressLine1;
569 }
570 public function getAddressLine1()
571 {
572 return $this->addressLine1;
573 }
574 public function setAddressLine2($addressLine2)
575 {
576 $this->addressLine2 = $addressLine2;
577 }
578 public function getAddressLine2()
579 {
580 return $this->addressLine2;
581 }
582 public function setAddressLine3($addressLine3)
583 {
584 $this->addressLine3 = $addressLine3;
585 }
586 public function getAddressLine3()
587 {
588 return $this->addressLine3;
589 }
590 public function setContactName($contactName)
591 {
592 $this->contactName = $contactName;
593 }
594 public function getContactName()
595 {
596 return $this->contactName;
597 }
598 public function setCountryCode($countryCode)
599 {
600 $this->countryCode = $countryCode;
601 }
602 public function getCountryCode()
603 {
604 return $this->countryCode;
605 }
606 public function setKind($kind)
607 {
608 $this->kind = $kind;
609 }
610 public function getKind()
611 {
612 return $this->kind;
613 }
614 public function setLocality($locality)
615 {
616 $this->locality = $locality;
617 }
618 public function getLocality()
619 {
620 return $this->locality;
621 }
622 public function setOrganizationName($organizationName)
623 {
624 $this->organizationName = $organizationName;
625 }
626 public function getOrganizationName()
627 {
628 return $this->organizationName;
629 }
630 public function setPostalCode($postalCode)
631 {
632 $this->postalCode = $postalCode;
633 }
634 public function getPostalCode()
635 {
636 return $this->postalCode;
637 }
638 public function setRegion($region)
639 {
640 $this->region = $region;
641 }
642 public function getRegion()
643 {
644 return $this->region;
645 }
646 }
647
648 class Google_Service_Reseller_ChangePlanRequest extends Google_Model
649 {
650 protected $internal_gapi_mappings = array(
651 );
652 public $kind;
653 public $planName;
654 public $purchaseOrderId;
655 protected $seatsType = 'Google_Service_Reseller_Seats';
656 protected $seatsDataType = '';
657
658
659 public function setKind($kind)
660 {
661 $this->kind = $kind;
662 }
663 public function getKind()
664 {
665 return $this->kind;
666 }
667 public function setPlanName($planName)
668 {
669 $this->planName = $planName;
670 }
671 public function getPlanName()
672 {
673 return $this->planName;
674 }
675 public function setPurchaseOrderId($purchaseOrderId)
676 {
677 $this->purchaseOrderId = $purchaseOrderId;
678 }
679 public function getPurchaseOrderId()
680 {
681 return $this->purchaseOrderId;
682 }
683 public function setSeats(Google_Service_Reseller_Seats $seats)
684 {
685 $this->seats = $seats;
686 }
687 public function getSeats()
688 {
689 return $this->seats;
690 }
691 }
692
693 class Google_Service_Reseller_Customer extends Google_Model
694 {
695 protected $internal_gapi_mappings = array(
696 );
697 public $alternateEmail;
698 public $customerDomain;
699 public $customerDomainVerified;
700 public $customerId;
701 public $kind;
702 public $phoneNumber;
703 protected $postalAddressType = 'Google_Service_Reseller_Address';
704 protected $postalAddressDataType = '';
705 public $resourceUiUrl;
706
707
708 public function setAlternateEmail($alternateEmail)
709 {
710 $this->alternateEmail = $alternateEmail;
711 }
712 public function getAlternateEmail()
713 {
714 return $this->alternateEmail;
715 }
716 public function setCustomerDomain($customerDomain)
717 {
718 $this->customerDomain = $customerDomain;
719 }
720 public function getCustomerDomain()
721 {
722 return $this->customerDomain;
723 }
724 public function setCustomerDomainVerified($customerDomainVerified)
725 {
726 $this->customerDomainVerified = $customerDomainVerified;
727 }
728 public function getCustomerDomainVerified()
729 {
730 return $this->customerDomainVerified;
731 }
732 public function setCustomerId($customerId)
733 {
734 $this->customerId = $customerId;
735 }
736 public function getCustomerId()
737 {
738 return $this->customerId;
739 }
740 public function setKind($kind)
741 {
742 $this->kind = $kind;
743 }
744 public function getKind()
745 {
746 return $this->kind;
747 }
748 public function setPhoneNumber($phoneNumber)
749 {
750 $this->phoneNumber = $phoneNumber;
751 }
752 public function getPhoneNumber()
753 {
754 return $this->phoneNumber;
755 }
756 public function setPostalAddress(Google_Service_Reseller_Address $postalAddress)
757 {
758 $this->postalAddress = $postalAddress;
759 }
760 public function getPostalAddress()
761 {
762 return $this->postalAddress;
763 }
764 public function setResourceUiUrl($resourceUiUrl)
765 {
766 $this->resourceUiUrl = $resourceUiUrl;
767 }
768 public function getResourceUiUrl()
769 {
770 return $this->resourceUiUrl;
771 }
772 }
773
774 class Google_Service_Reseller_RenewalSettings extends Google_Model
775 {
776 protected $internal_gapi_mappings = array(
777 );
778 public $kind;
779 public $renewalType;
780
781
782 public function setKind($kind)
783 {
784 $this->kind = $kind;
785 }
786 public function getKind()
787 {
788 return $this->kind;
789 }
790 public function setRenewalType($renewalType)
791 {
792 $this->renewalType = $renewalType;
793 }
794 public function getRenewalType()
795 {
796 return $this->renewalType;
797 }
798 }
799
800 class Google_Service_Reseller_Seats extends Google_Model
801 {
802 protected $internal_gapi_mappings = array(
803 );
804 public $kind;
805 public $licensedNumberOfSeats;
806 public $maximumNumberOfSeats;
807 public $numberOfSeats;
808
809
810 public function setKind($kind)
811 {
812 $this->kind = $kind;
813 }
814 public function getKind()
815 {
816 return $this->kind;
817 }
818 public function setLicensedNumberOfSeats($licensedNumberOfSeats)
819 {
820 $this->licensedNumberOfSeats = $licensedNumberOfSeats;
821 }
822 public function getLicensedNumberOfSeats()
823 {
824 return $this->licensedNumberOfSeats;
825 }
826 public function setMaximumNumberOfSeats($maximumNumberOfSeats)
827 {
828 $this->maximumNumberOfSeats = $maximumNumberOfSeats;
829 }
830 public function getMaximumNumberOfSeats()
831 {
832 return $this->maximumNumberOfSeats;
833 }
834 public function setNumberOfSeats($numberOfSeats)
835 {
836 $this->numberOfSeats = $numberOfSeats;
837 }
838 public function getNumberOfSeats()
839 {
840 return $this->numberOfSeats;
841 }
842 }
843
844 class Google_Service_Reseller_Subscription extends Google_Collection
845 {
846 protected $collection_key = 'suspensionReasons';
847 protected $internal_gapi_mappings = array(
848 );
849 public $billingMethod;
850 public $creationTime;
851 public $customerId;
852 public $kind;
853 protected $planType = 'Google_Service_Reseller_SubscriptionPlan';
854 protected $planDataType = '';
855 public $purchaseOrderId;
856 protected $renewalSettingsType = 'Google_Service_Reseller_RenewalSettings';
857 protected $renewalSettingsDataType = '';
858 public $resourceUiUrl;
859 protected $seatsType = 'Google_Service_Reseller_Seats';
860 protected $seatsDataType = '';
861 public $skuId;
862 public $status;
863 public $subscriptionId;
864 public $suspensionReasons;
865 protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo';
866 protected $transferInfoDataType = '';
867 protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings';
868 protected $trialSettingsDataType = '';
869
870
871 public function setBillingMethod($billingMethod)
872 {
873 $this->billingMethod = $billingMethod;
874 }
875 public function getBillingMethod()
876 {
877 return $this->billingMethod;
878 }
879 public function setCreationTime($creationTime)
880 {
881 $this->creationTime = $creationTime;
882 }
883 public function getCreationTime()
884 {
885 return $this->creationTime;
886 }
887 public function setCustomerId($customerId)
888 {
889 $this->customerId = $customerId;
890 }
891 public function getCustomerId()
892 {
893 return $this->customerId;
894 }
895 public function setKind($kind)
896 {
897 $this->kind = $kind;
898 }
899 public function getKind()
900 {
901 return $this->kind;
902 }
903 public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan)
904 {
905 $this->plan = $plan;
906 }
907 public function getPlan()
908 {
909 return $this->plan;
910 }
911 public function setPurchaseOrderId($purchaseOrderId)
912 {
913 $this->purchaseOrderId = $purchaseOrderId;
914 }
915 public function getPurchaseOrderId()
916 {
917 return $this->purchaseOrderId;
918 }
919 public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $renewalSettings)
920 {
921 $this->renewalSettings = $renewalSettings;
922 }
923 public function getRenewalSettings()
924 {
925 return $this->renewalSettings;
926 }
927 public function setResourceUiUrl($resourceUiUrl)
928 {
929 $this->resourceUiUrl = $resourceUiUrl;
930 }
931 public function getResourceUiUrl()
932 {
933 return $this->resourceUiUrl;
934 }
935 public function setSeats(Google_Service_Reseller_Seats $seats)
936 {
937 $this->seats = $seats;
938 }
939 public function getSeats()
940 {
941 return $this->seats;
942 }
943 public function setSkuId($skuId)
944 {
945 $this->skuId = $skuId;
946 }
947 public function getSkuId()
948 {
949 return $this->skuId;
950 }
951 public function setStatus($status)
952 {
953 $this->status = $status;
954 }
955 public function getStatus()
956 {
957 return $this->status;
958 }
959 public function setSubscriptionId($subscriptionId)
960 {
961 $this->subscriptionId = $subscriptionId;
962 }
963 public function getSubscriptionId()
964 {
965 return $this->subscriptionId;
966 }
967 public function setSuspensionReasons($suspensionReasons)
968 {
969 $this->suspensionReasons = $suspensionReasons;
970 }
971 public function getSuspensionReasons()
972 {
973 return $this->suspensionReasons;
974 }
975 public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo)
976 {
977 $this->transferInfo = $transferInfo;
978 }
979 public function getTransferInfo()
980 {
981 return $this->transferInfo;
982 }
983 public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings $trialSettings)
984 {
985 $this->trialSettings = $trialSettings;
986 }
987 public function getTrialSettings()
988 {
989 return $this->trialSettings;
990 }
991 }
992
993 class Google_Service_Reseller_SubscriptionPlan extends Google_Model
994 {
995 protected $internal_gapi_mappings = array(
996 );
997 protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval';
998 protected $commitmentIntervalDataType = '';
999 public $isCommitmentPlan;
1000 public $planName;
1001
1002
1003 public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval)
1004 {
1005 $this->commitmentInterval = $commitmentInterval;
1006 }
1007 public function getCommitmentInterval()
1008 {
1009 return $this->commitmentInterval;
1010 }
1011 public function setIsCommitmentPlan($isCommitmentPlan)
1012 {
1013 $this->isCommitmentPlan = $isCommitmentPlan;
1014 }
1015 public function getIsCommitmentPlan()
1016 {
1017 return $this->isCommitmentPlan;
1018 }
1019 public function setPlanName($planName)
1020 {
1021 $this->planName = $planName;
1022 }
1023 public function getPlanName()
1024 {
1025 return $this->planName;
1026 }
1027 }
1028
1029 class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model
1030 {
1031 protected $internal_gapi_mappings = array(
1032 );
1033 public $endTime;
1034 public $startTime;
1035
1036
1037 public function setEndTime($endTime)
1038 {
1039 $this->endTime = $endTime;
1040 }
1041 public function getEndTime()
1042 {
1043 return $this->endTime;
1044 }
1045 public function setStartTime($startTime)
1046 {
1047 $this->startTime = $startTime;
1048 }
1049 public function getStartTime()
1050 {
1051 return $this->startTime;
1052 }
1053 }
1054
1055 class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model
1056 {
1057 protected $internal_gapi_mappings = array(
1058 );
1059 public $minimumTransferableSeats;
1060 public $transferabilityExpirationTime;
1061
1062
1063 public function setMinimumTransferableSeats($minimumTransferableSeats)
1064 {
1065 $this->minimumTransferableSeats = $minimumTransferableSeats;
1066 }
1067 public function getMinimumTransferableSeats()
1068 {
1069 return $this->minimumTransferableSeats;
1070 }
1071 public function setTransferabilityExpirationTime($transferabilityExpirationTime)
1072 {
1073 $this->transferabilityExpirationTime = $transferabilityExpirationTime;
1074 }
1075 public function getTransferabilityExpirationTime()
1076 {
1077 return $this->transferabilityExpirationTime;
1078 }
1079 }
1080
1081 class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model
1082 {
1083 protected $internal_gapi_mappings = array(
1084 );
1085 public $isInTrial;
1086 public $trialEndTime;
1087
1088
1089 public function setIsInTrial($isInTrial)
1090 {
1091 $this->isInTrial = $isInTrial;
1092 }
1093 public function getIsInTrial()
1094 {
1095 return $this->isInTrial;
1096 }
1097 public function setTrialEndTime($trialEndTime)
1098 {
1099 $this->trialEndTime = $trialEndTime;
1100 }
1101 public function getTrialEndTime()
1102 {
1103 return $this->trialEndTime;
1104 }
1105 }
1106
1107 class Google_Service_Reseller_Subscriptions extends Google_Collection
1108 {
1109 protected $collection_key = 'subscriptions';
1110 protected $internal_gapi_mappings = array(
1111 );
1112 public $kind;
1113 public $nextPageToken;
1114 protected $subscriptionsType = 'Google_Service_Reseller_Subscription';
1115 protected $subscriptionsDataType = 'array';
1116
1117
1118 public function setKind($kind)
1119 {
1120 $this->kind = $kind;
1121 }
1122 public function getKind()
1123 {
1124 return $this->kind;
1125 }
1126 public function setNextPageToken($nextPageToken)
1127 {
1128 $this->nextPageToken = $nextPageToken;
1129 }
1130 public function getNextPageToken()
1131 {
1132 return $this->nextPageToken;
1133 }
1134 public function setSubscriptions($subscriptions)
1135 {
1136 $this->subscriptions = $subscriptions;
1137 }
1138 public function getSubscriptions()
1139 {
1140 return $this->subscriptions;
1141 }
1142 }
1143