Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait Reporting |
||
8 | { |
||
9 | /** |
||
10 | * List all transactions. |
||
11 | * |
||
12 | * @param array $filters |
||
13 | * @param string $fields |
||
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(array $filters, string $fields = 'all') |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * List available balance. |
||
37 | * |
||
38 | * @param string $date |
||
39 | * @param string $balance_currency |
||
40 | * |
||
41 | * @throws \Throwable |
||
42 | * |
||
43 | * @return array|\Psr\Http\Message\StreamInterface|string |
||
44 | * |
||
45 | * @see https://developer.paypal.com/docs/api/transaction-search/v1/#balances_get |
||
46 | */ |
||
47 | public function listBalances(string $date = '', string $balance_currency = '') |
||
59 |