Several fixes
This commit is contained in:
parent
004b27f62c
commit
527476be18
@ -63,12 +63,12 @@ class Client
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param string $method
|
* @param string $method
|
||||||
* @param object $request Request parameters
|
* @param object|null $request Request parameters
|
||||||
* @param string $responseType
|
* @param string $responseType
|
||||||
* @param string $serializeTo
|
* @param string $serializeTo
|
||||||
* @param bool $arrayOfObjects
|
* @param bool $arrayOfObjects
|
||||||
*
|
*
|
||||||
* @return object|null
|
* @return object|null
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -260,6 +260,11 @@ class HttpClient
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $errors
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
private function getErrors(array $errors)
|
private function getErrors(array $errors)
|
||||||
{
|
{
|
||||||
$errorString = '';
|
$errorString = '';
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
namespace RetailCrm\Mg\Bot\Model\Request;
|
namespace RetailCrm\Mg\Bot\Model\Request;
|
||||||
|
|
||||||
|
use JMS\Serializer\Annotation as Serializer;
|
||||||
use JMS\Serializer\Annotation\Accessor;
|
use JMS\Serializer\Annotation\Accessor;
|
||||||
use JMS\Serializer\Annotation\SkipWhenEmpty;
|
use JMS\Serializer\Annotation\SkipWhenEmpty;
|
||||||
use JMS\Serializer\Annotation\Type;
|
use JMS\Serializer\Annotation\Type;
|
||||||
@ -35,8 +36,7 @@ class CommandEditRequest
|
|||||||
*
|
*
|
||||||
* @Type("int")
|
* @Type("int")
|
||||||
* @Accessor(getter="getBotId",setter="setBotId")
|
* @Accessor(getter="getBotId",setter="setBotId")
|
||||||
*
|
* @SkipWhenEmpty()
|
||||||
* @Assert\NotBlank
|
|
||||||
*/
|
*/
|
||||||
private $botId;
|
private $botId;
|
||||||
|
|
||||||
@ -45,8 +45,7 @@ class CommandEditRequest
|
|||||||
*
|
*
|
||||||
* @Type("string")
|
* @Type("string")
|
||||||
* @Accessor(getter="getName",setter="setName")
|
* @Accessor(getter="getName",setter="setName")
|
||||||
*
|
* @SkipWhenEmpty()
|
||||||
* @Assert\NotBlank
|
|
||||||
*/
|
*/
|
||||||
private $name;
|
private $name;
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
namespace RetailCrm\Mg\Bot\Model\Request;
|
namespace RetailCrm\Mg\Bot\Model\Request;
|
||||||
|
|
||||||
|
use JMS\Serializer\Annotation as Serializer;
|
||||||
use JMS\Serializer\Annotation\Accessor;
|
use JMS\Serializer\Annotation\Accessor;
|
||||||
use JMS\Serializer\Annotation\SkipWhenEmpty;
|
use JMS\Serializer\Annotation\SkipWhenEmpty;
|
||||||
use JMS\Serializer\Annotation\Type;
|
use JMS\Serializer\Annotation\Type;
|
||||||
@ -34,6 +35,7 @@ class DialogAssignRequest
|
|||||||
*
|
*
|
||||||
* @Type("int")
|
* @Type("int")
|
||||||
* @Accessor(getter="getDialogId", setter="setDialogId")
|
* @Accessor(getter="getDialogId", setter="setDialogId")
|
||||||
|
* @SkipWhenEmpty()
|
||||||
*/
|
*/
|
||||||
private $dialogId;
|
private $dialogId;
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
namespace RetailCrm\Mg\Bot\Tests;
|
namespace RetailCrm\Mg\Bot\Tests;
|
||||||
|
|
||||||
use RetailCrm\Mg\Bot\Model\Constants;
|
|
||||||
use RetailCrm\Mg\Bot\Model\Request\MessageSendRequest;
|
|
||||||
use RetailCrm\Mg\Bot\Model\Response\FullFileResponse;
|
use RetailCrm\Mg\Bot\Model\Response\FullFileResponse;
|
||||||
use RetailCrm\Mg\Bot\Model\Response\UploadFileResponse;
|
use RetailCrm\Mg\Bot\Model\Response\UploadFileResponse;
|
||||||
use RetailCrm\Mg\Bot\Test\TestCase;
|
use RetailCrm\Mg\Bot\Test\TestCase;
|
||||||
|
Loading…
Reference in New Issue
Block a user