Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class Address extends \Google\Model
{
/**
* @var string
*/
public $addressLine1;
/**
* @var string
*/
public $addressLine2;
/**
* @var string
*/
public $addressLine3;
/**
* @var string
*/
public $contactName;
/**
* @var string
*/
public $countryCode;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $locality;
/**
* @var string
*/
public $organizationName;
/**
* @var string
*/
public $postalCode;
/**
* @var string
*/
public $region;
/**
* @param string
*/
public function setAddressLine1($addressLine1)
{
$this->addressLine1 = $addressLine1;
}
/**
* @return string
*/
public function getAddressLine1()
{
return $this->addressLine1;
}
/**
* @param string
*/
public function setAddressLine2($addressLine2)
{
$this->addressLine2 = $addressLine2;
}
/**
* @return string
*/
public function getAddressLine2()
{
return $this->addressLine2;
}
/**
* @param string
*/
public function setAddressLine3($addressLine3)
{
$this->addressLine3 = $addressLine3;
}
/**
* @return string
*/
public function getAddressLine3()
{
return $this->addressLine3;
}
/**
* @param string
*/
public function setContactName($contactName)
{
$this->contactName = $contactName;
}
/**
* @return string
*/
public function getContactName()
{
return $this->contactName;
}
/**
* @param string
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* @param string
*/
public function setOrganizationName($organizationName)
{
$this->organizationName = $organizationName;
}
/**
* @return string
*/
public function getOrganizationName()
{
return $this->organizationName;
}
/**
* @param string
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Address::class, 'Google_Service_Reseller_Address');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class ChangePlanRequest extends \Google\Model
{
/**
* @var string
*/
public $dealCode;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $planName;
/**
* @var string
*/
public $purchaseOrderId;
protected $seatsType = Seats::class;
protected $seatsDataType = '';
/**
* @param string
*/
public function setDealCode($dealCode)
{
$this->dealCode = $dealCode;
}
/**
* @return string
*/
public function getDealCode()
{
return $this->dealCode;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPlanName($planName)
{
$this->planName = $planName;
}
/**
* @return string
*/
public function getPlanName()
{
return $this->planName;
}
/**
* @param string
*/
public function setPurchaseOrderId($purchaseOrderId)
{
$this->purchaseOrderId = $purchaseOrderId;
}
/**
* @return string
*/
public function getPurchaseOrderId()
{
return $this->purchaseOrderId;
}
/**
* @param Seats
*/
public function setSeats(Seats $seats)
{
$this->seats = $seats;
}
/**
* @return Seats
*/
public function getSeats()
{
return $this->seats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChangePlanRequest::class, 'Google_Service_Reseller_ChangePlanRequest');

View File

@@ -0,0 +1,202 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class Customer extends \Google\Model
{
/**
* @var string
*/
public $alternateEmail;
/**
* @var string
*/
public $customerDomain;
/**
* @var bool
*/
public $customerDomainVerified;
/**
* @var string
*/
public $customerId;
/**
* @var string
*/
public $customerType;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $phoneNumber;
protected $postalAddressType = Address::class;
protected $postalAddressDataType = '';
protected $primaryAdminType = PrimaryAdmin::class;
protected $primaryAdminDataType = '';
/**
* @var string
*/
public $resourceUiUrl;
/**
* @param string
*/
public function setAlternateEmail($alternateEmail)
{
$this->alternateEmail = $alternateEmail;
}
/**
* @return string
*/
public function getAlternateEmail()
{
return $this->alternateEmail;
}
/**
* @param string
*/
public function setCustomerDomain($customerDomain)
{
$this->customerDomain = $customerDomain;
}
/**
* @return string
*/
public function getCustomerDomain()
{
return $this->customerDomain;
}
/**
* @param bool
*/
public function setCustomerDomainVerified($customerDomainVerified)
{
$this->customerDomainVerified = $customerDomainVerified;
}
/**
* @return bool
*/
public function getCustomerDomainVerified()
{
return $this->customerDomainVerified;
}
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param string
*/
public function setCustomerType($customerType)
{
$this->customerType = $customerType;
}
/**
* @return string
*/
public function getCustomerType()
{
return $this->customerType;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* @param Address
*/
public function setPostalAddress(Address $postalAddress)
{
$this->postalAddress = $postalAddress;
}
/**
* @return Address
*/
public function getPostalAddress()
{
return $this->postalAddress;
}
/**
* @param PrimaryAdmin
*/
public function setPrimaryAdmin(PrimaryAdmin $primaryAdmin)
{
$this->primaryAdmin = $primaryAdmin;
}
/**
* @return PrimaryAdmin
*/
public function getPrimaryAdmin()
{
return $this->primaryAdmin;
}
/**
* @param string
*/
public function setResourceUiUrl($resourceUiUrl)
{
$this->resourceUiUrl = $resourceUiUrl;
}
/**
* @return string
*/
public function getResourceUiUrl()
{
return $this->resourceUiUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customer::class, 'Google_Service_Reseller_Customer');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class PrimaryAdmin extends \Google\Model
{
/**
* @var string
*/
public $primaryEmail;
/**
* @param string
*/
public function setPrimaryEmail($primaryEmail)
{
$this->primaryEmail = $primaryEmail;
}
/**
* @return string
*/
public function getPrimaryEmail()
{
return $this->primaryEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrimaryAdmin::class, 'Google_Service_Reseller_PrimaryAdmin');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class RenewalSettings extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $renewalType;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setRenewalType($renewalType)
{
$this->renewalType = $renewalType;
}
/**
* @return string
*/
public function getRenewalType()
{
return $this->renewalType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenewalSettings::class, 'Google_Service_Reseller_RenewalSettings');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class ResellernotifyGetwatchdetailsResponse extends \Google\Collection
{
protected $collection_key = 'serviceAccountEmailAddresses';
/**
* @var string[]
*/
public $serviceAccountEmailAddresses;
/**
* @var string
*/
public $topicName;
/**
* @param string[]
*/
public function setServiceAccountEmailAddresses($serviceAccountEmailAddresses)
{
$this->serviceAccountEmailAddresses = $serviceAccountEmailAddresses;
}
/**
* @return string[]
*/
public function getServiceAccountEmailAddresses()
{
return $this->serviceAccountEmailAddresses;
}
/**
* @param string
*/
public function setTopicName($topicName)
{
$this->topicName = $topicName;
}
/**
* @return string
*/
public function getTopicName()
{
return $this->topicName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResellernotifyGetwatchdetailsResponse::class, 'Google_Service_Reseller_ResellernotifyGetwatchdetailsResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class ResellernotifyResource extends \Google\Model
{
/**
* @var string
*/
public $topicName;
/**
* @param string
*/
public function setTopicName($topicName)
{
$this->topicName = $topicName;
}
/**
* @return string
*/
public function getTopicName()
{
return $this->topicName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResellernotifyResource::class, 'Google_Service_Reseller_ResellernotifyResource');

View File

@@ -0,0 +1,138 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller\Resource;
use Google\Service\Reseller\Customer;
/**
* The "customers" collection of methods.
* Typical usage is:
* <code>
* $resellerService = new Google\Service\Reseller(...);
* $customers = $resellerService->customers;
* </code>
*/
class Customers extends \Google\Service\Resource
{
/**
* Gets a customer account. Use this operation to see a customer account already
* in your reseller management, or to see the minimal account information for an
* existing customer that you do not manage. For more information about the API
* response for existing customers, see [retrieving a customer account](/admin-
* sdk/reseller/v1/how-tos/manage_customers#get_customer). (customers.get)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param array $optParams Optional parameters.
* @return Customer
* @throws \Google\Service\Exception
*/
public function get($customerId, $optParams = [])
{
$params = ['customerId' => $customerId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Customer::class);
}
/**
* Orders a new customer's account. Before ordering a new customer account,
* establish whether the customer account already exists using the
* [`customers.get`](/admin-sdk/reseller/v1/reference/customers/get) If the
* customer account exists as a direct Google account or as a resold customer
* account from another reseller, use the `customerAuthToken\` as described in
* [order a resold account for an existing customer](/admin-sdk/reseller/v1/how-
* tos/manage_customers#create_existing_customer). For more information about
* ordering a new customer account, see [order a new customer account](/admin-
* sdk/reseller/v1/how-tos/manage_customers#create_customer). After creating a
* new customer account, you must provision a user as an administrator. The
* customer's administrator is required to sign in to the Admin console and sign
* the G Suite via Reseller agreement to activate the account. Resellers are
* prohibited from signing the G Suite via Reseller agreement on the customer's
* behalf. For more information, see [order a new customer account](/admin-
* sdk/reseller/v1/how-tos/manage_customers#tos). (customers.insert)
*
* @param Customer $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customerAuthToken The `customerAuthToken` query string is
* required when creating a resold account that transfers a direct customer's
* subscription or transfers another reseller customer's subscription to your
* reseller management. This is a hexadecimal authentication token needed to
* complete the subscription transfer. For more information, see the
* administrator help center.
* @return Customer
* @throws \Google\Service\Exception
*/
public function insert(Customer $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Customer::class);
}
/**
* Updates a customer account's settings. This method supports patch semantics.
* You cannot update `customerType` via the Reseller API, but a `"team"`
* customer can verify their domain and become `customerType = "domain"`. For
* more information, see [Verify your domain to unlock Essentials
* features](https://support.google.com/a/answer/9122284). (customers.patch)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param Customer $postBody
* @param array $optParams Optional parameters.
* @return Customer
* @throws \Google\Service\Exception
*/
public function patch($customerId, Customer $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Customer::class);
}
/**
* Updates a customer account's settings. You cannot update `customerType` via
* the Reseller API, but a `"team"` customer can verify their domain and become
* `customerType = "domain"`. For more information, see [update a customer's
* settings](/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer).
* (customers.update)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param Customer $postBody
* @param array $optParams Optional parameters.
* @return Customer
* @throws \Google\Service\Exception
*/
public function update($customerId, Customer $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Customer::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customers::class, 'Google_Service_Reseller_Resource_Customers');

View File

@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller\Resource;
use Google\Service\Reseller\ResellernotifyGetwatchdetailsResponse;
use Google\Service\Reseller\ResellernotifyResource;
/**
* The "resellernotify" collection of methods.
* Typical usage is:
* <code>
* $resellerService = new Google\Service\Reseller(...);
* $resellernotify = $resellerService->resellernotify;
* </code>
*/
class Resellernotify extends \Google\Service\Resource
{
/**
* Returns all the details of the watch corresponding to the reseller.
* (resellernotify.getwatchdetails)
*
* @param array $optParams Optional parameters.
* @return ResellernotifyGetwatchdetailsResponse
* @throws \Google\Service\Exception
*/
public function getwatchdetails($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getwatchdetails', [$params], ResellernotifyGetwatchdetailsResponse::class);
}
/**
* Registers a Reseller for receiving notifications. (resellernotify.register)
*
* @param array $optParams Optional parameters.
*
* @opt_param string serviceAccountEmailAddress The service account which will
* own the created Cloud-PubSub topic.
* @return ResellernotifyResource
* @throws \Google\Service\Exception
*/
public function register($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('register', [$params], ResellernotifyResource::class);
}
/**
* Unregisters a Reseller for receiving notifications.
* (resellernotify.unregister)
*
* @param array $optParams Optional parameters.
*
* @opt_param string serviceAccountEmailAddress The service account which owns
* the Cloud-PubSub topic.
* @return ResellernotifyResource
* @throws \Google\Service\Exception
*/
public function unregister($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('unregister', [$params], ResellernotifyResource::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Resellernotify::class, 'Google_Service_Reseller_Resource_Resellernotify');

View File

@@ -0,0 +1,362 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller\Resource;
use Google\Service\Reseller\ChangePlanRequest;
use Google\Service\Reseller\RenewalSettings;
use Google\Service\Reseller\Seats;
use Google\Service\Reseller\Subscription;
use Google\Service\Reseller\Subscriptions as SubscriptionsModel;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $resellerService = new Google\Service\Reseller(...);
* $subscriptions = $resellerService->subscriptions;
* </code>
*/
class Subscriptions extends \Google\Service\Resource
{
/**
* Activates a subscription previously suspended by the reseller. If you did not
* suspend the customer subscription and it is suspended for any other reason,
* such as for abuse or a pending ToS acceptance, this call will not reactivate
* the customer subscription. (subscriptions.activate)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function activate($customerId, $subscriptionId, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId];
$params = array_merge($params, $optParams);
return $this->call('activate', [$params], Subscription::class);
}
/**
* Updates a subscription plan. Use this method to update a plan for a 30-day
* trial or a flexible plan subscription to an annual commitment plan with
* monthly or yearly payments. How a plan is updated differs depending on the
* plan and the products. For more information, see the description in [manage
* subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#update_subscription_plan).
* (subscriptions.changePlan)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param ChangePlanRequest $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function changePlan($customerId, $subscriptionId, ChangePlanRequest $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('changePlan', [$params], Subscription::class);
}
/**
* Updates a user license's renewal settings. This is applicable for accounts
* with annual commitment plans only. For more information, see the description
* in [manage subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#update_renewal).
* (subscriptions.changeRenewalSettings)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param RenewalSettings $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function changeRenewalSettings($customerId, $subscriptionId, RenewalSettings $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('changeRenewalSettings', [$params], Subscription::class);
}
/**
* Updates a subscription's user license settings. For more information about
* updating an annual commitment plan or a flexible plan subscriptions
* licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#update_subscription_seat).
* (subscriptions.changeSeats)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param Seats $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function changeSeats($customerId, $subscriptionId, Seats $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('changeSeats', [$params], Subscription::class);
}
/**
* Cancels, suspends, or transfers a subscription to direct.
* (subscriptions.delete)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param string $deletionType The `deletionType` query string enables the
* cancellation, downgrade, or suspension of a subscription.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($customerId, $subscriptionId, $deletionType, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a specific subscription. The `subscriptionId` can be found using the
* [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#get_all_subscriptions) method. For more information
* about retrieving a specific subscription, see the information descrived in
* [manage subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#get_subscription). (subscriptions.get)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function get($customerId, $subscriptionId, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Subscription::class);
}
/**
* Creates or transfer a subscription. Create a subscription for a customer's
* account that you ordered using the [Order a new customer account](/admin-
* sdk/reseller/v1/reference/customers/insert.html) method. For more information
* about creating a subscription for different payment plans, see [manage
* subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#create_subscription).\ If you did not order the
* customer's account using the customer insert method, use the customer's
* `customerAuthToken` when creating a subscription for that customer. If
* transferring a G Suite subscription with an associated Google Drive or Google
* Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-
* tos/batch.html) to transfer all of these subscriptions. For more information,
* see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#transfer_a_subscription). (subscriptions.insert)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string action The intented insert action. The usage of this field
* is governed by certain policies which are being developed & tested currently.
* Hence, these might not work as intended. Once this is fully tested &
* available to consume, we will share more information about its usage,
* limitations and policy documentation.
* @opt_param string customerAuthToken The `customerAuthToken` query string is
* required when creating a resold account that transfers a direct customer's
* subscription or transfers another reseller customer's subscription to your
* reseller management. This is a hexadecimal authentication token needed to
* complete the subscription transfer. For more information, see the
* administrator help center.
* @opt_param string sourceSkuId The sku_id of the existing subscription to be
* upgraded or downgraded. This is required when action is SWITCH. The usage of
* this field is governed by certain policies which are being developed & tested
* currently. Hence, these might not work as intended. Once this is fully tested
* & available to consume, we will share more information about its usage,
* limitations and policy documentation.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function insert($customerId, Subscription $postBody, $optParams = [])
{
$params = ['customerId' => $customerId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Subscription::class);
}
/**
* Lists of subscriptions managed by the reseller. The list can be all
* subscriptions, all of a customer's subscriptions, or all of a customer's
* transferable subscriptions. Optionally, this method can filter the response
* by a `customerNamePrefix`. For more information, see [manage
* subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).
* (subscriptions.listSubscriptions)
*
* @param array $optParams Optional parameters.
*
* @opt_param string customerAuthToken The `customerAuthToken` query string is
* required when creating a resold account that transfers a direct customer's
* subscription or transfers another reseller customer's subscription to your
* reseller management. This is a hexadecimal authentication token needed to
* complete the subscription transfer. For more information, see the
* administrator help center.
* @opt_param string customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @opt_param string customerNamePrefix When retrieving all of your
* subscriptions and filtering for specific customers, you can enter a prefix
* for a customer name. Using an example customer group that includes
* `exam.com`, `example20.com` and `example.com`: - `exa` -- Returns all
* customer names that start with 'exa' which could include `exam.com`,
* `example20.com`, and `example.com`. A name prefix is similar to using a
* regular expression's asterisk, exa*. - `example` -- Returns `example20.com`
* and `example.com`.
* @opt_param string maxResults When retrieving a large list, the `maxResults`
* is the maximum number of results per page. The `nextPageToken` value takes
* you to the next page. The default is 20.
* @opt_param string pageToken Token to specify next page in the list
* @return SubscriptionsModel
* @throws \Google\Service\Exception
*/
public function listSubscriptions($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SubscriptionsModel::class);
}
/**
* Immediately move a 30-day free trial subscription to a paid service
* subscription. This method is only applicable if a payment plan has already
* been set up for the 30-day trial subscription. For more information, see
* [manage subscriptions](/admin-sdk/reseller/v1/how-
* tos/manage_subscriptions#paid_service). (subscriptions.startPaidService)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function startPaidService($customerId, $subscriptionId, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId];
$params = array_merge($params, $optParams);
return $this->call('startPaidService', [$params], Subscription::class);
}
/**
* Suspends an active subscription. You can use this method to suspend a paid
* subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE`
* subscriptions, billing is paused. * For `ANNUAL_MONTHLY_PAY` or
* `ANNUAL_YEARLY_PAY` subscriptions: * Suspending the subscription does not
* change the renewal date that was originally committed to. * A suspended
* subscription does not renew. If you activate the subscription after the
* original renewal date, a new annual subscription will be created, starting on
* the day of activation. We strongly encourage you to suspend subscriptions
* only for short periods of time as suspensions over 60 days may result in the
* subscription being cancelled. (subscriptions.suspend)
*
* @param string $customerId This can be either the customer's primary domain
* name or the customer's unique identifier. If the domain name for a customer
* changes, the old domain name cannot be used to access the customer, but the
* customer's unique identifier (as returned by the API) can always be used. We
* recommend storing the unique identifier in your systems where applicable.
* @param string $subscriptionId This is a required property. The
* `subscriptionId` is the subscription identifier and is unique for each
* customer. Since a `subscriptionId` changes when a subscription is updated, we
* recommend to not use this ID as a key for persistent data. And the
* `subscriptionId` can be found using the retrieve all reseller subscriptions
* method.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function suspend($customerId, $subscriptionId, $optParams = [])
{
$params = ['customerId' => $customerId, 'subscriptionId' => $subscriptionId];
$params = array_merge($params, $optParams);
return $this->call('suspend', [$params], Subscription::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscriptions::class, 'Google_Service_Reseller_Resource_Subscriptions');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class Seats extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var int
*/
public $licensedNumberOfSeats;
/**
* @var int
*/
public $maximumNumberOfSeats;
/**
* @var int
*/
public $numberOfSeats;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param int
*/
public function setLicensedNumberOfSeats($licensedNumberOfSeats)
{
$this->licensedNumberOfSeats = $licensedNumberOfSeats;
}
/**
* @return int
*/
public function getLicensedNumberOfSeats()
{
return $this->licensedNumberOfSeats;
}
/**
* @param int
*/
public function setMaximumNumberOfSeats($maximumNumberOfSeats)
{
$this->maximumNumberOfSeats = $maximumNumberOfSeats;
}
/**
* @return int
*/
public function getMaximumNumberOfSeats()
{
return $this->maximumNumberOfSeats;
}
/**
* @param int
*/
public function setNumberOfSeats($numberOfSeats)
{
$this->numberOfSeats = $numberOfSeats;
}
/**
* @return int
*/
public function getNumberOfSeats()
{
return $this->numberOfSeats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Seats::class, 'Google_Service_Reseller_Seats');

View File

@@ -0,0 +1,341 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class Subscription extends \Google\Collection
{
protected $collection_key = 'suspensionReasons';
/**
* @var string
*/
public $billingMethod;
/**
* @var string
*/
public $creationTime;
/**
* @var string
*/
public $customerDomain;
/**
* @var string
*/
public $customerId;
/**
* @var string
*/
public $dealCode;
/**
* @var string
*/
public $kind;
protected $planType = SubscriptionPlan::class;
protected $planDataType = '';
/**
* @var string
*/
public $purchaseOrderId;
protected $renewalSettingsType = RenewalSettings::class;
protected $renewalSettingsDataType = '';
/**
* @var string
*/
public $resourceUiUrl;
protected $seatsType = Seats::class;
protected $seatsDataType = '';
/**
* @var string
*/
public $skuId;
/**
* @var string
*/
public $skuName;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $subscriptionId;
/**
* @var string[]
*/
public $suspensionReasons;
protected $transferInfoType = SubscriptionTransferInfo::class;
protected $transferInfoDataType = '';
protected $trialSettingsType = SubscriptionTrialSettings::class;
protected $trialSettingsDataType = '';
/**
* @param string
*/
public function setBillingMethod($billingMethod)
{
$this->billingMethod = $billingMethod;
}
/**
* @return string
*/
public function getBillingMethod()
{
return $this->billingMethod;
}
/**
* @param string
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* @param string
*/
public function setCustomerDomain($customerDomain)
{
$this->customerDomain = $customerDomain;
}
/**
* @return string
*/
public function getCustomerDomain()
{
return $this->customerDomain;
}
/**
* @param string
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* @param string
*/
public function setDealCode($dealCode)
{
$this->dealCode = $dealCode;
}
/**
* @return string
*/
public function getDealCode()
{
return $this->dealCode;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param SubscriptionPlan
*/
public function setPlan(SubscriptionPlan $plan)
{
$this->plan = $plan;
}
/**
* @return SubscriptionPlan
*/
public function getPlan()
{
return $this->plan;
}
/**
* @param string
*/
public function setPurchaseOrderId($purchaseOrderId)
{
$this->purchaseOrderId = $purchaseOrderId;
}
/**
* @return string
*/
public function getPurchaseOrderId()
{
return $this->purchaseOrderId;
}
/**
* @param RenewalSettings
*/
public function setRenewalSettings(RenewalSettings $renewalSettings)
{
$this->renewalSettings = $renewalSettings;
}
/**
* @return RenewalSettings
*/
public function getRenewalSettings()
{
return $this->renewalSettings;
}
/**
* @param string
*/
public function setResourceUiUrl($resourceUiUrl)
{
$this->resourceUiUrl = $resourceUiUrl;
}
/**
* @return string
*/
public function getResourceUiUrl()
{
return $this->resourceUiUrl;
}
/**
* @param Seats
*/
public function setSeats(Seats $seats)
{
$this->seats = $seats;
}
/**
* @return Seats
*/
public function getSeats()
{
return $this->seats;
}
/**
* @param string
*/
public function setSkuId($skuId)
{
$this->skuId = $skuId;
}
/**
* @return string
*/
public function getSkuId()
{
return $this->skuId;
}
/**
* @param string
*/
public function setSkuName($skuName)
{
$this->skuName = $skuName;
}
/**
* @return string
*/
public function getSkuName()
{
return $this->skuName;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setSubscriptionId($subscriptionId)
{
$this->subscriptionId = $subscriptionId;
}
/**
* @return string
*/
public function getSubscriptionId()
{
return $this->subscriptionId;
}
/**
* @param string[]
*/
public function setSuspensionReasons($suspensionReasons)
{
$this->suspensionReasons = $suspensionReasons;
}
/**
* @return string[]
*/
public function getSuspensionReasons()
{
return $this->suspensionReasons;
}
/**
* @param SubscriptionTransferInfo
*/
public function setTransferInfo(SubscriptionTransferInfo $transferInfo)
{
$this->transferInfo = $transferInfo;
}
/**
* @return SubscriptionTransferInfo
*/
public function getTransferInfo()
{
return $this->transferInfo;
}
/**
* @param SubscriptionTrialSettings
*/
public function setTrialSettings(SubscriptionTrialSettings $trialSettings)
{
$this->trialSettings = $trialSettings;
}
/**
* @return SubscriptionTrialSettings
*/
public function getTrialSettings()
{
return $this->trialSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscription::class, 'Google_Service_Reseller_Subscription');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class SubscriptionPlan extends \Google\Model
{
protected $commitmentIntervalType = SubscriptionPlanCommitmentInterval::class;
protected $commitmentIntervalDataType = '';
/**
* @var bool
*/
public $isCommitmentPlan;
/**
* @var string
*/
public $planName;
/**
* @param SubscriptionPlanCommitmentInterval
*/
public function setCommitmentInterval(SubscriptionPlanCommitmentInterval $commitmentInterval)
{
$this->commitmentInterval = $commitmentInterval;
}
/**
* @return SubscriptionPlanCommitmentInterval
*/
public function getCommitmentInterval()
{
return $this->commitmentInterval;
}
/**
* @param bool
*/
public function setIsCommitmentPlan($isCommitmentPlan)
{
$this->isCommitmentPlan = $isCommitmentPlan;
}
/**
* @return bool
*/
public function getIsCommitmentPlan()
{
return $this->isCommitmentPlan;
}
/**
* @param string
*/
public function setPlanName($planName)
{
$this->planName = $planName;
}
/**
* @return string
*/
public function getPlanName()
{
return $this->planName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubscriptionPlan::class, 'Google_Service_Reseller_SubscriptionPlan');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class SubscriptionPlanCommitmentInterval extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubscriptionPlanCommitmentInterval::class, 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class SubscriptionTransferInfo extends \Google\Model
{
/**
* @var string
*/
public $currentLegacySkuId;
/**
* @var int
*/
public $minimumTransferableSeats;
/**
* @var string
*/
public $transferabilityExpirationTime;
/**
* @param string
*/
public function setCurrentLegacySkuId($currentLegacySkuId)
{
$this->currentLegacySkuId = $currentLegacySkuId;
}
/**
* @return string
*/
public function getCurrentLegacySkuId()
{
return $this->currentLegacySkuId;
}
/**
* @param int
*/
public function setMinimumTransferableSeats($minimumTransferableSeats)
{
$this->minimumTransferableSeats = $minimumTransferableSeats;
}
/**
* @return int
*/
public function getMinimumTransferableSeats()
{
return $this->minimumTransferableSeats;
}
/**
* @param string
*/
public function setTransferabilityExpirationTime($transferabilityExpirationTime)
{
$this->transferabilityExpirationTime = $transferabilityExpirationTime;
}
/**
* @return string
*/
public function getTransferabilityExpirationTime()
{
return $this->transferabilityExpirationTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubscriptionTransferInfo::class, 'Google_Service_Reseller_SubscriptionTransferInfo');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class SubscriptionTrialSettings extends \Google\Model
{
/**
* @var bool
*/
public $isInTrial;
/**
* @var string
*/
public $trialEndTime;
/**
* @param bool
*/
public function setIsInTrial($isInTrial)
{
$this->isInTrial = $isInTrial;
}
/**
* @return bool
*/
public function getIsInTrial()
{
return $this->isInTrial;
}
/**
* @param string
*/
public function setTrialEndTime($trialEndTime)
{
$this->trialEndTime = $trialEndTime;
}
/**
* @return string
*/
public function getTrialEndTime()
{
return $this->trialEndTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubscriptionTrialSettings::class, 'Google_Service_Reseller_SubscriptionTrialSettings');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Reseller;
class Subscriptions extends \Google\Collection
{
protected $collection_key = 'subscriptions';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $subscriptionsType = Subscription::class;
protected $subscriptionsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Subscription[]
*/
public function setSubscriptions($subscriptions)
{
$this->subscriptions = $subscriptions;
}
/**
* @return Subscription[]
*/
public function getSubscriptions()
{
return $this->subscriptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscriptions::class, 'Google_Service_Reseller_Subscriptions');