1 | <?php |
||
19 | class Transaction extends BaseEvent |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $id; |
||
25 | |||
26 | /** |
||
27 | * @var Email |
||
28 | */ |
||
29 | private $userEmail; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $transactionType; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $transactionStatus; |
||
40 | |||
41 | /** |
||
42 | * @var Money |
||
43 | */ |
||
44 | private $amount; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $orderId; |
||
50 | |||
51 | /** |
||
52 | * @var Address |
||
53 | */ |
||
54 | private $billingAddress; |
||
55 | |||
56 | /** |
||
57 | * @var Address |
||
58 | */ |
||
59 | private $shippingAddress; |
||
60 | |||
61 | /** |
||
62 | * @var PaymentMethod |
||
63 | */ |
||
64 | private $paymentMethod; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | */ |
||
69 | private $sessionId; |
||
70 | |||
71 | /** |
||
72 | * @var string |
||
73 | */ |
||
74 | private $sellerUserId; |
||
75 | |||
76 | /** |
||
77 | * @var string |
||
78 | */ |
||
79 | private $transferRecipientUserId; |
||
80 | |||
81 | /** |
||
82 | * Transaction constructor. |
||
83 | */ |
||
84 | public function __construct() |
||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getId() |
||
96 | |||
97 | /** |
||
98 | * @param string $id |
||
99 | * |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setId($id) |
||
108 | |||
109 | /** |
||
110 | * @return Email |
||
111 | */ |
||
112 | public function getUserEmail() |
||
116 | |||
117 | /** |
||
118 | * @param Email $userEmail |
||
119 | * |
||
120 | * @return $this |
||
121 | */ |
||
122 | public function setUserEmail(Email $userEmail) |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getTransactionType() |
||
136 | |||
137 | /** |
||
138 | * @param string $transactionType |
||
139 | * |
||
140 | * @return $this |
||
141 | */ |
||
142 | public function setTransactionType($transactionType) |
||
152 | |||
153 | /** |
||
154 | * @return string |
||
155 | */ |
||
156 | public function getTransactionStatus() |
||
160 | |||
161 | /** |
||
162 | * @param string $transactionStatus |
||
163 | * |
||
164 | * @return $this |
||
165 | */ |
||
166 | public function setTransactionStatus($transactionStatus) |
||
176 | |||
177 | /** |
||
178 | * @return Money |
||
179 | */ |
||
180 | public function getAmount() |
||
184 | |||
185 | /** |
||
186 | * @param Money $amount |
||
187 | * |
||
188 | * @return $this |
||
189 | */ |
||
190 | public function setAmount(Money $amount) |
||
196 | |||
197 | /** |
||
198 | * @return string |
||
199 | */ |
||
200 | public function getOrderId() |
||
204 | |||
205 | /** |
||
206 | * @param string $orderId |
||
207 | * |
||
208 | * @return $this |
||
209 | */ |
||
210 | public function setOrderId($orderId) |
||
216 | |||
217 | /** |
||
218 | * @return Address |
||
219 | */ |
||
220 | public function getBillingAddress() |
||
224 | |||
225 | /** |
||
226 | * @param Address $billingAddress |
||
227 | * |
||
228 | * @return $this |
||
229 | */ |
||
230 | public function setBillingAddress(Address $billingAddress) |
||
236 | |||
237 | /** |
||
238 | * @return Address |
||
239 | */ |
||
240 | public function getShippingAddress() |
||
244 | |||
245 | /** |
||
246 | * @param Address $shippingAddress |
||
247 | * |
||
248 | * @return $this |
||
249 | */ |
||
250 | public function setShippingAddress(Address $shippingAddress) |
||
256 | |||
257 | /** |
||
258 | * @return PaymentMethod |
||
259 | */ |
||
260 | public function getPaymentMethod() |
||
264 | |||
265 | /** |
||
266 | * @param PaymentMethod $paymentMethod |
||
267 | * |
||
268 | * @return $this |
||
269 | */ |
||
270 | public function setPaymentMethod(PaymentMethod $paymentMethod) |
||
276 | |||
277 | /** |
||
278 | * @return string |
||
279 | */ |
||
280 | public function getSessionId() |
||
284 | |||
285 | /** |
||
286 | * @param string $sessionId |
||
287 | * |
||
288 | * @return $this |
||
289 | */ |
||
290 | public function setSessionId($sessionId) |
||
296 | |||
297 | /** |
||
298 | * @return string |
||
299 | */ |
||
300 | public function getSellerUserId() |
||
304 | |||
305 | /** |
||
306 | * @param string $sellerUserId |
||
307 | * |
||
308 | * @return $this |
||
309 | */ |
||
310 | public function setSellerUserId($sellerUserId) |
||
316 | |||
317 | /** |
||
318 | * @return string |
||
319 | */ |
||
320 | public function getTransferRecipientUserId() |
||
324 | |||
325 | /** |
||
326 | * @param string $transferRecipientUserId |
||
327 | * |
||
328 | * @return $this |
||
329 | */ |
||
330 | public function setTransferRecipientUserId($transferRecipientUserId) |
||
336 | } |
||
337 |