1 | <?php |
||
23 | class CreateOrder extends BaseEvent |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $session; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $order; |
||
34 | |||
35 | /** |
||
36 | * @var Email |
||
37 | */ |
||
38 | private $userEmail; |
||
39 | |||
40 | /** |
||
41 | * @var Money |
||
42 | */ |
||
43 | private $amount; |
||
44 | |||
45 | /** |
||
46 | * @var Address |
||
47 | */ |
||
48 | private $billingAddress; |
||
49 | |||
50 | /** |
||
51 | * @var PaymentMethods |
||
52 | */ |
||
53 | private $paymentMethods; |
||
54 | |||
55 | /** |
||
56 | * @var Address |
||
57 | */ |
||
58 | private $shippingAddress; |
||
59 | |||
60 | /** |
||
61 | * @var bool |
||
62 | */ |
||
63 | private $expeditedShipping = false; |
||
64 | |||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | private $shippingMethod; |
||
69 | |||
70 | /** |
||
71 | * @var Items |
||
72 | */ |
||
73 | private $items; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | */ |
||
78 | private $sellerUserId; |
||
79 | |||
80 | /** |
||
81 | * @var Promotions |
||
82 | */ |
||
83 | private $promotions; |
||
84 | |||
85 | /** |
||
86 | * CreateOrder constructor. |
||
87 | */ |
||
88 | 5 | public function __construct() |
|
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | 1 | public function getSession() |
|
103 | |||
104 | /** |
||
105 | * @param string $session |
||
106 | * |
||
107 | * @return $this |
||
108 | */ |
||
109 | 1 | public function setSession($session) |
|
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 1 | public function getOrder() |
|
123 | |||
124 | /** |
||
125 | * @param string $order |
||
126 | * |
||
127 | * @return $this |
||
128 | */ |
||
129 | 1 | public function setOrder($order) |
|
135 | |||
136 | /** |
||
137 | * @return Email |
||
138 | */ |
||
139 | 1 | public function getUserEmail() |
|
143 | |||
144 | /** |
||
145 | * @param Email $userEmail |
||
146 | * |
||
147 | * @return $this |
||
148 | */ |
||
149 | 1 | public function setUserEmail(Email $userEmail) |
|
155 | |||
156 | /** |
||
157 | * @return Money |
||
158 | */ |
||
159 | 1 | public function getAmount() |
|
163 | |||
164 | /** |
||
165 | * @param Money $amount |
||
166 | * |
||
167 | * @return $this |
||
168 | */ |
||
169 | 1 | public function setAmount(Money $amount) |
|
175 | |||
176 | /** |
||
177 | * @return Address |
||
178 | */ |
||
179 | 1 | public function getBillingAddress() |
|
183 | |||
184 | /** |
||
185 | * @param Address $billingAddress |
||
186 | * |
||
187 | * @return $this |
||
188 | */ |
||
189 | 1 | public function setBillingAddress(Address $billingAddress) |
|
195 | |||
196 | /** |
||
197 | * @return PaymentMethods |
||
198 | */ |
||
199 | 1 | public function getPaymentMethods() |
|
203 | |||
204 | /** |
||
205 | * @param PaymentMethod $paymentMethod |
||
206 | * |
||
207 | * @return $this |
||
208 | */ |
||
209 | 1 | public function addPaymentMethod(PaymentMethod $paymentMethod) |
|
215 | |||
216 | /** |
||
217 | * @return Address |
||
218 | */ |
||
219 | 1 | public function getShippingAddress() |
|
223 | |||
224 | /** |
||
225 | * @param Address $shippingAddress |
||
226 | * |
||
227 | * @return $this |
||
228 | */ |
||
229 | 1 | public function setShippingAddress(Address $shippingAddress) |
|
235 | |||
236 | /** |
||
237 | * @return bool |
||
238 | */ |
||
239 | 1 | public function isExpeditedShipping() |
|
243 | |||
244 | /** |
||
245 | * @param bool $expeditedShipping |
||
246 | * |
||
247 | * @return $this |
||
248 | */ |
||
249 | 1 | public function setExpeditedShipping($expeditedShipping) |
|
255 | |||
256 | /** |
||
257 | * @return string |
||
258 | */ |
||
259 | 1 | public function getShippingMethod() |
|
263 | |||
264 | /** |
||
265 | * @param string $shippingMethod |
||
266 | * |
||
267 | * @return $this |
||
268 | */ |
||
269 | 2 | public function setShippingMethod($shippingMethod) |
|
279 | |||
280 | /** |
||
281 | * @return Items |
||
282 | */ |
||
283 | 1 | public function getItems() |
|
287 | |||
288 | /** |
||
289 | * @param Item $item |
||
290 | * |
||
291 | * @return $this |
||
292 | */ |
||
293 | 1 | public function addItem(Item $item) |
|
299 | |||
300 | /** |
||
301 | * @return string |
||
302 | */ |
||
303 | 1 | public function getSellerUserId() |
|
307 | |||
308 | /** |
||
309 | * @param string $sellerUserId |
||
310 | * |
||
311 | * @return $this |
||
312 | */ |
||
313 | 1 | public function setSellerUserId($sellerUserId) |
|
319 | |||
320 | /** |
||
321 | * @return Promotions |
||
322 | */ |
||
323 | 1 | public function getPromotions() |
|
327 | |||
328 | /** |
||
329 | * @param Promotion $promotion |
||
330 | * |
||
331 | * @return $this |
||
332 | */ |
||
333 | 1 | public function addPromotion(Promotion $promotion) |
|
339 | } |
||
340 |