| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function listBalances(string $date = '', string $balance_currency = '') |
||
| 48 | { |
||
| 49 | $date = empty($date) ? Carbon::now()->toIso8601ZuluString() : Carbon::parse($date)->toIso8601ZuluString(); |
||
| 50 | $currency = empty($balance_currency) ? $this->getCurrency() : $balance_currency; |
||
| 51 | |||
| 52 | $this->apiEndPoint = "v1/reporting/balances?currency_code={$currency}&as_of_time={$date}"; |
||
| 53 | |||
| 54 | $this->verb = 'get'; |
||
| 55 | |||
| 56 | return $this->doPayPalRequest(); |
||
| 57 | } |
||
| 59 |