{"action":"created","comment":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/44964875","id":44964875,"diff_hunk":"@@ -219,6 +235,42 @@ Em seguida, acesse o link para confirmar as autorizações\n   response.url\n ```\n \n+### Estorno de Transações\n+\n+Você pode estornar pagamentos que as transações estiverem com status: Paga (3), Disponível (4), Em disputa (5).\n+\n+```ruby\n+  refund = PagSeguro::Refund.new\n+  refund.transaction_code = \"D5D5BE444148407891E497B421975599\"\n+\n+  response = refund.register\n+\n+  if response.errors.any?\n+    puts response.errors.join(\"\\n\")\n+  else\n+    puts \"=> REFUND RESPONSE\"\n+    puts response.result\n+  end\n+```\n+\n+### Cancelamento de Transações\n+\n+Você pode cancelar transações que estiverem com status: Aguardando pagamento ou Em análise.\n+\n+```ruby\n+  cancellation = PagSeguro::TransactionCancellation.new\n+  cancellation.transaction_code = \"AFB8FCF29496401681257C1ECE3A98FF\"\n+\n+  response = cancellation.register","path":"README.md","position":71,"original_position":71,"commit_id":"143f2da253ab9641ba96e3d17b85a78935007e3b","original_commit_id":"143f2da253ab9641ba96e3d17b85a78935007e3b","user":{"login":"dmitryrck","id":53300,"avatar_url":"https://avatars.githubusercontent.com/u/53300?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryrck","html_url":"https://github.com/dmitryrck","followers_url":"https://api.github.com/users/dmitryrck/followers","following_url":"https://api.github.com/users/dmitryrck/following{/other_user}","gists_url":"https://api.github.com/users/dmitryrck/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryrck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryrck/subscriptions","organizations_url":"https://api.github.com/users/dmitryrck/orgs","repos_url":"https://api.github.com/users/dmitryrck/repos","events_url":"https://api.github.com/users/dmitryrck/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryrck/received_events","type":"User","site_admin":false},"body":"Or update `README.md`… this branch is already approved, to change this code, it will be resubmited :/ ","created_at":"2015-11-16T18:52:46Z","updated_at":"2015-11-16T18:52:46Z","html_url":"https://github.com/pagseguro/ruby/pull/153#discussion_r44964875","pull_request_url":"https://api.github.com/repos/pagseguro/ruby/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/44964875"},"html":{"href":"https://github.com/pagseguro/ruby/pull/153#discussion_r44964875"},"pull_request":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/153","id":50844385,"html_url":"https://github.com/pagseguro/ruby/pull/153","diff_url":"https://github.com/pagseguro/ruby/pull/153.diff","patch_url":"https://github.com/pagseguro/ruby/pull/153.patch","issue_url":"https://api.github.com/repos/pagseguro/ruby/issues/153","number":153,"state":"open","locked":false,"title":"2.4.0 Release","user":{"login":"dmitryrck","id":53300,"avatar_url":"https://avatars.githubusercontent.com/u/53300?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryrck","html_url":"https://github.com/dmitryrck","followers_url":"https://api.github.com/users/dmitryrck/followers","following_url":"https://api.github.com/users/dmitryrck/following{/other_user}","gists_url":"https://api.github.com/users/dmitryrck/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryrck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryrck/subscriptions","organizations_url":"https://api.github.com/users/dmitryrck/orgs","repos_url":"https://api.github.com/users/dmitryrck/repos","events_url":"https://api.github.com/users/dmitryrck/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryrck/received_events","type":"User","site_admin":false},"body":"2.4.0 Release","created_at":"2015-11-16T18:05:57Z","updated_at":"2015-11-16T18:52:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dccc782cfac3b2976efc1945bda5cf48e9e927d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pagseguro/ruby/pulls/153/commits","review_comments_url":"https://api.github.com/repos/pagseguro/ruby/pulls/153/comments","review_comment_url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pagseguro/ruby/issues/153/comments","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/143f2da253ab9641ba96e3d17b85a78935007e3b","head":{"label":"pagseguro:2.4.0-dev","ref":"2.4.0-dev","sha":"143f2da253ab9641ba96e3d17b85a78935007e3b","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","created_at":"2013-04-23T20:14:45Z","updated_at":"2015-11-07T15:19:06Z","pushed_at":"2015-11-16T18:06:20Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":804,"stargazers_count":65,"watchers_count":65,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":6,"forks":50,"open_issues":6,"watchers":65,"default_branch":"master"}},"base":{"label":"pagseguro:master","ref":"master","sha":"1180f4a8af730473bbc52985cfc6cc70cf2893b3","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","created_at":"2013-04-23T20:14:45Z","updated_at":"2015-11-07T15:19:06Z","pushed_at":"2015-11-16T18:06:20Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":804,"stargazers_count":65,"watchers_count":65,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":6,"forks":50,"open_issues":6,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/153"},"html":{"href":"https://github.com/pagseguro/ruby/pull/153"},"issue":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/153"},"comments":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/pagseguro/ruby/statuses/143f2da253ab9641ba96e3d17b85a78935007e3b"}}}}