Completed
Push — master ( 49a35a...ed7365 )
by Taosikai
24s
created

Order::setDiscountApplications()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
1352
1353
        return $this;
1354
    }
1355
1356
    /**
1357
     * @return array
1358
     */
1359
    public function getShippingAddress()
1360
    {
1361
        return $this->shippingAddress;
1362
    }
1363
1364
    /**
1365
     * @param array $shippingAddress
1366
     *
1367
     * @return Order
1368
     */
1369
    public function setShippingAddress($shippingAddress)
1370
    {
1371
        $this->shippingAddress = $shippingAddress;
0 ignored issues
show
Documentation Bug introduced by
It seems like $shippingAddress of type array is incompatible with the declared type object<Slince\Shopify\Manager\Order\Address> of property $shippingAddress.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
1372
1373
        return $this;
1374
    }
1375
1376
    /**
1377
     * @return Fulfillment[]
1378
     */
1379
    public function getFulfillments()
1380
    {
1381
        return $this->fulfillments;
1382
    }
1383
1384
    /**
1385
     * @param Fulfillment[] $fulfillments
1386
     *
1387
     * @return Order
1388
     */
1389
    public function setFulfillments($fulfillments)
1390
    {
1391
        $this->fulfillments = $fulfillments;
1392
1393
        return $this;
1394
    }
1395
1396
    /**
1397
     * @return array
1398
     */
1399
    public function getClientDetails()
1400
    {
1401
        return $this->clientDetails;
1402
    }
1403
1404
    /**
1405
     * @param array $clientDetails
1406
     *
1407
     * @return Order
1408
     */
1409
    public function setClientDetails($clientDetails)
1410
    {
1411
        $this->clientDetails = $clientDetails;
0 ignored issues
show
Documentation Bug introduced by
It seems like $clientDetails of type array is incompatible with the declared type object<Slince\Shopify\Ma...er\Order\ClientDetails> of property $clientDetails.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
1412
1413
        return $this;
1414
    }
1415
1416
    /**
1417
     * @return Refund[]
1418
     */
1419
    public function getRefunds()
1420
    {
1421
        return $this->refunds;
1422
    }
1423
1424
    /**
1425
     * @param Refund[] $refunds
1426
     *
1427
     * @return Order
1428
     */
1429
    public function setRefunds($refunds)
1430
    {
1431
        $this->refunds = $refunds;
1432
1433
        return $this;
1434
    }
1435
1436
    /**
1437
     * @return array
1438
     */
1439
    public function getPaymentDetails()
1440
    {
1441
        return $this->paymentDetails;
1442
    }
1443
1444
    /**
1445
     * @param array $paymentDetails
1446
     *
1447
     * @return Order
1448
     */
1449
    public function setPaymentDetails($paymentDetails)
1450
    {
1451
        $this->paymentDetails = $paymentDetails;
1452
1453
        return $this;
1454
    }
1455
1456
    /**
1457
     * @return Transaction[]
1458
     */
1459
    public function getTransactions()
1460
    {
1461
        return $this->transactions;
1462
    }
1463
1464
    /**
1465
     * @param Transaction[] $transactions
1466
     *
1467
     * @return Order
1468
     */
1469
    public function setTransactions($transactions)
1470
    {
1471
        $this->transactions = $transactions;
1472
1473
        return $this;
1474
    }
1475
1476
    /**
1477
     * @return DiscountApplication[]
1478
     */
1479
    public function getDiscountApplications()
1480
    {
1481
        return $this->discountApplications;
1482
    }
1483
1484
    /**
1485
     * @param DiscountApplication[] $discountApplications
1486
     *
1487
     * @return Order
1488
     */
1489
    public function setDiscountApplications($discountApplications)
1490
    {
1491
        $this->discountApplications = $discountApplications;
1492
1493
        return $this;
1494
    }
1495
}