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
18namespace Google\Service\AndroidPublisher;
19
20class SubscriptionPurchase extends \Google\Model
21{
22  /**
23   * @var int
24   */
25  public $acknowledgementState;
26  /**
27   * @var bool
28   */
29  public $autoRenewing;
30  /**
31   * @var string
32   */
33  public $autoResumeTimeMillis;
34  /**
35   * @var int
36   */
37  public $cancelReason;
38  protected $cancelSurveyResultType = SubscriptionCancelSurveyResult::class;
39  protected $cancelSurveyResultDataType = '';
40  /**
41   * @var string
42   */
43  public $countryCode;
44  /**
45   * @var string
46   */
47  public $developerPayload;
48  /**
49   * @var string
50   */
51  public $emailAddress;
52  /**
53   * @var string
54   */
55  public $expiryTimeMillis;
56  /**
57   * @var string
58   */
59  public $externalAccountId;
60  /**
61   * @var string
62   */
63  public $familyName;
64  /**
65   * @var string
66   */
67  public $givenName;
68  protected $introductoryPriceInfoType = IntroductoryPriceInfo::class;
69  protected $introductoryPriceInfoDataType = '';
70  /**
71   * @var string
72   */
73  public $kind;
74  /**
75   * @var string
76   */
77  public $linkedPurchaseToken;
78  /**
79   * @var string
80   */
81  public $obfuscatedExternalAccountId;
82  /**
83   * @var string
84   */
85  public $obfuscatedExternalProfileId;
86  /**
87   * @var string
88   */
89  public $orderId;
90  /**
91   * @var int
92   */
93  public $paymentState;
94  /**
95   * @var string
96   */
97  public $priceAmountMicros;
98  protected $priceChangeType = SubscriptionPriceChange::class;
99  protected $priceChangeDataType = '';
100  /**
101   * @var string
102   */
103  public $priceCurrencyCode;
104  /**
105   * @var string
106   */
107  public $profileId;
108  /**
109   * @var string
110   */
111  public $profileName;
112  /**
113   * @var string
114   */
115  public $promotionCode;
116  /**
117   * @var int
118   */
119  public $promotionType;
120  /**
121   * @var int
122   */
123  public $purchaseType;
124  /**
125   * @var string
126   */
127  public $startTimeMillis;
128  /**
129   * @var string
130   */
131  public $userCancellationTimeMillis;
132
133  /**
134   * @param int
135   */
136  public function setAcknowledgementState($acknowledgementState)
137  {
138    $this->acknowledgementState = $acknowledgementState;
139  }
140  /**
141   * @return int
142   */
143  public function getAcknowledgementState()
144  {
145    return $this->acknowledgementState;
146  }
147  /**
148   * @param bool
149   */
150  public function setAutoRenewing($autoRenewing)
151  {
152    $this->autoRenewing = $autoRenewing;
153  }
154  /**
155   * @return bool
156   */
157  public function getAutoRenewing()
158  {
159    return $this->autoRenewing;
160  }
161  /**
162   * @param string
163   */
164  public function setAutoResumeTimeMillis($autoResumeTimeMillis)
165  {
166    $this->autoResumeTimeMillis = $autoResumeTimeMillis;
167  }
168  /**
169   * @return string
170   */
171  public function getAutoResumeTimeMillis()
172  {
173    return $this->autoResumeTimeMillis;
174  }
175  /**
176   * @param int
177   */
178  public function setCancelReason($cancelReason)
179  {
180    $this->cancelReason = $cancelReason;
181  }
182  /**
183   * @return int
184   */
185  public function getCancelReason()
186  {
187    return $this->cancelReason;
188  }
189  /**
190   * @param SubscriptionCancelSurveyResult
191   */
192  public function setCancelSurveyResult(SubscriptionCancelSurveyResult $cancelSurveyResult)
193  {
194    $this->cancelSurveyResult = $cancelSurveyResult;
195  }
196  /**
197   * @return SubscriptionCancelSurveyResult
198   */
199  public function getCancelSurveyResult()
200  {
201    return $this->cancelSurveyResult;
202  }
203  /**
204   * @param string
205   */
206  public function setCountryCode($countryCode)
207  {
208    $this->countryCode = $countryCode;
209  }
210  /**
211   * @return string
212   */
213  public function getCountryCode()
214  {
215    return $this->countryCode;
216  }
217  /**
218   * @param string
219   */
220  public function setDeveloperPayload($developerPayload)
221  {
222    $this->developerPayload = $developerPayload;
223  }
224  /**
225   * @return string
226   */
227  public function getDeveloperPayload()
228  {
229    return $this->developerPayload;
230  }
231  /**
232   * @param string
233   */
234  public function setEmailAddress($emailAddress)
235  {
236    $this->emailAddress = $emailAddress;
237  }
238  /**
239   * @return string
240   */
241  public function getEmailAddress()
242  {
243    return $this->emailAddress;
244  }
245  /**
246   * @param string
247   */
248  public function setExpiryTimeMillis($expiryTimeMillis)
249  {
250    $this->expiryTimeMillis = $expiryTimeMillis;
251  }
252  /**
253   * @return string
254   */
255  public function getExpiryTimeMillis()
256  {
257    return $this->expiryTimeMillis;
258  }
259  /**
260   * @param string
261   */
262  public function setExternalAccountId($externalAccountId)
263  {
264    $this->externalAccountId = $externalAccountId;
265  }
266  /**
267   * @return string
268   */
269  public function getExternalAccountId()
270  {
271    return $this->externalAccountId;
272  }
273  /**
274   * @param string
275   */
276  public function setFamilyName($familyName)
277  {
278    $this->familyName = $familyName;
279  }
280  /**
281   * @return string
282   */
283  public function getFamilyName()
284  {
285    return $this->familyName;
286  }
287  /**
288   * @param string
289   */
290  public function setGivenName($givenName)
291  {
292    $this->givenName = $givenName;
293  }
294  /**
295   * @return string
296   */
297  public function getGivenName()
298  {
299    return $this->givenName;
300  }
301  /**
302   * @param IntroductoryPriceInfo
303   */
304  public function setIntroductoryPriceInfo(IntroductoryPriceInfo $introductoryPriceInfo)
305  {
306    $this->introductoryPriceInfo = $introductoryPriceInfo;
307  }
308  /**
309   * @return IntroductoryPriceInfo
310   */
311  public function getIntroductoryPriceInfo()
312  {
313    return $this->introductoryPriceInfo;
314  }
315  /**
316   * @param string
317   */
318  public function setKind($kind)
319  {
320    $this->kind = $kind;
321  }
322  /**
323   * @return string
324   */
325  public function getKind()
326  {
327    return $this->kind;
328  }
329  /**
330   * @param string
331   */
332  public function setLinkedPurchaseToken($linkedPurchaseToken)
333  {
334    $this->linkedPurchaseToken = $linkedPurchaseToken;
335  }
336  /**
337   * @return string
338   */
339  public function getLinkedPurchaseToken()
340  {
341    return $this->linkedPurchaseToken;
342  }
343  /**
344   * @param string
345   */
346  public function setObfuscatedExternalAccountId($obfuscatedExternalAccountId)
347  {
348    $this->obfuscatedExternalAccountId = $obfuscatedExternalAccountId;
349  }
350  /**
351   * @return string
352   */
353  public function getObfuscatedExternalAccountId()
354  {
355    return $this->obfuscatedExternalAccountId;
356  }
357  /**
358   * @param string
359   */
360  public function setObfuscatedExternalProfileId($obfuscatedExternalProfileId)
361  {
362    $this->obfuscatedExternalProfileId = $obfuscatedExternalProfileId;
363  }
364  /**
365   * @return string
366   */
367  public function getObfuscatedExternalProfileId()
368  {
369    return $this->obfuscatedExternalProfileId;
370  }
371  /**
372   * @param string
373   */
374  public function setOrderId($orderId)
375  {
376    $this->orderId = $orderId;
377  }
378  /**
379   * @return string
380   */
381  public function getOrderId()
382  {
383    return $this->orderId;
384  }
385  /**
386   * @param int
387   */
388  public function setPaymentState($paymentState)
389  {
390    $this->paymentState = $paymentState;
391  }
392  /**
393   * @return int
394   */
395  public function getPaymentState()
396  {
397    return $this->paymentState;
398  }
399  /**
400   * @param string
401   */
402  public function setPriceAmountMicros($priceAmountMicros)
403  {
404    $this->priceAmountMicros = $priceAmountMicros;
405  }
406  /**
407   * @return string
408   */
409  public function getPriceAmountMicros()
410  {
411    return $this->priceAmountMicros;
412  }
413  /**
414   * @param SubscriptionPriceChange
415   */
416  public function setPriceChange(SubscriptionPriceChange $priceChange)
417  {
418    $this->priceChange = $priceChange;
419  }
420  /**
421   * @return SubscriptionPriceChange
422   */
423  public function getPriceChange()
424  {
425    return $this->priceChange;
426  }
427  /**
428   * @param string
429   */
430  public function setPriceCurrencyCode($priceCurrencyCode)
431  {
432    $this->priceCurrencyCode = $priceCurrencyCode;
433  }
434  /**
435   * @return string
436   */
437  public function getPriceCurrencyCode()
438  {
439    return $this->priceCurrencyCode;
440  }
441  /**
442   * @param string
443   */
444  public function setProfileId($profileId)
445  {
446    $this->profileId = $profileId;
447  }
448  /**
449   * @return string
450   */
451  public function getProfileId()
452  {
453    return $this->profileId;
454  }
455  /**
456   * @param string
457   */
458  public function setProfileName($profileName)
459  {
460    $this->profileName = $profileName;
461  }
462  /**
463   * @return string
464   */
465  public function getProfileName()
466  {
467    return $this->profileName;
468  }
469  /**
470   * @param string
471   */
472  public function setPromotionCode($promotionCode)
473  {
474    $this->promotionCode = $promotionCode;
475  }
476  /**
477   * @return string
478   */
479  public function getPromotionCode()
480  {
481    return $this->promotionCode;
482  }
483  /**
484   * @param int
485   */
486  public function setPromotionType($promotionType)
487  {
488    $this->promotionType = $promotionType;
489  }
490  /**
491   * @return int
492   */
493  public function getPromotionType()
494  {
495    return $this->promotionType;
496  }
497  /**
498   * @param int
499   */
500  public function setPurchaseType($purchaseType)
501  {
502    $this->purchaseType = $purchaseType;
503  }
504  /**
505   * @return int
506   */
507  public function getPurchaseType()
508  {
509    return $this->purchaseType;
510  }
511  /**
512   * @param string
513   */
514  public function setStartTimeMillis($startTimeMillis)
515  {
516    $this->startTimeMillis = $startTimeMillis;
517  }
518  /**
519   * @return string
520   */
521  public function getStartTimeMillis()
522  {
523    return $this->startTimeMillis;
524  }
525  /**
526   * @param string
527   */
528  public function setUserCancellationTimeMillis($userCancellationTimeMillis)
529  {
530    $this->userCancellationTimeMillis = $userCancellationTimeMillis;
531  }
532  /**
533   * @return string
534   */
535  public function getUserCancellationTimeMillis()
536  {
537    return $this->userCancellationTimeMillis;
538  }
539}
540
541// Adding a class alias for backwards compatibility with the previous class name.
542class_alias(SubscriptionPurchase::class, 'Google_Service_AndroidPublisher_SubscriptionPurchase');
543