1
0
mirror of synced 2024-11-28 00:06:06 +03:00

corrections for two namespaces

This commit is contained in:
Pavel 2021-11-11 10:24:26 +03:00
parent f2d9be5d4a
commit fdc01456d2
5 changed files with 106 additions and 60 deletions

View File

@ -0,0 +1,61 @@
<?php
/**
* PHP version 7.3
*
* @category ProductProperty
* @package RetailCrm\Api\Model\Entity\Store
*/
namespace RetailCrm\Api\Model\Entity\Store;
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
/**
* Class ProductProperty
*
* @category ProductProperty
* @package RetailCrm\Api\Model\Entity\Store
*/
class ProductProperty
{
/**
* @var string[]
*
* @JMS\Type("array<string>")
* @JMS\SerializedName("sites")
*/
public $sites;
/**
* @var \RetailCrm\Api\Model\Entity\Store\ProductPropertyGroup[]
*
* @JMS\Type("array<RetailCrm\Api\Model\Entity\Store\ProductPropertyGroup>")
* @JMS\SerializedName("groups")
*/
public $groups;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("code")
*/
public $code;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("name")
*/
public $name;
/**
* @var bool
*
* @JMS\Type("bool")
* @JMS\SerializedName("isNumeric")
*/
public $isNumeric;
}

View File

@ -0,0 +1,37 @@
<?php
/**
* PHP version 7.3
*
* @category ProductPropertyGroup
* @package RetailCrm\Api\Model\Entity\Store
*/
namespace RetailCrm\Api\Model\Entity\Store;
use RetailCrm\Api\Component\Serializer\Annotation as JMS;
/**
* Class ProductPropertyGroup
*
* @category ProductPropertyGroup
* @package RetailCrm\Api\Model\Entity\Store
*/
class ProductPropertyGroup
{
/**
* @var int
*
* @JMS\Type("int")
* @JMS\SerializedName("id")
*/
public $id;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("name")
*/
public $name;
}

View File

@ -9,53 +9,15 @@
namespace RetailCrm\Api\Model\Filter\Store; namespace RetailCrm\Api\Model\Filter\Store;
use RetailCrm\Api\Component\Serializer\Annotation as JMS; use RetailCrm\Api\Model\Entity\Store\ProductProperty as Base;
/** /**
* Class ProductProperty * Class ProductProperty
* *
* @category ProductProperty * @category ProductProperty
* @package RetailCrm\Api\Model\Filter\Store * @package RetailCrm\Api\Model\Filter\Store
* @deprecated Please use RetailCrm\Api\Model\Entity\Store\ProductProperty instead.
*/ */
class ProductProperty class ProductProperty extends Base
{ {
/**
* @var string[]
*
* @JMS\Type("array<string>")
* @JMS\SerializedName("sites")
*/
public $sites;
/**
* @var \RetailCrm\Api\Model\Filter\Store\ProductPropertyGroup[]
*
* @JMS\Type("array<RetailCrm\Api\Model\Filter\Store\ProductPropertyGroup>")
* @JMS\SerializedName("groups")
*/
public $groups;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("code")
*/
public $code;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("name")
*/
public $name;
/**
* @var bool
*
* @JMS\Type("bool")
* @JMS\SerializedName("isNumeric")
*/
public $isNumeric;
} }

View File

@ -9,29 +9,15 @@
namespace RetailCrm\Api\Model\Filter\Store; namespace RetailCrm\Api\Model\Filter\Store;
use RetailCrm\Api\Component\Serializer\Annotation as JMS; use RetailCrm\Api\Model\Entity\Store\ProductPropertyGroup as Base;
/** /**
* Class ProductPropertyGroup * Class ProductPropertyGroup
* *
* @category ProductPropertyGroup * @category ProductPropertyGroup
* @package RetailCrm\Api\Model\Filter\Store * @package RetailCrm\Api\Model\Filter\Store
* @deprecated Please use RetailCrm\Api\Model\Entity\Store\ProductPropertyGroup instead.
*/ */
class ProductPropertyGroup class ProductPropertyGroup extends Base
{ {
/**
* @var int
*
* @JMS\Type("int")
* @JMS\SerializedName("id")
*/
public $id;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("name")
*/
public $name;
} }

View File

@ -21,9 +21,9 @@ use RetailCrm\Api\Model\Response\AbstractPaginatedResponse;
class ProductPropertiesResponse extends AbstractPaginatedResponse class ProductPropertiesResponse extends AbstractPaginatedResponse
{ {
/** /**
* @var \RetailCrm\Api\Model\Filter\Store\ProductProperty[] * @var \RetailCrm\Api\Model\Entity\Store\ProductProperty[]
* *
* @JMS\Type("array<RetailCrm\Api\Model\Filter\Store\ProductProperty>") * @JMS\Type("array<RetailCrm\Api\Model\Entity\Store\ProductProperty>")
* @JMS\SerializedName("properties") * @JMS\SerializedName("properties")
*/ */
public $properties; public $properties;