-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for GET /api/v5/properties/values method
- Loading branch information
Showing
6 changed files
with
289 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category ProductPropertyValue | ||
* @package RetailCrm\Api\Model\Entity\Store | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Entity\Store; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class ProductPropertyValue | ||
* | ||
* @category ProductPropertyValue | ||
* @package RetailCrm\Api\Model\Entity\Store | ||
*/ | ||
class ProductPropertyValue | ||
{ | ||
/** | ||
* @var \RetailCrm\Api\Model\Entity\Store\ProductProperty | ||
* | ||
* @JMS\Type("RetailCrm\Api\Model\Entity\Store\ProductProperty") | ||
* @JMS\SerializedName("property") | ||
*/ | ||
public $property; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("value") | ||
*/ | ||
public $value; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("int") | ||
* @JMS\SerializedName("offersCount") | ||
*/ | ||
public $offersCount; | ||
} |
45 changes: 45 additions & 0 deletions
45
src/Model/Filter/Store/ProductPropertyValuesFilterType.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category ProductPropertyValuesFilterType | ||
* @package RetailCrm\Api\Model\Filter\Store | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Filter\Store; | ||
|
||
use RetailCrm\Api\Component\FormData\Mapping as Form; | ||
|
||
/** | ||
* Class ProductPropertyValuesFilterType | ||
* | ||
* @category ProductPropertyValuesFilterType | ||
* @package RetailCrm\Api\Model\Filter\Store | ||
*/ | ||
class ProductPropertyValuesFilterType | ||
{ | ||
/** | ||
* @var string | ||
* | ||
* @Form\Type("string") | ||
* @Form\SerializedName("propertyName") | ||
*/ | ||
public $propertyName; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @Form\Type("string") | ||
* @Form\SerializedName("propertyCode") | ||
*/ | ||
public $propertyCode; | ||
|
||
/** | ||
* @var int[] | ||
* | ||
* @Form\Type("int[]") | ||
* @Form\SerializedName("groups") | ||
*/ | ||
public $groups; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category ProductPropertyValuesRequest | ||
* @package RetailCrm\Api\Model\Request\Store | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Request\Store; | ||
|
||
use RetailCrm\Api\Component\FormData\Mapping as Form; | ||
use RetailCrm\Api\Interfaces\RequestInterface; | ||
use RetailCrm\Api\Model\Request\Traits\PageLimitTrait; | ||
|
||
/** | ||
* Class ProductPropertyValuesRequest | ||
* | ||
* @category ProductPropertyValuesRequest | ||
* @package RetailCrm\Api\Model\Request\Store | ||
*/ | ||
class ProductPropertyValuesRequest implements RequestInterface | ||
{ | ||
use PageLimitTrait; | ||
|
||
/** | ||
* @var \RetailCrm\Api\Model\Filter\Store\ProductPropertyValuesFilterType | ||
* | ||
* @Form\Type("RetailCrm\Api\Model\Filter\Store\ProductPropertyValuesFilterType") | ||
* @Form\SerializedName("filter") | ||
*/ | ||
public $filter; | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Model/Response/Store/ProductPropertyValuesResponse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category ProductPropertyValuesResponse | ||
* @package RetailCrm\Api\Model\Response\Store | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Response\Store; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
use RetailCrm\Api\Model\Response\AbstractPaginatedResponse; | ||
|
||
/** | ||
* Class ProductPropertyValuesResponse | ||
* | ||
* @category ProductPropertyValuesResponse | ||
* @package RetailCrm\Api\Model\Response\Store | ||
*/ | ||
class ProductPropertyValuesResponse extends AbstractPaginatedResponse | ||
{ | ||
/** | ||
* @var \RetailCrm\Api\Model\Entity\Store\ProductPropertyValue[] | ||
* | ||
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Store\ProductPropertyValue>") | ||
* @JMS\SerializedName("productPropertyValues") | ||
*/ | ||
public $productPropertyValues; | ||
Check warning on line 29 in src/Model/Response/Store/ProductPropertyValuesResponse.php GitHub Actions / PHP MessDetector
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters