{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/4","id":46402538,"html_url":"https://github.com/killbill/killbill-plugin-framework-java/pull/4","diff_url":"https://github.com/killbill/killbill-plugin-framework-java/pull/4.diff","patch_url":"https://github.com/killbill/killbill-plugin-framework-java/pull/4.patch","issue_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues/4","number":4,"state":"open","locked":false,"title":"Avoid InvalidResultException on multiple AuthorizationResponses","user":{"login":"BLangendorf","id":13314708,"avatar_url":"https://avatars.githubusercontent.com/u/13314708?v=3","gravatar_id":"","url":"https://api.github.com/users/BLangendorf","html_url":"https://github.com/BLangendorf","followers_url":"https://api.github.com/users/BLangendorf/followers","following_url":"https://api.github.com/users/BLangendorf/following{/other_user}","gists_url":"https://api.github.com/users/BLangendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/BLangendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLangendorf/subscriptions","organizations_url":"https://api.github.com/users/BLangendorf/orgs","repos_url":"https://api.github.com/users/BLangendorf/repos","events_url":"https://api.github.com/users/BLangendorf/events{/privacy}","received_events_url":"https://api.github.com/users/BLangendorf/received_events","type":"User","site_admin":false},"body":"- In some cases a purchase has more than one AuthorizationResponses\r\n- In those cases `.fetchOne()` throws an `InvalidResultException` for `Cursor returned more than one result`\r\n- With a `.limit(1)` the `InvalidResultException` is avoided","created_at":"2015-09-30T13:39:41Z","updated_at":"2015-09-30T13:39:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09a82d59a12dad3eba7b508e89155c79a8594713","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/4/commits","review_comments_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/4/comments","review_comment_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues/4/comments","statuses_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/statuses/8341509e9701b6ecfacb7192d1bb2d3955d85cd9","head":{"label":"BLangendorf:limit-resultset-for-authorization-responses","ref":"limit-resultset-for-authorization-responses","sha":"8341509e9701b6ecfacb7192d1bb2d3955d85cd9","user":{"login":"BLangendorf","id":13314708,"avatar_url":"https://avatars.githubusercontent.com/u/13314708?v=3","gravatar_id":"","url":"https://api.github.com/users/BLangendorf","html_url":"https://github.com/BLangendorf","followers_url":"https://api.github.com/users/BLangendorf/followers","following_url":"https://api.github.com/users/BLangendorf/following{/other_user}","gists_url":"https://api.github.com/users/BLangendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/BLangendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLangendorf/subscriptions","organizations_url":"https://api.github.com/users/BLangendorf/orgs","repos_url":"https://api.github.com/users/BLangendorf/repos","events_url":"https://api.github.com/users/BLangendorf/events{/privacy}","received_events_url":"https://api.github.com/users/BLangendorf/received_events","type":"User","site_admin":false},"repo":{"id":43431929,"name":"killbill-plugin-framework-java","full_name":"BLangendorf/killbill-plugin-framework-java","owner":{"login":"BLangendorf","id":13314708,"avatar_url":"https://avatars.githubusercontent.com/u/13314708?v=3","gravatar_id":"","url":"https://api.github.com/users/BLangendorf","html_url":"https://github.com/BLangendorf","followers_url":"https://api.github.com/users/BLangendorf/followers","following_url":"https://api.github.com/users/BLangendorf/following{/other_user}","gists_url":"https://api.github.com/users/BLangendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/BLangendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLangendorf/subscriptions","organizations_url":"https://api.github.com/users/BLangendorf/orgs","repos_url":"https://api.github.com/users/BLangendorf/repos","events_url":"https://api.github.com/users/BLangendorf/events{/privacy}","received_events_url":"https://api.github.com/users/BLangendorf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BLangendorf/killbill-plugin-framework-java","description":"Framework to write Kill Bill plugins in Java","fork":true,"url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java","forks_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/forks","keys_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/teams","hooks_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/hooks","issue_events_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/issues/events{/number}","events_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/events","assignees_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/assignees{/user}","branches_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/branches{/branch}","tags_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/tags","blobs_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/statuses/{sha}","languages_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/languages","stargazers_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/stargazers","contributors_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/contributors","subscribers_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/subscribers","subscription_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/subscription","commits_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/contents/{+path}","compare_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/merges","archive_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/downloads","issues_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/issues{/number}","pulls_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/pulls{/number}","milestones_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/milestones{/number}","notifications_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/labels{/name}","releases_url":"https://api.github.com/repos/BLangendorf/killbill-plugin-framework-java/releases{/id}","created_at":"2015-09-30T12:36:31Z","updated_at":"2015-09-30T12:36:31Z","pushed_at":"2015-09-30T13:38:47Z","git_url":"git://github.com/BLangendorf/killbill-plugin-framework-java.git","ssh_url":"git@github.com:BLangendorf/killbill-plugin-framework-java.git","clone_url":"https://github.com/BLangendorf/killbill-plugin-framework-java.git","svn_url":"https://github.com/BLangendorf/killbill-plugin-framework-java","homepage":"http://killbill.io","size":351,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"killbill:master","ref":"master","sha":"c729f1f631bed5d09e12247f89e79210ab4d75fa","user":{"login":"killbill","id":2446739,"avatar_url":"https://avatars.githubusercontent.com/u/2446739?v=3","gravatar_id":"","url":"https://api.github.com/users/killbill","html_url":"https://github.com/killbill","followers_url":"https://api.github.com/users/killbill/followers","following_url":"https://api.github.com/users/killbill/following{/other_user}","gists_url":"https://api.github.com/users/killbill/gists{/gist_id}","starred_url":"https://api.github.com/users/killbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbill/subscriptions","organizations_url":"https://api.github.com/users/killbill/orgs","repos_url":"https://api.github.com/users/killbill/repos","events_url":"https://api.github.com/users/killbill/events{/privacy}","received_events_url":"https://api.github.com/users/killbill/received_events","type":"Organization","site_admin":false},"repo":{"id":27782564,"name":"killbill-plugin-framework-java","full_name":"killbill/killbill-plugin-framework-java","owner":{"login":"killbill","id":2446739,"avatar_url":"https://avatars.githubusercontent.com/u/2446739?v=3","gravatar_id":"","url":"https://api.github.com/users/killbill","html_url":"https://github.com/killbill","followers_url":"https://api.github.com/users/killbill/followers","following_url":"https://api.github.com/users/killbill/following{/other_user}","gists_url":"https://api.github.com/users/killbill/gists{/gist_id}","starred_url":"https://api.github.com/users/killbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbill/subscriptions","organizations_url":"https://api.github.com/users/killbill/orgs","repos_url":"https://api.github.com/users/killbill/repos","events_url":"https://api.github.com/users/killbill/events{/privacy}","received_events_url":"https://api.github.com/users/killbill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/killbill/killbill-plugin-framework-java","description":"Framework to write Kill Bill plugins in Java","fork":false,"url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java","forks_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/forks","keys_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/teams","hooks_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/hooks","issue_events_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues/events{/number}","events_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/events","assignees_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/assignees{/user}","branches_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/branches{/branch}","tags_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/tags","blobs_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/statuses/{sha}","languages_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/languages","stargazers_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/stargazers","contributors_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/contributors","subscribers_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/subscribers","subscription_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/subscription","commits_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/contents/{+path}","compare_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/merges","archive_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/downloads","issues_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues{/number}","pulls_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls{/number}","milestones_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/milestones{/number}","notifications_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/labels{/name}","releases_url":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/releases{/id}","created_at":"2014-12-09T19:17:15Z","updated_at":"2015-05-06T12:54:54Z","pushed_at":"2015-09-30T13:39:41Z","git_url":"git://github.com/killbill/killbill-plugin-framework-java.git","ssh_url":"git@github.com:killbill/killbill-plugin-framework-java.git","clone_url":"https://github.com/killbill/killbill-plugin-framework-java.git","svn_url":"https://github.com/killbill/killbill-plugin-framework-java","homepage":"http://killbill.io","size":351,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/4"},"html":{"href":"https://github.com/killbill/killbill-plugin-framework-java/pull/4"},"issue":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues/4"},"comments":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/killbill/killbill-plugin-framework-java/statuses/8341509e9701b6ecfacb7192d1bb2d3955d85cd9"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}