1 | <?php |
||
10 | class OrderDetails |
||
11 | { |
||
12 | /** |
||
13 | * @var Consumer |
||
14 | */ |
||
15 | protected $consumer; |
||
16 | /** |
||
17 | * @var Contact |
||
18 | */ |
||
19 | protected $billing; |
||
20 | /** |
||
21 | * @var Contact |
||
22 | */ |
||
23 | protected $shipping; |
||
24 | /** |
||
25 | * @var ShippingCourier |
||
26 | */ |
||
27 | protected $courier; |
||
28 | /** |
||
29 | * @var Item[] |
||
30 | */ |
||
31 | protected $items = array(); |
||
32 | /** |
||
33 | * @var Discount[] |
||
34 | */ |
||
35 | protected $discounts = array(); |
||
36 | /** |
||
37 | * @var Money |
||
38 | */ |
||
39 | protected $totalAmount; |
||
40 | /** |
||
41 | * @var Money |
||
42 | */ |
||
43 | protected $taxAmount; |
||
44 | /** |
||
45 | * @var Money |
||
46 | */ |
||
47 | protected $shippingAmount; |
||
48 | |||
49 | /** |
||
50 | * @var MerchantOptions |
||
51 | */ |
||
52 | protected $merchant; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $paymentType; |
||
58 | |||
59 | /** |
||
60 | * @var string |
||
61 | */ |
||
62 | protected $merchantReference; |
||
63 | |||
64 | /** |
||
65 | * @return Consumer |
||
66 | */ |
||
67 | public function getConsumer() |
||
71 | |||
72 | /** |
||
73 | * @return Contact |
||
74 | */ |
||
75 | public function getBilling() |
||
79 | |||
80 | /** |
||
81 | * @return Contact |
||
82 | */ |
||
83 | public function getShipping() |
||
87 | |||
88 | /** |
||
89 | * @return ShippingCourier |
||
90 | */ |
||
91 | public function getCourier() |
||
95 | |||
96 | /** |
||
97 | * @return Item[] |
||
98 | */ |
||
99 | public function getItems() |
||
103 | |||
104 | /** |
||
105 | * @return Discount[] |
||
106 | */ |
||
107 | public function getDiscounts() |
||
111 | |||
112 | /** |
||
113 | * @return Money |
||
114 | */ |
||
115 | public function getTotalAmount() |
||
119 | |||
120 | /** |
||
121 | * @param Money $totalAmount |
||
122 | * @return $this |
||
123 | */ |
||
124 | public function setTotalAmount($totalAmount) |
||
130 | |||
131 | /** |
||
132 | * @return Money |
||
133 | */ |
||
134 | public function getTaxAmount() |
||
138 | |||
139 | /** |
||
140 | * @return Money |
||
141 | */ |
||
142 | public function getShippingAmount() |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getMerchantReference() |
||
154 | |||
155 | /** |
||
156 | * @param Consumer $consumer |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function setConsumer(Consumer $consumer) |
||
165 | |||
166 | /** |
||
167 | * @param Contact $billing |
||
168 | * @return $this |
||
169 | */ |
||
170 | public function setBilling(Contact $billing) |
||
176 | |||
177 | /** |
||
178 | * @param Contact $shipping |
||
179 | * @return $this |
||
180 | */ |
||
181 | public function setShipping(Contact $shipping) |
||
187 | |||
188 | /** |
||
189 | * @param ShippingCourier $courier |
||
190 | * @return $this |
||
191 | */ |
||
192 | public function setCourier(ShippingCourier $courier) |
||
198 | |||
199 | /** |
||
200 | * @param Item[] $items |
||
201 | * @return $this |
||
202 | */ |
||
203 | public function setItems(array $items) |
||
209 | |||
210 | /** |
||
211 | * @param Discount[] $discounts |
||
212 | * @return $this |
||
213 | */ |
||
214 | public function setDiscounts(array $discounts) |
||
220 | |||
221 | /** |
||
222 | * @param Money $taxAmount |
||
223 | * @return $this |
||
224 | */ |
||
225 | public function setTaxAmount(Money $taxAmount) |
||
231 | |||
232 | /** |
||
233 | * @param Money $shippingAmount |
||
234 | * @return $this |
||
235 | */ |
||
236 | public function setShippingAmount(Money $shippingAmount) |
||
242 | |||
243 | /** |
||
244 | * @return MerchantOptions |
||
245 | */ |
||
246 | public function getMerchant() |
||
250 | |||
251 | /** |
||
252 | * @param MerchantOptions $merchant |
||
253 | * @return $this |
||
254 | */ |
||
255 | public function setMerchant(MerchantOptions $merchant) |
||
261 | |||
262 | /** |
||
263 | * @return string |
||
264 | */ |
||
265 | public function getPaymentType() |
||
269 | |||
270 | /** |
||
271 | * @param string $paymentType |
||
272 | * @return $this |
||
273 | */ |
||
274 | public function setPaymentType($paymentType) |
||
280 | |||
281 | /** |
||
282 | * @param string $merchantReference |
||
283 | * @return $this |
||
284 | */ |
||
285 | public function setMerchantReference($merchantReference) |
||
291 | } |
||
292 |