atol-online/src/TestEnvParams.php

82 lines
2.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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;
use JetBrains\PhpStorm\ArrayShape;
/**
* Константы, определяющие параметры тестовых сред
*
* @see https://online.atol.ru/files/ffd/test_sreda.txt Параметры настройки тестовых сред
*/
final class TestEnvParams
{
/**
* Возвращает данные для работы с тестовой средой АТОЛ Онлайн ФФД 1.05
*
* @return string[]
*/
#[ArrayShape([
'endpoint' => "string",
'company_name' => "string",
'inn' => "string",
'payment_address' => "string",
'group' => "string",
'login' => "string",
'password' => "string",
'endpoint_ofd' => "string",
])]
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[]
* @noinspection PhpUnused
*/
#[ArrayShape([
'endpoint' => "string",
'company_name' => "string",
'inn' => "string",
'payment_address' => "string",
'group' => "string",
'login' => "string",
'password' => "string",
'endpoint_ofd' => "string",
])]
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' => '',
];
}
}