|
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\Customer; |
|
16
|
|
|
|
|
17
|
|
|
use Gpupo\CommonSdk\Entity\EntityAbstract; |
|
18
|
|
|
use Gpupo\CommonSdk\Entity\EntityInterface; |
|
19
|
|
|
|
|
20
|
|
|
/** |
|
21
|
|
|
* @method string getId() |
|
22
|
|
|
* @method setId(string $id) |
|
23
|
|
|
* @method string getName() |
|
24
|
|
|
* @method setName(string $name) |
|
25
|
|
|
* @method string getDocumentNumber() |
|
26
|
|
|
* @method setDocumentNumber(string $documentNumber) |
|
27
|
|
|
* @method string getType() |
|
28
|
|
|
* @method setType(string $type) |
|
29
|
|
|
* @method string getCreatedAt() |
|
30
|
|
|
* @method setCreatedAt(string $createdAt) |
|
31
|
|
|
* @method string getEmail() |
|
32
|
|
|
* @method setEmail(string $email) |
|
33
|
|
|
* @method \Gpupo\CommonSdk\Entity\EntityInterface getPhones() |
|
34
|
|
|
* @method setPhones(\Gpupo\CommonSdk\Entity\EntityInterface $phones) |
|
35
|
|
|
*/ |
|
36
|
|
|
class Customer extends EntityAbstract implements EntityInterface |
|
37
|
|
|
{ |
|
38
|
6 |
|
public function getSchema() |
|
39
|
|
|
{ |
|
40
|
|
|
return [ |
|
41
|
6 |
|
'id' => 'string', |
|
42
|
|
|
'name' => 'string', |
|
43
|
|
|
'documentNumber' => 'string', |
|
44
|
|
|
'type' => 'string', |
|
45
|
|
|
'createdAt' => 'string', |
|
46
|
|
|
'email' => 'string', |
|
47
|
|
|
'phones' => 'object', |
|
48
|
|
|
]; |
|
49
|
|
|
} |
|
50
|
|
|
} |
|
51
|
|
|
|