1 | <?php declare(strict_types=1); |
||
11 | class FioPay extends Fio |
||
12 | { |
||
13 | |||
14 | private const LANGS = ['en', 'cs', 'sk']; |
||
15 | private const EXTENSIONS = ['xml', 'abo']; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $uploadExtension; |
||
19 | |||
20 | /** @var string */ |
||
21 | private $language = 'cs'; |
||
22 | |||
23 | /** @var IResponse */ |
||
24 | private $response; |
||
25 | |||
26 | /** @var Pay\XMLFile */ |
||
27 | private $xmlFile; |
||
28 | |||
29 | /** @var Log */ |
||
30 | private $log; |
||
31 | |||
32 | |||
33 | public function __construct(Request\IQueue $queue, Account\FioAccount $account, Pay\XMLFile $xmlFile) |
||
38 | |||
39 | |||
40 | public function enableLog(): Log |
||
44 | |||
45 | |||
46 | public function createEuro(float $amount, string $accountTo, string $name, string $bic = ''): Pay\Payment\Euro |
||
59 | |||
60 | |||
61 | public function createNational(float $amount, string $accountTo, string $bankCode = ''): Pay\Payment\National |
||
72 | |||
73 | |||
74 | public function createInternational(float $amount, string $accountTo, string $name, string $street, string $city, string $country, string $info, string $bic = ''): Pay\Payment\International |
||
91 | |||
92 | |||
93 | public function getUploadResponse(): IResponse |
||
97 | |||
98 | |||
99 | /** |
||
100 | * @return static |
||
101 | */ |
||
102 | public function addPayment(Pay\Payment\Property $property) |
||
107 | |||
108 | |||
109 | /** |
||
110 | * @param string|Pay\Payment\Property $filename |
||
111 | */ |
||
112 | public function send($filename = null): IResponse |
||
139 | |||
140 | |||
141 | /** |
||
142 | * Response language. |
||
143 | * @return static |
||
144 | */ |
||
145 | public function setLanguage(string $lang) |
||
150 | |||
151 | |||
152 | private static function getUrl(): string |
||
156 | |||
157 | |||
158 | private function setUploadExtension(string $extension): void |
||
162 | |||
163 | } |
||
164 |