1 | <?php |
||
5 | class Receipt |
||
6 | { |
||
7 | private $originalTransactionId; |
||
8 | private $webOrderLineItemId; |
||
9 | private $productId; |
||
10 | private $purchaseDateMs; |
||
11 | private $purchaseDate; |
||
12 | private $purchaseDatePst; |
||
13 | private $originalPurchaseDate; |
||
14 | private $originalPurchaseDateMs; |
||
15 | private $originalPurchaseDatePst; |
||
16 | private $cancellationReason; |
||
17 | private $promotionalOfferId; |
||
18 | private $cancellationDate; |
||
19 | private $cancellationDateMs; |
||
20 | private $cancellationDatePst; |
||
21 | private $expiresDate; |
||
22 | private $expiresDateMs; |
||
23 | private $expiresDateFormatted; |
||
24 | private $expiresDateFormattedPst; |
||
25 | private $quantity; |
||
26 | private $uniqueIdentifier; |
||
27 | private $uniqueVendorIdentifier; |
||
28 | private $isInIntroOfferPeriod; |
||
29 | private $isTrialPeriod; |
||
30 | private $isUpgraded; |
||
31 | private $itemId; |
||
32 | private $appItemId; |
||
33 | private $versionExternalIdentifier; |
||
34 | private $transactionId; |
||
35 | private $bvrs; |
||
36 | private $bid; |
||
37 | |||
38 | public function __construct() |
||
41 | |||
42 | public static function createFromArray(array $receiptInfo) |
||
78 | |||
79 | /** |
||
80 | * Get the value of bid. |
||
81 | */ |
||
82 | public function getBid() |
||
86 | |||
87 | /** |
||
88 | * Get the value of bvrs. |
||
89 | */ |
||
90 | public function getBvrs() |
||
94 | |||
95 | /** |
||
96 | * Get the value of transactionId. |
||
97 | */ |
||
98 | public function getTransactionId() |
||
102 | |||
103 | /** |
||
104 | * Get the value of versionExternalIdentifier. |
||
105 | */ |
||
106 | public function getVersionExternalIdentifier() |
||
110 | |||
111 | /** |
||
112 | * Get the value of appItemId. |
||
113 | */ |
||
114 | public function getAppItemId() |
||
118 | |||
119 | /** |
||
120 | * Get the value of itemId. |
||
121 | */ |
||
122 | public function getItemId() |
||
126 | |||
127 | /** |
||
128 | * Get the value of isTrialPeriod. |
||
129 | */ |
||
130 | public function getIsTrialPeriod() |
||
134 | |||
135 | /** |
||
136 | * Get the value of isInIntroOfferPeriod. |
||
137 | */ |
||
138 | public function getIsInIntroOfferPeriod() |
||
142 | |||
143 | /** |
||
144 | * Get the value of uniqueVendorIdentifier. |
||
145 | */ |
||
146 | public function getUniqueVendorIdentifier() |
||
150 | |||
151 | /** |
||
152 | * Get the value of uniqueIdentifier. |
||
153 | */ |
||
154 | public function getUniqueIdentifier() |
||
158 | |||
159 | /** |
||
160 | * Get the value of quantity. |
||
161 | */ |
||
162 | public function getQuantity() |
||
166 | |||
167 | /** |
||
168 | * Get the value of expiresDateFormattedPst. |
||
169 | */ |
||
170 | public function getExpiresDateFormattedPst() |
||
174 | |||
175 | /** |
||
176 | * Get the value of expiresDateFormatted. |
||
177 | */ |
||
178 | public function getExpiresDateFormatted() |
||
182 | |||
183 | /** |
||
184 | * Get the value of expiresDateMs. |
||
185 | */ |
||
186 | public function getExpiresDateMs() |
||
190 | |||
191 | /** |
||
192 | * Get the value of expiresDate. |
||
193 | */ |
||
194 | public function getExpiresDate() |
||
198 | |||
199 | /** |
||
200 | * Get the value of cancellationDatePst. |
||
201 | */ |
||
202 | public function getCancellationDatePst() |
||
206 | |||
207 | /** |
||
208 | * Get the value of cancellationDateMs. |
||
209 | */ |
||
210 | public function getCancellationDateMs() |
||
214 | |||
215 | /** |
||
216 | * Get the value of cancellationDate. |
||
217 | */ |
||
218 | public function getCancellationDate() |
||
222 | |||
223 | /** |
||
224 | * Get the value of cancellationReason. |
||
225 | */ |
||
226 | public function getCancellationReason() |
||
230 | |||
231 | /** |
||
232 | * Get the value of originalPurchaseDatePst. |
||
233 | */ |
||
234 | public function getOriginalPurchaseDatePst() |
||
238 | |||
239 | /** |
||
240 | * Get the value of originalPurchaseDateMs. |
||
241 | */ |
||
242 | public function getOriginalPurchaseDateMs() |
||
246 | |||
247 | /** |
||
248 | * Get the value of originalPurchaseDate. |
||
249 | */ |
||
250 | public function getOriginalPurchaseDate() |
||
254 | |||
255 | /** |
||
256 | * Get the value of purchaseDatePst. |
||
257 | */ |
||
258 | public function getPurchaseDatePst() |
||
262 | |||
263 | /** |
||
264 | * Get the value of purchaseDate. |
||
265 | */ |
||
266 | public function getPurchaseDate() |
||
270 | |||
271 | /** |
||
272 | * Get the value of purchaseDateMs. |
||
273 | */ |
||
274 | public function getPurchaseDateMs() |
||
278 | |||
279 | /** |
||
280 | * Get the value of productId. |
||
281 | */ |
||
282 | public function getProductId() |
||
286 | |||
287 | /** |
||
288 | * Get the value of webOrderLineItemId. |
||
289 | */ |
||
290 | public function getWebOrderLineItemId() |
||
294 | |||
295 | /** |
||
296 | * Get the value of originalTransactionId. |
||
297 | */ |
||
298 | public function getOriginalTransactionId() |
||
302 | |||
303 | /** |
||
304 | * Get the value of isUpgraded. |
||
305 | */ |
||
306 | public function getIsUpgraded() |
||
310 | |||
311 | /** |
||
312 | * Get the value of promotionalOfferId. |
||
313 | */ |
||
314 | public function getPromotionalOfferId() |
||
318 | } |
||
319 |