Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | final class Tax extends BaseHttpApi |
||
15 | { |
||
16 | /** |
||
17 | * @throws ClientExceptionInterface |
||
18 | */ |
||
19 | public function get(): TaxModel |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @throws ClientExceptionInterface |
||
28 | * @throws \JsonException |
||
29 | */ |
||
30 | public function history(string $oktmo = null): HistoryRecords |
||
31 | { |
||
32 | $response = $this->httpPost('/taxes/history', [ |
||
33 | 'oktmo' => $oktmo, |
||
34 | ]); |
||
35 | |||
36 | return $this->hydrator->hydrate($response, HistoryRecords::class); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @throws ClientExceptionInterface |
||
41 | * @throws \JsonException |
||
42 | */ |
||
43 | public function payments(string $oktmo = null, bool $onlyPaid = false): PaymentRecords |
||
51 | } |
||
52 | } |
||
53 |