1
0
mirror of synced 2024-12-03 18:56:07 +03:00

Fixed ProductFilter types

This commit is contained in:
Pavel 2024-07-19 12:06:13 +03:00 committed by GitHub
commit 8b677de616
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 24 deletions

View File

@ -37,81 +37,81 @@ class ProductFilterType
public $name;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("minPrice")
*/
public $minPrice;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("maxPrice")
*/
public $maxPrice;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("minPurchasePrice")
*/
public $minPurchasePrice;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("maxPurchasePrice")
*/
public $maxPurchasePrice;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("minQuantity")
*/
public $minQuantity;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("maxQuantity")
*/
public $maxQuantity;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("popular")
*/
public $popular;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("stock")
*/
public $stock;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("novelty")
*/
public $novelty;
/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("recommended")
*/
public $recommended;
@ -165,9 +165,9 @@ class ProductFilterType
public $offerIds;
/**
* @var string
* @var string[]
*
* @Form\Type("string")
* @Form\Type("string[]")
* @Form\SerializedName("properties")
*/
public $properties;

View File

@ -446,7 +446,7 @@ EOF;
$request->filter = new ProductFilterType();
$request->filter->active = NumericBoolean::TRUE;
$request->filter->priceType = 'base';
$request->filter->maxPrice = '10000';
$request->filter->maxPrice = 10000;
$request->filter->name = 'Test Product';
$mock = static::createApiMockBuilder('store/products');
@ -548,7 +548,7 @@ EOF;
$request->filter = new ProductFilterType();
$request->filter->active = NumericBoolean::TRUE;
$request->filter->priceType = 'base';
$request->filter->maxPrice = '10000';
$request->filter->maxPrice = 10000;
$request->filter->name = 'Test Product';
$request->filter->sinceId = 828272;
$request->filter->sinceUpdatedAt = DateTimeTransformer::create('2020-01-01 00:00:00');