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