wp-database-backup
/
includes
/
admin
/
Destination
/
Google
/
google-api-php-client
/
src
/
contrib
/
Google_ResellerService.php
Google_ResellerService.php in WP Database Backup – Unlimited Database & Files Backup by Backup for WP 6.11, at includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_ResellerService.php
| 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 | /** |
| 18 | * The "customers" collection of methods. |
| 19 | * Typical usage is: |
| 20 | * <code> |
| 21 | * $resellerService = new Google_ResellerService(...); |
| 22 | * $customers = $resellerService->customers; |
| 23 | * </code> |
| 24 | */ |
| 25 | class Google_CustomersServiceResource extends Google_ServiceResource { |
| 26 | |
| 27 | /** |
| 28 | * Gets a customer resource if one exists and is owned by the reseller. (customers.get) |
| 29 | * |
| 30 | * @param string $customerId Id of the Customer |
| 31 | * @param array $optParams Optional parameters. |
| 32 | * @return Google_Customer |
| 33 | */ |
| 34 | public function get($customerId, $optParams = array()) { |
| 35 | $params = array('customerId' => $customerId); |
| 36 | $params = array_merge($params, $optParams); |
| 37 | $data = $this->__call('get', array($params)); |
| 38 | if ($this->useObjects()) { |
| 39 | return new Google_Customer($data); |
| 40 | } else { |
| 41 | return $data; |
| 42 | } |
| 43 | } |
| 44 | /** |
| 45 | * Creates a customer resource if one does not already exist. (customers.insert) |
| 46 | * |
| 47 | * @param Google_Customer $postBody |
| 48 | * @param array $optParams Optional parameters. |
| 49 | * |
| 50 | * @opt_param string customerAuthToken An auth token needed for inserting a customer for which domain already exists. Can be generated at https://www.google.com/a/cpanel//TransferToken. Optional. |
| 51 | * @return Google_Customer |
| 52 | */ |
| 53 | public function insert(Google_Customer $postBody, $optParams = array()) { |
| 54 | $params = array('postBody' => $postBody); |
| 55 | $params = array_merge($params, $optParams); |
| 56 | $data = $this->__call('insert', array($params)); |
| 57 | if ($this->useObjects()) { |
| 58 | return new Google_Customer($data); |
| 59 | } else { |
| 60 | return $data; |
| 61 | } |
| 62 | } |
| 63 | /** |
| 64 | * Update a customer resource if one it exists and is owned by the reseller. This method supports |
| 65 | * patch semantics. (customers.patch) |
| 66 | * |
| 67 | * @param string $customerId Id of the Customer |
| 68 | * @param Google_Customer $postBody |
| 69 | * @param array $optParams Optional parameters. |
| 70 | * @return Google_Customer |
| 71 | */ |
| 72 | public function patch($customerId, Google_Customer $postBody, $optParams = array()) { |
| 73 | $params = array('customerId' => $customerId, 'postBody' => $postBody); |
| 74 | $params = array_merge($params, $optParams); |
| 75 | $data = $this->__call('patch', array($params)); |
| 76 | if ($this->useObjects()) { |
| 77 | return new Google_Customer($data); |
| 78 | } else { |
| 79 | return $data; |
| 80 | } |
| 81 | } |
| 82 | /** |
| 83 | * Update a customer resource if one it exists and is owned by the reseller. (customers.update) |
| 84 | * |
| 85 | * @param string $customerId Id of the Customer |
| 86 | * @param Google_Customer $postBody |
| 87 | * @param array $optParams Optional parameters. |
| 88 | * @return Google_Customer |
| 89 | */ |
| 90 | public function update($customerId, Google_Customer $postBody, $optParams = array()) { |
| 91 | $params = array('customerId' => $customerId, 'postBody' => $postBody); |
| 92 | $params = array_merge($params, $optParams); |
| 93 | $data = $this->__call('update', array($params)); |
| 94 | if ($this->useObjects()) { |
| 95 | return new Google_Customer($data); |
| 96 | } else { |
| 97 | return $data; |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * The "subscriptions" collection of methods. |
| 104 | * Typical usage is: |
| 105 | * <code> |
| 106 | * $resellerService = new Google_ResellerService(...); |
| 107 | * $subscriptions = $resellerService->subscriptions; |
| 108 | * </code> |
| 109 | */ |
| 110 | class Google_SubscriptionsServiceResource extends Google_ServiceResource { |
| 111 | |
| 112 | /** |
| 113 | * Changes the plan of a subscription (subscriptions.changePlan) |
| 114 | * |
| 115 | * @param string $customerId Id of the Customer |
| 116 | * @param string $subscriptionId Id of the subscription, which is unique for a customer |
| 117 | * @param Google_ChangePlanRequest $postBody |
| 118 | * @param array $optParams Optional parameters. |
| 119 | * @return Google_Subscription |
| 120 | */ |
| 121 | public function changePlan($customerId, $subscriptionId, Google_ChangePlanRequest $postBody, $optParams = array()) { |
| 122 | $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); |
| 123 | $params = array_merge($params, $optParams); |
| 124 | $data = $this->__call('changePlan', array($params)); |
| 125 | if ($this->useObjects()) { |
| 126 | return new Google_Subscription($data); |
| 127 | } else { |
| 128 | return $data; |
| 129 | } |
| 130 | } |
| 131 | /** |
| 132 | * Changes the renewal settings of a subscription (subscriptions.changeRenewalSettings) |
| 133 | * |
| 134 | * @param string $customerId Id of the Customer |
| 135 | * @param string $subscriptionId Id of the subscription, which is unique for a customer |
| 136 | * @param Google_RenewalSettings $postBody |
| 137 | * @param array $optParams Optional parameters. |
| 138 | * @return Google_Subscription |
| 139 | */ |
| 140 | public function changeRenewalSettings($customerId, $subscriptionId, Google_RenewalSettings $postBody, $optParams = array()) { |
| 141 | $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); |
| 142 | $params = array_merge($params, $optParams); |
| 143 | $data = $this->__call('changeRenewalSettings', array($params)); |
| 144 | if ($this->useObjects()) { |
| 145 | return new Google_Subscription($data); |
| 146 | } else { |
| 147 | return $data; |
| 148 | } |
| 149 | } |
| 150 | /** |
| 151 | * Changes the seats configuration of a subscription (subscriptions.changeSeats) |
| 152 | * |
| 153 | * @param string $customerId Id of the Customer |
| 154 | * @param string $subscriptionId Id of the subscription, which is unique for a customer |
| 155 | * @param Google_Seats $postBody |
| 156 | * @param array $optParams Optional parameters. |
| 157 | * @return Google_Subscription |
| 158 | */ |
| 159 | public function changeSeats($customerId, $subscriptionId, Google_Seats $postBody, $optParams = array()) { |
| 160 | $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); |
| 161 | $params = array_merge($params, $optParams); |
| 162 | $data = $this->__call('changeSeats', array($params)); |
| 163 | if ($this->useObjects()) { |
| 164 | return new Google_Subscription($data); |
| 165 | } else { |
| 166 | return $data; |
| 167 | } |
| 168 | } |
| 169 | /** |
| 170 | * Cancels/Downgrades a subscription. (subscriptions.delete) |
| 171 | * |
| 172 | * @param string $customerId Id of the Customer |
| 173 | * @param string $subscriptionId Id of the subscription, which is unique for a customer |
| 174 | * @param string $deletionType Whether the subscription is to be fully cancelled or downgraded |
| 175 | * @param array $optParams Optional parameters. |
| 176 | */ |
| 177 | public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) { |
| 178 | $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType); |
| 179 | $params = array_merge($params, $optParams); |
| 180 | $data = $this->__call('delete', array($params)); |
| 181 | return $data; |
| 182 | } |
| 183 | /** |
| 184 | * Gets a subscription of the customer. (subscriptions.get) |
| 185 | * |
| 186 | * @param string $customerId Id of the Customer |
| 187 | * @param string $subscriptionId Id of the subscription, which is unique for a customer |
| 188 | * @param array $optParams Optional parameters. |
| 189 | * @return Google_Subscription |
| 190 | */ |
| 191 | public function get($customerId, $subscriptionId, $optParams = array()) { |
| 192 | $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); |
| 193 | $params = array_merge($params, $optParams); |
| 194 | $data = $this->__call('get', array($params)); |
| 195 | if ($this->useObjects()) { |
| 196 | return new Google_Subscription($data); |
| 197 | } else { |
| 198 | return $data; |
| 199 | } |
| 200 | } |
| 201 | /** |
| 202 | * Creates/Transfers a subscription for the customer. (subscriptions.insert) |
| 203 | * |
| 204 | * @param string $customerId Id of the Customer |
| 205 | * @param Google_Subscription $postBody |
| 206 | * @param array $optParams Optional parameters. |
| 207 | * |
| 208 | * @opt_param string customerAuthToken An auth token needed for transferring a subscription. Can be generated at https://www.google.com/a/cpanel/customer-domain/TransferToken. Optional. |
| 209 | * @return Google_Subscription |
| 210 | */ |
| 211 | public function insert($customerId, Google_Subscription $postBody, $optParams = array()) { |
| 212 | $params = array('customerId' => $customerId, 'postBody' => $postBody); |
| 213 | $params = array_merge($params, $optParams); |
| 214 | $data = $this->__call('insert', array($params)); |
| 215 | if ($this->useObjects()) { |
| 216 | return new Google_Subscription($data); |
| 217 | } else { |
| 218 | return $data; |
| 219 | } |
| 220 | } |
| 221 | /** |
| 222 | * Lists subscriptions of a reseller, optionally filtered by a customer name prefix. |
| 223 | * (subscriptions.list) |
| 224 | * |
| 225 | * @param array $optParams Optional parameters. |
| 226 | * |
| 227 | * @opt_param string customerAuthToken An auth token needed if the customer is not a resold customer of this reseller. Can be generated at https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. |
| 228 | * @opt_param string customerId Id of the Customer |
| 229 | * @opt_param string customerNamePrefix Prefix of the customer's domain name by which the subscriptions should be filtered. Optional |
| 230 | * @opt_param string maxResults Maximum number of results to return |
| 231 | * @opt_param string pageToken Token to specify next page in the list |
| 232 | * @return Google_Subscriptions |
| 233 | */ |
| 234 | public function listSubscriptions($optParams = array()) { |
| 235 | $params = array(); |
| 236 | $params = array_merge($params, $optParams); |
| 237 | $data = $this->__call('list', array($params)); |
| 238 | if ($this->useObjects()) { |
| 239 | return new Google_Subscriptions($data); |
| 240 | } else { |
| 241 | return $data; |
| 242 | } |
| 243 | } |
| 244 | /** |
| 245 | * Starts paid service of a trial subscription (subscriptions.startPaidService) |
| 246 | * |
| 247 | * @param string $customerId Id of the Customer |
| 248 | * @param string $subscriptionId Id of the subscription, which is unique for a customer |
| 249 | * @param array $optParams Optional parameters. |
| 250 | * @return Google_Subscription |
| 251 | */ |
| 252 | public function startPaidService($customerId, $subscriptionId, $optParams = array()) { |
| 253 | $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); |
| 254 | $params = array_merge($params, $optParams); |
| 255 | $data = $this->__call('startPaidService', array($params)); |
| 256 | if ($this->useObjects()) { |
| 257 | return new Google_Subscription($data); |
| 258 | } else { |
| 259 | return $data; |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * Service definition for Google_Reseller (v1). |
| 266 | * |
| 267 | * <p> |
| 268 | * Lets you create and manage your customers and their subscriptions. |
| 269 | * </p> |
| 270 | * |
| 271 | * <p> |
| 272 | * For more information about this service, see the |
| 273 | * <a href="https://developers.google.com/google-apps/reseller/" target="_blank">API Documentation</a> |
| 274 | * </p> |
| 275 | * |
| 276 | * @author Google, Inc. |
| 277 | */ |
| 278 | class Google_ResellerService extends Google_Service { |
| 279 | public $customers; |
| 280 | public $subscriptions; |
| 281 | /** |
| 282 | * Constructs the internal representation of the Reseller service. |
| 283 | * |
| 284 | * @param Google_Client $client |
| 285 | */ |
| 286 | public function __construct(Google_Client $client) { |
| 287 | $this->servicePath = 'apps/reseller/v1/'; |
| 288 | $this->version = 'v1'; |
| 289 | $this->serviceName = 'reseller'; |
| 290 | |
| 291 | $client->addService($this->serviceName, $this->version); |
| 292 | $this->customers = new Google_CustomersServiceResource($this, $this->serviceName, 'customers', json_decode('{"methods": {"get": {"id": "reseller.customers.get", "path": "customers/{customerId}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Customer"}}, "insert": {"id": "reseller.customers.insert", "path": "customers", "httpMethod": "POST", "parameters": {"customerAuthToken": {"type": "string", "location": "query"}}, "request": {"$ref": "Customer"}, "response": {"$ref": "Customer"}}, "patch": {"id": "reseller.customers.patch", "path": "customers/{customerId}", "httpMethod": "PATCH", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Customer"}, "response": {"$ref": "Customer"}}, "update": {"id": "reseller.customers.update", "path": "customers/{customerId}", "httpMethod": "PUT", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Customer"}, "response": {"$ref": "Customer"}}}}', true)); |
| 293 | $this->subscriptions = new Google_SubscriptionsServiceResource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"changePlan": {"id": "reseller.subscriptions.changePlan", "path": "customers/{customerId}/subscriptions/{subscriptionId}/changePlan", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ChangePlanRequest"}, "response": {"$ref": "Subscription"}}, "changeRenewalSettings": {"id": "reseller.subscriptions.changeRenewalSettings", "path": "customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "RenewalSettings"}, "response": {"$ref": "Subscription"}}, "changeSeats": {"id": "reseller.subscriptions.changeSeats", "path": "customers/{customerId}/subscriptions/{subscriptionId}/changeSeats", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Seats"}, "response": {"$ref": "Subscription"}}, "delete": {"id": "reseller.subscriptions.delete", "path": "customers/{customerId}/subscriptions/{subscriptionId}", "httpMethod": "DELETE", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "deletionType": {"type": "string", "required": true, "enum": ["cancel", "downgrade", "suspend"], "location": "query"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "reseller.subscriptions.get", "path": "customers/{customerId}/subscriptions/{subscriptionId}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Subscription"}}, "insert": {"id": "reseller.subscriptions.insert", "path": "customers/{customerId}/subscriptions", "httpMethod": "POST", "parameters": {"customerAuthToken": {"type": "string", "location": "query"}, "customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}}, "list": {"id": "reseller.subscriptions.list", "path": "subscriptions", "httpMethod": "GET", "parameters": {"customerAuthToken": {"type": "string", "location": "query"}, "customerId": {"type": "string", "location": "query"}, "customerNamePrefix": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "Subscriptions"}}, "startPaidService": {"id": "reseller.subscriptions.startPaidService", "path": "customers/{customerId}/subscriptions/{subscriptionId}/startPaidService", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Subscription"}}}}', true)); |
| 294 | |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | |
| 299 | |
| 300 | class Google_Address extends Google_Model { |
| 301 | public $addressLine1; |
| 302 | public $addressLine2; |
| 303 | public $addressLine3; |
| 304 | public $contactName; |
| 305 | public $countryCode; |
| 306 | public $kind; |
| 307 | public $locality; |
| 308 | public $organizationName; |
| 309 | public $postalCode; |
| 310 | public $region; |
| 311 | public function setAddressLine1( $addressLine1) { |
| 312 | $this->addressLine1 = $addressLine1; |
| 313 | } |
| 314 | public function getAddressLine1() { |
| 315 | return $this->addressLine1; |
| 316 | } |
| 317 | public function setAddressLine2( $addressLine2) { |
| 318 | $this->addressLine2 = $addressLine2; |
| 319 | } |
| 320 | public function getAddressLine2() { |
| 321 | return $this->addressLine2; |
| 322 | } |
| 323 | public function setAddressLine3( $addressLine3) { |
| 324 | $this->addressLine3 = $addressLine3; |
| 325 | } |
| 326 | public function getAddressLine3() { |
| 327 | return $this->addressLine3; |
| 328 | } |
| 329 | public function setContactName( $contactName) { |
| 330 | $this->contactName = $contactName; |
| 331 | } |
| 332 | public function getContactName() { |
| 333 | return $this->contactName; |
| 334 | } |
| 335 | public function setCountryCode( $countryCode) { |
| 336 | $this->countryCode = $countryCode; |
| 337 | } |
| 338 | public function getCountryCode() { |
| 339 | return $this->countryCode; |
| 340 | } |
| 341 | public function setKind( $kind) { |
| 342 | $this->kind = $kind; |
| 343 | } |
| 344 | public function getKind() { |
| 345 | return $this->kind; |
| 346 | } |
| 347 | public function setLocality( $locality) { |
| 348 | $this->locality = $locality; |
| 349 | } |
| 350 | public function getLocality() { |
| 351 | return $this->locality; |
| 352 | } |
| 353 | public function setOrganizationName( $organizationName) { |
| 354 | $this->organizationName = $organizationName; |
| 355 | } |
| 356 | public function getOrganizationName() { |
| 357 | return $this->organizationName; |
| 358 | } |
| 359 | public function setPostalCode( $postalCode) { |
| 360 | $this->postalCode = $postalCode; |
| 361 | } |
| 362 | public function getPostalCode() { |
| 363 | return $this->postalCode; |
| 364 | } |
| 365 | public function setRegion( $region) { |
| 366 | $this->region = $region; |
| 367 | } |
| 368 | public function getRegion() { |
| 369 | return $this->region; |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | class Google_ChangePlanRequest extends Google_Model { |
| 374 | public $kind; |
| 375 | public $planName; |
| 376 | public $purchaseOrderId; |
| 377 | protected $__seatsType = 'Google_Seats'; |
| 378 | protected $__seatsDataType = ''; |
| 379 | public $seats; |
| 380 | public function setKind( $kind) { |
| 381 | $this->kind = $kind; |
| 382 | } |
| 383 | public function getKind() { |
| 384 | return $this->kind; |
| 385 | } |
| 386 | public function setPlanName( $planName) { |
| 387 | $this->planName = $planName; |
| 388 | } |
| 389 | public function getPlanName() { |
| 390 | return $this->planName; |
| 391 | } |
| 392 | public function setPurchaseOrderId( $purchaseOrderId) { |
| 393 | $this->purchaseOrderId = $purchaseOrderId; |
| 394 | } |
| 395 | public function getPurchaseOrderId() { |
| 396 | return $this->purchaseOrderId; |
| 397 | } |
| 398 | public function setSeats(Google_Seats $seats) { |
| 399 | $this->seats = $seats; |
| 400 | } |
| 401 | public function getSeats() { |
| 402 | return $this->seats; |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | class Google_Customer extends Google_Model { |
| 407 | public $alternateEmail; |
| 408 | public $customerDomain; |
| 409 | public $customerId; |
| 410 | public $kind; |
| 411 | public $phoneNumber; |
| 412 | protected $__postalAddressType = 'Google_Address'; |
| 413 | protected $__postalAddressDataType = ''; |
| 414 | public $postalAddress; |
| 415 | public $resourceUiUrl; |
| 416 | public function setAlternateEmail( $alternateEmail) { |
| 417 | $this->alternateEmail = $alternateEmail; |
| 418 | } |
| 419 | public function getAlternateEmail() { |
| 420 | return $this->alternateEmail; |
| 421 | } |
| 422 | public function setCustomerDomain( $customerDomain) { |
| 423 | $this->customerDomain = $customerDomain; |
| 424 | } |
| 425 | public function getCustomerDomain() { |
| 426 | return $this->customerDomain; |
| 427 | } |
| 428 | public function setCustomerId( $customerId) { |
| 429 | $this->customerId = $customerId; |
| 430 | } |
| 431 | public function getCustomerId() { |
| 432 | return $this->customerId; |
| 433 | } |
| 434 | public function setKind( $kind) { |
| 435 | $this->kind = $kind; |
| 436 | } |
| 437 | public function getKind() { |
| 438 | return $this->kind; |
| 439 | } |
| 440 | public function setPhoneNumber( $phoneNumber) { |
| 441 | $this->phoneNumber = $phoneNumber; |
| 442 | } |
| 443 | public function getPhoneNumber() { |
| 444 | return $this->phoneNumber; |
| 445 | } |
| 446 | public function setPostalAddress(Google_Address $postalAddress) { |
| 447 | $this->postalAddress = $postalAddress; |
| 448 | } |
| 449 | public function getPostalAddress() { |
| 450 | return $this->postalAddress; |
| 451 | } |
| 452 | public function setResourceUiUrl( $resourceUiUrl) { |
| 453 | $this->resourceUiUrl = $resourceUiUrl; |
| 454 | } |
| 455 | public function getResourceUiUrl() { |
| 456 | return $this->resourceUiUrl; |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | class Google_RenewalSettings extends Google_Model { |
| 461 | public $kind; |
| 462 | public $renewalType; |
| 463 | public function setKind( $kind) { |
| 464 | $this->kind = $kind; |
| 465 | } |
| 466 | public function getKind() { |
| 467 | return $this->kind; |
| 468 | } |
| 469 | public function setRenewalType( $renewalType) { |
| 470 | $this->renewalType = $renewalType; |
| 471 | } |
| 472 | public function getRenewalType() { |
| 473 | return $this->renewalType; |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | class Google_Seats extends Google_Model { |
| 478 | public $kind; |
| 479 | public $maximumNumberOfSeats; |
| 480 | public $numberOfSeats; |
| 481 | public function setKind( $kind) { |
| 482 | $this->kind = $kind; |
| 483 | } |
| 484 | public function getKind() { |
| 485 | return $this->kind; |
| 486 | } |
| 487 | public function setMaximumNumberOfSeats( $maximumNumberOfSeats) { |
| 488 | $this->maximumNumberOfSeats = $maximumNumberOfSeats; |
| 489 | } |
| 490 | public function getMaximumNumberOfSeats() { |
| 491 | return $this->maximumNumberOfSeats; |
| 492 | } |
| 493 | public function setNumberOfSeats( $numberOfSeats) { |
| 494 | $this->numberOfSeats = $numberOfSeats; |
| 495 | } |
| 496 | public function getNumberOfSeats() { |
| 497 | return $this->numberOfSeats; |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | class Google_Subscription extends Google_Model { |
| 502 | public $creationTime; |
| 503 | public $customerId; |
| 504 | public $kind; |
| 505 | protected $__planType = 'Google_SubscriptionPlan'; |
| 506 | protected $__planDataType = ''; |
| 507 | public $plan; |
| 508 | public $purchaseOrderId; |
| 509 | protected $__renewalSettingsType = 'Google_RenewalSettings'; |
| 510 | protected $__renewalSettingsDataType = ''; |
| 511 | public $renewalSettings; |
| 512 | public $resourceUiUrl; |
| 513 | protected $__seatsType = 'Google_Seats'; |
| 514 | protected $__seatsDataType = ''; |
| 515 | public $seats; |
| 516 | public $skuId; |
| 517 | public $status; |
| 518 | public $subscriptionId; |
| 519 | protected $__transferInfoType = 'Google_SubscriptionTransferInfo'; |
| 520 | protected $__transferInfoDataType = ''; |
| 521 | public $transferInfo; |
| 522 | protected $__trialSettingsType = 'Google_SubscriptionTrialSettings'; |
| 523 | protected $__trialSettingsDataType = ''; |
| 524 | public $trialSettings; |
| 525 | public function setCreationTime( $creationTime) { |
| 526 | $this->creationTime = $creationTime; |
| 527 | } |
| 528 | public function getCreationTime() { |
| 529 | return $this->creationTime; |
| 530 | } |
| 531 | public function setCustomerId( $customerId) { |
| 532 | $this->customerId = $customerId; |
| 533 | } |
| 534 | public function getCustomerId() { |
| 535 | return $this->customerId; |
| 536 | } |
| 537 | public function setKind( $kind) { |
| 538 | $this->kind = $kind; |
| 539 | } |
| 540 | public function getKind() { |
| 541 | return $this->kind; |
| 542 | } |
| 543 | public function setPlan(Google_SubscriptionPlan $plan) { |
| 544 | $this->plan = $plan; |
| 545 | } |
| 546 | public function getPlan() { |
| 547 | return $this->plan; |
| 548 | } |
| 549 | public function setPurchaseOrderId( $purchaseOrderId) { |
| 550 | $this->purchaseOrderId = $purchaseOrderId; |
| 551 | } |
| 552 | public function getPurchaseOrderId() { |
| 553 | return $this->purchaseOrderId; |
| 554 | } |
| 555 | public function setRenewalSettings(Google_RenewalSettings $renewalSettings) { |
| 556 | $this->renewalSettings = $renewalSettings; |
| 557 | } |
| 558 | public function getRenewalSettings() { |
| 559 | return $this->renewalSettings; |
| 560 | } |
| 561 | public function setResourceUiUrl( $resourceUiUrl) { |
| 562 | $this->resourceUiUrl = $resourceUiUrl; |
| 563 | } |
| 564 | public function getResourceUiUrl() { |
| 565 | return $this->resourceUiUrl; |
| 566 | } |
| 567 | public function setSeats(Google_Seats $seats) { |
| 568 | $this->seats = $seats; |
| 569 | } |
| 570 | public function getSeats() { |
| 571 | return $this->seats; |
| 572 | } |
| 573 | public function setSkuId( $skuId) { |
| 574 | $this->skuId = $skuId; |
| 575 | } |
| 576 | public function getSkuId() { |
| 577 | return $this->skuId; |
| 578 | } |
| 579 | public function setStatus( $status) { |
| 580 | $this->status = $status; |
| 581 | } |
| 582 | public function getStatus() { |
| 583 | return $this->status; |
| 584 | } |
| 585 | public function setSubscriptionId( $subscriptionId) { |
| 586 | $this->subscriptionId = $subscriptionId; |
| 587 | } |
| 588 | public function getSubscriptionId() { |
| 589 | return $this->subscriptionId; |
| 590 | } |
| 591 | public function setTransferInfo(Google_SubscriptionTransferInfo $transferInfo) { |
| 592 | $this->transferInfo = $transferInfo; |
| 593 | } |
| 594 | public function getTransferInfo() { |
| 595 | return $this->transferInfo; |
| 596 | } |
| 597 | public function setTrialSettings(Google_SubscriptionTrialSettings $trialSettings) { |
| 598 | $this->trialSettings = $trialSettings; |
| 599 | } |
| 600 | public function getTrialSettings() { |
| 601 | return $this->trialSettings; |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | class Google_SubscriptionPlan extends Google_Model { |
| 606 | protected $__commitmentIntervalType = 'Google_SubscriptionPlanCommitmentInterval'; |
| 607 | protected $__commitmentIntervalDataType = ''; |
| 608 | public $commitmentInterval; |
| 609 | public $isCommitmentPlan; |
| 610 | public $planName; |
| 611 | public function setCommitmentInterval(Google_SubscriptionPlanCommitmentInterval $commitmentInterval) { |
| 612 | $this->commitmentInterval = $commitmentInterval; |
| 613 | } |
| 614 | public function getCommitmentInterval() { |
| 615 | return $this->commitmentInterval; |
| 616 | } |
| 617 | public function setIsCommitmentPlan( $isCommitmentPlan) { |
| 618 | $this->isCommitmentPlan = $isCommitmentPlan; |
| 619 | } |
| 620 | public function getIsCommitmentPlan() { |
| 621 | return $this->isCommitmentPlan; |
| 622 | } |
| 623 | public function setPlanName( $planName) { |
| 624 | $this->planName = $planName; |
| 625 | } |
| 626 | public function getPlanName() { |
| 627 | return $this->planName; |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | class Google_SubscriptionPlanCommitmentInterval extends Google_Model { |
| 632 | public $endTime; |
| 633 | public $startTime; |
| 634 | public function setEndTime( $endTime) { |
| 635 | $this->endTime = $endTime; |
| 636 | } |
| 637 | public function getEndTime() { |
| 638 | return $this->endTime; |
| 639 | } |
| 640 | public function setStartTime( $startTime) { |
| 641 | $this->startTime = $startTime; |
| 642 | } |
| 643 | public function getStartTime() { |
| 644 | return $this->startTime; |
| 645 | } |
| 646 | } |
| 647 | |
| 648 | class Google_SubscriptionTransferInfo extends Google_Model { |
| 649 | public $transferabilityExpirationTime; |
| 650 | public function setTransferabilityExpirationTime( $transferabilityExpirationTime) { |
| 651 | $this->transferabilityExpirationTime = $transferabilityExpirationTime; |
| 652 | } |
| 653 | public function getTransferabilityExpirationTime() { |
| 654 | return $this->transferabilityExpirationTime; |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | class Google_SubscriptionTrialSettings extends Google_Model { |
| 659 | public $isInTrial; |
| 660 | public $trialEndTime; |
| 661 | public function setIsInTrial( $isInTrial) { |
| 662 | $this->isInTrial = $isInTrial; |
| 663 | } |
| 664 | public function getIsInTrial() { |
| 665 | return $this->isInTrial; |
| 666 | } |
| 667 | public function setTrialEndTime( $trialEndTime) { |
| 668 | $this->trialEndTime = $trialEndTime; |
| 669 | } |
| 670 | public function getTrialEndTime() { |
| 671 | return $this->trialEndTime; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | class Google_Subscriptions extends Google_Model { |
| 676 | public $kind; |
| 677 | public $nextPageToken; |
| 678 | protected $__subscriptionsType = 'Google_Subscription'; |
| 679 | protected $__subscriptionsDataType = 'array'; |
| 680 | public $subscriptions; |
| 681 | public function setKind( $kind) { |
| 682 | $this->kind = $kind; |
| 683 | } |
| 684 | public function getKind() { |
| 685 | return $this->kind; |
| 686 | } |
| 687 | public function setNextPageToken( $nextPageToken) { |
| 688 | $this->nextPageToken = $nextPageToken; |
| 689 | } |
| 690 | public function getNextPageToken() { |
| 691 | return $this->nextPageToken; |
| 692 | } |
| 693 | public function setSubscriptions(/* array(Google_Subscription) */ $subscriptions) { |
| 694 | $this->assertIsArray($subscriptions, 'Google_Subscription', __METHOD__); |
| 695 | $this->subscriptions = $subscriptions; |
| 696 | } |
| 697 | public function getSubscriptions() { |
| 698 | return $this->subscriptions; |
| 699 | } |
| 700 | } |
| 701 |