{"action":"created","comment":{"url":"https://api.github.com/repos/killbill/killbill/pulls/comments/43774736","id":43774736,"diff_hunk":"@@ -45,6 +45,14 @@ public PaymentTransactionJson getTransaction() {\n         return transaction;\n     }\n \n+    public String getTransactionType() {\n+        if (transaction != null) {\n+            return transaction.getTransactionType();\n+        }\n+\n+        return null;","path":"jaxrs/src/main/java/org/killbill/billing/jaxrs/json/ComboPaymentTransactionJson.java","position":9,"original_position":9,"commit_id":"48ee94f719f81af2f0e4fc6fbaf2f37ff2380dad","original_commit_id":"48ee94f719f81af2f0e4fc6fbaf2f37ff2380dad","user":{"login":"sbrossie","id":246910,"avatar_url":"https://avatars.githubusercontent.com/u/246910?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrossie","html_url":"https://github.com/sbrossie","followers_url":"https://api.github.com/users/sbrossie/followers","following_url":"https://api.github.com/users/sbrossie/following{/other_user}","gists_url":"https://api.github.com/users/sbrossie/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrossie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrossie/subscriptions","organizations_url":"https://api.github.com/users/sbrossie/orgs","repos_url":"https://api.github.com/users/sbrossie/repos","events_url":"https://api.github.com/users/sbrossie/events{/privacy}","received_events_url":"https://api.github.com/users/sbrossie/received_events","type":"User","site_admin":false},"body":"nit: could be written in one line:\r\n```\r\nreturn transaction != null ? transaction.getTransactionType() : null;\r\n```","created_at":"2015-11-03T16:59:12Z","updated_at":"2015-11-03T16:59:12Z","html_url":"https://github.com/killbill/killbill/pull/432#discussion_r43774736","pull_request_url":"https://api.github.com/repos/killbill/killbill/pulls/432","_links":{"self":{"href":"https://api.github.com/repos/killbill/killbill/pulls/comments/43774736"},"html":{"href":"https://github.com/killbill/killbill/pull/432#discussion_r43774736"},"pull_request":{"href":"https://api.github.com/repos/killbill/killbill/pulls/432"}}},"pull_request":{"url":"https://api.github.com/repos/killbill/killbill/pulls/432","id":49506445,"html_url":"https://github.com/killbill/killbill/pull/432","diff_url":"https://github.com/killbill/killbill/pull/432.diff","patch_url":"https://github.com/killbill/killbill/pull/432.patch","issue_url":"https://api.github.com/repos/killbill/killbill/issues/432","number":432,"state":"open","locked":false,"title":"Timed resource metrics","user":{"login":"andrenpaes","id":306982,"avatar_url":"https://avatars.githubusercontent.com/u/306982?v=3","gravatar_id":"","url":"https://api.github.com/users/andrenpaes","html_url":"https://github.com/andrenpaes","followers_url":"https://api.github.com/users/andrenpaes/followers","following_url":"https://api.github.com/users/andrenpaes/following{/other_user}","gists_url":"https://api.github.com/users/andrenpaes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrenpaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrenpaes/subscriptions","organizations_url":"https://api.github.com/users/andrenpaes/orgs","repos_url":"https://api.github.com/users/andrenpaes/repos","events_url":"https://api.github.com/users/andrenpaes/events{/privacy}","received_events_url":"https://api.github.com/users/andrenpaes/received_events","type":"User","site_admin":false},"body":"Replaces the `@Timed` annotations on jaxrs resources.\r\n\r\nSolves #385 \r\n\r\nNote: This PR adds the jersey-core jar as a dependency of killbill/jaxrs (see https://github.com/killbill/killbill/commit/c2eac6c4739db5b4e1b52942495105f5dd253913).\r\nIt's a transitive dependency that was removed when metrics-jersey was removed, but it's actually being directly used in the `org.killbill.billing.jaxrs.resources.PluginResource` class.","created_at":"2015-11-03T00:34:11Z","updated_at":"2015-11-03T16:59:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f371cbec9fa27f1d544d94c677ce47993d4f4af1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/killbill/killbill/pulls/432/commits","review_comments_url":"https://api.github.com/repos/killbill/killbill/pulls/432/comments","review_comment_url":"https://api.github.com/repos/killbill/killbill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/killbill/killbill/issues/432/comments","statuses_url":"https://api.github.com/repos/killbill/killbill/statuses/48ee94f719f81af2f0e4fc6fbaf2f37ff2380dad","head":{"label":"andrenpaes:timed-resource-metrics","ref":"timed-resource-metrics","sha":"48ee94f719f81af2f0e4fc6fbaf2f37ff2380dad","user":{"login":"andrenpaes","id":306982,"avatar_url":"https://avatars.githubusercontent.com/u/306982?v=3","gravatar_id":"","url":"https://api.github.com/users/andrenpaes","html_url":"https://github.com/andrenpaes","followers_url":"https://api.github.com/users/andrenpaes/followers","following_url":"https://api.github.com/users/andrenpaes/following{/other_user}","gists_url":"https://api.github.com/users/andrenpaes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrenpaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrenpaes/subscriptions","organizations_url":"https://api.github.com/users/andrenpaes/orgs","repos_url":"https://api.github.com/users/andrenpaes/repos","events_url":"https://api.github.com/users/andrenpaes/events{/privacy}","received_events_url":"https://api.github.com/users/andrenpaes/received_events","type":"User","site_admin":false},"repo":{"id":42760990,"name":"killbill","full_name":"andrenpaes/killbill","owner":{"login":"andrenpaes","id":306982,"avatar_url":"https://avatars.githubusercontent.com/u/306982?v=3","gravatar_id":"","url":"https://api.github.com/users/andrenpaes","html_url":"https://github.com/andrenpaes","followers_url":"https://api.github.com/users/andrenpaes/followers","following_url":"https://api.github.com/users/andrenpaes/following{/other_user}","gists_url":"https://api.github.com/users/andrenpaes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrenpaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrenpaes/subscriptions","organizations_url":"https://api.github.com/users/andrenpaes/orgs","repos_url":"https://api.github.com/users/andrenpaes/repos","events_url":"https://api.github.com/users/andrenpaes/events{/privacy}","received_events_url":"https://api.github.com/users/andrenpaes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrenpaes/killbill","description":"Open-Source Billing & Payment Platform","fork":true,"url":"https://api.github.com/repos/andrenpaes/killbill","forks_url":"https://api.github.com/repos/andrenpaes/killbill/forks","keys_url":"https://api.github.com/repos/andrenpaes/killbill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrenpaes/killbill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrenpaes/killbill/teams","hooks_url":"https://api.github.com/repos/andrenpaes/killbill/hooks","issue_events_url":"https://api.github.com/repos/andrenpaes/killbill/issues/events{/number}","events_url":"https://api.github.com/repos/andrenpaes/killbill/events","assignees_url":"https://api.github.com/repos/andrenpaes/killbill/assignees{/user}","branches_url":"https://api.github.com/repos/andrenpaes/killbill/branches{/branch}","tags_url":"https://api.github.com/repos/andrenpaes/killbill/tags","blobs_url":"https://api.github.com/repos/andrenpaes/killbill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrenpaes/killbill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrenpaes/killbill/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrenpaes/killbill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrenpaes/killbill/statuses/{sha}","languages_url":"https://api.github.com/repos/andrenpaes/killbill/languages","stargazers_url":"https://api.github.com/repos/andrenpaes/killbill/stargazers","contributors_url":"https://api.github.com/repos/andrenpaes/killbill/contributors","subscribers_url":"https://api.github.com/repos/andrenpaes/killbill/subscribers","subscription_url":"https://api.github.com/repos/andrenpaes/killbill/subscription","commits_url":"https://api.github.com/repos/andrenpaes/killbill/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrenpaes/killbill/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrenpaes/killbill/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrenpaes/killbill/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrenpaes/killbill/contents/{+path}","compare_url":"https://api.github.com/repos/andrenpaes/killbill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrenpaes/killbill/merges","archive_url":"https://api.github.com/repos/andrenpaes/killbill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrenpaes/killbill/downloads","issues_url":"https://api.github.com/repos/andrenpaes/killbill/issues{/number}","pulls_url":"https://api.github.com/repos/andrenpaes/killbill/pulls{/number}","milestones_url":"https://api.github.com/repos/andrenpaes/killbill/milestones{/number}","notifications_url":"https://api.github.com/repos/andrenpaes/killbill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrenpaes/killbill/labels{/name}","releases_url":"https://api.github.com/repos/andrenpaes/killbill/releases{/id}","created_at":"2015-09-19T05:25:39Z","updated_at":"2015-09-19T05:25:44Z","pushed_at":"2015-11-03T00:28:40Z","git_url":"git://github.com/andrenpaes/killbill.git","ssh_url":"git@github.com:andrenpaes/killbill.git","clone_url":"https://github.com/andrenpaes/killbill.git","svn_url":"https://github.com/andrenpaes/killbill","homepage":"http://killbill.io/","size":656792,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"5e8eb433a6fbf291eaab0f6c2ac975d45204efaf","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":6325420,"name":"killbill","full_name":"killbill/killbill","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","description":"Open-Source Subscription Billing & Payment Platform","fork":false,"url":"https://api.github.com/repos/killbill/killbill","forks_url":"https://api.github.com/repos/killbill/killbill/forks","keys_url":"https://api.github.com/repos/killbill/killbill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/killbill/killbill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/killbill/killbill/teams","hooks_url":"https://api.github.com/repos/killbill/killbill/hooks","issue_events_url":"https://api.github.com/repos/killbill/killbill/issues/events{/number}","events_url":"https://api.github.com/repos/killbill/killbill/events","assignees_url":"https://api.github.com/repos/killbill/killbill/assignees{/user}","branches_url":"https://api.github.com/repos/killbill/killbill/branches{/branch}","tags_url":"https://api.github.com/repos/killbill/killbill/tags","blobs_url":"https://api.github.com/repos/killbill/killbill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/killbill/killbill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/killbill/killbill/git/refs{/sha}","trees_url":"https://api.github.com/repos/killbill/killbill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/killbill/killbill/statuses/{sha}","languages_url":"https://api.github.com/repos/killbill/killbill/languages","stargazers_url":"https://api.github.com/repos/killbill/killbill/stargazers","contributors_url":"https://api.github.com/repos/killbill/killbill/contributors","subscribers_url":"https://api.github.com/repos/killbill/killbill/subscribers","subscription_url":"https://api.github.com/repos/killbill/killbill/subscription","commits_url":"https://api.github.com/repos/killbill/killbill/commits{/sha}","git_commits_url":"https://api.github.com/repos/killbill/killbill/git/commits{/sha}","comments_url":"https://api.github.com/repos/killbill/killbill/comments{/number}","issue_comment_url":"https://api.github.com/repos/killbill/killbill/issues/comments{/number}","contents_url":"https://api.github.com/repos/killbill/killbill/contents/{+path}","compare_url":"https://api.github.com/repos/killbill/killbill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/killbill/killbill/merges","archive_url":"https://api.github.com/repos/killbill/killbill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/killbill/killbill/downloads","issues_url":"https://api.github.com/repos/killbill/killbill/issues{/number}","pulls_url":"https://api.github.com/repos/killbill/killbill/pulls{/number}","milestones_url":"https://api.github.com/repos/killbill/killbill/milestones{/number}","notifications_url":"https://api.github.com/repos/killbill/killbill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/killbill/killbill/labels{/name}","releases_url":"https://api.github.com/repos/killbill/killbill/releases{/id}","created_at":"2012-10-21T20:55:05Z","updated_at":"2015-11-02T22:55:31Z","pushed_at":"2015-11-03T03:54:50Z","git_url":"git://github.com/killbill/killbill.git","ssh_url":"git@github.com:killbill/killbill.git","clone_url":"https://github.com/killbill/killbill.git","svn_url":"https://github.com/killbill/killbill","homepage":"http://killbill.io/","size":701477,"stargazers_count":1026,"watchers_count":1026,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":140,"mirror_url":null,"open_issues_count":129,"forks":140,"open_issues":129,"watchers":1026,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/killbill/killbill/pulls/432"},"html":{"href":"https://github.com/killbill/killbill/pull/432"},"issue":{"href":"https://api.github.com/repos/killbill/killbill/issues/432"},"comments":{"href":"https://api.github.com/repos/killbill/killbill/issues/432/comments"},"review_comments":{"href":"https://api.github.com/repos/killbill/killbill/pulls/432/comments"},"review_comment":{"href":"https://api.github.com/repos/killbill/killbill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/killbill/killbill/pulls/432/commits"},"statuses":{"href":"https://api.github.com/repos/killbill/killbill/statuses/48ee94f719f81af2f0e4fc6fbaf2f37ff2380dad"}}}}