visible & variative params for product properties and filter
This commit is contained in:
parent
fdc01456d2
commit
46954b290c
@ -58,4 +58,20 @@ class ProductProperty
|
|||||||
* @JMS\SerializedName("isNumeric")
|
* @JMS\SerializedName("isNumeric")
|
||||||
*/
|
*/
|
||||||
public $isNumeric;
|
public $isNumeric;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool
|
||||||
|
*
|
||||||
|
* @JMS\Type("bool")
|
||||||
|
* @JMS\SerializedName("visible")
|
||||||
|
*/
|
||||||
|
public $visible;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool
|
||||||
|
*
|
||||||
|
* @JMS\Type("bool")
|
||||||
|
* @JMS\SerializedName("variative")
|
||||||
|
*/
|
||||||
|
public $variative;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,22 @@ class ProductPropertiesFilterType
|
|||||||
*/
|
*/
|
||||||
public $code;
|
public $code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @Form\Type("int")
|
||||||
|
* @Form\SerializedName("visible")
|
||||||
|
*/
|
||||||
|
public $visible;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @Form\Type("int")
|
||||||
|
* @Form\SerializedName("variative")
|
||||||
|
*/
|
||||||
|
public $variative;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*
|
*
|
||||||
|
@ -597,15 +597,19 @@ EOF;
|
|||||||
],
|
],
|
||||||
"code": "code",
|
"code": "code",
|
||||||
"name": "Код",
|
"name": "Код",
|
||||||
"isNumeric": false
|
"isNumeric": false,
|
||||||
|
"visible": true,
|
||||||
|
"variative": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
$request = new ProductPropertiesRequest();
|
$request = new ProductPropertiesRequest();
|
||||||
$request->filter = new ProductPropertiesFilterType();
|
$request->filter = new ProductPropertiesFilterType();
|
||||||
$request->filter->sites = ['moysklad', 'aliexpress'];
|
$request->filter->sites = ['moysklad', 'aliexpress'];
|
||||||
|
$request->filter->visible = NumericBoolean::TRUE;
|
||||||
|
$request->filter->variative = NumericBoolean::TRUE;
|
||||||
|
|
||||||
$mock = static::createApiMockBuilder('store/products/properties');
|
$mock = static::createApiMockBuilder('store/products/properties');
|
||||||
$mock->matchMethod(RequestMethod::GET)
|
$mock->matchMethod(RequestMethod::GET)
|
||||||
|
Loading…
Reference in New Issue
Block a user