@@ 12-70 (lines=59) @@ | ||
9 | * Class GetByFiltrosResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class GetByFiltrosResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var array |
|
21 | */ |
|
22 | private $intencoesVendas; |
|
23 | ||
24 | /** |
|
25 | * GetByFiltrosResponse constructor. |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return \DateTime |
|
33 | */ |
|
34 | public function getData() |
|
35 | { |
|
36 | return $this->data; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param \DateTime $data |
|
41 | * @return GetByFiltrosResponse |
|
42 | */ |
|
43 | public function setData($data) |
|
44 | { |
|
45 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
46 | return $this; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @return array |
|
51 | */ |
|
52 | public function getIntencoesVendas() |
|
53 | { |
|
54 | return $this->intencoesVendas; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param array $intencoesVendas |
|
59 | * @return GetByFiltrosResponse |
|
60 | */ |
|
61 | public function setIntencoesVendas($intencoesVendas) |
|
62 | { |
|
63 | ||
64 | foreach ($intencoesVendas as $intencaoVenda) |
|
65 | $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class); |
|
66 | ||
67 | return $this; |
|
68 | } |
|
69 | ||
70 | } |
@@ 12-70 (lines=59) @@ | ||
9 | * Class GetByIntegracaoIdResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class GetByIntegracaoIdResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var array |
|
21 | */ |
|
22 | private $intencoesVendas; |
|
23 | ||
24 | /** |
|
25 | * GetByIntegracaoIdResponse constructor. |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return \DateTime |
|
33 | */ |
|
34 | public function getData() |
|
35 | { |
|
36 | return $this->data; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param \DateTime $data |
|
41 | * @return GetByIntegracaoIdResponse |
|
42 | */ |
|
43 | public function setData($data) |
|
44 | { |
|
45 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
46 | return $this; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @return array |
|
51 | */ |
|
52 | public function getIntencoesVendas() |
|
53 | { |
|
54 | return $this->intencoesVendas; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param array $intencoesVendas |
|
59 | * @return GetByIntegracaoIdResponse |
|
60 | */ |
|
61 | public function setIntencoesVendas($intencoesVendas) |
|
62 | { |
|
63 | ||
64 | foreach ($intencoesVendas as $intencaoVenda) |
|
65 | $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class); |
|
66 | ||
67 | return $this; |
|
68 | } |
|
69 | ||
70 | } |
@@ 18-74 (lines=57) @@ | ||
15 | * Class GetByFiltrosResponse |
|
16 | * @package Integracao\ControlPay\Contracts\Pedido |
|
17 | */ |
|
18 | class GetByFiltrosResponse |
|
19 | { |
|
20 | /** |
|
21 | * @var \DateTime |
|
22 | */ |
|
23 | private $data; |
|
24 | ||
25 | /** |
|
26 | * @var array |
|
27 | */ |
|
28 | private $pedidos; |
|
29 | ||
30 | /** |
|
31 | * InserirResponse constructor. |
|
32 | */ |
|
33 | public function __construct() |
|
34 | { |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return \DateTime |
|
39 | */ |
|
40 | public function getData() |
|
41 | { |
|
42 | return $this->data; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @param \DateTime $data |
|
47 | * @return InserirResponse |
|
48 | */ |
|
49 | public function setData($data) |
|
50 | { |
|
51 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
52 | return $this; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @return array |
|
57 | */ |
|
58 | public function getPedidos() |
|
59 | { |
|
60 | return $this->pedidos; |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * @param $pedidos |
|
65 | * @return $this |
|
66 | */ |
|
67 | public function setPedidos($pedidos) |
|
68 | { |
|
69 | foreach ($pedidos as $pedido) |
|
70 | $this->pedidos[] = SerializerHelper::denormalize($pedido, Pedido::class); |
|
71 | ||
72 | return $this; |
|
73 | } |
|
74 | } |
@@ 18-74 (lines=57) @@ | ||
15 | * Class GetByPessoaIdByReferenciaResponse |
|
16 | * @package Integracao\ControlPay\Contracts\Pedido |
|
17 | */ |
|
18 | class GetByPessoaIdByReferenciaResponse |
|
19 | { |
|
20 | /** |
|
21 | * @var \DateTime |
|
22 | */ |
|
23 | private $data; |
|
24 | ||
25 | /** |
|
26 | * @var array |
|
27 | */ |
|
28 | private $pedidos; |
|
29 | ||
30 | /** |
|
31 | * InserirResponse constructor. |
|
32 | */ |
|
33 | public function __construct() |
|
34 | { |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return \DateTime |
|
39 | */ |
|
40 | public function getData() |
|
41 | { |
|
42 | return $this->data; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @param \DateTime $data |
|
47 | * @return InserirResponse |
|
48 | */ |
|
49 | public function setData($data) |
|
50 | { |
|
51 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
52 | return $this; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @return array |
|
57 | */ |
|
58 | public function getPedidos() |
|
59 | { |
|
60 | return $this->pedidos; |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * @param $pedidos |
|
65 | * @return $this |
|
66 | */ |
|
67 | public function setPedidos($pedidos) |
|
68 | { |
|
69 | foreach ($pedidos as $pedido) |
|
70 | $this->pedidos[] = SerializerHelper::denormalize($pedido, Pedido::class); |
|
71 | ||
72 | return $this; |
|
73 | } |
|
74 | } |
@@ 18-74 (lines=57) @@ | ||
15 | * Class GetPedidosByPessoaIdResponse |
|
16 | * @package Integracao\ControlPay\Contracts\Pedido |
|
17 | */ |
|
18 | class GetPedidosByPessoaIdResponse |
|
19 | { |
|
20 | /** |
|
21 | * @var \DateTime |
|
22 | */ |
|
23 | private $data; |
|
24 | ||
25 | /** |
|
26 | * @var array |
|
27 | */ |
|
28 | private $pedidos; |
|
29 | ||
30 | /** |
|
31 | * InserirResponse constructor. |
|
32 | */ |
|
33 | public function __construct() |
|
34 | { |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return \DateTime |
|
39 | */ |
|
40 | public function getData() |
|
41 | { |
|
42 | return $this->data; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @param \DateTime $data |
|
47 | * @return InserirResponse |
|
48 | */ |
|
49 | public function setData($data) |
|
50 | { |
|
51 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
52 | return $this; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @return array |
|
57 | */ |
|
58 | public function getPedidos() |
|
59 | { |
|
60 | return $this->pedidos; |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * @param $pedidos |
|
65 | * @return $this |
|
66 | */ |
|
67 | public function setPedidos($pedidos) |
|
68 | { |
|
69 | foreach ($pedidos as $pedido) |
|
70 | $this->pedidos[] = SerializerHelper::denormalize($pedido, Pedido::class); |
|
71 | ||
72 | return $this; |
|
73 | } |
|
74 | } |
@@ 12-70 (lines=59) @@ | ||
9 | * Class ConsultarVendasResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class ConsultarVendasResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var array |
|
21 | */ |
|
22 | private $intencoesVendas; |
|
23 | ||
24 | /** |
|
25 | * ConsultarVendasResponse constructor. |
|
26 | */ |
|
27 | public function __construct() |
|
28 | { |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @return \DateTime |
|
33 | */ |
|
34 | public function getData() |
|
35 | { |
|
36 | return $this->data; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param \DateTime $data |
|
41 | * @return ConsultarVendasResponse |
|
42 | */ |
|
43 | public function setData($data) |
|
44 | { |
|
45 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
46 | return $this; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @return array |
|
51 | */ |
|
52 | public function getIntencoesVendas() |
|
53 | { |
|
54 | return $this->intencoesVendas; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param array $intencoesVendas |
|
59 | * @return ConsultarVendasResponse |
|
60 | */ |
|
61 | public function setIntencoesVendas($intencoesVendas) |
|
62 | { |
|
63 | ||
64 | foreach ($intencoesVendas as $intencaoVenda) |
|
65 | $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class); |
|
66 | ||
67 | return $this; |
|
68 | } |
|
69 | ||
70 | } |