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 ProductPurchase extends \Google\Model
21{
22  /**
23   * @var int
24   */
25  public $acknowledgementState;
26  /**
27   * @var int
28   */
29  public $consumptionState;
30  /**
31   * @var string
32   */
33  public $developerPayload;
34  /**
35   * @var string
36   */
37  public $kind;
38  /**
39   * @var string
40   */
41  public $obfuscatedExternalAccountId;
42  /**
43   * @var string
44   */
45  public $obfuscatedExternalProfileId;
46  /**
47   * @var string
48   */
49  public $orderId;
50  /**
51   * @var string
52   */
53  public $productId;
54  /**
55   * @var int
56   */
57  public $purchaseState;
58  /**
59   * @var string
60   */
61  public $purchaseTimeMillis;
62  /**
63   * @var string
64   */
65  public $purchaseToken;
66  /**
67   * @var int
68   */
69  public $purchaseType;
70  /**
71   * @var int
72   */
73  public $quantity;
74  /**
75   * @var string
76   */
77  public $regionCode;
78
79  /**
80   * @param int
81   */
82  public function setAcknowledgementState($acknowledgementState)
83  {
84    $this->acknowledgementState = $acknowledgementState;
85  }
86  /**
87   * @return int
88   */
89  public function getAcknowledgementState()
90  {
91    return $this->acknowledgementState;
92  }
93  /**
94   * @param int
95   */
96  public function setConsumptionState($consumptionState)
97  {
98    $this->consumptionState = $consumptionState;
99  }
100  /**
101   * @return int
102   */
103  public function getConsumptionState()
104  {
105    return $this->consumptionState;
106  }
107  /**
108   * @param string
109   */
110  public function setDeveloperPayload($developerPayload)
111  {
112    $this->developerPayload = $developerPayload;
113  }
114  /**
115   * @return string
116   */
117  public function getDeveloperPayload()
118  {
119    return $this->developerPayload;
120  }
121  /**
122   * @param string
123   */
124  public function setKind($kind)
125  {
126    $this->kind = $kind;
127  }
128  /**
129   * @return string
130   */
131  public function getKind()
132  {
133    return $this->kind;
134  }
135  /**
136   * @param string
137   */
138  public function setObfuscatedExternalAccountId($obfuscatedExternalAccountId)
139  {
140    $this->obfuscatedExternalAccountId = $obfuscatedExternalAccountId;
141  }
142  /**
143   * @return string
144   */
145  public function getObfuscatedExternalAccountId()
146  {
147    return $this->obfuscatedExternalAccountId;
148  }
149  /**
150   * @param string
151   */
152  public function setObfuscatedExternalProfileId($obfuscatedExternalProfileId)
153  {
154    $this->obfuscatedExternalProfileId = $obfuscatedExternalProfileId;
155  }
156  /**
157   * @return string
158   */
159  public function getObfuscatedExternalProfileId()
160  {
161    return $this->obfuscatedExternalProfileId;
162  }
163  /**
164   * @param string
165   */
166  public function setOrderId($orderId)
167  {
168    $this->orderId = $orderId;
169  }
170  /**
171   * @return string
172   */
173  public function getOrderId()
174  {
175    return $this->orderId;
176  }
177  /**
178   * @param string
179   */
180  public function setProductId($productId)
181  {
182    $this->productId = $productId;
183  }
184  /**
185   * @return string
186   */
187  public function getProductId()
188  {
189    return $this->productId;
190  }
191  /**
192   * @param int
193   */
194  public function setPurchaseState($purchaseState)
195  {
196    $this->purchaseState = $purchaseState;
197  }
198  /**
199   * @return int
200   */
201  public function getPurchaseState()
202  {
203    return $this->purchaseState;
204  }
205  /**
206   * @param string
207   */
208  public function setPurchaseTimeMillis($purchaseTimeMillis)
209  {
210    $this->purchaseTimeMillis = $purchaseTimeMillis;
211  }
212  /**
213   * @return string
214   */
215  public function getPurchaseTimeMillis()
216  {
217    return $this->purchaseTimeMillis;
218  }
219  /**
220   * @param string
221   */
222  public function setPurchaseToken($purchaseToken)
223  {
224    $this->purchaseToken = $purchaseToken;
225  }
226  /**
227   * @return string
228   */
229  public function getPurchaseToken()
230  {
231    return $this->purchaseToken;
232  }
233  /**
234   * @param int
235   */
236  public function setPurchaseType($purchaseType)
237  {
238    $this->purchaseType = $purchaseType;
239  }
240  /**
241   * @return int
242   */
243  public function getPurchaseType()
244  {
245    return $this->purchaseType;
246  }
247  /**
248   * @param int
249   */
250  public function setQuantity($quantity)
251  {
252    $this->quantity = $quantity;
253  }
254  /**
255   * @return int
256   */
257  public function getQuantity()
258  {
259    return $this->quantity;
260  }
261  /**
262   * @param string
263   */
264  public function setRegionCode($regionCode)
265  {
266    $this->regionCode = $regionCode;
267  }
268  /**
269   * @return string
270   */
271  public function getRegionCode()
272  {
273    return $this->regionCode;
274  }
275}
276
277// Adding a class alias for backwards compatibility with the previous class name.
278class_alias(ProductPurchase::class, 'Google_Service_AndroidPublisher_ProductPurchase');
279