Метод KktMonitor::auth() перенесён в AtolClient для совместимости в фискализатором

This commit is contained in:
2021-11-21 00:15:59 +08:00
parent b35b9bfa87
commit e89369348a
2 changed files with 12 additions and 17 deletions

View File

@@ -44,21 +44,6 @@ class KktMonitor extends AtolClient
: 'https://online.atol.ru/api/kkt/v1';
}
/**
* @inheritDoc
*/
public function auth(?string $login = null, ?string $password = null): bool
{
if (empty($this->getToken())) {
$login && $this->setLogin($login);
$password && $this->setPassword($password);
if ($token = $this->doAuth()) {
$this->setToken($token);
}
}
return !empty($this->getToken());
}
/**
* Получает от API информацию обо всех ККТ и ФН в рамках группы
*