| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait Reporting |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * List all transactions. |
||
| 11 | * |
||
| 12 | * @param int $page |
||
| 13 | * @param int $page_size |
||
| 14 | * |
||
| 15 | * @throws \Throwable |
||
| 16 | * |
||
| 17 | * @return array|\Psr\Http\Message\StreamInterface|string |
||
| 18 | * |
||
| 19 | * @see https://developer.paypal.com/docs/api/transaction-search/v1/#transactions_get |
||
| 20 | */ |
||
| 21 | public function listTransactions($page = 1, $page_size = 100) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * List available balance. |
||
| 33 | * |
||
| 34 | * @param string $date |
||
| 35 | * |
||
| 36 | * @throws \Throwable |
||
| 37 | * |
||
| 38 | * @return array|\Psr\Http\Message\StreamInterface|string |
||
| 39 | * |
||
| 40 | * @see https://developer.paypal.com/docs/api/transaction-search/v1/#balances_get |
||
| 41 | */ |
||
| 42 | public function listBalances($date = '') |
||
| 54 |