| 1 | <?php |
||
| 7 | class Invoice extends Base |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return array|null |
||
| 11 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
| 12 | */ |
||
| 13 | public function listInvoice(): ?array |
||
| 14 | { |
||
| 15 | return $this->client->get('invoices/'); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $uuid |
||
| 20 | * @return array|null |
||
| 21 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
| 22 | */ |
||
| 23 | public function getInvoice(string $uuid): ?array |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $data |
||
| 30 | * @param string $uuid |
||
| 31 | * @return array|null |
||
| 32 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
| 33 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
| 34 | */ |
||
| 35 | public function updateInvoice(array $data, string $uuid): ?array |
||
| 43 | } |
||
| 44 |