payload: {"action":"created","comment":{"url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/comments/310888990","pull_request_review_id":271125313,"id":310888990,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMDg4ODk5MA==","diff_hunk":"@@ -0,0 +1,30 @@\n+class SubscriptionPostbackService\n+    def initialize\n+\n+    end\n+\n+    def process_status_changed_postback(status_changed_params)\n+        subscription_id = status_changed_params[:id]\n+        raise 'O id da assiantura não foi informado' unless !subscription_id.empty?\n+\n+        subscription = Subscription.find_by_pagarme_identifier(subscription_id)\n+        raise 'Assinatura não encontrada' unless !subscription.nil?","path":"app/services/subscription_postback_service.rb","position":11,"original_position":11,"commit_id":"1ccf3c8262ab8dbb6acab082afc71a63994859f5","original_commit_id":"1ccf3c8262ab8dbb6acab082afc71a63994859f5","user":{"login":"igorrocha","id":9059660,"node_id":"MDQ6VXNlcjkwNTk2NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/9059660?v=4","gravatar_id":"","url":"https://api.github.com/users/igorrocha","html_url":"https://github.com/igorrocha","followers_url":"https://api.github.com/users/igorrocha/followers","following_url":"https://api.github.com/users/igorrocha/following{/other_user}","gists_url":"https://api.github.com/users/igorrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/igorrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorrocha/subscriptions","organizations_url":"https://api.github.com/users/igorrocha/orgs","repos_url":"https://api.github.com/users/igorrocha/repos","events_url":"https://api.github.com/users/igorrocha/events{/privacy}","received_events_url":"https://api.github.com/users/igorrocha/received_events","type":"User","site_admin":false},"body":"Mesma coisa aqui, poderia evitar a dupla negação.","created_at":"2019-08-06T05:45:32Z","updated_at":"2019-08-06T05:46:50Z","html_url":"https://github.com/institutoreditus/reditus-app/pull/28#discussion_r310888990","pull_request_url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/comments/310888990"},"html":{"href":"https://github.com/institutoreditus/reditus-app/pull/28#discussion_r310888990"},"pull_request":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28","id":304018649,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA0MDE4NjQ5","html_url":"https://github.com/institutoreditus/reditus-app/pull/28","diff_url":"https://github.com/institutoreditus/reditus-app/pull/28.diff","patch_url":"https://github.com/institutoreditus/reditus-app/pull/28.patch","issue_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues/28","number":28,"state":"open","locked":false,"title":"Implementing recurring payments","user":{"login":"rrozendo","id":41521484,"node_id":"MDQ6VXNlcjQxNTIxNDg0","avatar_url":"https://avatars1.githubusercontent.com/u/41521484?v=4","gravatar_id":"","url":"https://api.github.com/users/rrozendo","html_url":"https://github.com/rrozendo","followers_url":"https://api.github.com/users/rrozendo/followers","following_url":"https://api.github.com/users/rrozendo/following{/other_user}","gists_url":"https://api.github.com/users/rrozendo/gists{/gist_id}","starred_url":"https://api.github.com/users/rrozendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrozendo/subscriptions","organizations_url":"https://api.github.com/users/rrozendo/orgs","repos_url":"https://api.github.com/users/rrozendo/repos","events_url":"https://api.github.com/users/rrozendo/events{/privacy}","received_events_url":"https://api.github.com/users/rrozendo/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-03T18:51:07Z","updated_at":"2019-08-06T05:46:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72a856393ba5d4bd069c457b561fb7d87f7fd33f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rfamorim","id":2955826,"node_id":"MDQ6VXNlcjI5NTU4MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/2955826?v=4","gravatar_id":"","url":"https://api.github.com/users/rfamorim","html_url":"https://github.com/rfamorim","followers_url":"https://api.github.com/users/rfamorim/followers","following_url":"https://api.github.com/users/rfamorim/following{/other_user}","gists_url":"https://api.github.com/users/rfamorim/gists{/gist_id}","starred_url":"https://api.github.com/users/rfamorim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfamorim/subscriptions","organizations_url":"https://api.github.com/users/rfamorim/orgs","repos_url":"https://api.github.com/users/rfamorim/repos","events_url":"https://api.github.com/users/rfamorim/events{/privacy}","received_events_url":"https://api.github.com/users/rfamorim/received_events","type":"User","site_admin":false},{"login":"rcardosoferreira","id":13063509,"node_id":"MDQ6VXNlcjEzMDYzNTA5","avatar_url":"https://avatars1.githubusercontent.com/u/13063509?v=4","gravatar_id":"","url":"https://api.github.com/users/rcardosoferreira","html_url":"https://github.com/rcardosoferreira","followers_url":"https://api.github.com/users/rcardosoferreira/followers","following_url":"https://api.github.com/users/rcardosoferreira/following{/other_user}","gists_url":"https://api.github.com/users/rcardosoferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/rcardosoferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcardosoferreira/subscriptions","organizations_url":"https://api.github.com/users/rcardosoferreira/orgs","repos_url":"https://api.github.com/users/rcardosoferreira/repos","events_url":"https://api.github.com/users/rcardosoferreira/events{/privacy}","received_events_url":"https://api.github.com/users/rcardosoferreira/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28/commits","review_comments_url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28/comments","review_comment_url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues/28/comments","statuses_url":"https://api.github.com/repos/institutoreditus/reditus-app/statuses/1ccf3c8262ab8dbb6acab082afc71a63994859f5","head":{"label":"institutoreditus:feature/recurring_payment","ref":"feature/recurring_payment","sha":"1ccf3c8262ab8dbb6acab082afc71a63994859f5","user":{"login":"institutoreditus","id":39625990,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NjI1OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/39625990?v=4","gravatar_id":"","url":"https://api.github.com/users/institutoreditus","html_url":"https://github.com/institutoreditus","followers_url":"https://api.github.com/users/institutoreditus/followers","following_url":"https://api.github.com/users/institutoreditus/following{/other_user}","gists_url":"https://api.github.com/users/institutoreditus/gists{/gist_id}","starred_url":"https://api.github.com/users/institutoreditus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/institutoreditus/subscriptions","organizations_url":"https://api.github.com/users/institutoreditus/orgs","repos_url":"https://api.github.com/users/institutoreditus/repos","events_url":"https://api.github.com/users/institutoreditus/events{/privacy}","received_events_url":"https://api.github.com/users/institutoreditus/received_events","type":"Organization","site_admin":false},"repo":{"id":142789409,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI3ODk0MDk=","name":"reditus-app","full_name":"institutoreditus/reditus-app","private":false,"owner":{"login":"institutoreditus","id":39625990,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NjI1OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/39625990?v=4","gravatar_id":"","url":"https://api.github.com/users/institutoreditus","html_url":"https://github.com/institutoreditus","followers_url":"https://api.github.com/users/institutoreditus/followers","following_url":"https://api.github.com/users/institutoreditus/following{/other_user}","gists_url":"https://api.github.com/users/institutoreditus/gists{/gist_id}","starred_url":"https://api.github.com/users/institutoreditus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/institutoreditus/subscriptions","organizations_url":"https://api.github.com/users/institutoreditus/orgs","repos_url":"https://api.github.com/users/institutoreditus/repos","events_url":"https://api.github.com/users/institutoreditus/events{/privacy}","received_events_url":"https://api.github.com/users/institutoreditus/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/institutoreditus/reditus-app","description":"Fundo de endowment da UFRJ","fork":false,"url":"https://api.github.com/repos/institutoreditus/reditus-app","forks_url":"https://api.github.com/repos/institutoreditus/reditus-app/forks","keys_url":"https://api.github.com/repos/institutoreditus/reditus-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/institutoreditus/reditus-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/institutoreditus/reditus-app/teams","hooks_url":"https://api.github.com/repos/institutoreditus/reditus-app/hooks","issue_events_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues/events{/number}","events_url":"https://api.github.com/repos/institutoreditus/reditus-app/events","assignees_url":"https://api.github.com/repos/institutoreditus/reditus-app/assignees{/user}","branches_url":"https://api.github.com/repos/institutoreditus/reditus-app/branches{/branch}","tags_url":"https://api.github.com/repos/institutoreditus/reditus-app/tags","blobs_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/institutoreditus/reditus-app/statuses/{sha}","languages_url":"https://api.github.com/repos/institutoreditus/reditus-app/languages","stargazers_url":"https://api.github.com/repos/institutoreditus/reditus-app/stargazers","contributors_url":"https://api.github.com/repos/institutoreditus/reditus-app/contributors","subscribers_url":"https://api.github.com/repos/institutoreditus/reditus-app/subscribers","subscription_url":"https://api.github.com/repos/institutoreditus/reditus-app/subscription","commits_url":"https://api.github.com/repos/institutoreditus/reditus-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/institutoreditus/reditus-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/institutoreditus/reditus-app/contents/{+path}","compare_url":"https://api.github.com/repos/institutoreditus/reditus-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/institutoreditus/reditus-app/merges","archive_url":"https://api.github.com/repos/institutoreditus/reditus-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/institutoreditus/reditus-app/downloads","issues_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues{/number}","pulls_url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls{/number}","milestones_url":"https://api.github.com/repos/institutoreditus/reditus-app/milestones{/number}","notifications_url":"https://api.github.com/repos/institutoreditus/reditus-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/institutoreditus/reditus-app/labels{/name}","releases_url":"https://api.github.com/repos/institutoreditus/reditus-app/releases{/id}","deployments_url":"https://api.github.com/repos/institutoreditus/reditus-app/deployments","created_at":"2018-07-29T19:24:39Z","updated_at":"2019-08-06T05:32:33Z","pushed_at":"2019-08-06T05:32:30Z","git_url":"git://github.com/institutoreditus/reditus-app.git","ssh_url":"git@github.com:institutoreditus/reditus-app.git","clone_url":"https://github.com/institutoreditus/reditus-app.git","svn_url":"https://github.com/institutoreditus/reditus-app","homepage":"","size":6576,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"institutoreditus:master","ref":"master","sha":"cec065d0313de60e8ad37d6f34d6aae0c3df705f","user":{"login":"institutoreditus","id":39625990,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NjI1OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/39625990?v=4","gravatar_id":"","url":"https://api.github.com/users/institutoreditus","html_url":"https://github.com/institutoreditus","followers_url":"https://api.github.com/users/institutoreditus/followers","following_url":"https://api.github.com/users/institutoreditus/following{/other_user}","gists_url":"https://api.github.com/users/institutoreditus/gists{/gist_id}","starred_url":"https://api.github.com/users/institutoreditus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/institutoreditus/subscriptions","organizations_url":"https://api.github.com/users/institutoreditus/orgs","repos_url":"https://api.github.com/users/institutoreditus/repos","events_url":"https://api.github.com/users/institutoreditus/events{/privacy}","received_events_url":"https://api.github.com/users/institutoreditus/received_events","type":"Organization","site_admin":false},"repo":{"id":142789409,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI3ODk0MDk=","name":"reditus-app","full_name":"institutoreditus/reditus-app","private":false,"owner":{"login":"institutoreditus","id":39625990,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NjI1OTkw","avatar_url":"https://avatars3.githubusercontent.com/u/39625990?v=4","gravatar_id":"","url":"https://api.github.com/users/institutoreditus","html_url":"https://github.com/institutoreditus","followers_url":"https://api.github.com/users/institutoreditus/followers","following_url":"https://api.github.com/users/institutoreditus/following{/other_user}","gists_url":"https://api.github.com/users/institutoreditus/gists{/gist_id}","starred_url":"https://api.github.com/users/institutoreditus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/institutoreditus/subscriptions","organizations_url":"https://api.github.com/users/institutoreditus/orgs","repos_url":"https://api.github.com/users/institutoreditus/repos","events_url":"https://api.github.com/users/institutoreditus/events{/privacy}","received_events_url":"https://api.github.com/users/institutoreditus/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/institutoreditus/reditus-app","description":"Fundo de endowment da UFRJ","fork":false,"url":"https://api.github.com/repos/institutoreditus/reditus-app","forks_url":"https://api.github.com/repos/institutoreditus/reditus-app/forks","keys_url":"https://api.github.com/repos/institutoreditus/reditus-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/institutoreditus/reditus-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/institutoreditus/reditus-app/teams","hooks_url":"https://api.github.com/repos/institutoreditus/reditus-app/hooks","issue_events_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues/events{/number}","events_url":"https://api.github.com/repos/institutoreditus/reditus-app/events","assignees_url":"https://api.github.com/repos/institutoreditus/reditus-app/assignees{/user}","branches_url":"https://api.github.com/repos/institutoreditus/reditus-app/branches{/branch}","tags_url":"https://api.github.com/repos/institutoreditus/reditus-app/tags","blobs_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/institutoreditus/reditus-app/statuses/{sha}","languages_url":"https://api.github.com/repos/institutoreditus/reditus-app/languages","stargazers_url":"https://api.github.com/repos/institutoreditus/reditus-app/stargazers","contributors_url":"https://api.github.com/repos/institutoreditus/reditus-app/contributors","subscribers_url":"https://api.github.com/repos/institutoreditus/reditus-app/subscribers","subscription_url":"https://api.github.com/repos/institutoreditus/reditus-app/subscription","commits_url":"https://api.github.com/repos/institutoreditus/reditus-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/institutoreditus/reditus-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/institutoreditus/reditus-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/institutoreditus/reditus-app/contents/{+path}","compare_url":"https://api.github.com/repos/institutoreditus/reditus-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/institutoreditus/reditus-app/merges","archive_url":"https://api.github.com/repos/institutoreditus/reditus-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/institutoreditus/reditus-app/downloads","issues_url":"https://api.github.com/repos/institutoreditus/reditus-app/issues{/number}","pulls_url":"https://api.github.com/repos/institutoreditus/reditus-app/pulls{/number}","milestones_url":"https://api.github.com/repos/institutoreditus/reditus-app/milestones{/number}","notifications_url":"https://api.github.com/repos/institutoreditus/reditus-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/institutoreditus/reditus-app/labels{/name}","releases_url":"https://api.github.com/repos/institutoreditus/reditus-app/releases{/id}","deployments_url":"https://api.github.com/repos/institutoreditus/reditus-app/deployments","created_at":"2018-07-29T19:24:39Z","updated_at":"2019-08-06T05:32:33Z","pushed_at":"2019-08-06T05:32:30Z","git_url":"git://github.com/institutoreditus/reditus-app.git","ssh_url":"git@github.com:institutoreditus/reditus-app.git","clone_url":"https://github.com/institutoreditus/reditus-app.git","svn_url":"https://github.com/institutoreditus/reditus-app","homepage":"","size":6576,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28"},"html":{"href":"https://github.com/institutoreditus/reditus-app/pull/28"},"issue":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/issues/28"},"comments":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/institutoreditus/reditus-app/statuses/1ccf3c8262ab8dbb6acab082afc71a63994859f5"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"igorrocha"}}