|
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\Product; |
|
16
|
|
|
|
|
17
|
|
|
use Gpupo\CommonSdk\Entity\EntityAbstract; |
|
18
|
|
|
use Gpupo\CommonSdk\Entity\EntityInterface; |
|
19
|
|
|
|
|
20
|
|
|
/** |
|
21
|
|
|
* @method string getSkuSellerId() |
|
22
|
|
|
* @method setSkuSellerId(string $skuSellerId) |
|
23
|
|
|
* @method string getSkuId() |
|
24
|
|
|
* @method setSkuId(string $skuId) |
|
25
|
|
|
* @method string getProductSellerId() |
|
26
|
|
|
* @method setProductSellerId(string $productSellerId) |
|
27
|
|
|
* @method string getTitle() |
|
28
|
|
|
* @method setTitle(string $title) |
|
29
|
|
|
* @method string getDescription() |
|
30
|
|
|
* @method setDescription(string $description) |
|
31
|
|
|
* @method string getBrand() |
|
32
|
|
|
* @method setBrand(string $brand) |
|
33
|
|
|
* @method array getGtin() |
|
34
|
|
|
* @method setGtin(array $gtin) |
|
35
|
|
|
* @method array getCategories() |
|
36
|
|
|
* @method setCategories(array $categories) |
|
37
|
|
|
* @method array getImages() |
|
38
|
|
|
* @method setImages(array $images) |
|
39
|
|
|
* @method array getVideos() |
|
40
|
|
|
* @method setVideos(array $videos) |
|
41
|
|
|
* @method \Gpupo\CommonSdk\Entity\EntityInterface getPrice() |
|
42
|
|
|
* @method setPrice(\Gpupo\CommonSdk\Entity\EntityInterface $price) |
|
43
|
|
|
* @method \Gpupo\CommonSdk\Entity\EntityInterface getStock() |
|
44
|
|
|
* @method setStock(\Gpupo\CommonSdk\Entity\EntityInterface $stock) |
|
45
|
|
|
* @method \Gpupo\CommonSdk\Entity\EntityInterface getDimensions() |
|
46
|
|
|
* @method setDimensions(\Gpupo\CommonSdk\Entity\EntityInterface $dimensions) |
|
47
|
|
|
* @method \Gpupo\CommonSdk\Entity\EntityInterface getGiftWrap() |
|
48
|
|
|
* @method setGiftWrap(\Gpupo\CommonSdk\Entity\EntityInterface $giftWrap) |
|
49
|
|
|
* @method \Gpupo\CommonSdk\Entity\EntityInterface getAttributes() |
|
50
|
|
|
* @method setAttributes(\Gpupo\CommonSdk\Entity\EntityInterface $attributes) |
|
51
|
|
|
*/ |
|
52
|
|
|
class Product extends EntityAbstract implements EntityInterface |
|
53
|
|
|
{ |
|
54
|
|
|
protected $primaryKey = 'skuSellerId'; |
|
55
|
|
|
|
|
56
|
23 |
|
public function getSchema() |
|
57
|
|
|
{ |
|
58
|
|
|
return [ |
|
59
|
23 |
|
'skuSellerId' => 'string', |
|
60
|
|
|
'skuId' => 'string', |
|
61
|
|
|
'productSellerId' => 'string', |
|
62
|
|
|
'title' => 'string', |
|
63
|
|
|
'description' => 'string', |
|
64
|
|
|
'brand' => 'string', |
|
65
|
|
|
'gtin' => 'array', |
|
66
|
|
|
'categories' => 'array', |
|
67
|
|
|
'images' => 'array', |
|
68
|
|
|
'videos' => 'array', |
|
69
|
|
|
'price' => 'object', |
|
70
|
|
|
'stock' => 'object', |
|
71
|
|
|
'dimensions' => 'object', |
|
72
|
|
|
'giftWrap' => 'object', |
|
73
|
|
|
'attributes' => 'object', |
|
74
|
|
|
]; |
|
75
|
|
|
} |
|
76
|
|
|
} |
|
77
|
|
|
|