1
0
mirror of synced 2024-11-21 21:06:07 +03:00

visible & variative params for product properties and filter

This commit is contained in:
Pavel 2021-11-11 14:33:46 +03:00
parent fdc01456d2
commit 46954b290c
3 changed files with 39 additions and 3 deletions

View File

@ -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;
}

View File

@ -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[]
*

View File

@ -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)