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