for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Fenerum\API;
class Invoice extends Base
{
/**
* @return array|null
* @throws \Fenerum\API\Exceptions\FenerumApiException
*/
public function listInvoice(): ?array
return $this->client->get('invoices/');
}
* @param string $uuid
public function getInvoice(string $uuid): ?array
return $this->client->get('invoices/'.$uuid.'/');
* @param array $data
* @throws \Fenerum\API\Exceptions\FenerumValidationException
public function updateInvoice(array $data, string $uuid): ?array
$this->validate($data, [
'kickback_status' => 'string',
]);
return $this->client->patch('invoices/'.$uuid.'/', $data);