Skip to content

Commit

Permalink
Fixed ProductFilter types
Browse files Browse the repository at this point in the history
  • Loading branch information
Neur0toxine authored Jul 19, 2024
2 parents 71a3a66 + 0ef461e commit 8b677de
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions src/Model/Filter/Store/ProductFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -165,9 +165,9 @@ class ProductFilterType
public $offerIds;

/**
* @var string
* @var string[]
*
* @Form\Type("string")
* @Form\Type("string[]")
* @Form\SerializedName("properties")
*/
public $properties;
Expand Down
4 changes: 2 additions & 2 deletions tests/src/ResourceGroup/StoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public function testProducts(): void
$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');
Expand Down Expand Up @@ -548,7 +548,7 @@ public function testProductsSinceUpdated(): void
$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');
Expand Down

0 comments on commit 8b677de

Please sign in to comment.