Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
46 | public function payments(?string $oktmo = null, bool $onlyPaid = false): PaymentRecords |
||
47 | { |
||
48 | $response = $this->httpPost('/taxes/payments', [ |
||
49 | 'oktmo' => $oktmo, |
||
50 | 'onlyPaid' => $onlyPaid, |
||
51 | ]); |
||
52 | |||
53 | if ($response->getStatusCode() >= 400) { |
||
54 | (new ErrorHandler())->handleResponse($response); |
||
55 | } |
||
56 | |||
57 | return $this->hydrator->hydrate($response, PaymentRecords::class); |
||
58 | } |
||
60 |