Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function listTransactions(array $filters, string $fields = 'all') |
||
22 | { |
||
23 | $filters_list = collect($filters)->isEmpty() ? '' : |
||
|
|||
24 | collect($filters)->map(function ($value, $key) { |
||
25 | return "{$key}={$value}&"; |
||
26 | })->implode(''); |
||
27 | |||
28 | $this->apiEndPoint = "v1/reporting/transactions?{$filters_list}fields={$fields}&page={$this->current_page}&page_size={$this->page_size}"; |
||
29 | |||
30 | $this->verb = 'get'; |
||
31 | |||
32 | return $this->doPayPalRequest(); |
||
33 | } |
||
59 |