Completed
Push — master ( 0a6175...a4cd9f )
by Adriano
05:55
created

IntencaoVenda::getPagamentosExternos()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Integracao\ControlPay\Model;
4
use Integracao\ControlPay\Helpers\SerializerHelper;
5
6
/**
7
 * Class IntencaoVenda
8
 * @package Integracao\ControlPay\Model
9
 */
10
class IntencaoVenda implements \JsonSerializable
11
{
12
    /**
13
     * @var integer
14
     */
15
    private $id;
16
17
    /**
18
     * @var Pessoa
19
     */
20
    private $pessoaVendedor;
21
22
    /**
23
     * @var Pessoa
24
     */
25
    private $pessoaCliente;
26
27
    /**
28
     * @var Pessoa
29
     */
30
    private $cliente;
31
32
    /**
33
     * @var FormaPagamento
34
     */
35
    private $formaPagamento;
36
37
    /**
38
     * @var Terminal
39
     */
40
    private $terminal;
41
42
    /**
43
     * @var Pedido
44
     */
45
    private $pedido;
46
47
    /**
48
     * @var Operador
49
     */
50
    private $operador;
51
52
    /**
53
     * @var ContaRecebimentoLancamento
54
     */
55
    private $contaRecebimentoLancamento;
56
57
    /**
58
     * @var PagamentoRecorrenteLancamento
59
     */
60
    private $pagamentoRecorrenteLancamento;
61
62
    /**
63
     * @var IntencaoVendaStatus
64
     */
65
    private $intencaoVendaStatus;
66
67
    /**
68
     * @var string
69
     */
70
    private $referencia;
71
72
    /**
73
     * @var string
74
     */
75
    private $token;
76
77
    /**
78
     * @var \DateTime
79
     */
80
    private $data;
81
82
    /**
83
     * @var string
84
     */
85
    private $hora;
86
87
    /**
88
     * @var double
89
     */
90
    private $valorOriginal;
91
92
    /**
93
     * @var double
94
     */
95
    private $valorAcrescimo;
96
97
    /**
98
     * @var double
99
     */
100
    private $valorDesconto;
101
102
    /**
103
     * @var double
104
     */
105
    private $valorFinal;
106
107
    /**
108
     * @var string
109
     */
110
    private $valorOriginalFormat;
111
112
    /**
113
     * @var string
114
     */
115
    private $valorDescontoFormat;
116
117
    /**
118
     * @var string
119
     */
120
    private $valorAcrescimoFormat;
121
122
    /**
123
     * @var string
124
     */
125
    private $valorFinalFormat;
126
127
    /**
128
     * @var float
129
     */
130
    private $latitude;
131
132
    /**
133
     * @var float
134
     */
135
    private $longitude;
136
137
    /**
138
     * @var string
139
     */
140
    private $gate2allToken;
141
142
    /**
143
     * @var string
144
     */
145
    private $cpfCnpj;
146
147
    /**
148
     * @var string
149
     */
150
    private $obs;
151
152
    /**
153
     * @var integer
154
     */
155
    private $quantidade;
156
157
    /**
158
     * @var array
159
     */
160
    private $itemProdutos;
161
162
    /**
163
     * @var array
164
     */
165
    private $produtos;
166
167
    /**
168
     * @var array
169
     */
170
    private $pagamentosExterno;
171
172
    /**
173
     * @var array
174
     */
175
    private $pagamentosExternos;
176
177
    /**
178
     * @var Pessoa
179
     */
180
    private $vendedor;
181
182
    /**
183
     * IntencaoVenda constructor.
184
     */
185
    public function __construct()
186
    {
187
    }
188
189
    /**
190
     * @return mixed
191
     */
192
    public function getId()
193
    {
194
        return $this->id;
195
    }
196
197
    /**
198
     * @param mixed $id
199
     * @return IntencaoVenda
200
     */
201
    public function setId($id)
202
    {
203
        $this->id = $id;
204
        return $this;
205
    }
206
207
    /**
208
     * @return Pessoa
209
     */
210
    public function getPessoaVendedor()
211
    {
212
        return $this->pessoaVendedor;
213
    }
214
215
    /**
216
     * @param Pessoa $pessoaVendedor
217
     * @return IntencaoVenda
218
     */
219 View Code Duplication
    public function setPessoaVendedor($pessoaVendedor)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
220
    {
221
        $this->pessoaVendedor = $pessoaVendedor;
222
223
        if(is_array($this->pessoaVendedor))
224
            $this->pessoaVendedor = SerializerHelper::denormalize($this->pessoaVendedor, Pessoa::class);
225
226
        return $this;
227
    }
228
229
    /**
230
     * @return Pessoa
231
     */
232
    public function getPessoaCliente()
233
    {
234
        return $this->pessoaCliente;
235
    }
236
237
    /**
238
     * @param Pessoa $pessoaCliente
239
     * @return IntencaoVenda
240
     */
241
    public function setPessoaCliente($pessoaCliente)
242
    {
243
        $this->pessoaCliente = $pessoaCliente;
244
245
        if(is_array($this->pessoaCliente))
246
            $this->pessoaCliente = SerializerHelper::denormalize($this->pessoaCliente, Pessoa::class);
247
248
        return $this;
249
    }
250
251
    /**
252
     * @return FormaPagamento
253
     */
254
    public function getFormaPagamento()
255
    {
256
        return $this->formaPagamento;
257
    }
258
259
    /**
260
     * @param FormaPagamento $formaPagamento
261
     * @return IntencaoVenda
262
     */
263
    public function setFormaPagamento($formaPagamento)
264
    {
265
        $this->formaPagamento = $formaPagamento;
266
267
        if(is_array($this->formaPagamento))
268
            $this->formaPagamento = SerializerHelper::denormalize($this->formaPagamento, FormaPagamento::class);
269
270
        return $this;
271
    }
272
273
    /**
274
     * @return Terminal
275
     */
276
    public function getTerminal()
277
    {
278
        return $this->terminal;
279
    }
280
281
    /**
282
     * @param Terminal $terminal
283
     * @return IntencaoVenda
284
     */
285
    public function setTerminal($terminal)
286
    {
287
        $this->terminal = $terminal;
288
289
        if(is_array($this->terminal))
290
            $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
291
292
        return $this;
293
    }
294
295
    /**
296
     * @return Pedido
297
     */
298
    public function getPedido()
299
    {
300
        return $this->pedido;
301
    }
302
303
    /**
304
     * @param Pedido $pedido
305
     * @return IntencaoVenda
306
     */
307
    public function setPedido($pedido)
308
    {
309
        $this->pedido = $pedido;
310
311
        if(is_array($this->pedido))
312
            $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class);
313
314
        return $this;
315
    }
316
317
    /**
318
     * @return Operador
319
     */
320
    public function getOperador()
321
    {
322
        return $this->operador;
323
    }
324
325
    /**
326
     * @param Operador $operador
327
     * @return IntencaoVenda
328
     */
329 View Code Duplication
    public function setOperador($operador)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
330
    {
331
        $this->operador = $operador;
332
333
        if(is_array($this->operador))
334
            $this->operador = SerializerHelper::denormalize($this->operador, Operador::class);
335
336
        return $this;
337
    }
338
339
    /**
340
     * @return ContaRecebimentoLancamento
341
     */
342
    public function getContaRecebimentoLancamento()
343
    {
344
        return $this->contaRecebimentoLancamento;
345
    }
346
347
    /**
348
     * @param ContaRecebimentoLancamento $contaRecebimentoLancamento
349
     * @return IntencaoVenda
350
     */
351
    public function setContaRecebimentoLancamento($contaRecebimentoLancamento)
352
    {
353
        $this->contaRecebimentoLancamento = $contaRecebimentoLancamento;
354
355
        if(is_array($this->contaRecebimentoLancamento))
356
            $this->contaRecebimentoLancamento = SerializerHelper::denormalize($this->contaRecebimentoLancamento, ContaRecebimentoLancamento::class);
357
358
        return $this;
359
    }
360
361
    /**
362
     * @return PagamentoRecorrenteLancamento
363
     */
364
    public function getPagamentoRecorrenteLancamento()
365
    {
366
        return $this->pagamentoRecorrenteLancamento;
367
    }
368
369
    /**
370
     * @param PagamentoRecorrenteLancamento $pagamentoRecorrenteLancamento
371
     * @return IntencaoVenda
372
     */
373
    public function setPagamentoRecorrenteLancamento($pagamentoRecorrenteLancamento)
374
    {
375
        $this->pagamentoRecorrenteLancamento = $pagamentoRecorrenteLancamento;
376
377
        if(is_array($this->pagamentoRecorrenteLancamento))
378
            $this->pagamentoRecorrenteLancamento = SerializerHelper::denormalize($this->pagamentoRecorrenteLancamento, PagamentoRecorrenteLancamento::class);
379
380
        return $this;
381
    }
382
383
    /**
384
     * @return IntencaoVendaStatus
385
     */
386
    public function getIntencaoVendaStatus()
387
    {
388
        return $this->intencaoVendaStatus;
389
    }
390
391
    /**
392
     * @param IntencaoVendaStatus $intencaoVendaStatus
393
     * @return IntencaoVenda
394
     */
395
    public function setIntencaoVendaStatus($intencaoVendaStatus)
396
    {
397
        $this->intencaoVendaStatus = $intencaoVendaStatus;
398
399
        if(is_array($this->intencaoVendaStatus))
400
            $this->intencaoVendaStatus = SerializerHelper::denormalize($this->intencaoVendaStatus, IntencaoVendaStatus::class);
401
402
        return $this;
403
    }
404
405
    /**
406
     * @return string
407
     */
408
    public function getReferencia()
409
    {
410
        return $this->referencia;
411
    }
412
413
    /**
414
     * @param string $referencia
415
     * @return IntencaoVenda
416
     */
417
    public function setReferencia($referencia)
418
    {
419
        $this->referencia = $referencia;
420
        return $this;
421
    }
422
423
    /**
424
     * @return string
425
     */
426
    public function getToken()
427
    {
428
        return $this->token;
429
    }
430
431
    /**
432
     * @param string $token
433
     * @return IntencaoVenda
434
     */
435
    public function setToken($token)
436
    {
437
        $this->token = $token;
438
        return $this;
439
    }
440
441
    /**
442
     * @return \DateTime
443
     */
444
    public function getData()
445
    {
446
        return $this->data;
447
    }
448
449
    /**
450
     * @param \DateTime $data
451
     * @return IntencaoVenda
452
     */
453
    public function setData($data)
454
    {
455
        $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
0 ignored issues
show
Documentation Bug introduced by
It seems like \DateTime::createFromFor...'d/m/Y H:i:s.u', $data) can also be of type false. However, the property $data is declared as type object<DateTime>. Maybe add an additional type check?

Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a mixed type is assigned to a property that is type hinted more strictly.

For example, imagine you have a variable $accountId that can either hold an Id object or false (if there is no account id yet). Your code now assigns that value to the id property of an instance of the Account class. This class holds a proper account, so the id value must no longer be false.

Either this assignment is in error or a type check should be added for that assignment.

class Id
{
    public $id;

    public function __construct($id)
    {
        $this->id = $id;
    }

}

class Account
{
    /** @var  Id $id */
    public $id;
}

$account_id = false;

if (starsAreRight()) {
    $account_id = new Id(42);
}

$account = new Account();
if ($account instanceof Id)
{
    $account->id = $account_id;
}
Loading history...
456
457
        if(!$this->data)
458
            $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
0 ignored issues
show
Documentation Bug introduced by
It seems like \DateTime::createFromFormat('d/m/Y H:i:s', $data) can also be of type false. However, the property $data is declared as type object<DateTime>. Maybe add an additional type check?

Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a mixed type is assigned to a property that is type hinted more strictly.

For example, imagine you have a variable $accountId that can either hold an Id object or false (if there is no account id yet). Your code now assigns that value to the id property of an instance of the Account class. This class holds a proper account, so the id value must no longer be false.

Either this assignment is in error or a type check should be added for that assignment.

class Id
{
    public $id;

    public function __construct($id)
    {
        $this->id = $id;
    }

}

class Account
{
    /** @var  Id $id */
    public $id;
}

$account_id = false;

if (starsAreRight()) {
    $account_id = new Id(42);
}

$account = new Account();
if ($account instanceof Id)
{
    $account->id = $account_id;
}
Loading history...
459
460
        return $this;
461
    }
462
463
    /**
464
     * @return float
465
     */
466
    public function getValorOriginal()
467
    {
468
        return $this->valorOriginal;
469
    }
470
471
    /**
472
     * @param float $valorOriginal
473
     * @return IntencaoVenda
474
     */
475
    public function setValorOriginal($valorOriginal)
476
    {
477
        $this->valorOriginal = $valorOriginal;
478
        return $this;
479
    }
480
481
    /**
482
     * @return float
483
     */
484
    public function getValorAcrescimo()
485
    {
486
        return $this->valorAcrescimo;
487
    }
488
489
    /**
490
     * @param float $valorAcrescimo
491
     * @return IntencaoVenda
492
     */
493
    public function setValorAcrescimo($valorAcrescimo)
494
    {
495
        $this->valorAcrescimo = $valorAcrescimo;
496
        return $this;
497
    }
498
499
    /**
500
     * @return float
501
     */
502
    public function getValorDesconto()
503
    {
504
        return $this->valorDesconto;
505
    }
506
507
    /**
508
     * @param float $valorDesconto
509
     * @return IntencaoVenda
510
     */
511
    public function setValorDesconto($valorDesconto)
512
    {
513
        $this->valorDesconto = $valorDesconto;
514
        return $this;
515
    }
516
517
    /**
518
     * @return float
519
     */
520
    public function getValorFinal()
521
    {
522
        return $this->valorFinal;
523
    }
524
525
    /**
526
     * @param float $valorFinal
527
     * @return IntencaoVenda
528
     */
529
    public function setValorFinal($valorFinal)
530
    {
531
        $this->valorFinal = $valorFinal;
532
        return $this;
533
    }
534
535
    /**
536
     * @return float
537
     */
538
    public function getLatitude()
539
    {
540
        return $this->latitude;
541
    }
542
543
    /**
544
     * @param float $latitude
545
     * @return IntencaoVenda
546
     */
547
    public function setLatitude($latitude)
548
    {
549
        $this->latitude = $latitude;
550
        return $this;
551
    }
552
553
    /**
554
     * @return float
555
     */
556
    public function getLongitude()
557
    {
558
        return $this->longitude;
559
    }
560
561
    /**
562
     * @param float $longitude
563
     * @return IntencaoVenda
564
     */
565
    public function setLongitude($longitude)
566
    {
567
        $this->longitude = $longitude;
568
        return $this;
569
    }
570
571
    /**
572
     * @return string
573
     */
574
    public function getGate2allToken()
575
    {
576
        return $this->gate2allToken;
577
    }
578
579
    /**
580
     * @param string $gate2allToken
581
     * @return IntencaoVenda
582
     */
583
    public function setGate2allToken($gate2allToken)
584
    {
585
        $this->gate2allToken = $gate2allToken;
586
        return $this;
587
    }
588
589
    /**
590
     * @return string
591
     */
592
    public function getCpfCnpj()
593
    {
594
        return $this->cpfCnpj;
595
    }
596
597
    /**
598
     * @param string $cpfCnpj
599
     * @return IntencaoVenda
600
     */
601
    public function setCpfCnpj($cpfCnpj)
602
    {
603
        $this->cpfCnpj = $cpfCnpj;
604
        return $this;
605
    }
606
607
    /**
608
     * @return string
609
     */
610
    public function getObs()
611
    {
612
        return $this->obs;
613
    }
614
615
    /**
616
     * @param string $obs
617
     * @return IntencaoVenda
618
     */
619
    public function setObs($obs)
620
    {
621
        $this->obs = $obs;
622
        return $this;
623
    }
624
625
    /**
626
     * @return array
627
     */
628
    public function getItemProdutos()
629
    {
630
        return $this->itemProdutos;
631
    }
632
633
    /**
634
     * @param array $itemProdutos
635
     * @return IntencaoVenda
636
     */
637 View Code Duplication
    public function setItemProdutos($itemProdutos)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
638
    {
639
        //$this->itemProdutos = $itemProdutos;
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
640
641
        if(is_array($itemProdutos))
642
            foreach ($itemProdutos as $itemProduto) {
643
                $this->itemProdutos[] = SerializerHelper::denormalize(
644
                    $itemProduto, ItemProduto::class);
645
            }
646
647
        return $this;
648
    }
649
650
    /**
651
     * @return array
652
     */
653
    public function getPagamentosExterno()
654
    {
655
        return $this->pagamentosExterno;
656
    }
657
658
    /**
659
     * @param array $pagamentosExterno
660
     * @return IntencaoVenda
661
     */
662 View Code Duplication
    public function setPagamentosExterno($pagamentosExterno)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
663
    {
664
        if(is_array($pagamentosExterno))
665
            foreach ($pagamentosExterno as $pagamentoExterno) {
666
                $this->pagamentosExterno[] = SerializerHelper::denormalize(
667
                    $pagamentoExterno, PagamentoExterno::class);
668
            }
669
670
        return $this;
671
    }
672
673
    /**
674
     * @return array
675
     */
676
    public function getProdutos()
677
    {
678
        return $this->produtos;
679
    }
680
681
    /**
682
     * @param array $produtos
683
     * @return IntencaoVenda
684
     */
685 View Code Duplication
    public function setProdutos($produtos)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
686
    {
687
688
        if(is_array($produtos))
689
            foreach ($produtos as $produto) {
690
                $this->produtos[] = SerializerHelper::denormalize(
691
                    $produto, ItemProduto::class);
692
            }
693
694
        return $this;
695
    }
696
697
    /**
698
     * @return string
699
     */
700
    public function getHora()
701
    {
702
        return $this->hora;
703
    }
704
705
    /**
706
     * @param string $hora
707
     * @return IntencaoVenda
708
     */
709
    public function setHora($hora)
710
    {
711
        $this->hora = $hora;
712
        return $this;
713
    }
714
715
    /**
716
     * @return int
717
     */
718
    public function getQuantidade()
719
    {
720
        return $this->quantidade;
721
    }
722
723
    /**
724
     * @param int $quantidade
725
     * @return IntencaoVenda
726
     */
727
    public function setQuantidade($quantidade)
728
    {
729
        $this->quantidade = $quantidade;
730
        return $this;
731
    }
732
733
    /**
734
     * @return string
735
     */
736
    public function getValorOriginalFormat()
737
    {
738
        return $this->valorOriginalFormat;
739
    }
740
741
    /**
742
     * @param string $valorOriginalFormat
743
     * @return IntencaoVenda
744
     */
745
    public function setValorOriginalFormat($valorOriginalFormat)
746
    {
747
        $this->valorOriginalFormat = $valorOriginalFormat;
748
        return $this;
749
    }
750
751
    /**
752
     * @return string
753
     */
754
    public function getValorDescontoFormat()
755
    {
756
        return $this->valorDescontoFormat;
757
    }
758
759
    /**
760
     * @param string $valorDescontoFormat
761
     * @return IntencaoVenda
762
     */
763
    public function setValorDescontoFormat($valorDescontoFormat)
764
    {
765
        $this->valorDescontoFormat = $valorDescontoFormat;
766
        return $this;
767
    }
768
769
    /**
770
     * @return string
771
     */
772
    public function getValorAcrescimoFormat()
773
    {
774
        return $this->valorAcrescimoFormat;
775
    }
776
777
    /**
778
     * @param string $valorAcrescimoFormat
779
     * @return IntencaoVenda
780
     */
781
    public function setValorAcrescimoFormat($valorAcrescimoFormat)
782
    {
783
        $this->valorAcrescimoFormat = $valorAcrescimoFormat;
784
        return $this;
785
    }
786
787
    /**
788
     * @return string
789
     */
790
    public function getValorFinalFormat()
791
    {
792
        return $this->valorFinalFormat;
793
    }
794
795
    /**
796
     * @param string $valorFinalFormat
797
     * @return IntencaoVenda
798
     */
799
    public function setValorFinalFormat($valorFinalFormat)
800
    {
801
        $this->valorFinalFormat = $valorFinalFormat;
802
        return $this;
803
    }
804
805
    /**
806
     * @return Pessoa
807
     */
808
    public function getVendedor()
809
    {
810
        return $this->vendedor;
811
    }
812
813
    /**
814
     * @param Pessoa $vendedor
815
     * @return IntencaoVenda
816
     */
817 View Code Duplication
    public function setVendedor($vendedor)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
818
    {
819
        $this->vendedor = $vendedor;
820
821
        if(is_array($this->vendedor))
822
            $this->vendedor = SerializerHelper::denormalize($this->pessoaVendedor, Pessoa::class);
823
824
        return $this;
825
    }
826
827
    /**
828
     * @return Pessoa
829
     */
830
    public function getCliente()
831
    {
832
        return $this->cliente;
833
    }
834
835
    /**
836
     * @param Pessoa $cliente
837
     * @return IntencaoVenda
838
     */
839
    public function setCliente($cliente)
840
    {
841
        $this->cliente = $cliente;
842
        return $this;
843
    }
844
845
    /**
846
     * @return array
847
     */
848
    public function getPagamentosExternos()
849
    {
850
        return $this->pagamentosExternos;
851
    }
852
853
    /**
854
     * @param array $pagamentosExternos
855
     * @return IntencaoVenda
856
     */
857 View Code Duplication
    public function setPagamentosExternos($pagamentosExternos)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
858
    {
859
        if(is_array($pagamentosExternos))
860
            foreach ($pagamentosExternos as $pagamentoExterno) {
861
                $this->pagamentosExternos[] = SerializerHelper::denormalize(
862
                    $pagamentoExterno, PagamentoExterno::class);
863
            }
864
865
        return $this;
866
    }
867
868
    /**
869
     * @return array
870
     */
871
    function jsonSerialize()
872
    {
873
        return [
874
            'id' => $this->id,
875
            'pessoaVendedor' => $this->pessoaVendedor,
876
            'pessoaCliente' => $this->pessoaCliente,
877
            'itemProdutos' => $this->itemProdutos,
878
            'pagamentosExterno' => $this->pagamentosExterno,
879
            'produtos' => $this->produtos,
880
            'contaRecebimentoLancamento' => $this->contaRecebimentoLancamento,
881
            'cpfCnpj' => $this->cpfCnpj,
882
            'data' => $this->data,
883
            'formaPagamento' => $this->formaPagamento,
884
            'gate2allToken' => $this->gate2allToken,
885
            'referencia' => $this->referencia,
886
            'intencaoVendaStatus' => $this->intencaoVendaStatus,
887
            'longitude' => $this->longitude,
888
            'latitude' => $this->latitude,
889
            'obs' => $this->obs,
890
            'pedido' => $this->pedido,
891
            'quantidade' => $this->quantidade,
892
            'vendedor' => $this->vendedor,
893
            'terminal' => $this->terminal,
894
            'hora' => $this->hora,
895
            'cliente' => $this->cliente,
896
            'valorOriginal' => $this->valorOriginal,
897
            'valorOriginalFormat' => $this->valorOriginalFormat,
898
            'valorAcrescimo' => $this->valorAcrescimo,
899
            'valorAcrescimoFormat' => $this->valorAcrescimoFormat,
900
            'valorDesconto' => $this->valorDesconto,
901
            'valorDescontoFormat' => $this->valorDescontoFormat,
902
            'valorFinal' => $this->valorFinal,
903
            'valorFinalFormat' => $this->valorFinalFormat,
904
        ];
905
    }
906
907
908
}