|
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\Items\Product; |
|
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 getSkuSellerId() |
|
24
|
|
|
* @method setSkuSellerId(string $skuSellerId) |
|
25
|
|
|
* @method string getName() |
|
26
|
|
|
* @method setName(string $name) |
|
27
|
|
|
* @method float getSalePrice() |
|
28
|
|
|
* @method setSalePrice(float $salePrice) |
|
29
|
|
|
* @method bool getSent() |
|
30
|
|
|
* @method setSent(boolean $sent) |
|
31
|
|
|
* @method Gpupo\CnovaSdk\Entity\Order\Items\Product\Freight\Freight getFreight() |
|
32
|
|
|
* @method setFreight(Gpupo\CnovaSdk\Entity\Order\Items\Product\Freight\Freight $freight) |
|
33
|
|
|
* @method Gpupo\CnovaSdk\Entity\Order\Items\Product\GiftWrap\GiftWrap getGiftWrap() |
|
34
|
|
|
* @method setGiftWrap(Gpupo\CnovaSdk\Entity\Order\Items\Product\GiftWrap\GiftWrap $giftWrap) |
|
35
|
|
|
*/ |
|
36
|
|
|
class Product extends EntityAbstract implements EntityInterface |
|
37
|
|
|
{ |
|
38
|
7 |
|
public function getSchema() |
|
39
|
|
|
{ |
|
40
|
|
|
return [ |
|
41
|
7 |
|
'id' => 'string', |
|
42
|
|
|
'skuSellerId' => 'string', |
|
43
|
|
|
'name' => 'string', |
|
44
|
|
|
'salePrice' => 'number', |
|
45
|
|
|
'sent' => 'boolean', |
|
46
|
|
|
'freight' => 'object', |
|
47
|
|
|
'giftWrap' => 'object', |
|
48
|
|
|
]; |
|
49
|
|
|
} |
|
50
|
|
|
} |
|
51
|
|
|
|