PluginProbe
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) / 1.0.3
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) v1.0.3
9.1.2 9.1.1 9.1.0 9.0.2 9.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 All 153 releases
wp-analytify / lib / Google / Service / Reseller.php

Reseller.php in Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) 1.0.3, at lib/Google/Service/Reseller.php

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