{"action":"created","comment":{"url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/comments/33480333","id":33480333,"diff_hunk":"@@ -0,0 +1,37 @@\n+module BraspagRest\n+  class Request\n+    class << self\n+      SALE_ENDPOINT = '/v2/sales/'\n+\n+      def authorize(request_id, params)\n+        gateway_response = RestClient.post(sale_url, params.to_json, default_headers.merge('RequestId' => request_id))\n+        BraspagRest::Response.new(gateway_response)\n+      rescue RestClient::ExceptionWithResponse => e\n+        config.logger.warn(\"[BraspagRest] #{e} #slack\") if config.log_enabled?","path":"lib/braspag-rest/request.rb","position":10,"original_position":10,"commit_id":"c47f9123792d98d66fa578185e1257c7e34a1e7d","original_commit_id":"c47f9123792d98d66fa578185e1257c7e34a1e7d","user":{"login":"antoniofilho","id":469113,"avatar_url":"https://avatars.githubusercontent.com/u/469113?v=3","gravatar_id":"","url":"https://api.github.com/users/antoniofilho","html_url":"https://github.com/antoniofilho","followers_url":"https://api.github.com/users/antoniofilho/followers","following_url":"https://api.github.com/users/antoniofilho/following{/other_user}","gists_url":"https://api.github.com/users/antoniofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/antoniofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoniofilho/subscriptions","organizations_url":"https://api.github.com/users/antoniofilho/orgs","repos_url":"https://api.github.com/users/antoniofilho/repos","events_url":"https://api.github.com/users/antoniofilho/events{/privacy}","received_events_url":"https://api.github.com/users/antoniofilho/received_events","type":"User","site_admin":false},"body":"is true... I forgot :smile: ","created_at":"2015-06-29T16:06:53Z","updated_at":"2015-06-29T16:06:53Z","html_url":"https://github.com/Dinda-com-br/braspag-rest/pull/1#discussion_r33480333","pull_request_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/comments/33480333"},"html":{"href":"https://github.com/Dinda-com-br/braspag-rest/pull/1#discussion_r33480333"},"pull_request":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1","id":38788486,"html_url":"https://github.com/Dinda-com-br/braspag-rest/pull/1","diff_url":"https://github.com/Dinda-com-br/braspag-rest/pull/1.diff","patch_url":"https://github.com/Dinda-com-br/braspag-rest/pull/1.patch","issue_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/1","number":1,"state":"open","locked":false,"title":"Create an authorized sale","user":{"login":"antoniofilho","id":469113,"avatar_url":"https://avatars.githubusercontent.com/u/469113?v=3","gravatar_id":"","url":"https://api.github.com/users/antoniofilho","html_url":"https://github.com/antoniofilho","followers_url":"https://api.github.com/users/antoniofilho/followers","following_url":"https://api.github.com/users/antoniofilho/following{/other_user}","gists_url":"https://api.github.com/users/antoniofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/antoniofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoniofilho/subscriptions","organizations_url":"https://api.github.com/users/antoniofilho/orgs","repos_url":"https://api.github.com/users/antoniofilho/repos","events_url":"https://api.github.com/users/antoniofilho/events{/privacy}","received_events_url":"https://api.github.com/users/antoniofilho/received_events","type":"User","site_admin":false},"body":"This PR introduces:\r\n\r\n* Models structure\r\n* Sales Authorization\r\n* Configurations and gem setup","created_at":"2015-06-29T15:55:01Z","updated_at":"2015-06-29T16:06:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d5e22d43347ba5eec5b34cd882c9040c14b954c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/1/comments","statuses_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/statuses/c47f9123792d98d66fa578185e1257c7e34a1e7d","head":{"label":"Dinda-com-br:af-create-a-sale","ref":"af-create-a-sale","sha":"c47f9123792d98d66fa578185e1257c7e34a1e7d","user":{"login":"Dinda-com-br","id":3978522,"avatar_url":"https://avatars.githubusercontent.com/u/3978522?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinda-com-br","html_url":"https://github.com/Dinda-com-br","followers_url":"https://api.github.com/users/Dinda-com-br/followers","following_url":"https://api.github.com/users/Dinda-com-br/following{/other_user}","gists_url":"https://api.github.com/users/Dinda-com-br/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinda-com-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinda-com-br/subscriptions","organizations_url":"https://api.github.com/users/Dinda-com-br/orgs","repos_url":"https://api.github.com/users/Dinda-com-br/repos","events_url":"https://api.github.com/users/Dinda-com-br/events{/privacy}","received_events_url":"https://api.github.com/users/Dinda-com-br/received_events","type":"Organization","site_admin":false},"repo":{"id":38059740,"name":"braspag-rest","full_name":"Dinda-com-br/braspag-rest","owner":{"login":"Dinda-com-br","id":3978522,"avatar_url":"https://avatars.githubusercontent.com/u/3978522?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinda-com-br","html_url":"https://github.com/Dinda-com-br","followers_url":"https://api.github.com/users/Dinda-com-br/followers","following_url":"https://api.github.com/users/Dinda-com-br/following{/other_user}","gists_url":"https://api.github.com/users/Dinda-com-br/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinda-com-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinda-com-br/subscriptions","organizations_url":"https://api.github.com/users/Dinda-com-br/orgs","repos_url":"https://api.github.com/users/Dinda-com-br/repos","events_url":"https://api.github.com/users/Dinda-com-br/events{/privacy}","received_events_url":"https://api.github.com/users/Dinda-com-br/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Dinda-com-br/braspag-rest","description":"Gem to use Braspag gateway in his REST version","fork":false,"url":"https://api.github.com/repos/Dinda-com-br/braspag-rest","forks_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/forks","keys_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/teams","hooks_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/hooks","issue_events_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/events{/number}","events_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/events","assignees_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/assignees{/user}","branches_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/branches{/branch}","tags_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/tags","blobs_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/languages","stargazers_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/stargazers","contributors_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/contributors","subscribers_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/subscribers","subscription_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/subscription","commits_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/contents/{+path}","compare_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/merges","archive_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/downloads","issues_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues{/number}","pulls_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/labels{/name}","releases_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/releases{/id}","created_at":"2015-06-25T16:08:53Z","updated_at":"2015-06-25T16:43:28Z","pushed_at":"2015-06-29T15:55:01Z","git_url":"git://github.com/Dinda-com-br/braspag-rest.git","ssh_url":"git@github.com:Dinda-com-br/braspag-rest.git","clone_url":"https://github.com/Dinda-com-br/braspag-rest.git","svn_url":"https://github.com/Dinda-com-br/braspag-rest","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Dinda-com-br:master","ref":"master","sha":"47543a9f8c928114b12311b868540e9676f5bf33","user":{"login":"Dinda-com-br","id":3978522,"avatar_url":"https://avatars.githubusercontent.com/u/3978522?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinda-com-br","html_url":"https://github.com/Dinda-com-br","followers_url":"https://api.github.com/users/Dinda-com-br/followers","following_url":"https://api.github.com/users/Dinda-com-br/following{/other_user}","gists_url":"https://api.github.com/users/Dinda-com-br/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinda-com-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinda-com-br/subscriptions","organizations_url":"https://api.github.com/users/Dinda-com-br/orgs","repos_url":"https://api.github.com/users/Dinda-com-br/repos","events_url":"https://api.github.com/users/Dinda-com-br/events{/privacy}","received_events_url":"https://api.github.com/users/Dinda-com-br/received_events","type":"Organization","site_admin":false},"repo":{"id":38059740,"name":"braspag-rest","full_name":"Dinda-com-br/braspag-rest","owner":{"login":"Dinda-com-br","id":3978522,"avatar_url":"https://avatars.githubusercontent.com/u/3978522?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinda-com-br","html_url":"https://github.com/Dinda-com-br","followers_url":"https://api.github.com/users/Dinda-com-br/followers","following_url":"https://api.github.com/users/Dinda-com-br/following{/other_user}","gists_url":"https://api.github.com/users/Dinda-com-br/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinda-com-br/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinda-com-br/subscriptions","organizations_url":"https://api.github.com/users/Dinda-com-br/orgs","repos_url":"https://api.github.com/users/Dinda-com-br/repos","events_url":"https://api.github.com/users/Dinda-com-br/events{/privacy}","received_events_url":"https://api.github.com/users/Dinda-com-br/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Dinda-com-br/braspag-rest","description":"Gem to use Braspag gateway in his REST version","fork":false,"url":"https://api.github.com/repos/Dinda-com-br/braspag-rest","forks_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/forks","keys_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/teams","hooks_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/hooks","issue_events_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/events{/number}","events_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/events","assignees_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/assignees{/user}","branches_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/branches{/branch}","tags_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/tags","blobs_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/languages","stargazers_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/stargazers","contributors_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/contributors","subscribers_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/subscribers","subscription_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/subscription","commits_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/contents/{+path}","compare_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/merges","archive_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/downloads","issues_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues{/number}","pulls_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/labels{/name}","releases_url":"https://api.github.com/repos/Dinda-com-br/braspag-rest/releases{/id}","created_at":"2015-06-25T16:08:53Z","updated_at":"2015-06-25T16:43:28Z","pushed_at":"2015-06-29T15:55:01Z","git_url":"git://github.com/Dinda-com-br/braspag-rest.git","ssh_url":"git@github.com:Dinda-com-br/braspag-rest.git","clone_url":"https://github.com/Dinda-com-br/braspag-rest.git","svn_url":"https://github.com/Dinda-com-br/braspag-rest","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1"},"html":{"href":"https://github.com/Dinda-com-br/braspag-rest/pull/1"},"issue":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/1"},"comments":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Dinda-com-br/braspag-rest/statuses/c47f9123792d98d66fa578185e1257c7e34a1e7d"}}}}