public static function configure($params = array()) { BoletoSimples::$configuration = new BoletoSimples\Configuration($params); }
private static function _sendRequest($method, $path, $options = []) { $options = array_merge(self::$default_options, $options); $request = self::$client->createRequest($method, $path, $options); $response = self::$client->send($request); \BoletoSimples::$last_request = new LastRequest($request, $response); if ($response->getStatusCode() >= 400 && $response->getStatusCode() <= 599) { new ResponseError($response); } return $response; }