diff --git a/src/AtolOnlineClient/AtolOnline.php b/src/AtolOnlineClient/AtolOnline.php new file mode 100644 index 0000000..7057c88 --- /dev/null +++ b/src/AtolOnlineClient/AtolOnline.php @@ -0,0 +1,45 @@ +serializer = SerializerBuilder::create()->build(); + } + + public function createConfiguration() + { + return new Configuration(); + } + + public function deserializeOperationResponse($response) + { + return $this->serializer->deserialize( + $response, + OperationResponse::class, + 'json', + DeserializationContext::create()->setGroups(['post']) + ); + } + + /** + * @param $client + * @param Connection $connection + * @param $isDebug + * @return AtolOnlineApi + */ + public function getApi($client, Connection $connection, $isDebug) + { + return new AtolOnlineApi($client, $connection, $isDebug); + } +} \ No newline at end of file diff --git a/src/AtolOnlineClient/Configuration.php b/src/AtolOnlineClient/Configuration.php index 765a06b..d0d3c22 100644 --- a/src/AtolOnlineClient/Configuration.php +++ b/src/AtolOnlineClient/Configuration.php @@ -42,11 +42,11 @@ class Configuration implements ConfigurationInterface $connection->login = $connectionItem['login']; $connection->pass = $connectionItem['pass']; $connection->group = $connectionItem['group']; - $connection->legalEntity = $connectionItem['legalEntity']; +// $connection->legalEntity = $connectionItem['legalEntity']; $connection->sno = $connectionItem['sno']; $connection->enabled = (bool) $connectionItem['enabled']; - $connection->paymentTypes = $connectionItem['paymentTypes']; - $connection->paymentStatuses = $connectionItem['paymentStatuses']; +// $connection->paymentTypes = $connectionItem['paymentTypes']; +// $connection->paymentStatuses = $connectionItem['paymentStatuses']; $connection->ofd = $connectionItem['ofd']; $connection->version = $connectionItem['version']; $this->connections[] = $connection; @@ -143,4 +143,9 @@ class Configuration implements ConfigurationInterface return false; } + + protected function postLoadConfiguration() + { + + } }