public function getAllPayouts(array $params = [])
    {
        return $this->get(self::$path . '?' . http_build_query($params))
            ->status('200')
            ->contentType('application/json')
            ->getJson();
    }
public function getAllPayouts(array $params = [])
    {
        return $this->get(self::$path . '?' . http_build_query($params))
            ->status('200')
            ->contentType('application/json')
            ->getJson();
    }
public function getAllPayouts ( array $ params = [ ] ) { return $ this -> get ( self :: $ path . '?' . http_build_query ( $ params ) ) -> status ( '200' ) -> contentType ( 'application/json' ) -> getJson ( ) ; }
Returns a collection of payouts.

@param array $params Additional query params to filter payouts.

@see https://developers.klarna.com/api/#settlements-api-get-all-payouts

@throws ConnectorException        When the API replies with an error response
@throws RequestException          When an error is encountered
@throws \RuntimeException         On an unexpected API response
@throws \RuntimeException         If the response content type is not JSON
@throws \InvalidArgumentException If the JSON cannot be parsed
@throws \LogicException           When Guzzle cannot populate the response

@return array Payouts data
Returns a collection of payouts .