Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function transactions(string $account = null) |
||
16 | { |
||
17 | $results = $this->expand('merchant') |
||
18 | ->call('GET', 'transactions', [ |
||
19 | 'account_id' => $account ?? $this->getAccountId(), |
||
20 | ], [], 'transactions', false); |
||
21 | |||
22 | return collect($results)->map(function ($item) { |
||
23 | return new Transaction($item, $this); |
||
24 | }); |
||
41 |