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