Fixed ProductFilter types
This commit is contained in:
commit
8b677de616
@ -37,81 +37,81 @@ class ProductFilterType
|
|||||||
public $name;
|
public $name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("minPrice")
|
* @Form\SerializedName("minPrice")
|
||||||
*/
|
*/
|
||||||
public $minPrice;
|
public $minPrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("maxPrice")
|
* @Form\SerializedName("maxPrice")
|
||||||
*/
|
*/
|
||||||
public $maxPrice;
|
public $maxPrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("minPurchasePrice")
|
* @Form\SerializedName("minPurchasePrice")
|
||||||
*/
|
*/
|
||||||
public $minPurchasePrice;
|
public $minPurchasePrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("maxPurchasePrice")
|
* @Form\SerializedName("maxPurchasePrice")
|
||||||
*/
|
*/
|
||||||
public $maxPurchasePrice;
|
public $maxPurchasePrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("minQuantity")
|
* @Form\SerializedName("minQuantity")
|
||||||
*/
|
*/
|
||||||
public $minQuantity;
|
public $minQuantity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("maxQuantity")
|
* @Form\SerializedName("maxQuantity")
|
||||||
*/
|
*/
|
||||||
public $maxQuantity;
|
public $maxQuantity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("popular")
|
* @Form\SerializedName("popular")
|
||||||
*/
|
*/
|
||||||
public $popular;
|
public $popular;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("stock")
|
* @Form\SerializedName("stock")
|
||||||
*/
|
*/
|
||||||
public $stock;
|
public $stock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("novelty")
|
* @Form\SerializedName("novelty")
|
||||||
*/
|
*/
|
||||||
public $novelty;
|
public $novelty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var int
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("int")
|
||||||
* @Form\SerializedName("recommended")
|
* @Form\SerializedName("recommended")
|
||||||
*/
|
*/
|
||||||
public $recommended;
|
public $recommended;
|
||||||
@ -165,9 +165,9 @@ class ProductFilterType
|
|||||||
public $offerIds;
|
public $offerIds;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string[]
|
||||||
*
|
*
|
||||||
* @Form\Type("string")
|
* @Form\Type("string[]")
|
||||||
* @Form\SerializedName("properties")
|
* @Form\SerializedName("properties")
|
||||||
*/
|
*/
|
||||||
public $properties;
|
public $properties;
|
||||||
|
@ -446,7 +446,7 @@ EOF;
|
|||||||
$request->filter = new ProductFilterType();
|
$request->filter = new ProductFilterType();
|
||||||
$request->filter->active = NumericBoolean::TRUE;
|
$request->filter->active = NumericBoolean::TRUE;
|
||||||
$request->filter->priceType = 'base';
|
$request->filter->priceType = 'base';
|
||||||
$request->filter->maxPrice = '10000';
|
$request->filter->maxPrice = 10000;
|
||||||
$request->filter->name = 'Test Product';
|
$request->filter->name = 'Test Product';
|
||||||
|
|
||||||
$mock = static::createApiMockBuilder('store/products');
|
$mock = static::createApiMockBuilder('store/products');
|
||||||
@ -548,7 +548,7 @@ EOF;
|
|||||||
$request->filter = new ProductFilterType();
|
$request->filter = new ProductFilterType();
|
||||||
$request->filter->active = NumericBoolean::TRUE;
|
$request->filter->active = NumericBoolean::TRUE;
|
||||||
$request->filter->priceType = 'base';
|
$request->filter->priceType = 'base';
|
||||||
$request->filter->maxPrice = '10000';
|
$request->filter->maxPrice = 10000;
|
||||||
$request->filter->name = 'Test Product';
|
$request->filter->name = 'Test Product';
|
||||||
$request->filter->sinceId = 828272;
|
$request->filter->sinceId = 828272;
|
||||||
$request->filter->sinceUpdatedAt = DateTimeTransformer::create('2020-01-01 00:00:00');
|
$request->filter->sinceUpdatedAt = DateTimeTransformer::create('2020-01-01 00:00:00');
|
||||||
|
Loading…
Reference in New Issue
Block a user