1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Neta\Shopware\SDK\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Order. |
7
|
|
|
*/ |
8
|
|
|
class Order extends \Neta\Shopware\SDK\Entity\Base |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var int |
12
|
|
|
*/ |
13
|
|
|
protected $id; |
14
|
|
|
/** |
15
|
|
|
* @var string |
16
|
|
|
*/ |
17
|
|
|
protected $number; |
18
|
|
|
/** |
19
|
|
|
* @var mixed |
20
|
|
|
*/ |
21
|
|
|
protected $customerId; |
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
protected $invoiceAmount; |
26
|
|
|
/** |
27
|
|
|
* @var string |
28
|
|
|
*/ |
29
|
|
|
protected $invoiceAmountNet; |
30
|
|
|
/** |
31
|
|
|
* @var string |
32
|
|
|
*/ |
33
|
|
|
protected $invoiceShipping; |
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $invoiceShippingNet; |
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
protected $currency; |
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
protected $remoteAddress; |
46
|
|
|
/** |
47
|
|
|
* @var string |
48
|
|
|
*/ |
49
|
|
|
protected $orderTime; |
50
|
|
|
/** |
51
|
|
|
* @var string |
52
|
|
|
*/ |
53
|
|
|
protected $transactionId; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var OrderBilling[] |
57
|
|
|
*/ |
58
|
|
|
protected $billing; |
59
|
|
|
/** |
60
|
|
|
* @var Customer[] |
61
|
|
|
*/ |
62
|
|
|
protected $customer; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var int |
66
|
|
|
*/ |
67
|
|
|
protected $orderStatusId; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @return int |
71
|
|
|
*/ |
72
|
|
|
public function getOrderStatusId() |
73
|
|
|
{ |
74
|
|
|
return $this->orderStatusId; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @param int $orderStatusId |
79
|
|
|
*/ |
80
|
|
|
public function setOrderStatusId($orderStatusId) |
81
|
|
|
{ |
82
|
|
|
$this->orderStatusId = $orderStatusId; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @return int |
87
|
|
|
*/ |
88
|
|
|
public function getPaymentStatusId() |
89
|
|
|
{ |
90
|
|
|
return $this->paymentStatusId; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @param int $paymentStatusId |
95
|
|
|
*/ |
96
|
|
|
public function setPaymentStatusId($paymentStatusId) |
97
|
|
|
{ |
98
|
|
|
$this->paymentStatusId = $paymentStatusId; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @var int |
103
|
|
|
*/ |
104
|
|
|
protected $paymentStatusId; |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return int |
108
|
|
|
*/ |
109
|
|
|
public function getId() |
110
|
|
|
{ |
111
|
|
|
return $this->id; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @param int $id |
116
|
|
|
* |
117
|
|
|
* @return Order |
118
|
|
|
*/ |
119
|
|
|
public function setId($id) |
120
|
|
|
{ |
121
|
|
|
$this->id = $id; |
122
|
|
|
|
123
|
|
|
return $this; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @return string |
128
|
|
|
*/ |
129
|
|
|
public function getTransactionId() |
130
|
|
|
{ |
131
|
|
|
return $this->transactionId; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @param $transactionId |
136
|
|
|
* @return Order |
137
|
|
|
*/ |
138
|
|
|
public function setTransactionId($transactionId) |
139
|
|
|
{ |
140
|
|
|
$this->transactionId = $transactionId; |
141
|
|
|
|
142
|
|
|
return $this; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @return string |
147
|
|
|
*/ |
148
|
|
|
public function getNumber() |
149
|
|
|
{ |
150
|
|
|
return $this->number; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @param string $number |
155
|
|
|
* |
156
|
|
|
* @return Order |
157
|
|
|
*/ |
158
|
|
|
public function setNumber($number) |
159
|
|
|
{ |
160
|
|
|
$this->number = $number; |
161
|
|
|
|
162
|
|
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @return string |
167
|
|
|
*/ |
168
|
|
|
public function getCustomerId() |
169
|
|
|
{ |
170
|
|
|
return $this->customerId; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @param string $customerId |
175
|
|
|
* |
176
|
|
|
* @return Order |
177
|
|
|
*/ |
178
|
|
|
public function setCustomerId($customerId) |
179
|
|
|
{ |
180
|
|
|
$this->customerId = $customerId; |
181
|
|
|
|
182
|
|
|
return $this; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return string |
187
|
|
|
*/ |
188
|
|
|
public function getInvoiceAmount() |
189
|
|
|
{ |
190
|
|
|
return $this->invoiceAmount; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param string $invoiceAmount |
195
|
|
|
* |
196
|
|
|
* @return Order |
197
|
|
|
*/ |
198
|
|
|
public function setInvoiceAmount($invoiceAmount) |
199
|
|
|
{ |
200
|
|
|
$this->invoiceAmount = $invoiceAmount; |
201
|
|
|
|
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @return string |
207
|
|
|
*/ |
208
|
|
|
public function getInvoiceAmountNet() |
209
|
|
|
{ |
210
|
|
|
return $this->invoiceAmountNet; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @param string $invoiceAmountNet |
215
|
|
|
* |
216
|
|
|
* @return Order |
217
|
|
|
*/ |
218
|
|
|
public function setInvoiceAmountNet($invoiceAmountNet) |
219
|
|
|
{ |
220
|
|
|
$this->invoiceAmountNet = $invoiceAmountNet; |
221
|
|
|
|
222
|
|
|
return $this; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @return string |
227
|
|
|
*/ |
228
|
|
|
public function getInvoiceShipping() |
229
|
|
|
{ |
230
|
|
|
return $this->invoiceShipping; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @param string $invoiceShipping |
235
|
|
|
* |
236
|
|
|
* @return Order |
237
|
|
|
*/ |
238
|
|
|
public function setInvoiceShipping($invoiceShipping) |
239
|
|
|
{ |
240
|
|
|
$this->invoiceShipping = $invoiceShipping; |
241
|
|
|
|
242
|
|
|
return $this; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @return string |
247
|
|
|
*/ |
248
|
|
|
public function getInvoiceShippingNet() |
249
|
|
|
{ |
250
|
|
|
return $this->invoiceShippingNet; |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* @param string $invoiceShippingNet |
255
|
|
|
* |
256
|
|
|
* @return Order |
257
|
|
|
*/ |
258
|
|
|
public function setInvoiceShippingNet($invoiceShippingNet) |
259
|
|
|
{ |
260
|
|
|
$this->invoiceShippingNet = $invoiceShippingNet; |
261
|
|
|
|
262
|
|
|
return $this; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @return string |
267
|
|
|
*/ |
268
|
|
|
public function getCurrency() |
269
|
|
|
{ |
270
|
|
|
return $this->currency; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* @param string $currency |
275
|
|
|
* |
276
|
|
|
* @return Order |
277
|
|
|
*/ |
278
|
|
|
public function setCurrency($currency) |
279
|
|
|
{ |
280
|
|
|
$this->currency = $currency; |
281
|
|
|
|
282
|
|
|
return $this; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @return string |
287
|
|
|
*/ |
288
|
|
|
public function getRemoteAddress() |
289
|
|
|
{ |
290
|
|
|
return $this->remoteAddress; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @param string $remoteAddress |
295
|
|
|
* |
296
|
|
|
* @return Order |
297
|
|
|
*/ |
298
|
|
|
public function setRemoteAddress($remoteAddress) |
299
|
|
|
{ |
300
|
|
|
$this->remoteAddress = $remoteAddress; |
301
|
|
|
|
302
|
|
|
return $this; |
303
|
|
|
} |
304
|
|
|
|
305
|
|
|
/** |
306
|
|
|
* @return string |
307
|
|
|
*/ |
308
|
|
|
public function getOrderTime() |
309
|
|
|
{ |
310
|
|
|
return $this->orderTime; |
311
|
|
|
} |
312
|
|
|
|
313
|
|
|
/** |
314
|
|
|
* @param string $orderTime |
315
|
|
|
* |
316
|
|
|
* @return Order |
317
|
|
|
*/ |
318
|
|
|
public function setOrderTime($orderTime) |
319
|
|
|
{ |
320
|
|
|
$this->orderTime = $orderTime; |
321
|
|
|
|
322
|
|
|
return $this; |
323
|
|
|
} |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* @return OrderBilling[] |
327
|
|
|
*/ |
328
|
|
|
public function getBilling() |
329
|
|
|
{ |
330
|
|
|
return $this->billing; |
331
|
|
|
} |
332
|
|
|
|
333
|
|
|
/** |
334
|
|
|
* @param OrderBilling[] $billing |
335
|
|
|
* |
336
|
|
|
* @return Order |
337
|
|
|
*/ |
338
|
|
|
public function setBilling($billing) |
339
|
|
|
{ |
340
|
|
|
$this->billing = $billing; |
341
|
|
|
|
342
|
|
|
return $this; |
343
|
|
|
} |
344
|
|
|
|
345
|
|
|
/** |
346
|
|
|
* @return Customer[] |
347
|
|
|
*/ |
348
|
|
|
public function getCustomer() |
349
|
|
|
{ |
350
|
|
|
return $this->customer; |
351
|
|
|
} |
352
|
|
|
|
353
|
|
|
/** |
354
|
|
|
* @param Customer[] $customer |
355
|
|
|
* |
356
|
|
|
* @return Order |
357
|
|
|
*/ |
358
|
|
|
public function setCustomer($customer) |
359
|
|
|
{ |
360
|
|
|
$this->customer = $customer; |
361
|
|
|
|
362
|
|
|
return $this; |
363
|
|
|
} |
364
|
|
|
} |
365
|
|
|
|