{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/comments/91980751","pull_request_review_id":12489811,"id":91980751,"diff_hunk":"@@ -0,0 +1,35 @@\n+class PayByAccountController < ApplicationController\n+  rescue_from GlimrApiClient::PayByAccount::AccountNotFound,","path":"app/controllers/pay_by_account_controller.rb","position":2,"original_position":2,"commit_id":"752941b84758748702edc97735cba6de4a955445","original_commit_id":"752941b84758748702edc97735cba6de4a955445","user":{"login":"digitalronin","id":2338,"avatar_url":"https://avatars.githubusercontent.com/u/2338?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalronin","html_url":"https://github.com/digitalronin","followers_url":"https://api.github.com/users/digitalronin/followers","following_url":"https://api.github.com/users/digitalronin/following{/other_user}","gists_url":"https://api.github.com/users/digitalronin/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalronin/subscriptions","organizations_url":"https://api.github.com/users/digitalronin/orgs","repos_url":"https://api.github.com/users/digitalronin/repos","events_url":"https://api.github.com/users/digitalronin/events{/privacy}","received_events_url":"https://api.github.com/users/digitalronin/received_events","type":"User","site_admin":false},"body":"I think you can combine the rescue_from calls into a single call with multiple exception classes http://api.rubyonrails.org/v5.0/classes/ActiveSupport/Rescuable/ClassMethods.html","created_at":"2016-12-12T16:20:05Z","updated_at":"2016-12-12T16:20:05Z","html_url":"https://github.com/ministryofjustice/tax-tribunals-fees/pull/36#discussion_r91980751","pull_request_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/comments/91980751"},"html":{"href":"https://github.com/ministryofjustice/tax-tribunals-fees/pull/36#discussion_r91980751"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36","id":97583343,"html_url":"https://github.com/ministryofjustice/tax-tribunals-fees/pull/36","diff_url":"https://github.com/ministryofjustice/tax-tribunals-fees/pull/36.diff","patch_url":"https://github.com/ministryofjustice/tax-tribunals-fees/pull/36.patch","issue_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/36","number":36,"state":"open","locked":false,"title":"Enable pay by account","user":{"login":"tatyree","id":20921,"avatar_url":"https://avatars.githubusercontent.com/u/20921?v=3","gravatar_id":"","url":"https://api.github.com/users/tatyree","html_url":"https://github.com/tatyree","followers_url":"https://api.github.com/users/tatyree/followers","following_url":"https://api.github.com/users/tatyree/following{/other_user}","gists_url":"https://api.github.com/users/tatyree/gists{/gist_id}","starred_url":"https://api.github.com/users/tatyree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatyree/subscriptions","organizations_url":"https://api.github.com/users/tatyree/orgs","repos_url":"https://api.github.com/users/tatyree/repos","events_url":"https://api.github.com/users/tatyree/events{/privacy}","received_events_url":"https://api.github.com/users/tatyree/received_events","type":"User","site_admin":false},"body":"This is the full happy path version of the pay by account workflow.","created_at":"2016-12-12T16:18:00Z","updated_at":"2016-12-12T16:20:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c40c1991cab5b5c9ff72212abdd43bb3551c765f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/36/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/statuses/752941b84758748702edc97735cba6de4a955445","head":{"label":"ministryofjustice:pay-by-account","ref":"pay-by-account","sha":"752941b84758748702edc97735cba6de4a955445","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":62645892,"name":"tax-tribunals-fees","full_name":"ministryofjustice/tax-tribunals-fees","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/tax-tribunals-fees","description":null,"fork":false,"url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees","forks_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/forks","keys_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/events","assignees_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/merges","archive_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/deployments","created_at":"2016-07-05T14:58:46Z","updated_at":"2016-10-27T14:36:05Z","pushed_at":"2016-12-12T16:18:00Z","git_url":"git://github.com/ministryofjustice/tax-tribunals-fees.git","ssh_url":"git@github.com:ministryofjustice/tax-tribunals-fees.git","clone_url":"https://github.com/ministryofjustice/tax-tribunals-fees.git","svn_url":"https://github.com/ministryofjustice/tax-tribunals-fees","homepage":null,"size":288,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"7e4fd5a1ad045ab48bd62a273374e96439b593a3","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":62645892,"name":"tax-tribunals-fees","full_name":"ministryofjustice/tax-tribunals-fees","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/tax-tribunals-fees","description":null,"fork":false,"url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees","forks_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/forks","keys_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/events","assignees_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/merges","archive_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/deployments","created_at":"2016-07-05T14:58:46Z","updated_at":"2016-10-27T14:36:05Z","pushed_at":"2016-12-12T16:18:00Z","git_url":"git://github.com/ministryofjustice/tax-tribunals-fees.git","ssh_url":"git@github.com:ministryofjustice/tax-tribunals-fees.git","clone_url":"https://github.com/ministryofjustice/tax-tribunals-fees.git","svn_url":"https://github.com/ministryofjustice/tax-tribunals-fees","homepage":null,"size":288,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36"},"html":{"href":"https://github.com/ministryofjustice/tax-tribunals-fees/pull/36"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/36"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/tax-tribunals-fees/statuses/752941b84758748702edc97735cba6de4a955445"}}}}
{"actor":{"display_login":"digitalronin"}}