diff --git a/README.md b/README.md index 71cad64..cc519c0 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ $response = $client->sendRequest(new HttpDnsGetRequest()); ``` This particular request doesn't require authorization, so, it can be sent via `Client::sendRequest` method. For any other requests which require authorization you must use `Client::sendAuthenticatedRequest` method (an example of such request would be `aliexpress.solution.seller.category.tree.query`, which class FQN is `\RetailCrm\Model\Request\AliExpress\SolutionSellerCategoryTreeQuery`). -**Note:** use response type annotations. Both client methods which returns responses actually returns `ResponseInterface` (not the PSR one). Actual response type will be determined by the request model. Your IDE will not recognize any response options unless you put a proper type annotation for the response variable. +**Friendly note.** Use response type annotations. Both client methods which returns responses actually returns `ResponseInterface` (not the PSR one). Actual response type will be determined by the request model. Your IDE will not recognize any response options unless you put a proper type annotation for the response variable. +**Another friendly note.** ## Customization This library uses Container pattern under the hood. You can pass additional dependencies using `ContainerBuilder`. For example: diff --git a/composer.json b/composer.json index 28b4669..b69a341 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,9 @@ "php-http/message-factory": "^1.0", "php-http/discovery": "^1.12", "php-http/multipart-stream-builder": "^1.1", - "symfony/expression-language": "^5.1" + "symfony/expression-language": "^5.1", + "psr/cache": "^1.0", + "cache/array-adapter": "^1.0" }, "require-dev": { "phpunit/phpunit": "^9.3", diff --git a/src/Builder/AuthorizationUriBuilder.php b/src/Builder/AuthorizationUriBuilder.php index a12e108..444bfb8 100644 --- a/src/Builder/AuthorizationUriBuilder.php +++ b/src/Builder/AuthorizationUriBuilder.php @@ -21,7 +21,7 @@ use RetailCrm\Interfaces\BuilderInterface; * @category AuthorizationUriBuilder * @package RetailCrm\Builder * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Builder/ContainerBuilder.php b/src/Builder/ContainerBuilder.php index c73bf1a..3e68573 100644 --- a/src/Builder/ContainerBuilder.php +++ b/src/Builder/ContainerBuilder.php @@ -12,8 +12,10 @@ */ namespace RetailCrm\Builder; +use Cache\Adapter\PHPArray\ArrayCachePool; use Http\Discovery\Psr17FactoryDiscovery; use Http\Discovery\Psr18ClientDiscovery; +use Psr\Cache\CacheItemPoolInterface; use Psr\Container\ContainerInterface; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; @@ -88,6 +90,9 @@ class ContainerBuilder implements BuilderInterface */ private $uriFactory; + /** @var CacheItemPoolInterface $cache */ + private $cache; + /** * @return static */ @@ -162,6 +167,17 @@ class ContainerBuilder implements BuilderInterface return $this; } + /** + * @param \Psr\Cache\CacheItemPoolInterface $cache + * + * @return ContainerBuilder + */ + public function setCache(CacheItemPoolInterface $cache): ContainerBuilder + { + $this->cache = $cache; + return $this; + } + /** * @return \Psr\Container\ContainerInterface */ @@ -192,6 +208,7 @@ class ContainerBuilder implements BuilderInterface { $container->set(Constants::HTTP_CLIENT, $this->getHttpClient()); $container->set(Constants::LOGGER, $this->getLogger()); + $container->set(Constants::CACHE, $this->getCache()); $container->set(StreamFactoryInterface::class, $this->getStreamFactory()); $container->set(RequestFactoryInterface::class, $this->getRequestFactory()); $container->set(UriFactoryInterface::class, $this->getUriFactory()); @@ -292,4 +309,12 @@ class ContainerBuilder implements BuilderInterface ? $this->uriFactory : Psr17FactoryDiscovery::findUriFactory(); } + + /** + * @return \Psr\Cache\CacheItemPoolInterface + */ + protected function getCache(): CacheItemPoolInterface + { + return $this->cache instanceof CacheItemPoolInterface ? $this->cache : new ArrayCachePool(); + } } diff --git a/src/Component/Authenticator/TokenAuthenticator.php b/src/Component/Authenticator/TokenAuthenticator.php index 8181a64..5ae51f9 100644 --- a/src/Component/Authenticator/TokenAuthenticator.php +++ b/src/Component/Authenticator/TokenAuthenticator.php @@ -21,7 +21,7 @@ use RetailCrm\Model\Request\BaseRequest; * @category TokenAuthenticator * @package RetailCrm\Component\Authenticator * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Component/Constants.php b/src/Component/Constants.php index 3215a9e..d324123 100644 --- a/src/Component/Constants.php +++ b/src/Component/Constants.php @@ -27,6 +27,7 @@ class Constants public const HTTP_CLIENT = 'httpClient'; public const SERIALIZER = 'serializer'; public const LOGGER = 'logger'; + public const CACHE = 'cache'; public const VALIDATOR = 'validator'; public const TOP_VERSION = 'top-sdk-php-20180326'; public const UNSIGNED_MARK = '00000000000000000000000000000000'; diff --git a/src/Component/JMS/Factory/JsonDeserializationVisitorFactory.php b/src/Component/JMS/Factory/JsonDeserializationVisitorFactory.php index 6b35699..9d0d3e8 100644 --- a/src/Component/JMS/Factory/JsonDeserializationVisitorFactory.php +++ b/src/Component/JMS/Factory/JsonDeserializationVisitorFactory.php @@ -22,7 +22,7 @@ use JMS\Serializer\Visitor\Factory\DeserializationVisitorFactory; * @category JsonDeserializationVisitorFactory * @package RetailCrm\Component\JMS\Factory * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Component/JMS/Visitor/Deserialization/JsonDeserializationVisitor.php b/src/Component/JMS/Visitor/Deserialization/JsonDeserializationVisitor.php index 4aa6cb1..a51e315 100644 --- a/src/Component/JMS/Visitor/Deserialization/JsonDeserializationVisitor.php +++ b/src/Component/JMS/Visitor/Deserialization/JsonDeserializationVisitor.php @@ -28,7 +28,7 @@ use SplStack; * @category JsonDeserializationVisitor * @package RetailCrm\Component\JMS\Visitor\Deserialization * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Entity/CategoryInfo.php b/src/Model/Entity/CategoryInfo.php index edc5dd6..43f9469 100644 --- a/src/Model/Entity/CategoryInfo.php +++ b/src/Model/Entity/CategoryInfo.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category CategoryInfo * @package RetailCrm\Model\Entity * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Enum/AvailableResponseFormats.php b/src/Model/Enum/AvailableResponseFormats.php index d4cb4df..1bf52ad 100644 --- a/src/Model/Enum/AvailableResponseFormats.php +++ b/src/Model/Enum/AvailableResponseFormats.php @@ -18,7 +18,7 @@ namespace RetailCrm\Model\Enum; * @category AvailableResponseFormats * @package RetailCrm\Model\Enum * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Enum/AvailableSignMethods.php b/src/Model/Enum/AvailableSignMethods.php index 3281fe9..25b3ecf 100644 --- a/src/Model/Enum/AvailableSignMethods.php +++ b/src/Model/Enum/AvailableSignMethods.php @@ -18,7 +18,7 @@ namespace RetailCrm\Model\Enum; * @category AvailableSignMethods * @package RetailCrm\Model\Enum * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Enum/CategoryForecastSupportedLanguages.php b/src/Model/Enum/CategoryForecastSupportedLanguages.php index 6f66c97..9181cd7 100644 --- a/src/Model/Enum/CategoryForecastSupportedLanguages.php +++ b/src/Model/Enum/CategoryForecastSupportedLanguages.php @@ -18,7 +18,7 @@ namespace RetailCrm\Model\Enum; * @category CategoryForecastSupportedLanguages * @package RetailCrm\Model\Enum * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Enum/FeedOperationTypes.php b/src/Model/Enum/FeedOperationTypes.php index 69e2648..aaa215e 100644 --- a/src/Model/Enum/FeedOperationTypes.php +++ b/src/Model/Enum/FeedOperationTypes.php @@ -18,7 +18,7 @@ namespace RetailCrm\Model\Enum; * @category FeedOperationTypes * @package RetailCrm\Model\Enum * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Enum/FeedStatuses.php b/src/Model/Enum/FeedStatuses.php index 160761b..381a835 100644 --- a/src/Model/Enum/FeedStatuses.php +++ b/src/Model/Enum/FeedStatuses.php @@ -18,7 +18,7 @@ namespace RetailCrm\Model\Enum; * @category FeedStatuses * @package RetailCrm\Model\Enum * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/Data/SingleItemRequestDto.php b/src/Model/Request/AliExpress/Data/SingleItemRequestDto.php index 81d7d55..8c4c1ff 100644 --- a/src/Model/Request/AliExpress/Data/SingleItemRequestDto.php +++ b/src/Model/Request/AliExpress/Data/SingleItemRequestDto.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category SingleItemRequestDto * @package RetailCrm\Model\Request\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/PostproductRedefiningCategoryForecast.php b/src/Model/Request/AliExpress/PostproductRedefiningCategoryForecast.php index 2e1d1f4..a7e3d4b 100644 --- a/src/Model/Request/AliExpress/PostproductRedefiningCategoryForecast.php +++ b/src/Model/Request/AliExpress/PostproductRedefiningCategoryForecast.php @@ -23,7 +23,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @category PostproductRedefiningCategoryForecastResponse * @package RetailCrm\Model\Request\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/SolutionFeedListGet.php b/src/Model/Request/AliExpress/SolutionFeedListGet.php index 54529c1..0880987 100644 --- a/src/Model/Request/AliExpress/SolutionFeedListGet.php +++ b/src/Model/Request/AliExpress/SolutionFeedListGet.php @@ -22,7 +22,7 @@ use RetailCrm\Model\Response\AliExpress\SolutionFeedListGetResponse; * @category SolutionFeedListGet * @package RetailCrm\Model\Request\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/SolutionFeedQuery.php b/src/Model/Request/AliExpress/SolutionFeedQuery.php index 871ff6d..f72407f 100644 --- a/src/Model/Request/AliExpress/SolutionFeedQuery.php +++ b/src/Model/Request/AliExpress/SolutionFeedQuery.php @@ -22,7 +22,7 @@ use RetailCrm\Model\Response\AliExpress\SolutionFeedQueryResponse; * @category SolutionFeedQuery * @package RetailCrm\Model\Request\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/SolutionFeedSubmit.php b/src/Model/Request/AliExpress/SolutionFeedSubmit.php index 8fe9e5c..010bcb5 100644 --- a/src/Model/Request/AliExpress/SolutionFeedSubmit.php +++ b/src/Model/Request/AliExpress/SolutionFeedSubmit.php @@ -24,7 +24,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @category SolutionFeedSubmit * @package RetailCrm\Model\Request\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/SolutionProductSchemaGet.php b/src/Model/Request/AliExpress/SolutionProductSchemaGet.php index 637b1a8..5e37af5 100644 --- a/src/Model/Request/AliExpress/SolutionProductSchemaGet.php +++ b/src/Model/Request/AliExpress/SolutionProductSchemaGet.php @@ -23,7 +23,7 @@ use RetailCrm\Model\Response\AliExpress\SolutionProductSchemaGetResponse; * @category SolutionProductSchemaGet * @package RetailCrm\Model\Request\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Request/AliExpress/SolutionSellerCategoryTreeQuery.php b/src/Model/Request/AliExpress/SolutionSellerCategoryTreeQuery.php index d5fc715..7046228 100644 --- a/src/Model/Request/AliExpress/SolutionSellerCategoryTreeQuery.php +++ b/src/Model/Request/AliExpress/SolutionSellerCategoryTreeQuery.php @@ -23,7 +23,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @category SolutionSellerCategoryTreeQuery * @package RetailCrm\Model\Request\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AbstractResponseData.php b/src/Model/Response/AbstractResponseData.php index fb09087..258578f 100644 --- a/src/Model/Response/AbstractResponseData.php +++ b/src/Model/Response/AbstractResponseData.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category AbstractResponseData * @package RetailCrm\Model\Response * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/PostproductRedefiningCategoryForecastResponseData.php b/src/Model/Response/AliExpress/Data/PostproductRedefiningCategoryForecastResponseData.php index a561a7e..612688c 100644 --- a/src/Model/Response/AliExpress/Data/PostproductRedefiningCategoryForecastResponseData.php +++ b/src/Model/Response/AliExpress/Data/PostproductRedefiningCategoryForecastResponseData.php @@ -21,7 +21,7 @@ use RetailCrm\Model\Response\AbstractResponseData; * @category PostproductRedefiningCategoryForecastResponseData * @package RetailCrm\Model\Response\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/SolutionFeedListGetResponseData.php b/src/Model/Response/AliExpress/Data/SolutionFeedListGetResponseData.php index cb5ea0f..da26da3 100644 --- a/src/Model/Response/AliExpress/Data/SolutionFeedListGetResponseData.php +++ b/src/Model/Response/AliExpress/Data/SolutionFeedListGetResponseData.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionFeedListGetResponseData * @package RetailCrm\Model\Response\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/SolutionFeedQueryResponseData.php b/src/Model/Response/AliExpress/Data/SolutionFeedQueryResponseData.php index e4d642e..e7a1502 100644 --- a/src/Model/Response/AliExpress/Data/SolutionFeedQueryResponseData.php +++ b/src/Model/Response/AliExpress/Data/SolutionFeedQueryResponseData.php @@ -21,7 +21,7 @@ use RetailCrm\Model\Response\AbstractResponseData; * @category SolutionFeedQueryResponseData * @package RetailCrm\Model\Response\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/SolutionFeedSubmitResponseData.php b/src/Model/Response/AliExpress/Data/SolutionFeedSubmitResponseData.php index 63f83f5..b3a458c 100644 --- a/src/Model/Response/AliExpress/Data/SolutionFeedSubmitResponseData.php +++ b/src/Model/Response/AliExpress/Data/SolutionFeedSubmitResponseData.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionFeedSubmitResponseData * @package RetailCrm\Model\Response\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/SolutionProductSchemaGetResponseData.php b/src/Model/Response/AliExpress/Data/SolutionProductSchemaGetResponseData.php index 6bc4844..cc6efe6 100644 --- a/src/Model/Response/AliExpress/Data/SolutionProductSchemaGetResponseData.php +++ b/src/Model/Response/AliExpress/Data/SolutionProductSchemaGetResponseData.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionProductSchemaGetResponseData * @package RetailCrm\Model\Response\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseData.php b/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseData.php index 09563b0..c9302b2 100644 --- a/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseData.php +++ b/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseData.php @@ -21,7 +21,7 @@ use RetailCrm\Model\Response\AbstractResponseData; * @category SolutionSellerCategoryTreeQueryResponseData * @package RetailCrm\Model\Response\AliExpressSolution\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseDataChildrenCategoryList.php b/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseDataChildrenCategoryList.php index 289f7f7..20d04b4 100644 --- a/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseDataChildrenCategoryList.php +++ b/src/Model/Response/AliExpress/Data/SolutionSellerCategoryTreeQueryResponseDataChildrenCategoryList.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionSellerCategoryTreeQueryResponseDataChildrenCategoryList * @package RetailCrm\Model\Response\AliExpress\Data * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/PostproductRedefiningCategoryForecastResponse.php b/src/Model/Response/AliExpress/PostproductRedefiningCategoryForecastResponse.php index a247bbd..292cd58 100644 --- a/src/Model/Response/AliExpress/PostproductRedefiningCategoryForecastResponse.php +++ b/src/Model/Response/AliExpress/PostproductRedefiningCategoryForecastResponse.php @@ -23,7 +23,7 @@ use JMS\Serializer\Annotation as JMS; * @category PostproductRedefiningCategoryForecastResponse * @package RetailCrm\Model\Response\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/AeopCategoryForecastResultDto.php b/src/Model/Response/AliExpress/Result/AeopCategoryForecastResultDto.php index 6864126..7959aab 100644 --- a/src/Model/Response/AliExpress/Result/AeopCategoryForecastResultDto.php +++ b/src/Model/Response/AliExpress/Result/AeopCategoryForecastResultDto.php @@ -22,7 +22,7 @@ use RetailCrm\Model\Response\AliExpress\Result\Traits\SuccessTrait; * @category AeopCategoryForecastResultDto * @package RetailCrm\Model\Response\AliExpress\Result * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/BatchOperationJobDto.php b/src/Model/Response/AliExpress/Result/BatchOperationJobDto.php index 60681ae..ebc8cf0 100644 --- a/src/Model/Response/AliExpress/Result/BatchOperationJobDto.php +++ b/src/Model/Response/AliExpress/Result/BatchOperationJobDto.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category BatchOperationJobDto * @package RetailCrm\Model\Response\AliExpress\Result * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/CategorySuitabilityDto.php b/src/Model/Response/AliExpress/Result/CategorySuitabilityDto.php index 00676c4..cde1670 100644 --- a/src/Model/Response/AliExpress/Result/CategorySuitabilityDto.php +++ b/src/Model/Response/AliExpress/Result/CategorySuitabilityDto.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category CategorySuitabilityDto * @package RetailCrm\Model\Response\AliExpress\Result * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/Entity/BatchOperationJobDtoList.php b/src/Model/Response/AliExpress/Result/Entity/BatchOperationJobDtoList.php index 9771ed0..c98e3c4 100644 --- a/src/Model/Response/AliExpress/Result/Entity/BatchOperationJobDtoList.php +++ b/src/Model/Response/AliExpress/Result/Entity/BatchOperationJobDtoList.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category BatchOperationJobDtoList * @package RetailCrm\Model\Response\AliExpress\Result\Entity * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/Entity/CategorySuitabilityList.php b/src/Model/Response/AliExpress/Result/Entity/CategorySuitabilityList.php index a279a4a..ea02b6b 100644 --- a/src/Model/Response/AliExpress/Result/Entity/CategorySuitabilityList.php +++ b/src/Model/Response/AliExpress/Result/Entity/CategorySuitabilityList.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category CategorySuitabilityList * @package RetailCrm\Model\Response\AliExpress\Result\Entity * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/Entity/SingleItemResponseDtoList.php b/src/Model/Response/AliExpress/Result/Entity/SingleItemResponseDtoList.php index ad5bffc..acca17c 100644 --- a/src/Model/Response/AliExpress/Result/Entity/SingleItemResponseDtoList.php +++ b/src/Model/Response/AliExpress/Result/Entity/SingleItemResponseDtoList.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category SingleItemResponseDtoList * @package RetailCrm\Model\Response\AliExpress\Result\Entity * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/ItemExecutionResult.php b/src/Model/Response/AliExpress/Result/ItemExecutionResult.php index 9c05da3..02aa988 100644 --- a/src/Model/Response/AliExpress/Result/ItemExecutionResult.php +++ b/src/Model/Response/AliExpress/Result/ItemExecutionResult.php @@ -21,7 +21,7 @@ use RetailCrm\Model\Response\AliExpress\Result\Traits\SuccessTrait; * @category ItemExecutionResult * @package RetailCrm\Model\Response\AliExpress\Result * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/SingleItemResponseDto.php b/src/Model/Response/AliExpress/Result/SingleItemResponseDto.php index aee8ec5..a97a349 100644 --- a/src/Model/Response/AliExpress/Result/SingleItemResponseDto.php +++ b/src/Model/Response/AliExpress/Result/SingleItemResponseDto.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category SingleItemResponseDto * @package RetailCrm\Model\Response\AliExpress\Result * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/SolutionProductSchemaGetResponseResult.php b/src/Model/Response/AliExpress/Result/SolutionProductSchemaGetResponseResult.php index ab3baf0..a4b8bc6 100644 --- a/src/Model/Response/AliExpress/Result/SolutionProductSchemaGetResponseResult.php +++ b/src/Model/Response/AliExpress/Result/SolutionProductSchemaGetResponseResult.php @@ -22,7 +22,7 @@ use RetailCrm\Model\Response\AliExpress\Result\Traits\SuccessTrait; * @category SolutionProductSchemaGetResponseResult * @package RetailCrm\Model\Response\AliExpress\Result * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/Traits/ErrorTrait.php b/src/Model/Response/AliExpress/Result/Traits/ErrorTrait.php index 9834b34..77dd5b0 100644 --- a/src/Model/Response/AliExpress/Result/Traits/ErrorTrait.php +++ b/src/Model/Response/AliExpress/Result/Traits/ErrorTrait.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category ErrorTrait * @package RetailCrm\Model\Response\AliExpress\Result\Traits * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/Result/Traits/SuccessTrait.php b/src/Model/Response/AliExpress/Result/Traits/SuccessTrait.php index f938621..a41beb6 100644 --- a/src/Model/Response/AliExpress/Result/Traits/SuccessTrait.php +++ b/src/Model/Response/AliExpress/Result/Traits/SuccessTrait.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category SuccessTrait * @package RetailCrm\Model\Response\AliExpress\Result\Traits * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/SolutionFeedListGetResponse.php b/src/Model/Response/AliExpress/SolutionFeedListGetResponse.php index a35db47..34b19c5 100644 --- a/src/Model/Response/AliExpress/SolutionFeedListGetResponse.php +++ b/src/Model/Response/AliExpress/SolutionFeedListGetResponse.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionFeedListGetResponse * @package RetailCrm\Model\Response\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/SolutionFeedQueryResponse.php b/src/Model/Response/AliExpress/SolutionFeedQueryResponse.php index 6569bef..dee8d4b 100644 --- a/src/Model/Response/AliExpress/SolutionFeedQueryResponse.php +++ b/src/Model/Response/AliExpress/SolutionFeedQueryResponse.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionFeedQueryResponse * @package RetailCrm\Model\Response\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/SolutionFeedSubmitResponse.php b/src/Model/Response/AliExpress/SolutionFeedSubmitResponse.php index 418ff77..b31880a 100644 --- a/src/Model/Response/AliExpress/SolutionFeedSubmitResponse.php +++ b/src/Model/Response/AliExpress/SolutionFeedSubmitResponse.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionFeedSubmitResponse * @package RetailCrm\Model\Response\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/SolutionProductSchemaGetResponse.php b/src/Model/Response/AliExpress/SolutionProductSchemaGetResponse.php index f526e9d..dd1f51d 100644 --- a/src/Model/Response/AliExpress/SolutionProductSchemaGetResponse.php +++ b/src/Model/Response/AliExpress/SolutionProductSchemaGetResponse.php @@ -22,7 +22,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionProductSchemaGetResponse * @package RetailCrm\Model\Response\AliExpress * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/AliExpress/SolutionSellerCategoryTreeQueryResponse.php b/src/Model/Response/AliExpress/SolutionSellerCategoryTreeQueryResponse.php index c74adfc..960f3a2 100644 --- a/src/Model/Response/AliExpress/SolutionSellerCategoryTreeQueryResponse.php +++ b/src/Model/Response/AliExpress/SolutionSellerCategoryTreeQueryResponse.php @@ -21,7 +21,7 @@ use JMS\Serializer\Annotation as JMS; * @category SolutionSellerCategoryTreeQueryResponse * @package RetailCrm\Model\Response\AliExpressSolution * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/Model/Response/Type/HttpDnsEnvEntry.php b/src/Model/Response/Type/HttpDnsEnvEntry.php index 159b45a..35045db 100644 --- a/src/Model/Response/Type/HttpDnsEnvEntry.php +++ b/src/Model/Response/Type/HttpDnsEnvEntry.php @@ -20,7 +20,7 @@ use JMS\Serializer\Annotation as JMS; * @category HttpDnsEnvEntry * @package RetailCrm\Model\Response\Type * @author RetailDriver LLC - * @license https://retailcrm.ru Proprietary + * @license MIT https://mit-license.org * @link http://retailcrm.ru * @see https://help.retailcrm.ru */ diff --git a/src/TopClient/Client.php b/src/TopClient/Client.php index 3c3d8fc..103fc37 100644 --- a/src/TopClient/Client.php +++ b/src/TopClient/Client.php @@ -14,6 +14,7 @@ namespace RetailCrm\TopClient; use DateTime; use JMS\Serializer\SerializerInterface; +use Psr\Cache\CacheItemPoolInterface; use Psr\Http\Client\ClientExceptionInterface; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\StreamInterface; @@ -95,7 +96,7 @@ class Client */ public function __construct(AppDataInterface $appData) { - $this->appData = $appData; + $this->appData = $appData; } /**