public function all($chargeId = null, array $parameters = [])
    {
        if (! $chargeId) {
            return $this->_get('refunds', $parameters);
        }

        return $this->_get("charges/{$chargeId}/refunds", $parameters);
    }
public function all($chargeId = null, array $parameters = [])
    {
        if (! $chargeId) {
            return $this->_get('refunds', $parameters);
        }

        return $this->_get("charges/{$chargeId}/refunds", $parameters);
    }
public function all ( $ chargeId = null , array $ parameters = [ ] ) { if ( ! $ chargeId ) { return $ this -> _get ( 'refunds' , $ parameters ) ; } return $ this -> _get ( "charges/{$chargeId}/refunds" , $ parameters ) ; }
Lists all the refunds of the current Stripe account
or lists all the refunds for the given charge.

@param  string|null  $chargeId
@param  array  $parameters
@return array
Lists all the refunds of the current Stripe account or lists all the refunds for the given charge .