2021-11-18 04:24:30 +00:00
|
|
|
|
<?php
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
|
|
|
|
*
|
|
|
|
|
* This code is licensed under MIT.
|
|
|
|
|
* Этот код распространяется по лицензии MIT.
|
|
|
|
|
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
|
|
namespace AtolOnline;
|
|
|
|
|
|
2021-12-12 06:50:29 +00:00
|
|
|
|
use JetBrains\PhpStorm\ArrayShape;
|
|
|
|
|
|
2021-11-18 04:24:30 +00:00
|
|
|
|
/**
|
2021-11-27 16:57:07 +00:00
|
|
|
|
* Константы, определяющие параметры тестовых сред
|
2021-11-18 04:24:30 +00:00
|
|
|
|
*
|
|
|
|
|
* @see https://online.atol.ru/files/ffd/test_sreda.txt Параметры настройки тестовых сред
|
|
|
|
|
*/
|
2021-11-27 16:57:07 +00:00
|
|
|
|
final class TestEnvParams
|
2021-11-18 04:24:30 +00:00
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Возвращает данные для работы с тестовой средой АТОЛ Онлайн ФФД 1.05
|
|
|
|
|
*
|
|
|
|
|
* @return string[]
|
|
|
|
|
*/
|
2021-12-12 06:50:29 +00:00
|
|
|
|
#[ArrayShape([
|
|
|
|
|
'endpoint' => "string",
|
|
|
|
|
'company_name' => "string",
|
|
|
|
|
'inn' => "string",
|
|
|
|
|
'payment_address' => "string",
|
|
|
|
|
'group' => "string",
|
|
|
|
|
'login' => "string",
|
|
|
|
|
'password' => "string",
|
|
|
|
|
'endpoint_ofd' => "string",
|
|
|
|
|
])]
|
2021-11-18 04:24:30 +00:00
|
|
|
|
public static function FFD105(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'endpoint' => 'https://testonline.atol.ru/possystem/v4/',
|
|
|
|
|
'company_name' => 'АТОЛ',
|
|
|
|
|
'inn' => '5544332219',
|
|
|
|
|
'payment_address' => 'https://v4.online.atol.ru',
|
|
|
|
|
'group' => 'v4-online-atol-ru_4179',
|
|
|
|
|
'login' => 'v4-online-atol-ru',
|
|
|
|
|
'password' => 'iGFFuihss',
|
|
|
|
|
'endpoint_ofd' => 'https://consumer.1-ofd-test.ru/v1',
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Возвращает данные для работы с тестовой средой АТОЛ Онлайн ФФД 1.2
|
|
|
|
|
*
|
|
|
|
|
* @return string[]
|
2021-12-06 11:21:42 +00:00
|
|
|
|
* @noinspection PhpUnused
|
2021-11-18 04:24:30 +00:00
|
|
|
|
*/
|
2021-12-12 06:50:29 +00:00
|
|
|
|
#[ArrayShape([
|
|
|
|
|
'endpoint' => "string",
|
|
|
|
|
'company_name' => "string",
|
|
|
|
|
'inn' => "string",
|
|
|
|
|
'payment_address' => "string",
|
|
|
|
|
'group' => "string",
|
|
|
|
|
'login' => "string",
|
|
|
|
|
'password' => "string",
|
|
|
|
|
'endpoint_ofd' => "string",
|
|
|
|
|
])]
|
2021-11-18 04:24:30 +00:00
|
|
|
|
public static function FFD12(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'endpoint' => 'https://testonline.atol.ru/possystem/v5/',
|
|
|
|
|
'company_name' => 'АТОЛ',
|
|
|
|
|
'inn' => '5544332219',
|
|
|
|
|
'payment_address' => 'https://v5.online.atol.ru',
|
|
|
|
|
'group' => 'v5-online-atol-ru_5179',
|
|
|
|
|
'login' => 'v5-online-atol-ru',
|
|
|
|
|
'password' => 'zUr0OxfI',
|
|
|
|
|
'endpoint_ofd' => '',
|
|
|
|
|
];
|
|
|
|
|
}
|
2021-11-27 16:57:07 +00:00
|
|
|
|
}
|