1 | <?php |
||
9 | class Order |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | const MONEY_RECIPIENT_DELIVERY_SERVICE = 'delivery_service'; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | const MONEY_RECIPIENT_CLIENT = 'client'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | const MONEY_RECIPIENT_PIMPAY = 'pimpay'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $id; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $tin; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | private $shopExternalId; |
||
40 | |||
41 | /** |
||
42 | * @var OrderBase |
||
43 | */ |
||
44 | private $base; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $createdAt; |
||
50 | |||
51 | /** |
||
52 | * @var OrderItem[] |
||
53 | */ |
||
54 | private $items; |
||
55 | |||
56 | /** |
||
57 | * @var Address |
||
58 | */ |
||
59 | private $destinationAddress; |
||
60 | |||
61 | /** |
||
62 | * @var Recipient |
||
63 | */ |
||
64 | private $recipient; |
||
65 | |||
66 | /** |
||
67 | * @var F103 |
||
68 | */ |
||
69 | private $f103; |
||
70 | |||
71 | /** |
||
72 | * @var string |
||
73 | */ |
||
74 | private $moneyRecipient; |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getId(): string |
||
83 | |||
84 | /** |
||
85 | * @param string $id |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function setId(string $id) |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getTin(): string |
||
102 | |||
103 | /** |
||
104 | * @param string $tin |
||
105 | * @return $this |
||
106 | */ |
||
107 | public function setTin(string $tin) |
||
113 | |||
114 | /** |
||
115 | * @return string|null |
||
116 | */ |
||
117 | public function getShopExternalId() |
||
121 | |||
122 | /** |
||
123 | * @param string|null $shopExternalId |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setShopExternalId(string $shopExternalId = null) |
||
132 | |||
133 | /** |
||
134 | * @return OrderBase |
||
135 | */ |
||
136 | public function getBase(): OrderBase |
||
140 | |||
141 | /** |
||
142 | * @param OrderBase $base |
||
143 | * @return $this |
||
144 | */ |
||
145 | public function setBase(OrderBase $base) |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | public function getCreatedAt(): string |
||
159 | |||
160 | /** |
||
161 | * @param \DateTime $createdAt |
||
162 | * @return $this |
||
163 | */ |
||
164 | public function setCreatedAt(\DateTime $createdAt) |
||
170 | |||
171 | /** |
||
172 | * @return OrderItem[] |
||
173 | */ |
||
174 | public function getItems(): array |
||
178 | |||
179 | /** |
||
180 | * @param OrderItem $item |
||
181 | * @return $this |
||
182 | */ |
||
183 | public function addItem(OrderItem $item) |
||
189 | |||
190 | /** |
||
191 | * @param OrderItem[] $items |
||
192 | * @return $this |
||
193 | */ |
||
194 | public function setItems(array $items) |
||
200 | |||
201 | /** |
||
202 | * @return Address |
||
203 | */ |
||
204 | public function getDestinationAddress(): Address |
||
208 | |||
209 | /** |
||
210 | * @param Address $destinationAddress |
||
211 | * @return $this |
||
212 | */ |
||
213 | public function setDestinationAddress(Address $destinationAddress) |
||
219 | |||
220 | /** |
||
221 | * @return Recipient |
||
222 | */ |
||
223 | public function getRecipient(): Recipient |
||
227 | |||
228 | /** |
||
229 | * @param Recipient $recipient |
||
230 | * @return $this |
||
231 | */ |
||
232 | public function setRecipient(Recipient $recipient) |
||
238 | |||
239 | /** |
||
240 | * @return F103 |
||
241 | */ |
||
242 | public function getF103(): F103 |
||
246 | |||
247 | /** |
||
248 | * @param F103 $f103 |
||
249 | * @return $this |
||
250 | */ |
||
251 | public function setF103(F103 $f103) |
||
257 | |||
258 | /** |
||
259 | * @return string |
||
260 | */ |
||
261 | public function getMoneyRecipient(): string |
||
265 | |||
266 | /** |
||
267 | * @param string $moneyRecipient |
||
268 | * @return $this |
||
269 | */ |
||
270 | public function setMoneyRecipient(string $moneyRecipient) |
||
276 | } |
||
277 |