mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-01 05:09:35 +00:00
20 lines
428 B
PHP
20 lines
428 B
PHP
<?php
|
|
|
|
namespace Anikeen\Id\Resources;
|
|
|
|
use Anikeen\Id\Concerns\HasBillable;
|
|
|
|
class Invoices extends BaseCollection
|
|
{
|
|
use HasBillable;
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public function find(string $id): ?Invoice
|
|
{
|
|
return (new Invoice(fn() => $this->billable->anikeenId()
|
|
->request('GET', sprintf('v1/invoices/%s', $id))))
|
|
->setBillable($this->billable);
|
|
}
|
|
} |