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