• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlocati / PayWay / 5212705470

pending completion
5212705470

push

github

mlocati
Initial version

1803 of 1803 new or added lines in 47 files covered. (100.0%)

1313 of 1803 relevant lines covered (72.82%)

1.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.24
/src/Service/Level3Info.php
1
<?php
2

3
namespace MLocati\PayWay\Service;
4

5
use DateTime;
6
use DateTimeInterface;
7
use JsonSerializable;
8

9
class Level3Info implements JsonSerializable
10
{
11
    use JsonCleanupTrait;
12

13
    /**
14
     * Undocumented.
15
     *
16
     * @var string
17
     */
18
    private $invoiceNumber = '';
19

20
    /**
21
     * Undocumented.
22
     *
23
     * @var string
24
     */
25
    private $senderPostalCode = '';
26

27
    /**
28
     * Undocumented.
29
     *
30
     * @var string
31
     */
32
    private $senderCountryCode = '';
33

34
    /**
35
     * Undocumented.
36
     *
37
     * @var string
38
     */
39
    private $destinationName = '';
40

41
    /**
42
     * Undocumented.
43
     *
44
     * @var string
45
     */
46
    private $destinationStreet = '';
47

48
    /**
49
     * Undocumented.
50
     *
51
     * @var string
52
     */
53
    private $destinationStreet2 = '';
54

55
    /**
56
     * Undocumented.
57
     *
58
     * @var string
59
     */
60
    private $destinationStreet3 = '';
61

62
    /**
63
     * Undocumented.
64
     *
65
     * @var string
66
     */
67
    private $destinationCity = '';
68

69
    /**
70
     * Undocumented.
71
     *
72
     * @var string
73
     */
74
    private $destinationState = '';
75

76
    /**
77
     * Undocumented.
78
     *
79
     * @var string
80
     */
81
    private $destinationPostalCode = '';
82

83
    /**
84
     * Undocumented.
85
     *
86
     * @var string
87
     */
88
    private $destinationCountryCode = '';
89

90
    /**
91
     * Undocumented.
92
     *
93
     * @var string
94
     */
95
    private $destinationPhone = '';
96

97
    /**
98
     * Undocumented.
99
     *
100
     * @var string
101
     */
102
    private $destinationFax = '';
103

104
    /**
105
     * Undocumented.
106
     *
107
     * @var string
108
     */
109
    private $destinationEmail = '';
110

111
    /**
112
     * Undocumented.
113
     *
114
     * @var \DateTimeInterface|null
115
     */
116
    private $destinationDate;
117

118
    /**
119
     * Undocumented.
120
     *
121
     * @var string
122
     */
123
    private $billingName = '';
124

125
    /**
126
     * Undocumented.
127
     *
128
     * @var string
129
     */
130
    private $billingStreet = '';
131

132
    /**
133
     * Undocumented.
134
     *
135
     * @var string
136
     */
137
    private $billingStreet2 = '';
138

139
    /**
140
     * Undocumented.
141
     *
142
     * @var string
143
     */
144
    private $billingStreet3 = '';
145

146
    /**
147
     * Undocumented.
148
     *
149
     * @var string
150
     */
151
    private $billingCity = '';
152

153
    /**
154
     * Undocumented.
155
     *
156
     * @var string
157
     */
158
    private $billingState = '';
159

160
    /**
161
     * Undocumented.
162
     *
163
     * @var string
164
     */
165
    private $billingPostalCode = '';
166

167
    /**
168
     * Undocumented.
169
     *
170
     * @var string
171
     */
172
    private $billingCountryCode = '';
173

174
    /**
175
     * Undocumented.
176
     *
177
     * @var string
178
     */
179
    private $billingPhone = '';
180

181
    /**
182
     * Undocumented.
183
     *
184
     * @var string
185
     */
186
    private $billingFax = '';
187

188
    /**
189
     * Undocumented.
190
     *
191
     * @var string
192
     */
193
    private $billingEmail = '';
194

195
    /**
196
     * Undocumented.
197
     *
198
     * @var int|null
199
     */
200
    private $freightAmount;
201

202
    /**
203
     * Undocumented.
204
     *
205
     * @var int|null
206
     */
207
    private $taxAmount;
208

209
    /**
210
     * Undocumented.
211
     *
212
     * @var string
213
     */
214
    private $vat = '';
215

216
    /**
217
     * Undocumented.
218
     *
219
     * @var string
220
     */
221
    private $note = '';
222

223
    /**
224
     * Undocumented.
225
     *
226
     * @var \MLocati\PayWay\Service\Level3Info\Product[]
227
     */
228
    private $products = [];
229

230
    /**
231
     * Undocumented.
232
     *
233
     * @return string
234
     */
235
    public function getInvoiceNumber()
236
    {
237
        return $this->invoiceNumber;
4✔
238
    }
239

240
    /**
241
     * Undocumented.
242
     *
243
     * @param string $value
244
     *
245
     * @return $this
246
     */
247
    public function setInvoiceNumber($value)
248
    {
249
        $this->invoiceNumber = (string) $value;
×
250

251
        return $this;
×
252
    }
253

254
    /**
255
     * Undocumented.
256
     *
257
     * @return string
258
     */
259
    public function getSenderPostalCode()
260
    {
261
        return $this->senderPostalCode;
4✔
262
    }
263

264
    /**
265
     * Undocumented.
266
     *
267
     * @param string $value
268
     *
269
     * @return $this
270
     */
271
    public function setSenderPostalCode($value)
272
    {
273
        $this->senderPostalCode = (string) $value;
×
274

275
        return $this;
×
276
    }
277

278
    /**
279
     * Undocumented.
280
     *
281
     * @return string
282
     */
283
    public function getSenderCountryCode()
284
    {
285
        return $this->senderCountryCode;
4✔
286
    }
287

288
    /**
289
     * Undocumented.
290
     *
291
     * @param string $value
292
     *
293
     * @return $this
294
     */
295
    public function setSenderCountryCode($value)
296
    {
297
        $this->senderCountryCode = (string) $value;
×
298

299
        return $this;
×
300
    }
301

302
    /**
303
     * Undocumented.
304
     *
305
     * @return string
306
     */
307
    public function getDestinationName()
308
    {
309
        return $this->destinationName;
4✔
310
    }
311

312
    /**
313
     * Undocumented.
314
     *
315
     * @param string $value
316
     *
317
     * @return $this
318
     */
319
    public function setDestinationName($value)
320
    {
321
        $this->destinationName = (string) $value;
2✔
322

323
        return $this;
2✔
324
    }
325

326
    /**
327
     * Undocumented.
328
     *
329
     * @return string
330
     */
331
    public function getDestinationStreet()
332
    {
333
        return $this->destinationStreet;
4✔
334
    }
335

336
    /**
337
     * Undocumented.
338
     *
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function setDestinationStreet($value)
344
    {
345
        $this->destinationStreet = (string) $value;
2✔
346

347
        return $this;
2✔
348
    }
349

350
    /**
351
     * Undocumented.
352
     *
353
     * @return string
354
     */
355
    public function getDestinationStreet2()
356
    {
357
        return $this->destinationStreet2;
4✔
358
    }
359

360
    /**
361
     * Undocumented.
362
     *
363
     * @param string $value
364
     *
365
     * @return $this
366
     */
367
    public function setDestinationStreet2($value)
368
    {
369
        $this->destinationStreet2 = (string) $value;
×
370

371
        return $this;
×
372
    }
373

374
    /**
375
     * Undocumented.
376
     *
377
     * @return string
378
     */
379
    public function getDestinationStreet3()
380
    {
381
        return $this->destinationStreet3;
4✔
382
    }
383

384
    /**
385
     * Undocumented.
386
     *
387
     * @param string $value
388
     *
389
     * @return $this
390
     */
391
    public function setDestinationStreet3($value)
392
    {
393
        $this->destinationStreet3 = (string) $value;
×
394

395
        return $this;
×
396
    }
397

398
    /**
399
     * Undocumented.
400
     *
401
     * @return string
402
     */
403
    public function getDestinationCity()
404
    {
405
        return $this->destinationCity;
4✔
406
    }
407

408
    /**
409
     * Undocumented.
410
     *
411
     * @param string $value
412
     *
413
     * @return $this
414
     */
415
    public function setDestinationCity($value)
416
    {
417
        $this->destinationCity = (string) $value;
2✔
418

419
        return $this;
2✔
420
    }
421

422
    /**
423
     * Undocumented.
424
     *
425
     * @return string
426
     */
427
    public function getDestinationState()
428
    {
429
        return $this->destinationState;
4✔
430
    }
431

432
    /**
433
     * Undocumented.
434
     *
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function setDestinationState($value)
440
    {
441
        $this->destinationState = (string) $value;
2✔
442

443
        return $this;
2✔
444
    }
445

446
    /**
447
     * Undocumented.
448
     *
449
     * @return string
450
     */
451
    public function getDestinationPostalCode()
452
    {
453
        return $this->destinationPostalCode;
4✔
454
    }
455

456
    /**
457
     * Undocumented.
458
     *
459
     * @param string $value
460
     *
461
     * @return $this
462
     */
463
    public function setDestinationPostalCode($value)
464
    {
465
        $this->destinationPostalCode = (string) $value;
2✔
466

467
        return $this;
2✔
468
    }
469

470
    /**
471
     * Undocumented.
472
     *
473
     * @return string
474
     */
475
    public function getDestinationCountryCode()
476
    {
477
        return $this->destinationCountryCode;
4✔
478
    }
479

480
    /**
481
     * Undocumented.
482
     *
483
     * @param string $value
484
     *
485
     * @return $this
486
     */
487
    public function setDestinationCountryCode($value)
488
    {
489
        $this->destinationCountryCode = (string) $value;
2✔
490

491
        return $this;
2✔
492
    }
493

494
    /**
495
     * Undocumented.
496
     *
497
     * @return string
498
     */
499
    public function getDestinationPhone()
500
    {
501
        return $this->destinationPhone;
4✔
502
    }
503

504
    /**
505
     * Undocumented.
506
     *
507
     * @param string $value
508
     *
509
     * @return $this
510
     */
511
    public function setDestinationPhone($value)
512
    {
513
        $this->destinationPhone = (string) $value;
×
514

515
        return $this;
×
516
    }
517

518
    /**
519
     * Undocumented.
520
     *
521
     * @return string
522
     */
523
    public function getDestinationFax()
524
    {
525
        return $this->destinationFax;
4✔
526
    }
527

528
    /**
529
     * Undocumented.
530
     *
531
     * @param string $value
532
     *
533
     * @return $this
534
     */
535
    public function setDestinationFax($value)
536
    {
537
        $this->destinationFax = (string) $value;
×
538

539
        return $this;
×
540
    }
541

542
    /**
543
     * Undocumented.
544
     *
545
     * @return string
546
     */
547
    public function getDestinationEmail()
548
    {
549
        return $this->destinationEmail;
4✔
550
    }
551

552
    /**
553
     * Undocumented.
554
     *
555
     * @param string $value
556
     *
557
     * @return $this
558
     */
559
    public function setDestinationEmail($value)
560
    {
561
        $this->destinationEmail = (string) $value;
×
562

563
        return $this;
×
564
    }
565

566
    /**
567
     * Undocumented.
568
     *
569
     * @return \DateTimeInterface|null
570
     */
571
    public function getDestinationDate()
572
    {
573
        return $this->destinationDate;
4✔
574
    }
575

576
    /**
577
     * Undocumented.
578
     *
579
     * @return $this
580
     */
581
    public function setDestinationDate(DateTimeInterface $value = null)
582
    {
583
        $this->destinationDate = $value;
×
584

585
        return $this;
×
586
    }
587

588
    /**
589
     * Undocumented.
590
     *
591
     * @return string
592
     */
593
    public function getBillingName()
594
    {
595
        return $this->billingName;
4✔
596
    }
597

598
    /**
599
     * Undocumented.
600
     *
601
     * @param string $value
602
     *
603
     * @return $this
604
     */
605
    public function setBillingName($value)
606
    {
607
        $this->billingName = (string) $value;
×
608

609
        return $this;
×
610
    }
611

612
    /**
613
     * Undocumented.
614
     *
615
     * @return string
616
     */
617
    public function getBillingStreet()
618
    {
619
        return $this->billingStreet;
4✔
620
    }
621

622
    /**
623
     * Undocumented.
624
     *
625
     * @param string $value
626
     *
627
     * @return $this
628
     */
629
    public function setBillingStreet($value)
630
    {
631
        $this->billingStreet = (string) $value;
×
632

633
        return $this;
×
634
    }
635

636
    /**
637
     * Undocumented.
638
     *
639
     * @return string
640
     */
641
    public function getBillingStreet2()
642
    {
643
        return $this->billingStreet2;
4✔
644
    }
645

646
    /**
647
     * Undocumented.
648
     *
649
     * @param string $value
650
     *
651
     * @return $this
652
     */
653
    public function setBillingStreet2($value)
654
    {
655
        $this->billingStreet2 = (string) $value;
×
656

657
        return $this;
×
658
    }
659

660
    /**
661
     * Undocumented.
662
     *
663
     * @return string
664
     */
665
    public function getBillingStreet3()
666
    {
667
        return $this->billingStreet3;
4✔
668
    }
669

670
    /**
671
     * Undocumented.
672
     *
673
     * @param string $value
674
     *
675
     * @return $this
676
     */
677
    public function setBillingStreet3($value)
678
    {
679
        $this->billingStreet3 = (string) $value;
×
680

681
        return $this;
×
682
    }
683

684
    /**
685
     * Undocumented.
686
     *
687
     * @return string
688
     */
689
    public function getBillingCity()
690
    {
691
        return $this->billingCity;
4✔
692
    }
693

694
    /**
695
     * Undocumented.
696
     *
697
     * @param string $value
698
     *
699
     * @return $this
700
     */
701
    public function setBillingCity($value)
702
    {
703
        $this->billingCity = (string) $value;
×
704

705
        return $this;
×
706
    }
707

708
    /**
709
     * Undocumented.
710
     *
711
     * @return string
712
     */
713
    public function getBillingState()
714
    {
715
        return $this->billingState;
4✔
716
    }
717

718
    /**
719
     * Undocumented.
720
     *
721
     * @param string $value
722
     *
723
     * @return $this
724
     */
725
    public function setBillingState($value)
726
    {
727
        $this->billingState = (string) $value;
×
728

729
        return $this;
×
730
    }
731

732
    /**
733
     * Undocumented.
734
     *
735
     * @return string
736
     */
737
    public function getBillingPostalCode()
738
    {
739
        return $this->billingPostalCode;
4✔
740
    }
741

742
    /**
743
     * Undocumented.
744
     *
745
     * @param string $value
746
     *
747
     * @return $this
748
     */
749
    public function setBillingPostalCode($value)
750
    {
751
        $this->billingPostalCode = (string) $value;
×
752

753
        return $this;
×
754
    }
755

756
    /**
757
     * Undocumented.
758
     *
759
     * @return string
760
     */
761
    public function getBillingCountryCode()
762
    {
763
        return $this->billingCountryCode;
4✔
764
    }
765

766
    /**
767
     * Undocumented.
768
     *
769
     * @param string $value
770
     *
771
     * @return $this
772
     */
773
    public function setBillingCountryCode($value)
774
    {
775
        $this->billingCountryCode = (string) $value;
×
776

777
        return $this;
×
778
    }
779

780
    /**
781
     * Undocumented.
782
     *
783
     * @return string
784
     */
785
    public function getBillingPhone()
786
    {
787
        return $this->billingPhone;
4✔
788
    }
789

790
    /**
791
     * Undocumented.
792
     *
793
     * @param string $value
794
     *
795
     * @return $this
796
     */
797
    public function setBillingPhone($value)
798
    {
799
        $this->billingPhone = (string) $value;
×
800

801
        return $this;
×
802
    }
803

804
    /**
805
     * Undocumented.
806
     *
807
     * @return string
808
     */
809
    public function getBillingFax()
810
    {
811
        return $this->billingFax;
4✔
812
    }
813

814
    /**
815
     * Undocumented.
816
     *
817
     * @param string $value
818
     *
819
     * @return $this
820
     */
821
    public function setBillingFax($value)
822
    {
823
        $this->billingFax = (string) $value;
×
824

825
        return $this;
×
826
    }
827

828
    /**
829
     * Undocumented.
830
     *
831
     * @return string
832
     */
833
    public function getBillingEmail()
834
    {
835
        return $this->billingEmail;
4✔
836
    }
837

838
    /**
839
     * Undocumented.
840
     *
841
     * @param string $value
842
     *
843
     * @return $this
844
     */
845
    public function setBillingEmail($value)
846
    {
847
        $this->billingEmail = (string) $value;
×
848

849
        return $this;
×
850
    }
851

852
    /**
853
     * Undocumented.
854
     *
855
     * @return float|int|null
856
     *
857
     * @example 0.07 EUR = 0.07
858
     * @example 1.00 EUR = 1
859
     * @example 12.05 EUR = 12.05
860
     *
861
     * @see \MLocati\PayWay\Service\Level3Info::getFreightAmountAsCents()
862
     */
863
    public function getFreightAmountAsFloat()
864
    {
865
        return $this->freightAmount === null ? null : ((float) $this->freightAmount) / 100.;
×
866
    }
867

868
    /**
869
     * Undocumented.
870
     *
871
     * @param float|int|null $value
872
     *
873
     * @return $this
874
     *
875
     * @example 0.07 EUR = 0.07
876
     * @example 1.00 EUR = 1
877
     * @example 12.05 EUR = 12.05
878
     *
879
     * @see \MLocati\PayWay\Service\Level3Info::setFreightAmountAsCents()
880
     */
881
    public function setFreightAmountAsFloat($value)
882
    {
883
        return $this->setFreightAmountAsCents(empty($value) ? $value : round((float) $value * 100.));
1✔
884
    }
885

886
    /**
887
     * Undocumented.
888
     *
889
     * @var int|null
890
     *
891
     * @example 0.07 EUR = 7
892
     * @example 1.00 EUR = 100
893
     * @example 12.05 EUR = 1205
894
     *
895
     * @see \MLocati\PayWay\Service\Level3Info::getFreightAmountAsFloat()
896
     */
897
    public function getFreightAmountAsCents()
898
    {
899
        return $this->freightAmount;
4✔
900
    }
901

902
    /**
903
     * Undocumented.
904
     *
905
     * @param int|null $value
906
     *
907
     * @return $this
908
     *
909
     * @example 0.07 EUR = 7
910
     * @example 1.00 EUR = 100
911
     * @example 12.05 EUR = 1205
912
     *
913
     * @see \MLocati\PayWay\Service\Level3Info::setFreightAmountAsFloat()
914
     */
915
    public function setFreightAmountAsCents($value)
916
    {
917
        $this->freightAmount = $value === null || $value === '' ? null : (int) $value;
2✔
918

919
        return $this;
2✔
920
    }
921

922
    /**
923
     * Undocumented.
924
     *
925
     * @return float|int|null
926
     *
927
     * @example 0.07 EUR = 0.07
928
     * @example 1.00 EUR = 1
929
     * @example 12.05 EUR = 12.05
930
     *
931
     * @see \MLocati\PayWay\Service\Level3Info::getTaxAmountAsCents()
932
     */
933
    public function getTaxAmountAsFloat()
934
    {
935
        return $this->taxAmount === null ? null : ((float) $this->taxAmount) / 100.;
×
936
    }
937

938
    /**
939
     * Undocumented.
940
     *
941
     * @param float|int|null $value
942
     *
943
     * @return $this
944
     *
945
     * @example 0.07 EUR = 0.07
946
     * @example 1.00 EUR = 1
947
     * @example 12.05 EUR = 12.05
948
     *
949
     * @see \MLocati\PayWay\Service\Level3Info::setTaxAmountAsCents()
950
     */
951
    public function setTaxAmountAsFloat($value)
952
    {
953
        return $this->setTaxAmountAsCents(empty($value) ? $value : round((float) $value * 100.));
1✔
954
    }
955

956
    /**
957
     * Undocumented.
958
     *
959
     * @var int|null
960
     *
961
     * @example 0.07 EUR = 7
962
     * @example 1.00 EUR = 100
963
     * @example 12.05 EUR = 1205
964
     *
965
     * @see \MLocati\PayWay\Service\Level3Info::getTaxAmountAsFloat()
966
     */
967
    public function getTaxAmountAsCents()
968
    {
969
        return $this->taxAmount;
4✔
970
    }
971

972
    /**
973
     * Undocumented.
974
     *
975
     * @param int|null $value
976
     *
977
     * @return $this
978
     *
979
     * @example 0.07 EUR = 7
980
     * @example 1.00 EUR = 100
981
     * @example 12.05 EUR = 1205
982
     *
983
     * @see \MLocati\PayWay\Service\Level3Info::setTaxAmountAsFloat()
984
     */
985
    public function setTaxAmountAsCents($value)
986
    {
987
        $this->taxAmount = $value === null || $value === '' ? null : (int) $value;
2✔
988

989
        return $this;
2✔
990
    }
991

992
    /**
993
     * Undocumented.
994
     *
995
     * @return string
996
     */
997
    public function getVat()
998
    {
999
        return $this->vat;
4✔
1000
    }
1001

1002
    /**
1003
     * Undocumented.
1004
     *
1005
     * @param string $value
1006
     *
1007
     * @return $this
1008
     */
1009
    public function setVat($value)
1010
    {
1011
        $this->vat = (string) $value;
×
1012

1013
        return $this;
×
1014
    }
1015

1016
    /**
1017
     * Undocumented.
1018
     *
1019
     * @return string
1020
     */
1021
    public function getNote()
1022
    {
1023
        return $this->note;
4✔
1024
    }
1025

1026
    /**
1027
     * Undocumented.
1028
     *
1029
     * @param string $value
1030
     *
1031
     * @return $this
1032
     */
1033
    public function setNote($value)
1034
    {
1035
        $this->note = (string) $value;
×
1036

1037
        return $this;
×
1038
    }
1039

1040
    /**
1041
     * Undocumented.
1042
     *
1043
     * @return \MLocati\PayWay\Service\Level3Info\Product[]
1044
     */
1045
    public function getProducts()
1046
    {
1047
        return $this->products;
4✔
1048
    }
1049

1050
    /**
1051
     * Undocumented.
1052
     *
1053
     * @param \MLocati\PayWay\Service\Level3Info\Product[] $value
1054
     *
1055
     * @return $this
1056
     */
1057
    public function setProducts(array $value)
1058
    {
1059
        $this->products = [];
×
1060
        foreach ($value as $item) {
×
1061
            $this->addProduct($item);
×
1062
        }
1063

1064
        return $this;
×
1065
    }
1066

1067
    /**
1068
     * Undocumented.
1069
     *
1070
     * @return $this
1071
     */
1072
    public function addProduct(Level3Info\Product $value)
1073
    {
1074
        $this->products[] = $value;
2✔
1075

1076
        return $this;
2✔
1077
    }
1078

1079
    /**
1080
     * {@inheritdoc}
1081
     *
1082
     * @see \JsonSerializable::jsonSerialize()
1083
     */
1084
    #[\ReturnTypeWillChange]
1085
    public function jsonSerialize()
1086
    {
1087
        return $this->cleanupJson([
2✔
1088
            'invoiceNumber' => $this->invoiceNumber,
2✔
1089
            'senderPostalCode' => $this->senderPostalCode,
2✔
1090
            'senderCountryCode' => $this->senderCountryCode,
2✔
1091
            'destinationName' => $this->destinationName,
2✔
1092
            'destinationStreet' => $this->destinationStreet,
2✔
1093
            'destinationStreet2' => $this->destinationStreet2,
2✔
1094
            'destinationStreet3' => $this->destinationStreet3,
2✔
1095
            'destinationCity' => $this->destinationCity,
2✔
1096
            'destinationState' => $this->destinationState,
2✔
1097
            'destinationPostalCode' => $this->destinationPostalCode,
2✔
1098
            'destinationCountryCode' => $this->destinationCountryCode,
2✔
1099
            'destinationPhone' => $this->destinationPhone,
2✔
1100
            'destinationFax' => $this->destinationFax,
2✔
1101
            'destinationEmail' => $this->destinationEmail,
2✔
1102
            'destinationDate' => $this->destinationDate === null ? '' : $this->destinationDate->format(DateTime::RFC3339),
2✔
1103
            'billingName' => $this->billingName,
2✔
1104
            'billingStreet' => $this->billingStreet,
2✔
1105
            'billingStreet2' => $this->billingStreet2,
2✔
1106
            'billingStreet3' => $this->billingStreet3,
2✔
1107
            'billingCity' => $this->billingCity,
2✔
1108
            'billingState' => $this->billingState,
2✔
1109
            'billingPostalCode' => $this->billingPostalCode,
2✔
1110
            'billingCountryCode' => $this->billingCountryCode,
2✔
1111
            'billingPhone' => $this->billingPhone,
2✔
1112
            'billingFax' => $this->billingFax,
2✔
1113
            'billingEmail' => $this->billingEmail,
2✔
1114
            'freightAmount' => $this->freightAmount,
2✔
1115
            'taxAmount' => $this->taxAmount,
2✔
1116
            'vat' => $this->vat,
2✔
1117
            'note' => $this->note,
2✔
1118
            'product' => array_map(static function (Level3Info\Product $item) {
2✔
1119
                return $item->jsonSerialize();
2✔
1120
            }, $this->products),
2✔
1121
        ]);
2✔
1122
    }
1123
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc