BalanceService.php 781 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service;
  4. class BalanceService extends \Stripe\Service\AbstractService
  5. {
  6. /**
  7. * Retrieves the current account balance, based on the authentication that was used
  8. * to make the request. For a sample request, see <a
  9. * href="/docs/connect/account-balances#accounting-for-negative-balances">Accounting
  10. * for negative balances</a>.
  11. *
  12. * @param null|array $params
  13. * @param null|array|\Stripe\Util\RequestOptions $opts
  14. *
  15. * @throws \Stripe\Exception\ApiErrorException if the request fails
  16. *
  17. * @return \Stripe\Balance
  18. */
  19. public function retrieve($params = null, $opts = null)
  20. {
  21. return $this->request('get', '/v1/balance', $params, $opts);
  22. }
  23. }