diff --git a/src/Model/Entity/Store/ProductProperty.php b/src/Model/Entity/Store/ProductProperty.php index 86395b9..0431913 100644 --- a/src/Model/Entity/Store/ProductProperty.php +++ b/src/Model/Entity/Store/ProductProperty.php @@ -58,4 +58,20 @@ class ProductProperty * @JMS\SerializedName("isNumeric") */ public $isNumeric; + + /** + * @var bool + * + * @JMS\Type("bool") + * @JMS\SerializedName("visible") + */ + public $visible; + + /** + * @var bool + * + * @JMS\Type("bool") + * @JMS\SerializedName("variative") + */ + public $variative; } diff --git a/src/Model/Filter/Store/ProductPropertiesFilterType.php b/src/Model/Filter/Store/ProductPropertiesFilterType.php index d313de6..8842689 100644 --- a/src/Model/Filter/Store/ProductPropertiesFilterType.php +++ b/src/Model/Filter/Store/ProductPropertiesFilterType.php @@ -35,6 +35,22 @@ class ProductPropertiesFilterType */ public $code; + /** + * @var int + * + * @Form\Type("int") + * @Form\SerializedName("visible") + */ + public $visible; + + /** + * @var int + * + * @Form\Type("int") + * @Form\SerializedName("variative") + */ + public $variative; + /** * @var string[] * diff --git a/tests/src/ResourceGroup/StoreTest.php b/tests/src/ResourceGroup/StoreTest.php index bdd1599..d5a8968 100644 --- a/tests/src/ResourceGroup/StoreTest.php +++ b/tests/src/ResourceGroup/StoreTest.php @@ -597,15 +597,19 @@ EOF; ], "code": "code", "name": "Код", - "isNumeric": false + "isNumeric": false, + "visible": true, + "variative": true } ] } EOF; - $request = new ProductPropertiesRequest(); - $request->filter = new ProductPropertiesFilterType(); + $request = new ProductPropertiesRequest(); + $request->filter = new ProductPropertiesFilterType(); $request->filter->sites = ['moysklad', 'aliexpress']; + $request->filter->visible = NumericBoolean::TRUE; + $request->filter->variative = NumericBoolean::TRUE; $mock = static::createApiMockBuilder('store/products/properties'); $mock->matchMethod(RequestMethod::GET)