1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of gpupo/cnova-sdk |
5
|
|
|
* Created by Gilmar Pupo <[email protected]> |
6
|
|
|
* For the information of copyright and license you should read the file |
7
|
|
|
* LICENSE which is distributed with this source code. |
8
|
|
|
* Para a informação dos direitos autorais e de licença você deve ler o arquivo |
9
|
|
|
* LICENSE que é distribuído com este código-fonte. |
10
|
|
|
* Para obtener la información de los derechos de autor y la licencia debe leer |
11
|
|
|
* el archivo LICENSE que se distribuye con el código fuente. |
12
|
|
|
* For more information, see <https://opensource.gpupo.com/>. |
13
|
|
|
*/ |
14
|
|
|
|
15
|
|
|
namespace Gpupo\CnovaSdk\Entity\Order\Trackings\Tracking; |
16
|
|
|
|
17
|
|
|
use Gpupo\CommonSdk\Entity\EntityAbstract; |
18
|
|
|
use Gpupo\CommonSdk\Entity\EntityInterface; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @method string getCnpj() |
22
|
|
|
* @method setCnpj(string $cnpj) |
23
|
|
|
* @method string getNumber() |
24
|
|
|
* @method setNumber(string $number) |
25
|
|
|
* @method string getSerie() |
26
|
|
|
* @method setSerie(string $serie) |
27
|
|
|
* @method string getIssuedAt() |
28
|
|
|
* @method setIssuedAt(string $issuedAt) |
29
|
|
|
* @method string getAccessKey() |
30
|
|
|
* @method setAccessKey(string $accessKey) |
31
|
|
|
* @method string getLinkXML() |
32
|
|
|
* @method setLinkXML(string $linkXML) |
33
|
|
|
* @method string getLinkDanfe() |
34
|
|
|
* @method setLinkDanfe(string $linkDanfe) |
35
|
|
|
*/ |
36
|
|
|
class Invoice extends EntityAbstract implements EntityInterface |
37
|
|
|
{ |
38
|
17 |
|
public function getSchema() |
39
|
|
|
{ |
40
|
|
|
return [ |
41
|
17 |
|
'cnpj' => 'string', |
42
|
|
|
'number' => 'string', |
43
|
|
|
'serie' => 'string', |
44
|
|
|
'issuedAt' => 'string', |
45
|
|
|
'accessKey' => 'string', |
46
|
|
|
'linkXML' => 'string', |
47
|
|
|
'linkDanfe' => 'string', |
48
|
|
|
]; |
49
|
|
|
} |
50
|
|
|
|
51
|
15 |
|
public function setUp() |
52
|
|
|
{ |
53
|
15 |
|
$this->setRequiredSchema(['cnpj', 'number', 'serie', 'accessKey']); |
54
|
15 |
|
} |
55
|
|
|
} |
56
|
|
|
|