From 2d29ff3994f037a265801ac0fc8ff39a7bf6a8d3 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Thu, 28 May 2020 00:39:42 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B8=D1=81=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B5=D0=BA?= =?UTF-8?q?=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?UUID=20=D0=B2=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B5=20Kkt::get?= =?UTF-8?q?DocumentStatus()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AtolOnline/Api/Kkt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AtolOnline/Api/Kkt.php b/src/AtolOnline/Api/Kkt.php index 2ab02ae..979e464 100644 --- a/src/AtolOnline/Api/Kkt.php +++ b/src/AtolOnline/Api/Kkt.php @@ -11,10 +11,10 @@ namespace AtolOnline\Api; use AtolOnline\{Entities\Document, Exceptions\AtolCorrectionInfoException, + Exceptions\AtolInvalidUuidException, Exceptions\AtolKktLoginEmptyException, Exceptions\AtolKktLoginTooLongException, Exceptions\AtolKktPasswordEmptyException, - Exceptions\AtolUuidValidateException, Exceptions\AtolWrongDocumentTypeException }; use GuzzleHttp\Client; @@ -327,13 +327,13 @@ class Kkt extends Client * * @param string $uuid UUID регистрации * @return \AtolOnline\Api\KktResponse - * @throws \AtolOnline\Exceptions\AtolUuidValidateException Некорректный UUID документа + * @throws \AtolOnline\Exceptions\AtolInvalidUuidException Некорректный UUID документа */ public function getDocumentStatus(string $uuid) { $uuid = trim($uuid); if (!Uuid::isValid($uuid)) { - throw new AtolUuidValidateException($uuid); + throw new AtolInvalidUuidException($uuid); } $this->auth(); return $this->sendAtolRequest('GET', 'report/'.$uuid);