1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 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 | namespace Google\Service\CloudCommercePartnerProcurementService;
|
---|
19 |
|
---|
20 | class Entitlement extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'entitlementBenefitIds';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $account;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $cancellationReason;
|
---|
31 | protected $consumersType = Consumer::class;
|
---|
32 | protected $consumersDataType = 'array';
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $createTime;
|
---|
37 | /**
|
---|
38 | * @var string[]
|
---|
39 | */
|
---|
40 | public $entitlementBenefitIds;
|
---|
41 | /**
|
---|
42 | * @var array[]
|
---|
43 | */
|
---|
44 | public $inputProperties;
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $messageToUser;
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $name;
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $newOfferEndTime;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $newOfferStartTime;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $newPendingOffer;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $newPendingOfferDuration;
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $newPendingPlan;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $offer;
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $offerDuration;
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $offerEndTime;
|
---|
85 | /**
|
---|
86 | * @var string
|
---|
87 | */
|
---|
88 | public $orderId;
|
---|
89 | /**
|
---|
90 | * @var string
|
---|
91 | */
|
---|
92 | public $plan;
|
---|
93 | /**
|
---|
94 | * @var string
|
---|
95 | */
|
---|
96 | public $product;
|
---|
97 | /**
|
---|
98 | * @var string
|
---|
99 | */
|
---|
100 | public $productExternalName;
|
---|
101 | /**
|
---|
102 | * @var string
|
---|
103 | */
|
---|
104 | public $provider;
|
---|
105 | /**
|
---|
106 | * @var string
|
---|
107 | */
|
---|
108 | public $quoteExternalName;
|
---|
109 | /**
|
---|
110 | * @var string
|
---|
111 | */
|
---|
112 | public $state;
|
---|
113 | /**
|
---|
114 | * @var string
|
---|
115 | */
|
---|
116 | public $subscriptionEndTime;
|
---|
117 | /**
|
---|
118 | * @var string
|
---|
119 | */
|
---|
120 | public $updateTime;
|
---|
121 | /**
|
---|
122 | * @var string
|
---|
123 | */
|
---|
124 | public $usageReportingId;
|
---|
125 |
|
---|
126 | /**
|
---|
127 | * @param string
|
---|
128 | */
|
---|
129 | public function setAccount($account)
|
---|
130 | {
|
---|
131 | $this->account = $account;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return string
|
---|
135 | */
|
---|
136 | public function getAccount()
|
---|
137 | {
|
---|
138 | return $this->account;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param string
|
---|
142 | */
|
---|
143 | public function setCancellationReason($cancellationReason)
|
---|
144 | {
|
---|
145 | $this->cancellationReason = $cancellationReason;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return string
|
---|
149 | */
|
---|
150 | public function getCancellationReason()
|
---|
151 | {
|
---|
152 | return $this->cancellationReason;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param Consumer[]
|
---|
156 | */
|
---|
157 | public function setConsumers($consumers)
|
---|
158 | {
|
---|
159 | $this->consumers = $consumers;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return Consumer[]
|
---|
163 | */
|
---|
164 | public function getConsumers()
|
---|
165 | {
|
---|
166 | return $this->consumers;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param string
|
---|
170 | */
|
---|
171 | public function setCreateTime($createTime)
|
---|
172 | {
|
---|
173 | $this->createTime = $createTime;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return string
|
---|
177 | */
|
---|
178 | public function getCreateTime()
|
---|
179 | {
|
---|
180 | return $this->createTime;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param string[]
|
---|
184 | */
|
---|
185 | public function setEntitlementBenefitIds($entitlementBenefitIds)
|
---|
186 | {
|
---|
187 | $this->entitlementBenefitIds = $entitlementBenefitIds;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return string[]
|
---|
191 | */
|
---|
192 | public function getEntitlementBenefitIds()
|
---|
193 | {
|
---|
194 | return $this->entitlementBenefitIds;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param array[]
|
---|
198 | */
|
---|
199 | public function setInputProperties($inputProperties)
|
---|
200 | {
|
---|
201 | $this->inputProperties = $inputProperties;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return array[]
|
---|
205 | */
|
---|
206 | public function getInputProperties()
|
---|
207 | {
|
---|
208 | return $this->inputProperties;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param string
|
---|
212 | */
|
---|
213 | public function setMessageToUser($messageToUser)
|
---|
214 | {
|
---|
215 | $this->messageToUser = $messageToUser;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return string
|
---|
219 | */
|
---|
220 | public function getMessageToUser()
|
---|
221 | {
|
---|
222 | return $this->messageToUser;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param string
|
---|
226 | */
|
---|
227 | public function setName($name)
|
---|
228 | {
|
---|
229 | $this->name = $name;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return string
|
---|
233 | */
|
---|
234 | public function getName()
|
---|
235 | {
|
---|
236 | return $this->name;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param string
|
---|
240 | */
|
---|
241 | public function setNewOfferEndTime($newOfferEndTime)
|
---|
242 | {
|
---|
243 | $this->newOfferEndTime = $newOfferEndTime;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return string
|
---|
247 | */
|
---|
248 | public function getNewOfferEndTime()
|
---|
249 | {
|
---|
250 | return $this->newOfferEndTime;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param string
|
---|
254 | */
|
---|
255 | public function setNewOfferStartTime($newOfferStartTime)
|
---|
256 | {
|
---|
257 | $this->newOfferStartTime = $newOfferStartTime;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return string
|
---|
261 | */
|
---|
262 | public function getNewOfferStartTime()
|
---|
263 | {
|
---|
264 | return $this->newOfferStartTime;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param string
|
---|
268 | */
|
---|
269 | public function setNewPendingOffer($newPendingOffer)
|
---|
270 | {
|
---|
271 | $this->newPendingOffer = $newPendingOffer;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return string
|
---|
275 | */
|
---|
276 | public function getNewPendingOffer()
|
---|
277 | {
|
---|
278 | return $this->newPendingOffer;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param string
|
---|
282 | */
|
---|
283 | public function setNewPendingOfferDuration($newPendingOfferDuration)
|
---|
284 | {
|
---|
285 | $this->newPendingOfferDuration = $newPendingOfferDuration;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return string
|
---|
289 | */
|
---|
290 | public function getNewPendingOfferDuration()
|
---|
291 | {
|
---|
292 | return $this->newPendingOfferDuration;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param string
|
---|
296 | */
|
---|
297 | public function setNewPendingPlan($newPendingPlan)
|
---|
298 | {
|
---|
299 | $this->newPendingPlan = $newPendingPlan;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return string
|
---|
303 | */
|
---|
304 | public function getNewPendingPlan()
|
---|
305 | {
|
---|
306 | return $this->newPendingPlan;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param string
|
---|
310 | */
|
---|
311 | public function setOffer($offer)
|
---|
312 | {
|
---|
313 | $this->offer = $offer;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return string
|
---|
317 | */
|
---|
318 | public function getOffer()
|
---|
319 | {
|
---|
320 | return $this->offer;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param string
|
---|
324 | */
|
---|
325 | public function setOfferDuration($offerDuration)
|
---|
326 | {
|
---|
327 | $this->offerDuration = $offerDuration;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return string
|
---|
331 | */
|
---|
332 | public function getOfferDuration()
|
---|
333 | {
|
---|
334 | return $this->offerDuration;
|
---|
335 | }
|
---|
336 | /**
|
---|
337 | * @param string
|
---|
338 | */
|
---|
339 | public function setOfferEndTime($offerEndTime)
|
---|
340 | {
|
---|
341 | $this->offerEndTime = $offerEndTime;
|
---|
342 | }
|
---|
343 | /**
|
---|
344 | * @return string
|
---|
345 | */
|
---|
346 | public function getOfferEndTime()
|
---|
347 | {
|
---|
348 | return $this->offerEndTime;
|
---|
349 | }
|
---|
350 | /**
|
---|
351 | * @param string
|
---|
352 | */
|
---|
353 | public function setOrderId($orderId)
|
---|
354 | {
|
---|
355 | $this->orderId = $orderId;
|
---|
356 | }
|
---|
357 | /**
|
---|
358 | * @return string
|
---|
359 | */
|
---|
360 | public function getOrderId()
|
---|
361 | {
|
---|
362 | return $this->orderId;
|
---|
363 | }
|
---|
364 | /**
|
---|
365 | * @param string
|
---|
366 | */
|
---|
367 | public function setPlan($plan)
|
---|
368 | {
|
---|
369 | $this->plan = $plan;
|
---|
370 | }
|
---|
371 | /**
|
---|
372 | * @return string
|
---|
373 | */
|
---|
374 | public function getPlan()
|
---|
375 | {
|
---|
376 | return $this->plan;
|
---|
377 | }
|
---|
378 | /**
|
---|
379 | * @param string
|
---|
380 | */
|
---|
381 | public function setProduct($product)
|
---|
382 | {
|
---|
383 | $this->product = $product;
|
---|
384 | }
|
---|
385 | /**
|
---|
386 | * @return string
|
---|
387 | */
|
---|
388 | public function getProduct()
|
---|
389 | {
|
---|
390 | return $this->product;
|
---|
391 | }
|
---|
392 | /**
|
---|
393 | * @param string
|
---|
394 | */
|
---|
395 | public function setProductExternalName($productExternalName)
|
---|
396 | {
|
---|
397 | $this->productExternalName = $productExternalName;
|
---|
398 | }
|
---|
399 | /**
|
---|
400 | * @return string
|
---|
401 | */
|
---|
402 | public function getProductExternalName()
|
---|
403 | {
|
---|
404 | return $this->productExternalName;
|
---|
405 | }
|
---|
406 | /**
|
---|
407 | * @param string
|
---|
408 | */
|
---|
409 | public function setProvider($provider)
|
---|
410 | {
|
---|
411 | $this->provider = $provider;
|
---|
412 | }
|
---|
413 | /**
|
---|
414 | * @return string
|
---|
415 | */
|
---|
416 | public function getProvider()
|
---|
417 | {
|
---|
418 | return $this->provider;
|
---|
419 | }
|
---|
420 | /**
|
---|
421 | * @param string
|
---|
422 | */
|
---|
423 | public function setQuoteExternalName($quoteExternalName)
|
---|
424 | {
|
---|
425 | $this->quoteExternalName = $quoteExternalName;
|
---|
426 | }
|
---|
427 | /**
|
---|
428 | * @return string
|
---|
429 | */
|
---|
430 | public function getQuoteExternalName()
|
---|
431 | {
|
---|
432 | return $this->quoteExternalName;
|
---|
433 | }
|
---|
434 | /**
|
---|
435 | * @param string
|
---|
436 | */
|
---|
437 | public function setState($state)
|
---|
438 | {
|
---|
439 | $this->state = $state;
|
---|
440 | }
|
---|
441 | /**
|
---|
442 | * @return string
|
---|
443 | */
|
---|
444 | public function getState()
|
---|
445 | {
|
---|
446 | return $this->state;
|
---|
447 | }
|
---|
448 | /**
|
---|
449 | * @param string
|
---|
450 | */
|
---|
451 | public function setSubscriptionEndTime($subscriptionEndTime)
|
---|
452 | {
|
---|
453 | $this->subscriptionEndTime = $subscriptionEndTime;
|
---|
454 | }
|
---|
455 | /**
|
---|
456 | * @return string
|
---|
457 | */
|
---|
458 | public function getSubscriptionEndTime()
|
---|
459 | {
|
---|
460 | return $this->subscriptionEndTime;
|
---|
461 | }
|
---|
462 | /**
|
---|
463 | * @param string
|
---|
464 | */
|
---|
465 | public function setUpdateTime($updateTime)
|
---|
466 | {
|
---|
467 | $this->updateTime = $updateTime;
|
---|
468 | }
|
---|
469 | /**
|
---|
470 | * @return string
|
---|
471 | */
|
---|
472 | public function getUpdateTime()
|
---|
473 | {
|
---|
474 | return $this->updateTime;
|
---|
475 | }
|
---|
476 | /**
|
---|
477 | * @param string
|
---|
478 | */
|
---|
479 | public function setUsageReportingId($usageReportingId)
|
---|
480 | {
|
---|
481 | $this->usageReportingId = $usageReportingId;
|
---|
482 | }
|
---|
483 | /**
|
---|
484 | * @return string
|
---|
485 | */
|
---|
486 | public function getUsageReportingId()
|
---|
487 | {
|
---|
488 | return $this->usageReportingId;
|
---|
489 | }
|
---|
490 | }
|
---|
491 |
|
---|
492 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
493 | class_alias(Entitlement::class, 'Google_Service_CloudCommercePartnerProcurementService_Entitlement');
|
---|