mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-14 06:06:18 +00:00
25 lines
582 B
PHP
25 lines
582 B
PHP
<?php
|
|
|
|
namespace Anikeen\Id\Concerns;
|
|
|
|
use Anikeen\Id\ApiOperations\Request;
|
|
use Anikeen\Id\Exceptions\RequestRequiresClientIdException;
|
|
use Anikeen\Id\Resources\Invoices;
|
|
use GuzzleHttp\Exception\GuzzleException;
|
|
|
|
trait ManagesInvoices
|
|
{
|
|
use Request;
|
|
|
|
/**
|
|
* Get invoices from the current user.
|
|
*
|
|
* @throws RequestRequiresClientIdException
|
|
* @throws GuzzleException
|
|
*/
|
|
public function invoices(): Invoices
|
|
{
|
|
return (new Invoices($this->request('GET', 'v1/invoices')))
|
|
->setBillable($this);
|
|
}
|
|
} |