Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
218 changed files with 1550 additions and 1864 deletions
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
|
@ -1,34 +0,0 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
tags-ignore:
|
||||
- '*.*'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-version: ['7.3', '7.4']
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup PHP ${{ matrix.php-version }}
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
coverage: pcov
|
||||
- name: Composer cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ env.HOME }}/.composer/cache
|
||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||
- name: Install dependencies
|
||||
run: composer install -o
|
||||
- name: Run tests
|
||||
run: composer run-script ci
|
||||
- name: Coverage
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
19
.travis.yml
Normal file
19
.travis.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
language: php
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
|
||||
php:
|
||||
- '7.3'
|
||||
- '7.4'
|
||||
|
||||
before_script:
|
||||
- cp .env.dist .env
|
||||
- flags="-o"
|
||||
- composer install $flags
|
||||
|
||||
script: composer run-script ci
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
22
LICENSE
22
LICENSE
|
@ -1,21 +1,7 @@
|
|||
The MIT License (MIT)
|
||||
Copyright © 2020 RetailDriver
|
||||
|
||||
Copyright (c) 2020 RetailDriver LLC
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
|
46
README.md
46
README.md
|
@ -1,29 +1,31 @@
|
|||
[](https://github.com/retailcrm/aliexpress-top-client/actions)
|
||||
[](https://codecov.io/gh/retailcrm/aliexpress-top-client)
|
||||
[](https://packagist.org/packages/retailcrm/aliexpress-top-client)
|
||||
[](https://packagist.org/packages/retailcrm/aliexpress-top-client)
|
||||
[](https://travis-ci.org/retailcrm/aliexpress-top-client)
|
||||
[](https://codecov.io/gh/retailcrm/aliexpress-top-client)
|
||||
[](https://packagist.org/packages/retailcrm/aliexpress-top-client)
|
||||
[](https://packagist.org/packages/retailcrm/aliexpress-top-client)
|
||||
|
||||
# AliExpress TOP API client
|
||||
API client implementation for AliExpress TOP.
|
||||
|
||||
## Usage
|
||||
1. This library uses `php-http/httplug` under the hood. If you don't want to bother with details, just install library and it's dependencies via Composer:
|
||||
1. This library uses `php-http/httplug` under the hood. If you don't want to bother with details, just install library and it's dependencies through Composer:
|
||||
```sh
|
||||
composer require php-http/curl-client nyholm/psr7 php-http/message retailcrm/aliexpress-top-client
|
||||
```
|
||||
Details about those third-party libraries and why you need to install them can be found [here](http://docs.php-http.org/en/latest/httplug/users.html).
|
||||
|
||||
2. Instantiate client using `TopClientFactory`:
|
||||
2. Instantiate client like that:
|
||||
```php
|
||||
use RetailCrm\Component\AppData;
|
||||
use RetailCrm\Factory\TopClientFactory;
|
||||
use RetailCrm\Builder\TopClientBuilder;
|
||||
use RetailCrm\Builder\ContainerBuilder;
|
||||
use RetailCrm\Component\Authenticator\TokenAuthenticator;
|
||||
|
||||
$client = TopClientFactory::createClient(
|
||||
AppData::OVERSEAS_ENDPOINT,
|
||||
'appKey',
|
||||
'appSecret',
|
||||
'session token here'
|
||||
);
|
||||
$appData = new AppData(AppData::OVERSEAS_ENDPOINT, 'appKey', 'appSecret');
|
||||
$client = TopClientBuilder::create()
|
||||
->setContainer(ContainerBuilder::create()->build())
|
||||
->setAppData($appData)
|
||||
->setAuthenticator(new TokenAuthenticator('session token here'))
|
||||
->build();
|
||||
```
|
||||
|
||||
3. Create and fill request data. All requests and responses use the same naming: part of the namespace is the first word in the request name, and everything else is in the request DTO class name. Requests live under `RetailCrm\Model\Request` namespace, and responses can be found in the `RetailCrm\Model\Response` namespace.
|
||||
|
@ -73,21 +75,5 @@ $client = TopClientBuilder::create()
|
|||
->build();
|
||||
```
|
||||
Logger should implement `Psr\Log\LoggerInterface` (PSR-3), HTTP client should implement `Psr\Http\TopClient\TopClientInterface` (PSR-18), HTTP objects must be compliant to PSR-7.
|
||||
You can use your own container if you want to - it must be compliant to PSR-11. This is strongly discouraged because it'll be much easier to just integrate library with your own application, and your own DI system.
|
||||
|
||||
The simplest example of client initialization without using `TopClientFactory` looks like this:
|
||||
```php
|
||||
use RetailCrm\Component\AppData;
|
||||
use RetailCrm\Builder\TopClientBuilder;
|
||||
use RetailCrm\Builder\ContainerBuilder;
|
||||
use RetailCrm\Component\Authenticator\TokenAuthenticator;
|
||||
|
||||
$appData = new AppData(AppData::OVERSEAS_ENDPOINT, 'appKey', 'appSecret');
|
||||
$client = TopClientBuilder::create()
|
||||
->setContainer(ContainerBuilder::create()->build())
|
||||
->setAppData($appData)
|
||||
->setAuthenticator(new TokenAuthenticator('session token here'))
|
||||
->build();
|
||||
```
|
||||
In fact, `TopClientFactory` works just like this under the hood.
|
||||
|
||||
You can use your own container - it must be compliant to PSR-11. This is strongly discouraged because it'll be much easier to just integrate library with your own application, and your own DI system.
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
"name": "retailcrm/aliexpress-top-client",
|
||||
"description": "API client implementation for AliExpress TOP.",
|
||||
"type": "library",
|
||||
"keywords": ["API", "RetailCRM", "REST", "AliExpress"],
|
||||
"homepage": "http://www.retailcrm.pro/",
|
||||
"keywords": ["API", "retailCRM", "REST", "AliExpress"],
|
||||
"homepage": "http://www.retailcrm.ru/",
|
||||
"authors": [
|
||||
{
|
||||
"name": "RetailDriver LLC",
|
||||
"email": "support@retailcrm.pro"
|
||||
"email": "integration@retailcrm.ru"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"email": "support@retailcrm.pro"
|
||||
"email": "support@retailcrm.ru"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": { "RetailCrm\\": "src/" }
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category AuthorizationUriBuilder
|
||||
* @package RetailCrm\Builder
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Builder;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Interfaces\BuilderInterface;
|
|||
*
|
||||
* @category AuthorizationUriBuilder
|
||||
* @package RetailCrm\Builder
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class AuthorizationUriBuilder implements BuilderInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category ContainerBuilder
|
||||
* @package RetailCrm\Builder
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Builder;
|
||||
|
||||
|
@ -46,6 +50,10 @@ use Symfony\Component\Validator\Validator\ValidatorInterface;
|
|||
*
|
||||
* @category ContainerBuilder
|
||||
* @package RetailCrm\Builder
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*
|
||||
* ContainerBuilder should be like that.
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category TopClientBuilder
|
||||
* @package RetailCrm\Builder
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Builder;
|
||||
|
||||
|
@ -25,6 +29,10 @@ use RetailCrm\Traits\ContainerAwareTrait;
|
|||
*
|
||||
* @category TopClientBuilder
|
||||
* @package RetailCrm\Builder
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class TopClientBuilder implements ContainerAwareInterface, BuilderInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category AppData
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component;
|
||||
|
||||
|
@ -16,6 +20,10 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
*
|
||||
* @category AppData
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class AppData implements AppDataInterface
|
||||
{
|
||||
|
@ -26,7 +34,7 @@ class AppData implements AppDataInterface
|
|||
/**
|
||||
* @var string $serviceUrl
|
||||
* @Assert\Url()
|
||||
* @Assert\Choice(choices=AppData::AVAILABLE_ENDPOINTS, message="Invalid endpoint provided.")
|
||||
* @Assert\Choice(choices=Client::AVAILABLE_ENDPOINTS, message="Invalid endpoint provided.")
|
||||
*/
|
||||
protected $serviceUrl;
|
||||
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category TokenAuthenticator
|
||||
* @package RetailCrm\Component\Authenticator
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\Authenticator;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Model\Request\BaseRequest;
|
|||
*
|
||||
* @category TokenAuthenticator
|
||||
* @package RetailCrm\Component\Authenticator
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class TokenAuthenticator implements AuthenticatorInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category Constants
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component;
|
||||
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Component;
|
|||
*
|
||||
* @category Constants
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class Constants
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category ConstraintViolationListTransformer
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component;
|
||||
|
@ -15,6 +19,10 @@ use Symfony\Component\Validator\ConstraintViolationListInterface;
|
|||
*
|
||||
* @category ConstraintViolationListTransformer
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ConstraintViolationListTransformer
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category Container
|
||||
* @package RetailCrm\Component\DependencyInjection
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\DependencyInjection;
|
||||
|
||||
|
@ -25,6 +29,10 @@ use Throwable;
|
|||
* @category Container
|
||||
* @package RetailCrm\Component\DependencyInjection
|
||||
* @author Evgeniy Zyubin <mail@devanych.ru>
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
final class Container implements ContainerInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category ContainerException
|
||||
* @package RetailCrm\Component\DependencyInjection\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\DependencyInjection\Exception;
|
||||
|
||||
|
@ -17,6 +21,10 @@ use LogicException;
|
|||
* @category ContainerException
|
||||
* @package RetailCrm\Component\DependencyInjection\Exception
|
||||
* @author Evgeniy Zyubin <mail@devanych.ru>
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ContainerException extends LogicException implements ContainerExceptionInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category NotFoundException
|
||||
* @package RetailCrm\Component\DependencyInjection\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\DependencyInjection\Exception;
|
||||
|
||||
|
@ -17,6 +21,10 @@ use InvalidArgumentException;
|
|||
* @category NotFoundException
|
||||
* @package RetailCrm\Component\DependencyInjection\Exception
|
||||
* @author Evgeniy Zyubin <mail@devanych.ru>
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class NotFoundException extends InvalidArgumentException implements NotFoundExceptionInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FactoryInterface
|
||||
* @package RetailCrm\Component\DependencyInjection
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\DependencyInjection;
|
||||
|
||||
|
@ -16,6 +20,10 @@ use Psr\Container\ContainerInterface;
|
|||
* @category FactoryInterface
|
||||
* @package RetailCrm\Component\DependencyInjection
|
||||
* @author Evgeniy Zyubin <mail@devanych.ru>
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface FactoryInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category Environment
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component;
|
||||
|
||||
|
@ -15,6 +19,10 @@ use InvalidArgumentException;
|
|||
*
|
||||
* @category Environment
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class Environment
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FactoryException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Exception;
|
||||
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Component\Exception;
|
|||
*
|
||||
* @category FactoryException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FactoryException extends \Exception
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category NotImplementedException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Exception;
|
||||
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Component\Exception;
|
|||
*
|
||||
* @category NotImplementedException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class NotImplementedException extends \Exception
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OAuthTokenFetcherException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\Exception;
|
||||
|
@ -15,6 +19,10 @@ use Exception;
|
|||
*
|
||||
* @category OAuthTokenFetcherException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OAuthTokenFetcherException extends Exception
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category TopApiException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Exception;
|
||||
|
||||
|
@ -17,6 +21,10 @@ use Throwable;
|
|||
*
|
||||
* @category TopApiException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class TopApiException extends Exception
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category TopClientException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Exception;
|
||||
|
||||
|
@ -15,6 +19,10 @@ use Exception;
|
|||
*
|
||||
* @category TopClientException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class TopClientException extends Exception
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category ValidationException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Exception;
|
||||
|
||||
|
@ -16,6 +20,10 @@ use Throwable;
|
|||
*
|
||||
* @category ValidationException
|
||||
* @package RetailCrm\Component\Exception
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ValidationException extends \Exception
|
||||
{
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category TimezoneDeserializeSubscriber
|
||||
* @package RetailCrm\Component\JMS\EventSubscriber
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\JMS\EventSubscriber;
|
||||
|
||||
use DateTime;
|
||||
use DateTimeInterface;
|
||||
use DateTimeZone;
|
||||
use JMS\Serializer\EventDispatcher\EventSubscriberInterface;
|
||||
use JMS\Serializer\EventDispatcher\ObjectEvent;
|
||||
|
||||
/**
|
||||
* Class TimezoneDeserializeSubscriber
|
||||
*
|
||||
* @category TimezoneDeserializeSubscriber
|
||||
* @package RetailCrm\Component\JMS\EventSubscriber
|
||||
*/
|
||||
class TimezoneDeserializeSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
private const RFC3339_WITHOUT_TZ = 'Y-m-d\TH:i:s';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return [[
|
||||
'event' => 'serializer.post_deserialize',
|
||||
'method' => 'onPostDeserialize',
|
||||
]];
|
||||
}
|
||||
|
||||
public function onPostDeserialize(ObjectEvent $event): void
|
||||
{
|
||||
$object = $event->getObject();
|
||||
|
||||
foreach (get_object_vars($object) as $property => $value) {
|
||||
if ($value instanceof DateTimeInterface
|
||||
&& $value->getTimezone()->getName() === 'UTC'
|
||||
) {
|
||||
$object->$property = DateTime::createFromFormat(
|
||||
self::RFC3339_WITHOUT_TZ,
|
||||
$value->format(self::RFC3339_WITHOUT_TZ),
|
||||
new DateTimeZone('PST')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category JsonDeserializationVisitorFactory
|
||||
* @package RetailCrm\Component\JMS\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\JMS\Factory;
|
||||
|
@ -17,6 +21,10 @@ use JMS\Serializer\Visitor\Factory\DeserializationVisitorFactory;
|
|||
*
|
||||
* @category JsonDeserializationVisitorFactory
|
||||
* @package RetailCrm\Component\JMS\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class JsonDeserializationVisitorFactory implements DeserializationVisitorFactory
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category JsonDeserializationVisitor
|
||||
* @package RetailCrm\Component\JMS\Visitor\Deserialization
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\JMS\Visitor\Deserialization;
|
||||
|
@ -12,7 +16,6 @@ use JMS\Serializer\AbstractVisitor;
|
|||
use JMS\Serializer\Exception\LogicException;
|
||||
use JMS\Serializer\Exception\NotAcceptableException;
|
||||
use JMS\Serializer\Exception\RuntimeException;
|
||||
use JMS\Serializer\GraphNavigatorInterface;
|
||||
use JMS\Serializer\Metadata\ClassMetadata;
|
||||
use JMS\Serializer\Metadata\PropertyMetadata;
|
||||
use JMS\Serializer\Visitor\DeserializationVisitorInterface;
|
||||
|
@ -24,8 +27,12 @@ use SplStack;
|
|||
*
|
||||
* @category JsonDeserializationVisitor
|
||||
* @package RetailCrm\Component\JMS\Visitor\Deserialization
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class JsonDeserializationVisitor implements DeserializationVisitorInterface
|
||||
class JsonDeserializationVisitor extends AbstractVisitor implements DeserializationVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
|
@ -47,11 +54,6 @@ class JsonDeserializationVisitor implements DeserializationVisitorInterface
|
|||
*/
|
||||
private $currentObject;
|
||||
|
||||
/**
|
||||
* @var GraphNavigatorInterface
|
||||
*/
|
||||
protected $navigator;
|
||||
|
||||
public function __construct(
|
||||
int $options = 0,
|
||||
int $depth = 512
|
||||
|
@ -314,9 +316,4 @@ class JsonDeserializationVisitor implements DeserializationVisitorInterface
|
|||
throw new RuntimeException('Could not decode JSON.');
|
||||
}
|
||||
}
|
||||
|
||||
public function setNavigator(GraphNavigatorInterface $navigator): void
|
||||
{
|
||||
$this->navigator = $navigator;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category AbstractLogger
|
||||
* @package RetailCrm\Component\Logger
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Logger;
|
||||
|
||||
|
@ -15,6 +19,10 @@ use Psr\Log\AbstractLogger as BaseAbstractLogger;
|
|||
*
|
||||
* @category AbstractLogger
|
||||
* @package RetailCrm\Component\Logger
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
abstract class AbstractLogger extends BaseAbstractLogger
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FileLogger
|
||||
* @package RetailCrm\Component\Logger
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Logger;
|
||||
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Component\Logger;
|
|||
*
|
||||
* @category FileLogger
|
||||
* @package RetailCrm\Component\Logger
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FileLogger extends AbstractLogger
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category StdioLogger
|
||||
* @package RetailCrm\Component\Logger
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component\Logger;
|
||||
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Component\Logger;
|
|||
*
|
||||
* @category StdioLogger
|
||||
* @package RetailCrm\Component\Logger
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class StdoutLogger extends AbstractLogger
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OAuthTokenFetcher
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component;
|
||||
|
@ -27,6 +31,10 @@ use RetailCrm\Model\Response\OAuthTokenFetcherResponse;
|
|||
*
|
||||
* @category OAuthTokenFetcher
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OAuthTokenFetcher
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category ServiceLocator
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Component;
|
||||
|
||||
|
@ -19,6 +23,10 @@ use RetailCrm\Traits\ContainerAwareTrait;
|
|||
*
|
||||
* @category ServiceLocator
|
||||
* @package RetailCrm\Component
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ServiceLocator implements ContainerAwareInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category ProductSchemaStorage
|
||||
* @package RetailCrm\Component\Storage
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\Storage;
|
||||
|
@ -25,6 +29,10 @@ use RetailCrm\Model\Response\ErrorResponseBody;
|
|||
*
|
||||
* @category ProductSchemaStorage
|
||||
* @package RetailCrm\Component\Storage
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ProductSchemaStorage
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category Timezone
|
||||
* @package RetailCrm\Component\Validator\Constraints
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\Validator\Constraints;
|
||||
|
@ -15,13 +19,17 @@ use Symfony\Component\Validator\Constraint;
|
|||
*
|
||||
* @category Timezone
|
||||
* @package RetailCrm\Component\Validator\Constraints
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*
|
||||
* @Annotation
|
||||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*/
|
||||
class Timezone extends Constraint
|
||||
{
|
||||
public $timezone = 'PST';
|
||||
public $timezone = 'America/Los_Angeles';
|
||||
public $message = 'Invalid timezone provided. Got {{ provided }}, should be {{ expected }}.';
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category TimezoneValidator
|
||||
* @package RetailCrm\Component\Validator\Constraints
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Component\Validator\Constraints;
|
||||
|
@ -19,6 +23,10 @@ use Symfony\Component\Validator\Exception\UnexpectedValueException;
|
|||
*
|
||||
* @category TimezoneValidator
|
||||
* @package RetailCrm\Component\Validator\Constraints
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class TimezoneValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FileItemFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Factory;
|
||||
|
||||
|
@ -18,6 +22,10 @@ use RetailCrm\Model\FileItem;
|
|||
*
|
||||
* @category FileItemFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FileItemFactory implements FileItemFactoryInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OAuthTokenFetcherFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Factory;
|
||||
|
@ -21,6 +25,10 @@ use RetailCrm\Interfaces\ParametrizedFactoryInterface;
|
|||
*
|
||||
* @category OAuthTokenFetcherFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OAuthTokenFetcherFactory implements ParametrizedFactoryInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category ProductSchemaStorageFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Factory;
|
||||
|
@ -18,6 +22,10 @@ use RetailCrm\Interfaces\TopClientInterface;
|
|||
*
|
||||
* @category ProductSchemaStorageFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ProductSchemaStorageFactory implements FactoryInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category SerializationContextFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Factory;
|
||||
|
||||
|
@ -16,6 +20,10 @@ use JMS\Serializer\SerializationContext;
|
|||
*
|
||||
* @category SerializationContextFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SerializationContextFactory implements SerializationContextFactoryInterface
|
||||
{
|
||||
|
|
|
@ -5,12 +5,13 @@
|
|||
*
|
||||
* @category SerializerFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Factory;
|
||||
|
||||
use JMS\Serializer\Annotation\PostDeserialize;
|
||||
use JMS\Serializer\EventDispatcher\EventDispatcher;
|
||||
use JMS\Serializer\EventDispatcher\ObjectEvent;
|
||||
use JMS\Serializer\GraphNavigatorInterface;
|
||||
use JMS\Serializer\Handler\HandlerRegistry;
|
||||
use JMS\Serializer\Serializer;
|
||||
|
@ -19,7 +20,6 @@ use JMS\Serializer\SerializerInterface;
|
|||
use JMS\Serializer\Visitor\Factory\JsonSerializationVisitorFactory;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use RetailCrm\Component\Constants;
|
||||
use RetailCrm\Component\JMS\EventSubscriber\TimezoneDeserializeSubscriber;
|
||||
use RetailCrm\Component\JMS\Factory\JsonDeserializationVisitorFactory;
|
||||
use RetailCrm\Interfaces\FactoryInterface;
|
||||
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
||||
|
@ -30,6 +30,10 @@ use JMS\Serializer\Expression\ExpressionEvaluator;
|
|||
*
|
||||
* @category SerializerFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SerializerFactory implements FactoryInterface
|
||||
{
|
||||
|
@ -104,9 +108,6 @@ class SerializerFactory implements FactoryInterface
|
|||
$returnNull
|
||||
);
|
||||
})->addDefaultHandlers()
|
||||
->configureListeners(function (EventDispatcher $dispatcher) {
|
||||
$dispatcher->addSubscriber(new TimezoneDeserializeSubscriber());
|
||||
})
|
||||
->setSerializationVisitor('json', new JsonSerializationVisitorFactory())
|
||||
->setDeserializationVisitor('json', new JsonDeserializationVisitorFactory())
|
||||
->setSerializationContextFactory(new SerializationContextFactory())
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category TopClientFactory
|
||||
* @package RetailCrm\Factory
|
||||
*/
|
||||
namespace RetailCrm\Factory;
|
||||
|
||||
use RetailCrm\Builder\ContainerBuilder;
|
||||
use RetailCrm\Builder\TopClientBuilder;
|
||||
use RetailCrm\Component\AppData;
|
||||
use RetailCrm\Component\Authenticator\TokenAuthenticator;
|
||||
use RetailCrm\TopClient\TopClient;
|
||||
|
||||
/**
|
||||
* Class TopClientFactory
|
||||
*
|
||||
* @category TopClientFactory
|
||||
* @package RetailCrm\Factory
|
||||
*/
|
||||
class TopClientFactory
|
||||
{
|
||||
/**
|
||||
* Create new TopClient
|
||||
*
|
||||
* @param string $serviceUrl
|
||||
* @param string $appKey
|
||||
* @param string $appSecret
|
||||
* @param string $token
|
||||
*
|
||||
* @return \RetailCrm\TopClient\TopClient
|
||||
* @throws \RetailCrm\Component\Exception\ValidationException
|
||||
*/
|
||||
public static function createClient(
|
||||
string $serviceUrl,
|
||||
string $appKey,
|
||||
string $appSecret,
|
||||
string $token = ''
|
||||
): TopClient {
|
||||
$appData = new AppData($serviceUrl, $appKey, $appSecret);
|
||||
$builder = TopClientBuilder::create()
|
||||
->setContainer(ContainerBuilder::create()->build())
|
||||
->setAppData($appData);
|
||||
|
||||
if ('' !== $token) {
|
||||
$builder->setAuthenticator(new TokenAuthenticator($token));
|
||||
}
|
||||
|
||||
return $builder->build();
|
||||
}
|
||||
}
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category TopRequestFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Factory;
|
||||
|
||||
|
@ -31,6 +35,10 @@ use UnexpectedValueException;
|
|||
*
|
||||
* @category TopRequestFactory
|
||||
* @package RetailCrm\Factory
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
*/
|
||||
class TopRequestFactory implements TopRequestFactoryInterface
|
||||
|
@ -264,8 +272,6 @@ class TopRequestFactory implements TopRequestFactoryInterface
|
|||
*
|
||||
* @return string|resource|null
|
||||
* @todo Arrays will be encoded to JSON. Is this correct? Press X to doubt.
|
||||
*
|
||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
||||
*/
|
||||
private function castValue($value)
|
||||
{
|
||||
|
@ -276,7 +282,6 @@ class TopRequestFactory implements TopRequestFactoryInterface
|
|||
case 'NULL':
|
||||
return $value;
|
||||
case 'boolean':
|
||||
return $value ? 'true' : 'false';
|
||||
case 'integer':
|
||||
case 'double':
|
||||
case 'string':
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category AppDataInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category AppDataInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface AppDataInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category AuthenticatorInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Model\Request\BaseRequest;
|
|||
*
|
||||
* @category AuthenticatorInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface AuthenticatorInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category BuilderInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category BuilderInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface BuilderInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category ContainerAwareInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -16,6 +20,10 @@ use Psr\Container\ContainerInterface;
|
|||
*
|
||||
* @category ContainerAwareInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface ContainerAwareInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category FactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface FactoryInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category FileItemFactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface FileItemFactoryInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FileItemInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -16,6 +20,10 @@ use Psr\Http\Message\StreamInterface;
|
|||
*
|
||||
* @category FileItemInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface FileItemInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category ParametrizedFactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category ParametrizedFactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface ParametrizedFactoryInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category RequestDtoInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category RequestDtoInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface RequestDtoInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category RequestSignerInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -14,6 +18,10 @@ namespace RetailCrm\Interfaces;
|
|||
*
|
||||
* @category RequestSignerInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface RequestSignerInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category RequestTimestampProviderInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Model\Request\BaseRequest;
|
|||
*
|
||||
* @category RequestTimestampProviderInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface RequestTimestampProviderInterface
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category TopClientInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
||||
|
@ -18,6 +22,10 @@ use RetailCrm\Model\Response\TopResponseInterface;
|
|||
*
|
||||
* @category ContainerBuilder
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*
|
||||
*/
|
||||
interface TopClientInterface
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category TopRequestFactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Interfaces;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Model\Request\BaseRequest;
|
|||
*
|
||||
* @category TopRequestFactoryInterface
|
||||
* @package RetailCrm\Interfaces
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
interface TopRequestFactoryInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category CategoryInfo
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Entity;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category CategoryInfo
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class CategoryInfo
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OrderDto
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Entity;
|
||||
|
@ -16,6 +20,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category OrderDto
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
* @SuppressWarnings(PHPMD.TooManyFields)
|
||||
*/
|
||||
class OrderDto
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OrderProductDto
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Entity;
|
||||
|
@ -16,6 +20,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category OrderProductDto
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
* @SuppressWarnings(PHPMD.TooManyFields)
|
||||
*/
|
||||
class OrderProductDto
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OrderProductDtoList
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Entity;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category OrderProductDtoList
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OrderProductDtoList
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SimpleMoney
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Entity;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category SimpleMoney
|
||||
* @package RetailCrm\Model\Entity
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SimpleMoney
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category AvailableResponseFormats
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category AvailableResponseFormats
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class AvailableResponseFormats
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category AvailableSignMethods
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category AvailableSignMethods
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class AvailableSignMethods
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category BizTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category BizTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class BizTypes
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category CategoryForecastSupportedLanguages
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category CategoryForecastSupportedLanguages
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class CategoryForecastSupportedLanguages
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category DropshippingAreas
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category DropshippingAreas
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class DropshippingAreas
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category FeedOperationTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category FeedOperationTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FeedOperationTypes
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category FeedStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category FeedStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FeedStatuses
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category FrozenStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category FrozenStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FrozenStatuses
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category FundsStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category FundsStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FundsStatuses
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category IssueStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category IssueStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class IssueStatuses
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category LogisticsStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category LogisticsStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class LogisticsStatuses
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OfflinePickupTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category OfflinePickupTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OfflinePickupTypes
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OrderStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category OrderStatuses
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OrderStatuses
|
||||
{
|
||||
|
@ -32,7 +40,7 @@ class OrderStatuses
|
|||
public const WAIT_BUYER_ACCEPT_GOODS = 'WAIT_BUYER_ACCEPT_GOODS';
|
||||
|
||||
// Buyer accepted, funds is in processing.
|
||||
public const PAYMENT_PROCESSING = 'PAYMENT_PROCESSING';
|
||||
public const FUND_PROCESSING = 'FUND_PROCESSING';
|
||||
|
||||
// Order is involved in the dispute.
|
||||
public const IN_ISSUE = 'IN_ISSUE';
|
||||
|
@ -43,18 +51,12 @@ class OrderStatuses
|
|||
// Waiting for payment amount confirmation from seller.
|
||||
public const WAIT_SELLER_EXAMINE_MONEY = 'WAIT_SELLER_EXAMINE_MONEY';
|
||||
|
||||
// Payment was successful, but order is in risk control now.
|
||||
// Payment will be marked as completed in 24 hours.
|
||||
public const RISK_CONTROL = 'RISK_CONTROL';
|
||||
|
||||
// Risk control resulted in hold, buyer should approve the payment.
|
||||
public const RISK_CONTROL_HOLD = 'RISK_CONTROL_HOLD';
|
||||
|
||||
// Order is closed, no further actions needed.
|
||||
public const FINISH = 'FINISH';
|
||||
|
||||
// Order is closed and now stored in the archive.
|
||||
public const ARCHIVE = 'ARCHIVE';
|
||||
|
||||
// List of all order statuses.
|
||||
public const STATUSES_LIST = [
|
||||
self::PLACE_ORDER_SUCCESS,
|
||||
|
@ -62,13 +64,11 @@ class OrderStatuses
|
|||
self::WAIT_SELLER_SEND_GOODS,
|
||||
self::SELLER_PART_SEND_GOODS,
|
||||
self::WAIT_BUYER_ACCEPT_GOODS,
|
||||
self::PAYMENT_PROCESSING,
|
||||
self::FUND_PROCESSING,
|
||||
self::IN_ISSUE,
|
||||
self::IN_FROZEN,
|
||||
self::WAIT_SELLER_EXAMINE_MONEY,
|
||||
self::RISK_CONTROL,
|
||||
self::RISK_CONTROL_HOLD,
|
||||
self::FINISH,
|
||||
self::ARCHIVE
|
||||
self::FINISH
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category ShippingTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Enum;
|
||||
|
@ -13,6 +17,10 @@ namespace RetailCrm\Model\Enum;
|
|||
*
|
||||
* @category ShippingTypes
|
||||
* @package RetailCrm\Model\Enum
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ShippingTypes
|
||||
{
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
*
|
||||
* @category FileItem
|
||||
* @package RetailCrm\Model
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
namespace RetailCrm\Model;
|
||||
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Interfaces\FileItemInterface;
|
|||
*
|
||||
* @category FileItem
|
||||
* @package RetailCrm\Model
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FileItem implements FileItemInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category FeedPricesUpdateDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Interfaces\RequestDtoInterface;
|
|||
*
|
||||
* @category FeedPricesUpdateDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FeedPricesUpdateDto implements RequestDtoInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category FeedStocksUpdateDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Interfaces\RequestDtoInterface;
|
|||
*
|
||||
* @category FeedStocksUpdateDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class FeedStocksUpdateDto implements RequestDtoInterface
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category MaillingAddressRequestDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -17,6 +21,10 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
*
|
||||
* @category MaillingAddressRequestDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
* @SuppressWarnings(PHPMD.TooManyFields)
|
||||
*/
|
||||
class MaillingAddressRequestDto
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category MultipleProductInventoriesUpdateListQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
||||
use JMS\Serializer\Annotation as JMS;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* Class MultipleProductInventoriesUpdateListQuery
|
||||
*
|
||||
* @category MultipleProductInventoriesUpdateListQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
*/
|
||||
class MultipleProductInventoriesUpdateListQuery
|
||||
{
|
||||
/**
|
||||
* @var int $productId
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("product_id")
|
||||
* @Assert\NotNull()
|
||||
*/
|
||||
public $productId;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Model\Request\AliExpress\Data\SkuStocksUpdateItemDto[] $multipleSkuUpdateList
|
||||
*
|
||||
* @JMS\Type("array<RetailCrm\Model\Request\AliExpress\Data\SkuStocksUpdateItemDto>")
|
||||
* @JMS\SerializedName("multiple_sku_update_list")
|
||||
* @Assert\NotNull()
|
||||
*/
|
||||
public $multipleSkuUpdateList;
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category MultipleProductUpdateListQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
||||
use JMS\Serializer\Annotation as JMS;
|
||||
|
||||
/**
|
||||
* Class MultipleProductUpdateListQuery
|
||||
*
|
||||
* @category MultipleProductUpdateListQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
*/
|
||||
class MultipleProductUpdateListQuery
|
||||
{
|
||||
/**
|
||||
* @var int $productId
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("product_id")
|
||||
*/
|
||||
public $productId;
|
||||
|
||||
/**
|
||||
* @var \RetailCrm\Model\Request\AliExpress\Data\SkuPricesUpdateItemDto[] $multipleSkuUpdateList
|
||||
*
|
||||
* @JMS\Type("array<RetailCrm\Model\Request\AliExpress\Data\SkuPricesUpdateItemDto>")
|
||||
* @JMS\SerializedName("multiple_sku_update_list")
|
||||
*/
|
||||
public $multipleSkuUpdateList;
|
||||
}
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category OrderQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -18,6 +22,10 @@ use RetailCrm\Component\Validator\Constraints as TopAssert;
|
|||
*
|
||||
* @category OrderQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class OrderQuery
|
||||
{
|
||||
|
@ -28,7 +36,7 @@ class OrderQuery
|
|||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("create_date_end")
|
||||
* @TopAssert\Timezone("PST")
|
||||
* @TopAssert\Timezone("America/Los_Angeles")
|
||||
*/
|
||||
public $createDateEnd;
|
||||
|
||||
|
@ -37,7 +45,7 @@ class OrderQuery
|
|||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("create_date_start")
|
||||
* @TopAssert\Timezone("PST")
|
||||
* @TopAssert\Timezone("America/Los_Angeles")
|
||||
*/
|
||||
public $createDateStart;
|
||||
|
||||
|
@ -46,7 +54,7 @@ class OrderQuery
|
|||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("modified_date_start")
|
||||
* @TopAssert\Timezone("PST")
|
||||
* @TopAssert\Timezone("America/Los_Angeles")
|
||||
*/
|
||||
public $modifiedDateStart;
|
||||
|
||||
|
@ -82,7 +90,7 @@ class OrderQuery
|
|||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("modified_date_end")
|
||||
* @TopAssert\Timezone("PST")
|
||||
* @TopAssert\Timezone("America/Los_Angeles")
|
||||
*/
|
||||
public $modifiedDateEnd;
|
||||
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category PlaceOrderRequest4OpenApiDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -16,6 +20,10 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
*
|
||||
* @category PlaceOrderRequest4OpenApiDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class PlaceOrderRequest4OpenApiDto
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category ProductBaseItem
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category ProductBaseItem
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class ProductBaseItem
|
||||
{
|
||||
|
|
|
@ -1,160 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category ProductGetQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
||||
use DateTime;
|
||||
use JMS\Serializer\Annotation as JMS;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
use RetailCrm\Component\Validator\Constraints as TopAssert;
|
||||
|
||||
/**
|
||||
* Class ProductGetQuery
|
||||
*
|
||||
* @category ProductGetQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @SuppressWarnings(PHPMD.TooManyFields)
|
||||
*/
|
||||
class ProductGetQuery
|
||||
{
|
||||
/**
|
||||
* @var DateTime $gmtCreateEnd
|
||||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("gmt_create_end")
|
||||
* @TopAssert\Timezone("PST")
|
||||
*/
|
||||
public $gmtCreateEnd;
|
||||
|
||||
/**
|
||||
* @var DateTime $gmtCreateStart
|
||||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("gmt_create_start")
|
||||
* @TopAssert\Timezone("PST")
|
||||
*/
|
||||
public $gmtCreateStart;
|
||||
|
||||
/**
|
||||
* @var DateTime $gmtModifiedStart
|
||||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("gmt_modified_start")
|
||||
* @TopAssert\Timezone("PST")
|
||||
*/
|
||||
public $modifiedDateStart;
|
||||
|
||||
/**
|
||||
* @var int $pageSize
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("page_size")
|
||||
* @Assert\GreaterThan(0)
|
||||
*/
|
||||
public $pageSize;
|
||||
|
||||
/**
|
||||
* @var DateTime $gmtModifiedEnd
|
||||
*
|
||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @JMS\SerializedName("gmt_modified_end")
|
||||
* @TopAssert\Timezone("PST")
|
||||
*/
|
||||
public $gmtModifiedEnd;
|
||||
|
||||
/**
|
||||
* @var int $currentPage
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("current_page")
|
||||
* @Assert\GreaterThan(0)
|
||||
*/
|
||||
public $currentPage;
|
||||
|
||||
/**
|
||||
* @var string $skuCode
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("sku_code")
|
||||
*/
|
||||
public $skuCode;
|
||||
|
||||
/**
|
||||
* @var int $productId
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("product_id")
|
||||
*/
|
||||
public $productId;
|
||||
|
||||
/**
|
||||
* @var int $groupId
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("group_id")
|
||||
*/
|
||||
public $groupId;
|
||||
|
||||
/**
|
||||
* @var string $productStatusType
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("product_status_type")
|
||||
* @Assert\Choice({"onSelling", "offline", "auditing", "editingRequired"})
|
||||
* @Assert\NotBlank()
|
||||
*/
|
||||
public $productStatusType;
|
||||
|
||||
/**
|
||||
* @var string $subject
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("subject")
|
||||
*/
|
||||
|
||||
public $subject;
|
||||
/**
|
||||
* @var string $wsDisplay
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("ws_display")
|
||||
*/
|
||||
|
||||
public $wsDisplay;
|
||||
/**
|
||||
* @var string $haveNationalQuote
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("have_national_quote")
|
||||
*/
|
||||
|
||||
public $haveNationalQuote;
|
||||
/**
|
||||
* @var string $ownerMemberId
|
||||
*
|
||||
* @JMS\Type("string")
|
||||
* @JMS\SerializedName("owner_member_id")
|
||||
*/
|
||||
public $ownerMemberId;
|
||||
|
||||
/**
|
||||
* @var int $offlineTime
|
||||
*
|
||||
* @JMS\Type("int")
|
||||
* @JMS\SerializedName("off_line_time")
|
||||
*/
|
||||
public $offlineTime;
|
||||
|
||||
/**
|
||||
* @var int[] $exceptedProductIds
|
||||
*
|
||||
* @JMS\Type("array<int>")
|
||||
* @JMS\SerializedName("excepted_product_ids")
|
||||
*/
|
||||
public $exceptedProductIds;
|
||||
}
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SingleItemRequestDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category SingleItemRequestDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SingleItemRequestDto
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SingleOrderQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category SingleOrderQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SingleOrderQuery
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SkuPricesUpdateItemDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category SkuPricesUpdateItemDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SkuPricesUpdateItemDto
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SkuStocksUpdateItemDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress\Data;
|
||||
|
@ -15,6 +19,10 @@ use JMS\Serializer\Annotation as JMS;
|
|||
*
|
||||
* @category SkuStocksUpdateItemDto
|
||||
* @package RetailCrm\Model\Request\AliExpress\Data
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SkuStocksUpdateItemDto
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category LogisticsDsTrackingInfoQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -18,6 +22,10 @@ use RetailCrm\Model\Response\AliExpress\LogisticsDsTrackingInfoQueryResponse;
|
|||
*
|
||||
* @category LogisticsDsTrackingInfoQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class LogisticsDsTrackingInfoQuery extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category LogisticsRedefiningListLogisticsService
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Model\Response\AliExpress\LogisticsRedefiningListLogisticsServiceR
|
|||
*
|
||||
* @category LogisticsRedefiningListLogisticsService
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class LogisticsRedefiningListLogisticsService extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category PostproductRedefiningCategoryForecastResponse
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -18,6 +22,10 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
*
|
||||
* @category PostproductRedefiningCategoryForecastResponse
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class PostproductRedefiningCategoryForecast extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category PostproductRedefiningFindAEProductByIdForDropshipper
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Model\Response\AliExpress\PostproductRedefiningFindAEProductByIdFo
|
|||
*
|
||||
* @category PostproductRedefiningFindAEProductByIdForDropshipper
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class PostproductRedefiningFindAEProductByIdForDropshipper extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category SolutionBatchProductInventoryUpdate
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
||||
use JMS\Serializer\Annotation as JMS;
|
||||
use RetailCrm\Model\Request\BaseRequest;
|
||||
use RetailCrm\Model\Response\AliExpress\SolutionBatchProductInventoryUpdateResponse;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* Class SolutionBatchProductInventoryUpdate
|
||||
*
|
||||
* @category SolutionBatchProductInventoryUpdate
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
*/
|
||||
class SolutionBatchProductInventoryUpdate extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* @see https://developers.aliexpress.com/en/doc.htm?docId=45135&docType=2&ocId=45140
|
||||
*
|
||||
* @var \RetailCrm\Model\Request\AliExpress\Data\MultipleProductInventoriesUpdateListQuery $mutipleProductUpdateList
|
||||
*
|
||||
* @JMS\Type("RetailCrm\Model\Request\AliExpress\Data\MultipleProductInventoriesUpdateListQuery")
|
||||
* @JMS\SerializedName("mutiple_product_update_list")
|
||||
* @Assert\NotNull()
|
||||
*/
|
||||
public $mutipleProductUpdateList;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getMethod(): string
|
||||
{
|
||||
return 'aliexpress.solution.batch.product.inventory.update';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getExpectedResponse(): string
|
||||
{
|
||||
return SolutionBatchProductInventoryUpdateResponse::class;
|
||||
}
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP version 7.3
|
||||
*
|
||||
* @category SolutionBatchProductPriceUpdate
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
||||
use JMS\Serializer\Annotation as JMS;
|
||||
use RetailCrm\Model\Request\BaseRequest;
|
||||
use RetailCrm\Model\Response\AliExpress\SolutionBatchProductPriceUpdateResponse;
|
||||
|
||||
/**
|
||||
* Class SolutionBatchProductPriceUpdate
|
||||
*
|
||||
* @category SolutionBatchProductPriceUpdate
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
*/
|
||||
class SolutionBatchProductPriceUpdate extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* @see https://developers.aliexpress.com/en/doc.htm?docId=45140&docType=2&ocId=45140
|
||||
*
|
||||
* @var \RetailCrm\Model\Request\AliExpress\Data\MultipleProductUpdateListQuery $mutipleProductUpdateList
|
||||
*
|
||||
* @JMS\Type("RetailCrm\Model\Request\AliExpress\Data\MultipleProductUpdateListQuery")
|
||||
* @JMS\SerializedName("mutiple_product_update_list")
|
||||
*/
|
||||
public $mutipleProductUpdateList;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getMethod(): string
|
||||
{
|
||||
return 'aliexpress.solution.batch.product.price.update';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getExpectedResponse(): string
|
||||
{
|
||||
return SolutionBatchProductPriceUpdateResponse::class;
|
||||
}
|
||||
}
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionFeedListGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Model\Response\AliExpress\SolutionFeedListGetResponse;
|
|||
*
|
||||
* @category SolutionFeedListGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionFeedListGet extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionFeedQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Model\Response\AliExpress\SolutionFeedQueryResponse;
|
|||
*
|
||||
* @category SolutionFeedQuery
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionFeedQuery extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionFeedSubmit
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -19,6 +23,10 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
*
|
||||
* @category SolutionFeedSubmit
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license MIT https://mit-license.org
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionFeedSubmit extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionMerchantProfileGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -16,6 +20,10 @@ use RetailCrm\Model\Response\AliExpress\SolutionMerchantProfileGetResponse;
|
|||
*
|
||||
* @category SolutionMerchantProfileGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionMerchantProfileGet extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionOrderFulfill
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -18,6 +22,10 @@ use RetailCrm\Model\Response\AliExpress\SolutionOrderFulfillResponse;
|
|||
*
|
||||
* @category SolutionOrderFulfill
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionOrderFulfill extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionOrderGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Model\Response\AliExpress\SolutionOrderGetResponse;
|
|||
*
|
||||
* @category SolutionOrderGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionOrderGet extends BaseRequest
|
||||
{
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
*
|
||||
* @category SolutionOrderReceiptInfoGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailCRM <integration@retailcrm.ru>
|
||||
* @license http://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see http://help.retailcrm.ru
|
||||
*/
|
||||
|
||||
namespace RetailCrm\Model\Request\AliExpress;
|
||||
|
@ -17,6 +21,10 @@ use RetailCrm\Model\Response\AliExpress\SolutionOrderReceiptInfoGetResponse;
|
|||
*
|
||||
* @category SolutionOrderReceiptInfoGet
|
||||
* @package RetailCrm\Model\Request\AliExpress
|
||||
* @author RetailDriver LLC <integration@retailcrm.ru>
|
||||
* @license https://retailcrm.ru Proprietary
|
||||
* @link http://retailcrm.ru
|
||||
* @see https://help.retailcrm.ru
|
||||
*/
|
||||
class SolutionOrderReceiptInfoGet extends BaseRequest
|
||||
{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue