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\PaymentsResellerSubscription;
|
---|
19 |
|
---|
20 | class GoogleCloudPaymentsResellerSubscriptionV1Subscription extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'promotions';
|
---|
23 | protected $cancellationDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails::class;
|
---|
24 | protected $cancellationDetailsDataType = '';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $createTime;
|
---|
29 | /**
|
---|
30 | * @var string
|
---|
31 | */
|
---|
32 | public $cycleEndTime;
|
---|
33 | /**
|
---|
34 | * @var bool
|
---|
35 | */
|
---|
36 | public $endUserEntitled;
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $freeTrialEndTime;
|
---|
41 | protected $lineItemsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem::class;
|
---|
42 | protected $lineItemsDataType = 'array';
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $name;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $partnerUserToken;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $processingState;
|
---|
55 | /**
|
---|
56 | * @var string[]
|
---|
57 | */
|
---|
58 | public $products;
|
---|
59 | protected $promotionSpecsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::class;
|
---|
60 | protected $promotionSpecsDataType = 'array';
|
---|
61 | /**
|
---|
62 | * @var string[]
|
---|
63 | */
|
---|
64 | public $promotions;
|
---|
65 | /**
|
---|
66 | * @var string
|
---|
67 | */
|
---|
68 | public $purchaseTime;
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $redirectUri;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $renewalTime;
|
---|
77 | protected $serviceLocationType = GoogleCloudPaymentsResellerSubscriptionV1Location::class;
|
---|
78 | protected $serviceLocationDataType = '';
|
---|
79 | /**
|
---|
80 | * @var string
|
---|
81 | */
|
---|
82 | public $state;
|
---|
83 | /**
|
---|
84 | * @var string
|
---|
85 | */
|
---|
86 | public $updateTime;
|
---|
87 | protected $upgradeDowngradeDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails::class;
|
---|
88 | protected $upgradeDowngradeDetailsDataType = '';
|
---|
89 |
|
---|
90 | /**
|
---|
91 | * @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
|
---|
92 | */
|
---|
93 | public function setCancellationDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails $cancellationDetails)
|
---|
94 | {
|
---|
95 | $this->cancellationDetails = $cancellationDetails;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
|
---|
99 | */
|
---|
100 | public function getCancellationDetails()
|
---|
101 | {
|
---|
102 | return $this->cancellationDetails;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param string
|
---|
106 | */
|
---|
107 | public function setCreateTime($createTime)
|
---|
108 | {
|
---|
109 | $this->createTime = $createTime;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return string
|
---|
113 | */
|
---|
114 | public function getCreateTime()
|
---|
115 | {
|
---|
116 | return $this->createTime;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param string
|
---|
120 | */
|
---|
121 | public function setCycleEndTime($cycleEndTime)
|
---|
122 | {
|
---|
123 | $this->cycleEndTime = $cycleEndTime;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return string
|
---|
127 | */
|
---|
128 | public function getCycleEndTime()
|
---|
129 | {
|
---|
130 | return $this->cycleEndTime;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param bool
|
---|
134 | */
|
---|
135 | public function setEndUserEntitled($endUserEntitled)
|
---|
136 | {
|
---|
137 | $this->endUserEntitled = $endUserEntitled;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return bool
|
---|
141 | */
|
---|
142 | public function getEndUserEntitled()
|
---|
143 | {
|
---|
144 | return $this->endUserEntitled;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setFreeTrialEndTime($freeTrialEndTime)
|
---|
150 | {
|
---|
151 | $this->freeTrialEndTime = $freeTrialEndTime;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getFreeTrialEndTime()
|
---|
157 | {
|
---|
158 | return $this->freeTrialEndTime;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem[]
|
---|
162 | */
|
---|
163 | public function setLineItems($lineItems)
|
---|
164 | {
|
---|
165 | $this->lineItems = $lineItems;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem[]
|
---|
169 | */
|
---|
170 | public function getLineItems()
|
---|
171 | {
|
---|
172 | return $this->lineItems;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @param string
|
---|
176 | */
|
---|
177 | public function setName($name)
|
---|
178 | {
|
---|
179 | $this->name = $name;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @return string
|
---|
183 | */
|
---|
184 | public function getName()
|
---|
185 | {
|
---|
186 | return $this->name;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @param string
|
---|
190 | */
|
---|
191 | public function setPartnerUserToken($partnerUserToken)
|
---|
192 | {
|
---|
193 | $this->partnerUserToken = $partnerUserToken;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @return string
|
---|
197 | */
|
---|
198 | public function getPartnerUserToken()
|
---|
199 | {
|
---|
200 | return $this->partnerUserToken;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @param string
|
---|
204 | */
|
---|
205 | public function setProcessingState($processingState)
|
---|
206 | {
|
---|
207 | $this->processingState = $processingState;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @return string
|
---|
211 | */
|
---|
212 | public function getProcessingState()
|
---|
213 | {
|
---|
214 | return $this->processingState;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @param string[]
|
---|
218 | */
|
---|
219 | public function setProducts($products)
|
---|
220 | {
|
---|
221 | $this->products = $products;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @return string[]
|
---|
225 | */
|
---|
226 | public function getProducts()
|
---|
227 | {
|
---|
228 | return $this->products;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
|
---|
232 | */
|
---|
233 | public function setPromotionSpecs($promotionSpecs)
|
---|
234 | {
|
---|
235 | $this->promotionSpecs = $promotionSpecs;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
|
---|
239 | */
|
---|
240 | public function getPromotionSpecs()
|
---|
241 | {
|
---|
242 | return $this->promotionSpecs;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @param string[]
|
---|
246 | */
|
---|
247 | public function setPromotions($promotions)
|
---|
248 | {
|
---|
249 | $this->promotions = $promotions;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @return string[]
|
---|
253 | */
|
---|
254 | public function getPromotions()
|
---|
255 | {
|
---|
256 | return $this->promotions;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @param string
|
---|
260 | */
|
---|
261 | public function setPurchaseTime($purchaseTime)
|
---|
262 | {
|
---|
263 | $this->purchaseTime = $purchaseTime;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @return string
|
---|
267 | */
|
---|
268 | public function getPurchaseTime()
|
---|
269 | {
|
---|
270 | return $this->purchaseTime;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @param string
|
---|
274 | */
|
---|
275 | public function setRedirectUri($redirectUri)
|
---|
276 | {
|
---|
277 | $this->redirectUri = $redirectUri;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @return string
|
---|
281 | */
|
---|
282 | public function getRedirectUri()
|
---|
283 | {
|
---|
284 | return $this->redirectUri;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @param string
|
---|
288 | */
|
---|
289 | public function setRenewalTime($renewalTime)
|
---|
290 | {
|
---|
291 | $this->renewalTime = $renewalTime;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @return string
|
---|
295 | */
|
---|
296 | public function getRenewalTime()
|
---|
297 | {
|
---|
298 | return $this->renewalTime;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @param GoogleCloudPaymentsResellerSubscriptionV1Location
|
---|
302 | */
|
---|
303 | public function setServiceLocation(GoogleCloudPaymentsResellerSubscriptionV1Location $serviceLocation)
|
---|
304 | {
|
---|
305 | $this->serviceLocation = $serviceLocation;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @return GoogleCloudPaymentsResellerSubscriptionV1Location
|
---|
309 | */
|
---|
310 | public function getServiceLocation()
|
---|
311 | {
|
---|
312 | return $this->serviceLocation;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @param string
|
---|
316 | */
|
---|
317 | public function setState($state)
|
---|
318 | {
|
---|
319 | $this->state = $state;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @return string
|
---|
323 | */
|
---|
324 | public function getState()
|
---|
325 | {
|
---|
326 | return $this->state;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @param string
|
---|
330 | */
|
---|
331 | public function setUpdateTime($updateTime)
|
---|
332 | {
|
---|
333 | $this->updateTime = $updateTime;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @return string
|
---|
337 | */
|
---|
338 | public function getUpdateTime()
|
---|
339 | {
|
---|
340 | return $this->updateTime;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
|
---|
344 | */
|
---|
345 | public function setUpgradeDowngradeDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails $upgradeDowngradeDetails)
|
---|
346 | {
|
---|
347 | $this->upgradeDowngradeDetails = $upgradeDowngradeDetails;
|
---|
348 | }
|
---|
349 | /**
|
---|
350 | * @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
|
---|
351 | */
|
---|
352 | public function getUpgradeDowngradeDetails()
|
---|
353 | {
|
---|
354 | return $this->upgradeDowngradeDetails;
|
---|
355 | }
|
---|
356 | }
|
---|
357 |
|
---|
358 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
359 | class_alias(GoogleCloudPaymentsResellerSubscriptionV1Subscription::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1Subscription');
|
---|