@@ 12-71 (lines=60) @@ | ||
9 | * Class GetByIdResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class GetByIdResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var IntencaoVenda |
|
21 | */ |
|
22 | private $intencaoVenda; |
|
23 | ||
24 | /** |
|
25 | * GetByIdResponse 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 GetByIdResponse |
|
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 IntencaoVenda |
|
51 | */ |
|
52 | public function getIntencaoVenda() |
|
53 | { |
|
54 | return $this->intencaoVenda; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param IntencaoVenda $intencaoVenda |
|
59 | * @return GetByIdResponse |
|
60 | */ |
|
61 | public function setIntencaoVenda($intencaoVenda) |
|
62 | { |
|
63 | $this->intencaoVenda = $intencaoVenda; |
|
64 | ||
65 | if(is_array($this->intencaoVenda)) |
|
66 | $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
67 | ||
68 | return $this; |
|
69 | } |
|
70 | ||
71 | } |
@@ 12-71 (lines=60) @@ | ||
9 | * Class VenderResponse |
|
10 | * @package Integracao\ControlPay\Contracts\Venda |
|
11 | */ |
|
12 | class VenderResponse |
|
13 | { |
|
14 | /** |
|
15 | * @var \DateTime |
|
16 | */ |
|
17 | private $data; |
|
18 | ||
19 | /** |
|
20 | * @var IntencaoVenda |
|
21 | */ |
|
22 | private $intencaoVenda; |
|
23 | ||
24 | /** |
|
25 | * VenderResponse 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 VenderResponse |
|
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 IntencaoVenda |
|
51 | */ |
|
52 | public function getIntencaoVenda() |
|
53 | { |
|
54 | return $this->intencaoVenda; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param IntencaoVenda $intencaoVenda |
|
59 | * @return VenderResponse |
|
60 | */ |
|
61 | public function setIntencaoVenda($intencaoVenda) |
|
62 | { |
|
63 | $this->intencaoVenda = $intencaoVenda; |
|
64 | ||
65 | if(is_array($this->intencaoVenda)) |
|
66 | $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
67 | ||
68 | return $this; |
|
69 | } |
|
70 | ||
71 | } |
@@ 13-72 (lines=60) @@ | ||
10 | * Class CancelarResponse |
|
11 | * @package Integracao\ControlPay\Contracts\Venda |
|
12 | */ |
|
13 | class CancelarResponse |
|
14 | { |
|
15 | /** |
|
16 | * @var \DateTime |
|
17 | */ |
|
18 | private $data; |
|
19 | ||
20 | /** |
|
21 | * @var Pedido |
|
22 | */ |
|
23 | private $pedido; |
|
24 | ||
25 | /** |
|
26 | * CancelarResponse constructor. |
|
27 | */ |
|
28 | public function __construct() |
|
29 | { |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @return \DateTime |
|
34 | */ |
|
35 | public function getData() |
|
36 | { |
|
37 | return $this->data; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param \DateTime $data |
|
42 | * @return CancelarResponse |
|
43 | */ |
|
44 | public function setData($data) |
|
45 | { |
|
46 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
47 | return $this; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * @return Pedido |
|
52 | */ |
|
53 | public function getPedido() |
|
54 | { |
|
55 | return $this->pedido; |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * @param $pedido |
|
60 | * @return $this |
|
61 | */ |
|
62 | public function setPedido($pedido) |
|
63 | { |
|
64 | $this->pedido = $pedido; |
|
65 | ||
66 | if(is_array($this->pedido)) |
|
67 | $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class); |
|
68 | ||
69 | return $this; |
|
70 | } |
|
71 | ||
72 | } |
@@ 13-72 (lines=60) @@ | ||
10 | * Class GetByIdResponse |
|
11 | * @package Integracao\ControlPay\Contracts\Venda |
|
12 | */ |
|
13 | class GetByIdResponse |
|
14 | { |
|
15 | /** |
|
16 | * @var \DateTime |
|
17 | */ |
|
18 | private $data; |
|
19 | ||
20 | /** |
|
21 | * @var Pedido |
|
22 | */ |
|
23 | private $pedido; |
|
24 | ||
25 | /** |
|
26 | * GetByIdResponse constructor. |
|
27 | */ |
|
28 | public function __construct() |
|
29 | { |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @return \DateTime |
|
34 | */ |
|
35 | public function getData() |
|
36 | { |
|
37 | return $this->data; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param \DateTime $data |
|
42 | * @return GetByIdResponse |
|
43 | */ |
|
44 | public function setData($data) |
|
45 | { |
|
46 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
47 | return $this; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * @return Pedido |
|
52 | */ |
|
53 | public function getPedido() |
|
54 | { |
|
55 | return $this->pedido; |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * @param $pedido |
|
60 | * @return $this |
|
61 | */ |
|
62 | public function setPedido($pedido) |
|
63 | { |
|
64 | $this->pedido = $pedido; |
|
65 | ||
66 | if(is_array($this->pedido)) |
|
67 | $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class); |
|
68 | ||
69 | return $this; |
|
70 | } |
|
71 | ||
72 | } |
@@ 13-72 (lines=60) @@ | ||
10 | * Class InserirResponse |
|
11 | * @package Integracao\ControlPay\Contracts\Venda |
|
12 | */ |
|
13 | class InserirResponse |
|
14 | { |
|
15 | /** |
|
16 | * @var \DateTime |
|
17 | */ |
|
18 | private $data; |
|
19 | ||
20 | /** |
|
21 | * @var Pedido |
|
22 | */ |
|
23 | private $pedido; |
|
24 | ||
25 | /** |
|
26 | * InserirResponse constructor. |
|
27 | */ |
|
28 | public function __construct() |
|
29 | { |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @return \DateTime |
|
34 | */ |
|
35 | public function getData() |
|
36 | { |
|
37 | return $this->data; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param \DateTime $data |
|
42 | * @return InserirResponse |
|
43 | */ |
|
44 | public function setData($data) |
|
45 | { |
|
46 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
|
47 | return $this; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * @return Pedido |
|
52 | */ |
|
53 | public function getPedido() |
|
54 | { |
|
55 | return $this->pedido; |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * @param $pedido |
|
60 | * @return $this |
|
61 | */ |
|
62 | public function setPedido($pedido) |
|
63 | { |
|
64 | $this->pedido = $pedido; |
|
65 | ||
66 | if(is_array($this->pedido)) |
|
67 | $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class); |
|
68 | ||
69 | return $this; |
|
70 | } |
|
71 | ||
72 | } |