1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the slince/shopify-api-php |
5
|
|
|
* |
6
|
|
|
* (c) Slince <[email protected]> |
7
|
|
|
* |
8
|
|
|
* This source file is subject to the MIT license that is bundled |
9
|
|
|
* with this source code in the file LICENSE. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Slince\Shopify\Manager\Order; |
13
|
|
|
|
14
|
|
|
use Slince\Shopify\Common\Model\Model; |
15
|
|
|
use Slince\Shopify\Common\Model\AdminGraphqlApiId; |
16
|
|
|
use Slince\Shopify\Manager\Customer\Customer; |
17
|
|
|
use Slince\Shopify\Manager\Fulfillment\Fulfillment; |
18
|
|
|
use Slince\Shopify\Manager\Refund\Refund; |
19
|
|
|
use Slince\Shopify\Manager\Transaction\Transaction; |
20
|
|
|
|
21
|
|
|
class Order extends Model |
22
|
|
|
{ |
23
|
|
|
use AdminGraphqlApiId; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string |
27
|
|
|
*/ |
28
|
|
|
protected $email; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var \DateTimeInterface |
32
|
|
|
*/ |
33
|
|
|
protected $closedAt; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var \DateTimeInterface |
37
|
|
|
*/ |
38
|
|
|
protected $createdAt; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var \DateTimeInterface |
42
|
|
|
*/ |
43
|
|
|
protected $updatedAt; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var \DateTimeInterface |
47
|
|
|
*/ |
48
|
|
|
protected $deletedAt; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var int |
52
|
|
|
*/ |
53
|
|
|
protected $number; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
protected $note; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
*/ |
63
|
|
|
protected $token; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var string |
67
|
|
|
*/ |
68
|
|
|
protected $gateway; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var bool |
72
|
|
|
*/ |
73
|
|
|
protected $test; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var float |
77
|
|
|
*/ |
78
|
|
|
protected $totalPrice; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @var float |
82
|
|
|
*/ |
83
|
|
|
protected $subtotalPrice; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var float |
87
|
|
|
*/ |
88
|
|
|
protected $totalWeight; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @var float |
92
|
|
|
*/ |
93
|
|
|
protected $totalTax; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @var bool |
97
|
|
|
*/ |
98
|
|
|
protected $taxesIncluded; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @var string |
102
|
|
|
*/ |
103
|
|
|
protected $currency; |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @var string |
107
|
|
|
*/ |
108
|
|
|
protected $financialStatus; |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @var bool |
112
|
|
|
*/ |
113
|
|
|
protected $confirmed; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @var float |
117
|
|
|
*/ |
118
|
|
|
protected $totalDiscounts; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @var float |
122
|
|
|
*/ |
123
|
|
|
protected $totalLineItemsPrice; |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @var string |
127
|
|
|
*/ |
128
|
|
|
protected $cartToken; |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @var bool |
132
|
|
|
*/ |
133
|
|
|
protected $buyerAcceptsMarketing; |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @var string |
137
|
|
|
*/ |
138
|
|
|
protected $name; |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @var string |
142
|
|
|
*/ |
143
|
|
|
protected $referringSite; |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @var string |
147
|
|
|
*/ |
148
|
|
|
protected $landingSite; |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @var string |
152
|
|
|
*/ |
153
|
|
|
protected $cancelledAt; |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @var string |
157
|
|
|
*/ |
158
|
|
|
protected $cancelReason; |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @var float |
162
|
|
|
*/ |
163
|
|
|
protected $totalPriceUsd; |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @var string |
167
|
|
|
*/ |
168
|
|
|
protected $checkoutToken; |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @var string |
172
|
|
|
*/ |
173
|
|
|
protected $reference; |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @var int |
177
|
|
|
*/ |
178
|
|
|
protected $userId; |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* @var int |
182
|
|
|
*/ |
183
|
|
|
protected $locationId; |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @var string |
187
|
|
|
*/ |
188
|
|
|
protected $sourceIdentifier; |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @var string |
192
|
|
|
*/ |
193
|
|
|
protected $sourceUrl; |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @var string |
197
|
|
|
*/ |
198
|
|
|
protected $processedAt; |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @var string |
202
|
|
|
*/ |
203
|
|
|
protected $deviceId; |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @var string |
207
|
|
|
*/ |
208
|
|
|
protected $phone; |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @var string |
212
|
|
|
*/ |
213
|
|
|
protected $browserIp; |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @var string |
217
|
|
|
*/ |
218
|
|
|
protected $landingSiteRef; |
219
|
|
|
|
220
|
|
|
/** |
221
|
|
|
* @var string |
222
|
|
|
*/ |
223
|
|
|
protected $orderNumber; |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @var array |
227
|
|
|
*/ |
228
|
|
|
protected $discountCodes; |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @var array |
232
|
|
|
*/ |
233
|
|
|
protected $noteAttributes; |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @var array |
237
|
|
|
*/ |
238
|
|
|
protected $paymentGatewayNames; |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* @var string |
242
|
|
|
*/ |
243
|
|
|
protected $processingMethod; |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @var int |
247
|
|
|
*/ |
248
|
|
|
protected $checkoutId; |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* @var string |
252
|
|
|
*/ |
253
|
|
|
protected $sourceName; |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @var string |
257
|
|
|
*/ |
258
|
|
|
protected $fulfillmentStatus; |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* @var array |
262
|
|
|
*/ |
263
|
|
|
protected $taxLines; |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @var array |
267
|
|
|
*/ |
268
|
|
|
protected $tags; |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* @var string |
272
|
|
|
*/ |
273
|
|
|
protected $contactEmail; |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @var string |
277
|
|
|
*/ |
278
|
|
|
protected $orderStatusUrl; |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* @var LineItem[] |
282
|
|
|
*/ |
283
|
|
|
protected $lineItems; |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @var ShippingLine[] |
287
|
|
|
*/ |
288
|
|
|
protected $shippingLines; |
289
|
|
|
|
290
|
|
|
/** |
291
|
|
|
* @var Address |
292
|
|
|
*/ |
293
|
|
|
protected $billingAddress; |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* @var Address |
297
|
|
|
*/ |
298
|
|
|
protected $shippingAddress; |
299
|
|
|
|
300
|
|
|
/** |
301
|
|
|
* @var Fulfillment[] |
302
|
|
|
*/ |
303
|
|
|
protected $fulfillments; |
304
|
|
|
|
305
|
|
|
/** |
306
|
|
|
* @var ClientDetails |
307
|
|
|
*/ |
308
|
|
|
protected $clientDetails; |
309
|
|
|
|
310
|
|
|
/** |
311
|
|
|
* @var Refund[] |
312
|
|
|
*/ |
313
|
|
|
protected $refunds; |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* @var Transaction[] |
317
|
|
|
*/ |
318
|
|
|
protected $transactions; |
319
|
|
|
|
320
|
|
|
/** |
321
|
|
|
* @var array |
322
|
|
|
*/ |
323
|
|
|
protected $paymentDetails; |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* @var DiscountApplication[] |
327
|
|
|
*/ |
328
|
|
|
protected $discountApplications; |
329
|
|
|
|
330
|
|
|
/** |
331
|
|
|
* @var Customer |
332
|
|
|
*/ |
333
|
|
|
protected $customer; |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* @return string |
337
|
|
|
*/ |
338
|
|
|
public function getEmail() |
339
|
|
|
{ |
340
|
|
|
return $this->email; |
341
|
|
|
} |
342
|
|
|
|
343
|
|
|
/** |
344
|
|
|
* @param string $email |
345
|
|
|
* |
346
|
|
|
* @return Order |
347
|
|
|
*/ |
348
|
|
|
public function setEmail($email) |
349
|
|
|
{ |
350
|
|
|
$this->email = $email; |
351
|
|
|
|
352
|
|
|
return $this; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @return \DateTimeInterface |
357
|
|
|
*/ |
358
|
|
|
public function getClosedAt() |
359
|
|
|
{ |
360
|
|
|
return $this->closedAt; |
361
|
|
|
} |
362
|
|
|
|
363
|
|
|
/** |
364
|
|
|
* @param \DateTimeInterface $closedAt |
365
|
|
|
* |
366
|
|
|
* @return Order |
367
|
|
|
*/ |
368
|
|
|
public function setClosedAt($closedAt) |
369
|
|
|
{ |
370
|
|
|
$this->closedAt = $closedAt; |
371
|
|
|
|
372
|
|
|
return $this; |
373
|
|
|
} |
374
|
|
|
|
375
|
|
|
/** |
376
|
|
|
* @return \DateTimeInterface |
377
|
|
|
*/ |
378
|
|
|
public function getCreatedAt() |
379
|
|
|
{ |
380
|
|
|
return $this->createdAt; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
/** |
384
|
|
|
* @param \DateTimeInterface $createdAt |
385
|
|
|
*/ |
386
|
|
|
public function setCreatedAt($createdAt) |
387
|
|
|
{ |
388
|
|
|
$this->createdAt = $createdAt; |
389
|
|
|
} |
390
|
|
|
|
391
|
|
|
/** |
392
|
|
|
* @return \DateTimeInterface |
393
|
|
|
*/ |
394
|
|
|
public function getUpdatedAt() |
395
|
|
|
{ |
396
|
|
|
return $this->updatedAt; |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
/** |
400
|
|
|
* @param \DateTimeInterface $updatedAt |
401
|
|
|
* |
402
|
|
|
* @return Order |
403
|
|
|
*/ |
404
|
|
|
public function setUpdatedAt($updatedAt) |
405
|
|
|
{ |
406
|
|
|
$this->updatedAt = $updatedAt; |
407
|
|
|
|
408
|
|
|
return $this; |
409
|
|
|
} |
410
|
|
|
|
411
|
|
|
/** |
412
|
|
|
* @return \DateTimeInterface |
413
|
|
|
*/ |
414
|
|
|
public function getDeletedAt() |
415
|
|
|
{ |
416
|
|
|
return $this->deletedAt; |
417
|
|
|
} |
418
|
|
|
|
419
|
|
|
/** |
420
|
|
|
* @param \DateTimeInterface $deletedAt |
421
|
|
|
*/ |
422
|
|
|
public function setDeletedAt($deletedAt) |
423
|
|
|
{ |
424
|
|
|
$this->deletedAt = $deletedAt; |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
|
428
|
|
|
/** |
429
|
|
|
* @return int |
430
|
|
|
*/ |
431
|
|
|
public function getNumber() |
432
|
|
|
{ |
433
|
|
|
return $this->number; |
434
|
|
|
} |
435
|
|
|
|
436
|
|
|
/** |
437
|
|
|
* @param int $number |
438
|
|
|
* |
439
|
|
|
* @return Order |
440
|
|
|
*/ |
441
|
|
|
public function setNumber($number) |
442
|
|
|
{ |
443
|
|
|
$this->number = $number; |
444
|
|
|
|
445
|
|
|
return $this; |
446
|
|
|
} |
447
|
|
|
|
448
|
|
|
/** |
449
|
|
|
* @return string |
450
|
|
|
*/ |
451
|
|
|
public function getNote() |
452
|
|
|
{ |
453
|
|
|
return $this->note; |
454
|
|
|
} |
455
|
|
|
|
456
|
|
|
/** |
457
|
|
|
* @param string $note |
458
|
|
|
* |
459
|
|
|
* @return Order |
460
|
|
|
*/ |
461
|
|
|
public function setNote($note) |
462
|
|
|
{ |
463
|
|
|
$this->note = $note; |
464
|
|
|
|
465
|
|
|
return $this; |
466
|
|
|
} |
467
|
|
|
|
468
|
|
|
/** |
469
|
|
|
* @return string |
470
|
|
|
*/ |
471
|
|
|
public function getToken() |
472
|
|
|
{ |
473
|
|
|
return $this->token; |
474
|
|
|
} |
475
|
|
|
|
476
|
|
|
/** |
477
|
|
|
* @param string $token |
478
|
|
|
* |
479
|
|
|
* @return Order |
480
|
|
|
*/ |
481
|
|
|
public function setToken($token) |
482
|
|
|
{ |
483
|
|
|
$this->token = $token; |
484
|
|
|
|
485
|
|
|
return $this; |
486
|
|
|
} |
487
|
|
|
|
488
|
|
|
/** |
489
|
|
|
* @return string |
490
|
|
|
*/ |
491
|
|
|
public function getGateway() |
492
|
|
|
{ |
493
|
|
|
return $this->gateway; |
494
|
|
|
} |
495
|
|
|
|
496
|
|
|
/** |
497
|
|
|
* @param string $gateway |
498
|
|
|
* |
499
|
|
|
* @return Order |
500
|
|
|
*/ |
501
|
|
|
public function setGateway($gateway) |
502
|
|
|
{ |
503
|
|
|
$this->gateway = $gateway; |
504
|
|
|
|
505
|
|
|
return $this; |
506
|
|
|
} |
507
|
|
|
|
508
|
|
|
/** |
509
|
|
|
* @return bool |
510
|
|
|
*/ |
511
|
|
|
public function isTest() |
512
|
|
|
{ |
513
|
|
|
return $this->test; |
514
|
|
|
} |
515
|
|
|
|
516
|
|
|
/** |
517
|
|
|
* @param bool $test |
518
|
|
|
* |
519
|
|
|
* @return Order |
520
|
|
|
*/ |
521
|
|
|
public function setTest($test) |
522
|
|
|
{ |
523
|
|
|
$this->test = $test; |
524
|
|
|
|
525
|
|
|
return $this; |
526
|
|
|
} |
527
|
|
|
|
528
|
|
|
/** |
529
|
|
|
* @return float |
530
|
|
|
*/ |
531
|
|
|
public function getTotalPrice() |
532
|
|
|
{ |
533
|
|
|
return $this->totalPrice; |
534
|
|
|
} |
535
|
|
|
|
536
|
|
|
/** |
537
|
|
|
* @param float $totalPrice |
538
|
|
|
* |
539
|
|
|
* @return Order |
540
|
|
|
*/ |
541
|
|
|
public function setTotalPrice($totalPrice) |
542
|
|
|
{ |
543
|
|
|
$this->totalPrice = $totalPrice; |
544
|
|
|
|
545
|
|
|
return $this; |
546
|
|
|
} |
547
|
|
|
|
548
|
|
|
/** |
549
|
|
|
* @return float |
550
|
|
|
*/ |
551
|
|
|
public function getSubtotalPrice() |
552
|
|
|
{ |
553
|
|
|
return $this->subtotalPrice; |
554
|
|
|
} |
555
|
|
|
|
556
|
|
|
/** |
557
|
|
|
* @param float $subtotalPrice |
558
|
|
|
* |
559
|
|
|
* @return Order |
560
|
|
|
*/ |
561
|
|
|
public function setSubtotalPrice($subtotalPrice) |
562
|
|
|
{ |
563
|
|
|
$this->subtotalPrice = $subtotalPrice; |
564
|
|
|
|
565
|
|
|
return $this; |
566
|
|
|
} |
567
|
|
|
|
568
|
|
|
/** |
569
|
|
|
* @return float |
570
|
|
|
*/ |
571
|
|
|
public function getTotalWeight() |
572
|
|
|
{ |
573
|
|
|
return $this->totalWeight; |
574
|
|
|
} |
575
|
|
|
|
576
|
|
|
/** |
577
|
|
|
* @param float $totalWeight |
578
|
|
|
* |
579
|
|
|
* @return Order |
580
|
|
|
*/ |
581
|
|
|
public function setTotalWeight($totalWeight) |
582
|
|
|
{ |
583
|
|
|
$this->totalWeight = $totalWeight; |
584
|
|
|
|
585
|
|
|
return $this; |
586
|
|
|
} |
587
|
|
|
|
588
|
|
|
/** |
589
|
|
|
* @return float |
590
|
|
|
*/ |
591
|
|
|
public function getTotalTax() |
592
|
|
|
{ |
593
|
|
|
return $this->totalTax; |
594
|
|
|
} |
595
|
|
|
|
596
|
|
|
/** |
597
|
|
|
* @param float $totalTax |
598
|
|
|
* |
599
|
|
|
* @return Order |
600
|
|
|
*/ |
601
|
|
|
public function setTotalTax($totalTax) |
602
|
|
|
{ |
603
|
|
|
$this->totalTax = $totalTax; |
604
|
|
|
|
605
|
|
|
return $this; |
606
|
|
|
} |
607
|
|
|
|
608
|
|
|
/** |
609
|
|
|
* @return bool |
610
|
|
|
*/ |
611
|
|
|
public function isTaxesIncluded() |
612
|
|
|
{ |
613
|
|
|
return $this->taxesIncluded; |
614
|
|
|
} |
615
|
|
|
|
616
|
|
|
/** |
617
|
|
|
* @param bool $taxesIncluded |
618
|
|
|
* |
619
|
|
|
* @return Order |
620
|
|
|
*/ |
621
|
|
|
public function setTaxesIncluded($taxesIncluded) |
622
|
|
|
{ |
623
|
|
|
$this->taxesIncluded = $taxesIncluded; |
624
|
|
|
|
625
|
|
|
return $this; |
626
|
|
|
} |
627
|
|
|
|
628
|
|
|
/** |
629
|
|
|
* @return string |
630
|
|
|
*/ |
631
|
|
|
public function getCurrency() |
632
|
|
|
{ |
633
|
|
|
return $this->currency; |
634
|
|
|
} |
635
|
|
|
|
636
|
|
|
/** |
637
|
|
|
* @param string $currency |
638
|
|
|
* |
639
|
|
|
* @return Order |
640
|
|
|
*/ |
641
|
|
|
public function setCurrency($currency) |
642
|
|
|
{ |
643
|
|
|
$this->currency = $currency; |
644
|
|
|
|
645
|
|
|
return $this; |
646
|
|
|
} |
647
|
|
|
|
648
|
|
|
/** |
649
|
|
|
* @return string |
650
|
|
|
*/ |
651
|
|
|
public function getFinancialStatus() |
652
|
|
|
{ |
653
|
|
|
return $this->financialStatus; |
654
|
|
|
} |
655
|
|
|
|
656
|
|
|
/** |
657
|
|
|
* @param string $financialStatus |
658
|
|
|
* |
659
|
|
|
* @return Order |
660
|
|
|
*/ |
661
|
|
|
public function setFinancialStatus($financialStatus) |
662
|
|
|
{ |
663
|
|
|
$this->financialStatus = $financialStatus; |
664
|
|
|
|
665
|
|
|
return $this; |
666
|
|
|
} |
667
|
|
|
|
668
|
|
|
/** |
669
|
|
|
* @return bool |
670
|
|
|
*/ |
671
|
|
|
public function isConfirmed() |
672
|
|
|
{ |
673
|
|
|
return $this->confirmed; |
674
|
|
|
} |
675
|
|
|
|
676
|
|
|
/** |
677
|
|
|
* @param bool $confirmed |
678
|
|
|
* |
679
|
|
|
* @return Order |
680
|
|
|
*/ |
681
|
|
|
public function setConfirmed($confirmed) |
682
|
|
|
{ |
683
|
|
|
$this->confirmed = $confirmed; |
684
|
|
|
|
685
|
|
|
return $this; |
686
|
|
|
} |
687
|
|
|
|
688
|
|
|
/** |
689
|
|
|
* @return float |
690
|
|
|
*/ |
691
|
|
|
public function getTotalDiscounts() |
692
|
|
|
{ |
693
|
|
|
return $this->totalDiscounts; |
694
|
|
|
} |
695
|
|
|
|
696
|
|
|
/** |
697
|
|
|
* @param float $totalDiscounts |
698
|
|
|
* |
699
|
|
|
* @return Order |
700
|
|
|
*/ |
701
|
|
|
public function setTotalDiscounts($totalDiscounts) |
702
|
|
|
{ |
703
|
|
|
$this->totalDiscounts = $totalDiscounts; |
704
|
|
|
|
705
|
|
|
return $this; |
706
|
|
|
} |
707
|
|
|
|
708
|
|
|
/** |
709
|
|
|
* @return float |
710
|
|
|
*/ |
711
|
|
|
public function getTotalLineItemsPrice() |
712
|
|
|
{ |
713
|
|
|
return $this->totalLineItemsPrice; |
714
|
|
|
} |
715
|
|
|
|
716
|
|
|
/** |
717
|
|
|
* @param float $totalLineItemsPrice |
718
|
|
|
* |
719
|
|
|
* @return Order |
720
|
|
|
*/ |
721
|
|
|
public function setTotalLineItemsPrice($totalLineItemsPrice) |
722
|
|
|
{ |
723
|
|
|
$this->totalLineItemsPrice = $totalLineItemsPrice; |
724
|
|
|
|
725
|
|
|
return $this; |
726
|
|
|
} |
727
|
|
|
|
728
|
|
|
/** |
729
|
|
|
* @return string |
730
|
|
|
*/ |
731
|
|
|
public function getCartToken() |
732
|
|
|
{ |
733
|
|
|
return $this->cartToken; |
734
|
|
|
} |
735
|
|
|
|
736
|
|
|
/** |
737
|
|
|
* @param string $cartToken |
738
|
|
|
* |
739
|
|
|
* @return Order |
740
|
|
|
*/ |
741
|
|
|
public function setCartToken($cartToken) |
742
|
|
|
{ |
743
|
|
|
$this->cartToken = $cartToken; |
744
|
|
|
|
745
|
|
|
return $this; |
746
|
|
|
} |
747
|
|
|
|
748
|
|
|
/** |
749
|
|
|
* @return bool |
750
|
|
|
*/ |
751
|
|
|
public function isBuyerAcceptsMarketing() |
752
|
|
|
{ |
753
|
|
|
return $this->buyerAcceptsMarketing; |
754
|
|
|
} |
755
|
|
|
|
756
|
|
|
/** |
757
|
|
|
* @param bool $buyerAcceptsMarketing |
758
|
|
|
* |
759
|
|
|
* @return Order |
760
|
|
|
*/ |
761
|
|
|
public function setBuyerAcceptsMarketing($buyerAcceptsMarketing) |
762
|
|
|
{ |
763
|
|
|
$this->buyerAcceptsMarketing = $buyerAcceptsMarketing; |
764
|
|
|
|
765
|
|
|
return $this; |
766
|
|
|
} |
767
|
|
|
|
768
|
|
|
/** |
769
|
|
|
* @return string |
770
|
|
|
*/ |
771
|
|
|
public function getName() |
772
|
|
|
{ |
773
|
|
|
return $this->name; |
774
|
|
|
} |
775
|
|
|
|
776
|
|
|
/** |
777
|
|
|
* @param string $name |
778
|
|
|
* |
779
|
|
|
* @return Order |
780
|
|
|
*/ |
781
|
|
|
public function setName($name) |
782
|
|
|
{ |
783
|
|
|
$this->name = $name; |
784
|
|
|
|
785
|
|
|
return $this; |
786
|
|
|
} |
787
|
|
|
|
788
|
|
|
/** |
789
|
|
|
* @return string |
790
|
|
|
*/ |
791
|
|
|
public function getReferringSite() |
792
|
|
|
{ |
793
|
|
|
return $this->referringSite; |
794
|
|
|
} |
795
|
|
|
|
796
|
|
|
/** |
797
|
|
|
* @param string $referringSite |
798
|
|
|
* |
799
|
|
|
* @return Order |
800
|
|
|
*/ |
801
|
|
|
public function setReferringSite($referringSite) |
802
|
|
|
{ |
803
|
|
|
$this->referringSite = $referringSite; |
804
|
|
|
|
805
|
|
|
return $this; |
806
|
|
|
} |
807
|
|
|
|
808
|
|
|
/** |
809
|
|
|
* @return string |
810
|
|
|
*/ |
811
|
|
|
public function getLandingSite() |
812
|
|
|
{ |
813
|
|
|
return $this->landingSite; |
814
|
|
|
} |
815
|
|
|
|
816
|
|
|
/** |
817
|
|
|
* @param string $landingSite |
818
|
|
|
* |
819
|
|
|
* @return Order |
820
|
|
|
*/ |
821
|
|
|
public function setLandingSite($landingSite) |
822
|
|
|
{ |
823
|
|
|
$this->landingSite = $landingSite; |
824
|
|
|
|
825
|
|
|
return $this; |
826
|
|
|
} |
827
|
|
|
|
828
|
|
|
/** |
829
|
|
|
* @return string |
830
|
|
|
*/ |
831
|
|
|
public function getCancelledAt() |
832
|
|
|
{ |
833
|
|
|
return $this->cancelledAt; |
834
|
|
|
} |
835
|
|
|
|
836
|
|
|
/** |
837
|
|
|
* @param string $cancelledAt |
838
|
|
|
* |
839
|
|
|
* @return Order |
840
|
|
|
*/ |
841
|
|
|
public function setCancelledAt($cancelledAt) |
842
|
|
|
{ |
843
|
|
|
$this->cancelledAt = $cancelledAt; |
844
|
|
|
|
845
|
|
|
return $this; |
846
|
|
|
} |
847
|
|
|
|
848
|
|
|
/** |
849
|
|
|
* @return string |
850
|
|
|
*/ |
851
|
|
|
public function getCancelReason() |
852
|
|
|
{ |
853
|
|
|
return $this->cancelReason; |
854
|
|
|
} |
855
|
|
|
|
856
|
|
|
/** |
857
|
|
|
* @param string $cancelReason |
858
|
|
|
* |
859
|
|
|
* @return Order |
860
|
|
|
*/ |
861
|
|
|
public function setCancelReason($cancelReason) |
862
|
|
|
{ |
863
|
|
|
$this->cancelReason = $cancelReason; |
864
|
|
|
|
865
|
|
|
return $this; |
866
|
|
|
} |
867
|
|
|
|
868
|
|
|
/** |
869
|
|
|
* @return float |
870
|
|
|
*/ |
871
|
|
|
public function getTotalPriceUsd() |
872
|
|
|
{ |
873
|
|
|
return $this->totalPriceUsd; |
874
|
|
|
} |
875
|
|
|
|
876
|
|
|
/** |
877
|
|
|
* @param float $totalPriceUsd |
878
|
|
|
* |
879
|
|
|
* @return Order |
880
|
|
|
*/ |
881
|
|
|
public function setTotalPriceUsd($totalPriceUsd) |
882
|
|
|
{ |
883
|
|
|
$this->totalPriceUsd = $totalPriceUsd; |
884
|
|
|
|
885
|
|
|
return $this; |
886
|
|
|
} |
887
|
|
|
|
888
|
|
|
/** |
889
|
|
|
* @return string |
890
|
|
|
*/ |
891
|
|
|
public function getCheckoutToken() |
892
|
|
|
{ |
893
|
|
|
return $this->checkoutToken; |
894
|
|
|
} |
895
|
|
|
|
896
|
|
|
/** |
897
|
|
|
* @param string $checkoutToken |
898
|
|
|
* |
899
|
|
|
* @return Order |
900
|
|
|
*/ |
901
|
|
|
public function setCheckoutToken($checkoutToken) |
902
|
|
|
{ |
903
|
|
|
$this->checkoutToken = $checkoutToken; |
904
|
|
|
|
905
|
|
|
return $this; |
906
|
|
|
} |
907
|
|
|
|
908
|
|
|
/** |
909
|
|
|
* @return string |
910
|
|
|
*/ |
911
|
|
|
public function getReference() |
912
|
|
|
{ |
913
|
|
|
return $this->reference; |
914
|
|
|
} |
915
|
|
|
|
916
|
|
|
/** |
917
|
|
|
* @param string $reference |
918
|
|
|
* |
919
|
|
|
* @return Order |
920
|
|
|
*/ |
921
|
|
|
public function setReference($reference) |
922
|
|
|
{ |
923
|
|
|
$this->reference = $reference; |
924
|
|
|
|
925
|
|
|
return $this; |
926
|
|
|
} |
927
|
|
|
|
928
|
|
|
/** |
929
|
|
|
* @return int |
930
|
|
|
*/ |
931
|
|
|
public function getUserId() |
932
|
|
|
{ |
933
|
|
|
return $this->userId; |
934
|
|
|
} |
935
|
|
|
|
936
|
|
|
/** |
937
|
|
|
* @param int $userId |
938
|
|
|
* |
939
|
|
|
* @return Order |
940
|
|
|
*/ |
941
|
|
|
public function setUserId($userId) |
942
|
|
|
{ |
943
|
|
|
$this->userId = $userId; |
944
|
|
|
|
945
|
|
|
return $this; |
946
|
|
|
} |
947
|
|
|
|
948
|
|
|
/** |
949
|
|
|
* @return int |
950
|
|
|
*/ |
951
|
|
|
public function getLocationId() |
952
|
|
|
{ |
953
|
|
|
return $this->locationId; |
954
|
|
|
} |
955
|
|
|
|
956
|
|
|
/** |
957
|
|
|
* @param int $locationId |
958
|
|
|
* |
959
|
|
|
* @return Order |
960
|
|
|
*/ |
961
|
|
|
public function setLocationId($locationId) |
962
|
|
|
{ |
963
|
|
|
$this->locationId = $locationId; |
964
|
|
|
|
965
|
|
|
return $this; |
966
|
|
|
} |
967
|
|
|
|
968
|
|
|
/** |
969
|
|
|
* @return string |
970
|
|
|
*/ |
971
|
|
|
public function getSourceIdentifier() |
972
|
|
|
{ |
973
|
|
|
return $this->sourceIdentifier; |
974
|
|
|
} |
975
|
|
|
|
976
|
|
|
/** |
977
|
|
|
* @param string $sourceIdentifier |
978
|
|
|
* |
979
|
|
|
* @return Order |
980
|
|
|
*/ |
981
|
|
|
public function setSourceIdentifier($sourceIdentifier) |
982
|
|
|
{ |
983
|
|
|
$this->sourceIdentifier = $sourceIdentifier; |
984
|
|
|
|
985
|
|
|
return $this; |
986
|
|
|
} |
987
|
|
|
|
988
|
|
|
/** |
989
|
|
|
* @return string |
990
|
|
|
*/ |
991
|
|
|
public function getSourceUrl() |
992
|
|
|
{ |
993
|
|
|
return $this->sourceUrl; |
994
|
|
|
} |
995
|
|
|
|
996
|
|
|
/** |
997
|
|
|
* @param string $sourceUrl |
998
|
|
|
* |
999
|
|
|
* @return Order |
1000
|
|
|
*/ |
1001
|
|
|
public function setSourceUrl($sourceUrl) |
1002
|
|
|
{ |
1003
|
|
|
$this->sourceUrl = $sourceUrl; |
1004
|
|
|
|
1005
|
|
|
return $this; |
1006
|
|
|
} |
1007
|
|
|
|
1008
|
|
|
/** |
1009
|
|
|
* @return string |
1010
|
|
|
*/ |
1011
|
|
|
public function getProcessedAt() |
1012
|
|
|
{ |
1013
|
|
|
return $this->processedAt; |
1014
|
|
|
} |
1015
|
|
|
|
1016
|
|
|
/** |
1017
|
|
|
* @param string $processedAt |
1018
|
|
|
* |
1019
|
|
|
* @return Order |
1020
|
|
|
*/ |
1021
|
|
|
public function setProcessedAt($processedAt) |
1022
|
|
|
{ |
1023
|
|
|
$this->processedAt = $processedAt; |
1024
|
|
|
|
1025
|
|
|
return $this; |
1026
|
|
|
} |
1027
|
|
|
|
1028
|
|
|
/** |
1029
|
|
|
* @return string |
1030
|
|
|
*/ |
1031
|
|
|
public function getDeviceId() |
1032
|
|
|
{ |
1033
|
|
|
return $this->deviceId; |
1034
|
|
|
} |
1035
|
|
|
|
1036
|
|
|
/** |
1037
|
|
|
* @param string $deviceId |
1038
|
|
|
* |
1039
|
|
|
* @return Order |
1040
|
|
|
*/ |
1041
|
|
|
public function setDeviceId($deviceId) |
1042
|
|
|
{ |
1043
|
|
|
$this->deviceId = $deviceId; |
1044
|
|
|
|
1045
|
|
|
return $this; |
1046
|
|
|
} |
1047
|
|
|
|
1048
|
|
|
/** |
1049
|
|
|
* @return string |
1050
|
|
|
*/ |
1051
|
|
|
public function getPhone() |
1052
|
|
|
{ |
1053
|
|
|
return $this->phone; |
1054
|
|
|
} |
1055
|
|
|
|
1056
|
|
|
/** |
1057
|
|
|
* @param string $phone |
1058
|
|
|
* |
1059
|
|
|
* @return Order |
1060
|
|
|
*/ |
1061
|
|
|
public function setPhone($phone) |
1062
|
|
|
{ |
1063
|
|
|
$this->phone = $phone; |
1064
|
|
|
|
1065
|
|
|
return $this; |
1066
|
|
|
} |
1067
|
|
|
|
1068
|
|
|
/** |
1069
|
|
|
* @return string |
1070
|
|
|
*/ |
1071
|
|
|
public function getBrowserIp() |
1072
|
|
|
{ |
1073
|
|
|
return $this->browserIp; |
1074
|
|
|
} |
1075
|
|
|
|
1076
|
|
|
/** |
1077
|
|
|
* @param string $browserIp |
1078
|
|
|
* |
1079
|
|
|
* @return Order |
1080
|
|
|
*/ |
1081
|
|
|
public function setBrowserIp($browserIp) |
1082
|
|
|
{ |
1083
|
|
|
$this->browserIp = $browserIp; |
1084
|
|
|
|
1085
|
|
|
return $this; |
1086
|
|
|
} |
1087
|
|
|
|
1088
|
|
|
/** |
1089
|
|
|
* @return string |
1090
|
|
|
*/ |
1091
|
|
|
public function getLandingSiteRef() |
1092
|
|
|
{ |
1093
|
|
|
return $this->landingSiteRef; |
1094
|
|
|
} |
1095
|
|
|
|
1096
|
|
|
/** |
1097
|
|
|
* @param string $landingSiteRef |
1098
|
|
|
* |
1099
|
|
|
* @return Order |
1100
|
|
|
*/ |
1101
|
|
|
public function setLandingSiteRef($landingSiteRef) |
1102
|
|
|
{ |
1103
|
|
|
$this->landingSiteRef = $landingSiteRef; |
1104
|
|
|
|
1105
|
|
|
return $this; |
1106
|
|
|
} |
1107
|
|
|
|
1108
|
|
|
/** |
1109
|
|
|
* @return string |
1110
|
|
|
*/ |
1111
|
|
|
public function getOrderNumber() |
1112
|
|
|
{ |
1113
|
|
|
return $this->orderNumber; |
1114
|
|
|
} |
1115
|
|
|
|
1116
|
|
|
/** |
1117
|
|
|
* @param string $orderNumber |
1118
|
|
|
* |
1119
|
|
|
* @return Order |
1120
|
|
|
*/ |
1121
|
|
|
public function setOrderNumber($orderNumber) |
1122
|
|
|
{ |
1123
|
|
|
$this->orderNumber = $orderNumber; |
1124
|
|
|
|
1125
|
|
|
return $this; |
1126
|
|
|
} |
1127
|
|
|
|
1128
|
|
|
/** |
1129
|
|
|
* @return array |
1130
|
|
|
*/ |
1131
|
|
|
public function getDiscountCodes() |
1132
|
|
|
{ |
1133
|
|
|
return $this->discountCodes; |
1134
|
|
|
} |
1135
|
|
|
|
1136
|
|
|
/** |
1137
|
|
|
* @param array $discountCodes |
1138
|
|
|
* |
1139
|
|
|
* @return Order |
1140
|
|
|
*/ |
1141
|
|
|
public function setDiscountCodes($discountCodes) |
1142
|
|
|
{ |
1143
|
|
|
$this->discountCodes = $discountCodes; |
1144
|
|
|
|
1145
|
|
|
return $this; |
1146
|
|
|
} |
1147
|
|
|
|
1148
|
|
|
/** |
1149
|
|
|
* @return array |
1150
|
|
|
*/ |
1151
|
|
|
public function getNoteAttributes() |
1152
|
|
|
{ |
1153
|
|
|
return $this->noteAttributes; |
1154
|
|
|
} |
1155
|
|
|
|
1156
|
|
|
/** |
1157
|
|
|
* @param array $noteAttributes |
1158
|
|
|
* |
1159
|
|
|
* @return Order |
1160
|
|
|
*/ |
1161
|
|
|
public function setNoteAttributes($noteAttributes) |
1162
|
|
|
{ |
1163
|
|
|
$this->noteAttributes = $noteAttributes; |
1164
|
|
|
|
1165
|
|
|
return $this; |
1166
|
|
|
} |
1167
|
|
|
|
1168
|
|
|
/** |
1169
|
|
|
* @return array |
1170
|
|
|
*/ |
1171
|
|
|
public function getPaymentGatewayNames() |
1172
|
|
|
{ |
1173
|
|
|
return $this->paymentGatewayNames; |
1174
|
|
|
} |
1175
|
|
|
|
1176
|
|
|
/** |
1177
|
|
|
* @param array $paymentGatewayNames |
1178
|
|
|
* |
1179
|
|
|
* @return Order |
1180
|
|
|
*/ |
1181
|
|
|
public function setPaymentGatewayNames($paymentGatewayNames) |
1182
|
|
|
{ |
1183
|
|
|
$this->paymentGatewayNames = $paymentGatewayNames; |
1184
|
|
|
|
1185
|
|
|
return $this; |
1186
|
|
|
} |
1187
|
|
|
|
1188
|
|
|
/** |
1189
|
|
|
* @return string |
1190
|
|
|
*/ |
1191
|
|
|
public function getProcessingMethod() |
1192
|
|
|
{ |
1193
|
|
|
return $this->processingMethod; |
1194
|
|
|
} |
1195
|
|
|
|
1196
|
|
|
/** |
1197
|
|
|
* @param string $processingMethod |
1198
|
|
|
* |
1199
|
|
|
* @return Order |
1200
|
|
|
*/ |
1201
|
|
|
public function setProcessingMethod($processingMethod) |
1202
|
|
|
{ |
1203
|
|
|
$this->processingMethod = $processingMethod; |
1204
|
|
|
|
1205
|
|
|
return $this; |
1206
|
|
|
} |
1207
|
|
|
|
1208
|
|
|
/** |
1209
|
|
|
* @return int |
1210
|
|
|
*/ |
1211
|
|
|
public function getCheckoutId() |
1212
|
|
|
{ |
1213
|
|
|
return $this->checkoutId; |
1214
|
|
|
} |
1215
|
|
|
|
1216
|
|
|
/** |
1217
|
|
|
* @param int $checkoutId |
1218
|
|
|
* |
1219
|
|
|
* @return Order |
1220
|
|
|
*/ |
1221
|
|
|
public function setCheckoutId($checkoutId) |
1222
|
|
|
{ |
1223
|
|
|
$this->checkoutId = $checkoutId; |
1224
|
|
|
|
1225
|
|
|
return $this; |
1226
|
|
|
} |
1227
|
|
|
|
1228
|
|
|
/** |
1229
|
|
|
* @return string |
1230
|
|
|
*/ |
1231
|
|
|
public function getSourceName() |
1232
|
|
|
{ |
1233
|
|
|
return $this->sourceName; |
1234
|
|
|
} |
1235
|
|
|
|
1236
|
|
|
/** |
1237
|
|
|
* @param string $sourceName |
1238
|
|
|
* |
1239
|
|
|
* @return Order |
1240
|
|
|
*/ |
1241
|
|
|
public function setSourceName($sourceName) |
1242
|
|
|
{ |
1243
|
|
|
$this->sourceName = $sourceName; |
1244
|
|
|
|
1245
|
|
|
return $this; |
1246
|
|
|
} |
1247
|
|
|
|
1248
|
|
|
/** |
1249
|
|
|
* @return string |
1250
|
|
|
*/ |
1251
|
|
|
public function getFulfillmentStatus() |
1252
|
|
|
{ |
1253
|
|
|
return $this->fulfillmentStatus; |
1254
|
|
|
} |
1255
|
|
|
|
1256
|
|
|
/** |
1257
|
|
|
* @param string $fulfillmentStatus |
1258
|
|
|
* |
1259
|
|
|
* @return Order |
1260
|
|
|
*/ |
1261
|
|
|
public function setFulfillmentStatus($fulfillmentStatus) |
1262
|
|
|
{ |
1263
|
|
|
$this->fulfillmentStatus = $fulfillmentStatus; |
1264
|
|
|
|
1265
|
|
|
return $this; |
1266
|
|
|
} |
1267
|
|
|
|
1268
|
|
|
/** |
1269
|
|
|
* @return array |
1270
|
|
|
*/ |
1271
|
|
|
public function getTaxLines() |
1272
|
|
|
{ |
1273
|
|
|
return $this->taxLines; |
1274
|
|
|
} |
1275
|
|
|
|
1276
|
|
|
/** |
1277
|
|
|
* @param array $taxLines |
1278
|
|
|
* |
1279
|
|
|
* @return Order |
1280
|
|
|
*/ |
1281
|
|
|
public function setTaxLines($taxLines) |
1282
|
|
|
{ |
1283
|
|
|
$this->taxLines = $taxLines; |
1284
|
|
|
|
1285
|
|
|
return $this; |
1286
|
|
|
} |
1287
|
|
|
|
1288
|
|
|
/** |
1289
|
|
|
* @return array |
1290
|
|
|
*/ |
1291
|
|
|
public function getTags() |
1292
|
|
|
{ |
1293
|
|
|
return $this->tags; |
1294
|
|
|
} |
1295
|
|
|
|
1296
|
|
|
/** |
1297
|
|
|
* @param array $tags |
1298
|
|
|
* |
1299
|
|
|
* @return Order |
1300
|
|
|
*/ |
1301
|
|
|
public function setTags($tags) |
1302
|
|
|
{ |
1303
|
|
|
$this->tags = $tags; |
1304
|
|
|
|
1305
|
|
|
return $this; |
1306
|
|
|
} |
1307
|
|
|
|
1308
|
|
|
/** |
1309
|
|
|
* @return string |
1310
|
|
|
*/ |
1311
|
|
|
public function getContactEmail() |
1312
|
|
|
{ |
1313
|
|
|
return $this->contactEmail; |
1314
|
|
|
} |
1315
|
|
|
|
1316
|
|
|
/** |
1317
|
|
|
* @param string $contactEmail |
1318
|
|
|
* |
1319
|
|
|
* @return Order |
1320
|
|
|
*/ |
1321
|
|
|
public function setContactEmail($contactEmail) |
1322
|
|
|
{ |
1323
|
|
|
$this->contactEmail = $contactEmail; |
1324
|
|
|
|
1325
|
|
|
return $this; |
1326
|
|
|
} |
1327
|
|
|
|
1328
|
|
|
/** |
1329
|
|
|
* @return string |
1330
|
|
|
*/ |
1331
|
|
|
public function getOrderStatusUrl() |
1332
|
|
|
{ |
1333
|
|
|
return $this->orderStatusUrl; |
1334
|
|
|
} |
1335
|
|
|
|
1336
|
|
|
/** |
1337
|
|
|
* @param string $orderStatusUrl |
1338
|
|
|
* |
1339
|
|
|
* @return Order |
1340
|
|
|
*/ |
1341
|
|
|
public function setOrderStatusUrl($orderStatusUrl) |
1342
|
|
|
{ |
1343
|
|
|
$this->orderStatusUrl = $orderStatusUrl; |
1344
|
|
|
|
1345
|
|
|
return $this; |
1346
|
|
|
} |
1347
|
|
|
|
1348
|
|
|
/** |
1349
|
|
|
* @return LineItem[] |
1350
|
|
|
*/ |
1351
|
|
|
public function getLineItems() |
1352
|
|
|
{ |
1353
|
|
|
return $this->lineItems; |
1354
|
|
|
} |
1355
|
|
|
|
1356
|
|
|
/** |
1357
|
|
|
* @param LineItem[] $lineItems |
1358
|
|
|
* |
1359
|
|
|
* @return Order |
1360
|
|
|
*/ |
1361
|
|
|
public function setLineItems($lineItems) |
1362
|
|
|
{ |
1363
|
|
|
$this->lineItems = $lineItems; |
1364
|
|
|
|
1365
|
|
|
return $this; |
1366
|
|
|
} |
1367
|
|
|
|
1368
|
|
|
/** |
1369
|
|
|
* @return ShippingLine[] |
1370
|
|
|
*/ |
1371
|
|
|
public function getShippingLines() |
1372
|
|
|
{ |
1373
|
|
|
return $this->shippingLines; |
1374
|
|
|
} |
1375
|
|
|
|
1376
|
|
|
/** |
1377
|
|
|
* @param ShippingLine[] $shippingLines |
1378
|
|
|
* |
1379
|
|
|
* @return Order |
1380
|
|
|
*/ |
1381
|
|
|
public function setShippingLines($shippingLines) |
1382
|
|
|
{ |
1383
|
|
|
$this->shippingLines = $shippingLines; |
1384
|
|
|
|
1385
|
|
|
return $this; |
1386
|
|
|
} |
1387
|
|
|
|
1388
|
|
|
/** |
1389
|
|
|
* @return Address |
1390
|
|
|
*/ |
1391
|
|
|
public function getBillingAddress() |
1392
|
|
|
{ |
1393
|
|
|
return $this->billingAddress; |
1394
|
|
|
} |
1395
|
|
|
|
1396
|
|
|
/** |
1397
|
|
|
* @param Address $billingAddress |
1398
|
|
|
* |
1399
|
|
|
* @return Order |
1400
|
|
|
*/ |
1401
|
|
|
public function setBillingAddress($billingAddress) |
1402
|
|
|
{ |
1403
|
|
|
$this->billingAddress = $billingAddress; |
1404
|
|
|
|
1405
|
|
|
return $this; |
1406
|
|
|
} |
1407
|
|
|
|
1408
|
|
|
/** |
1409
|
|
|
* @return Address |
1410
|
|
|
*/ |
1411
|
|
|
public function getShippingAddress() |
1412
|
|
|
{ |
1413
|
|
|
return $this->shippingAddress; |
1414
|
|
|
} |
1415
|
|
|
|
1416
|
|
|
/** |
1417
|
|
|
* @param Address $shippingAddress |
1418
|
|
|
* |
1419
|
|
|
* @return Order |
1420
|
|
|
*/ |
1421
|
|
|
public function setShippingAddress($shippingAddress) |
1422
|
|
|
{ |
1423
|
|
|
$this->shippingAddress = $shippingAddress; |
1424
|
|
|
|
1425
|
|
|
return $this; |
1426
|
|
|
} |
1427
|
|
|
|
1428
|
|
|
/** |
1429
|
|
|
* @return Fulfillment[] |
1430
|
|
|
*/ |
1431
|
|
|
public function getFulfillments() |
1432
|
|
|
{ |
1433
|
|
|
return $this->fulfillments; |
1434
|
|
|
} |
1435
|
|
|
|
1436
|
|
|
/** |
1437
|
|
|
* @param Fulfillment[] $fulfillments |
1438
|
|
|
* |
1439
|
|
|
* @return Order |
1440
|
|
|
*/ |
1441
|
|
|
public function setFulfillments($fulfillments) |
1442
|
|
|
{ |
1443
|
|
|
$this->fulfillments = $fulfillments; |
1444
|
|
|
|
1445
|
|
|
return $this; |
1446
|
|
|
} |
1447
|
|
|
|
1448
|
|
|
/** |
1449
|
|
|
* @return ClientDetails |
1450
|
|
|
*/ |
1451
|
|
|
public function getClientDetails() |
1452
|
|
|
{ |
1453
|
|
|
return $this->clientDetails; |
1454
|
|
|
} |
1455
|
|
|
|
1456
|
|
|
/** |
1457
|
|
|
* @param ClientDetails $clientDetails |
1458
|
|
|
* |
1459
|
|
|
* @return Order |
1460
|
|
|
*/ |
1461
|
|
|
public function setClientDetails($clientDetails) |
1462
|
|
|
{ |
1463
|
|
|
$this->clientDetails = $clientDetails; |
1464
|
|
|
|
1465
|
|
|
return $this; |
1466
|
|
|
} |
1467
|
|
|
|
1468
|
|
|
/** |
1469
|
|
|
* @return Refund[] |
1470
|
|
|
*/ |
1471
|
|
|
public function getRefunds() |
1472
|
|
|
{ |
1473
|
|
|
return $this->refunds; |
1474
|
|
|
} |
1475
|
|
|
|
1476
|
|
|
/** |
1477
|
|
|
* @param Refund[] $refunds |
1478
|
|
|
* |
1479
|
|
|
* @return Order |
1480
|
|
|
*/ |
1481
|
|
|
public function setRefunds($refunds) |
1482
|
|
|
{ |
1483
|
|
|
$this->refunds = $refunds; |
1484
|
|
|
|
1485
|
|
|
return $this; |
1486
|
|
|
} |
1487
|
|
|
|
1488
|
|
|
/** |
1489
|
|
|
* @return array |
1490
|
|
|
*/ |
1491
|
|
|
public function getPaymentDetails() |
1492
|
|
|
{ |
1493
|
|
|
return $this->paymentDetails; |
1494
|
|
|
} |
1495
|
|
|
|
1496
|
|
|
/** |
1497
|
|
|
* @param array $paymentDetails |
1498
|
|
|
* |
1499
|
|
|
* @return Order |
1500
|
|
|
*/ |
1501
|
|
|
public function setPaymentDetails($paymentDetails) |
1502
|
|
|
{ |
1503
|
|
|
$this->paymentDetails = $paymentDetails; |
1504
|
|
|
|
1505
|
|
|
return $this; |
1506
|
|
|
} |
1507
|
|
|
|
1508
|
|
|
/** |
1509
|
|
|
* @return Transaction[] |
1510
|
|
|
*/ |
1511
|
|
|
public function getTransactions() |
1512
|
|
|
{ |
1513
|
|
|
return $this->transactions; |
1514
|
|
|
} |
1515
|
|
|
|
1516
|
|
|
/** |
1517
|
|
|
* @param Transaction[] $transactions |
1518
|
|
|
* |
1519
|
|
|
* @return Order |
1520
|
|
|
*/ |
1521
|
|
|
public function setTransactions($transactions) |
1522
|
|
|
{ |
1523
|
|
|
$this->transactions = $transactions; |
1524
|
|
|
|
1525
|
|
|
return $this; |
1526
|
|
|
} |
1527
|
|
|
|
1528
|
|
|
/** |
1529
|
|
|
* @return DiscountApplication[] |
1530
|
|
|
*/ |
1531
|
|
|
public function getDiscountApplications() |
1532
|
|
|
{ |
1533
|
|
|
return $this->discountApplications; |
1534
|
|
|
} |
1535
|
|
|
|
1536
|
|
|
/** |
1537
|
|
|
* @param DiscountApplication[] $discountApplications |
1538
|
|
|
* |
1539
|
|
|
* @return Order |
1540
|
|
|
*/ |
1541
|
|
|
public function setDiscountApplications($discountApplications) |
1542
|
|
|
{ |
1543
|
|
|
$this->discountApplications = $discountApplications; |
1544
|
|
|
|
1545
|
|
|
return $this; |
1546
|
|
|
} |
1547
|
|
|
|
1548
|
|
|
/** |
1549
|
|
|
* @return Customer |
1550
|
|
|
*/ |
1551
|
|
|
public function getCustomer() |
1552
|
|
|
{ |
1553
|
|
|
return $this->customer; |
1554
|
|
|
} |
1555
|
|
|
|
1556
|
|
|
/** |
1557
|
|
|
* @param Customer $customer |
1558
|
|
|
*/ |
1559
|
|
|
public function setCustomer($customer) |
1560
|
|
|
{ |
1561
|
|
|
$this->customer = $customer; |
1562
|
|
|
} |
1563
|
|
|
} |