{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments/226650776","pull_request_review_id":166528160,"id":226650776,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjY1MDc3Ng==","diff_hunk":"@@ -0,0 +1,28 @@\n+package uk.gov.hmcts.cmc.claimstore.rules;\n+\n+import org.springframework.stereotype.Component;\n+import uk.gov.hmcts.cmc.claimstore.exceptions.ClaimantLinkException;\n+import uk.gov.hmcts.cmc.claimstore.exceptions.ConflictException;\n+import uk.gov.hmcts.cmc.domain.models.Claim;\n+\n+import static java.lang.String.format;\n+import static java.util.Objects.requireNonNull;\n+\n+@Component\n+public class PaidInFullRule {\n+\n+    public void assertPaidInFull(Claim claim, String claimantId) {\n+        requireNonNull(claim, \"claim object can not be null\");\n+        requireNonNull(claimantId, \"submitterId object can not be null\");\n+        if (!claim.getSubmitterId().equals(claimantId)) {","path":"src/main/java/uk/gov/hmcts/cmc/claimstore/rules/PaidInFullRule.java","position":17,"original_position":17,"commit_id":"b1f65b094265965d5c4b192baaaf7940aa6eb004","original_commit_id":"b1f65b094265965d5c4b192baaaf7940aa6eb004","user":{"login":"sabahirfan","id":12894151,"node_id":"MDQ6VXNlcjEyODk0MTUx","avatar_url":"https://avatars0.githubusercontent.com/u/12894151?v=4","gravatar_id":"","url":"https://api.github.com/users/sabahirfan","html_url":"https://github.com/sabahirfan","followers_url":"https://api.github.com/users/sabahirfan/followers","following_url":"https://api.github.com/users/sabahirfan/following{/other_user}","gists_url":"https://api.github.com/users/sabahirfan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabahirfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabahirfan/subscriptions","organizations_url":"https://api.github.com/users/sabahirfan/orgs","repos_url":"https://api.github.com/users/sabahirfan/repos","events_url":"https://api.github.com/users/sabahirfan/events{/privacy}","received_events_url":"https://api.github.com/users/sabahirfan/received_events","type":"User","site_admin":false},"body":"can not imagine a claim object without a submitter id. ","created_at":"2018-10-19T13:41:33Z","updated_at":"2018-10-19T13:41:33Z","html_url":"https://github.com/hmcts/cmc-claim-store/pull/523#discussion_r226650776","pull_request_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments/226650776"},"html":{"href":"https://github.com/hmcts/cmc-claim-store/pull/523#discussion_r226650776"},"pull_request":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523"}},"in_reply_to_id":226649393},"pull_request":{"url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523","id":224289031,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0Mjg5MDMx","html_url":"https://github.com/hmcts/cmc-claim-store/pull/523","diff_url":"https://github.com/hmcts/cmc-claim-store/pull/523.diff","patch_url":"https://github.com/hmcts/cmc-claim-store/pull/523.patch","issue_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/523","number":523,"state":"open","locked":false,"title":"ROC-4310: Refactor out paid in full rule","user":{"login":"sabahirfan","id":12894151,"node_id":"MDQ6VXNlcjEyODk0MTUx","avatar_url":"https://avatars0.githubusercontent.com/u/12894151?v=4","gravatar_id":"","url":"https://api.github.com/users/sabahirfan","html_url":"https://github.com/sabahirfan","followers_url":"https://api.github.com/users/sabahirfan/followers","following_url":"https://api.github.com/users/sabahirfan/following{/other_user}","gists_url":"https://api.github.com/users/sabahirfan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabahirfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabahirfan/subscriptions","organizations_url":"https://api.github.com/users/sabahirfan/orgs","repos_url":"https://api.github.com/users/sabahirfan/repos","events_url":"https://api.github.com/users/sabahirfan/events{/privacy}","received_events_url":"https://api.github.com/users/sabahirfan/received_events","type":"User","site_admin":false},"body":"### JIRA link\r\n[ROC-4310](https://tools.hmcts.net/jira/browse/ROC-4310)\r\n\r\n### Change description\r\n\r\nThis PR refactors out paid in full rule, and fixes typo.\r\n\r\n### Does this PR introduce a breaking change?\r\n\r\n- [ ] Yes\r\n- [x] No","created_at":"2018-10-19T13:34:00Z","updated_at":"2018-10-19T13:41:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b41cb383694668e240bcc133a8fddf985cb30000","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523/commits","review_comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523/comments","review_comment_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/523/comments","statuses_url":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/b1f65b094265965d5c4b192baaaf7940aa6eb004","head":{"label":"hmcts:feature/ROC-4310-refactor-out-paid-in-full-rule","ref":"feature/ROC-4310-refactor-out-paid-in-full-rule","sha":"b1f65b094265965d5c4b192baaaf7940aa6eb004","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":101856095,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE4NTYwOTU=","name":"cmc-claim-store","full_name":"hmcts/cmc-claim-store","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/cmc-claim-store","description":"Backend service for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-claim-store","forks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-claim-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-claim-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-claim-store/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-claim-store/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-claim-store/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-claim-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-claim-store/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-claim-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-claim-store/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-claim-store/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-claim-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-claim-store/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-claim-store/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/deployments","created_at":"2017-08-30T08:17:34Z","updated_at":"2018-10-19T12:38:58Z","pushed_at":"2018-10-19T13:34:01Z","git_url":"git://github.com/hmcts/cmc-claim-store.git","ssh_url":"git@github.com:hmcts/cmc-claim-store.git","clone_url":"https://github.com/hmcts/cmc-claim-store.git","svn_url":"https://github.com/hmcts/cmc-claim-store","homepage":"","size":4713,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":21,"watchers":2,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"49c05b58a10ebe2e047bfc4a3ee8ef8c434d3cbb","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":101856095,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE4NTYwOTU=","name":"cmc-claim-store","full_name":"hmcts/cmc-claim-store","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/cmc-claim-store","description":"Backend service for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-claim-store","forks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-claim-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-claim-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-claim-store/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-claim-store/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-claim-store/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-claim-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-claim-store/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-claim-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-claim-store/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-claim-store/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-claim-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-claim-store/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-claim-store/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/deployments","created_at":"2017-08-30T08:17:34Z","updated_at":"2018-10-19T12:38:58Z","pushed_at":"2018-10-19T13:34:01Z","git_url":"git://github.com/hmcts/cmc-claim-store.git","ssh_url":"git@github.com:hmcts/cmc-claim-store.git","clone_url":"https://github.com/hmcts/cmc-claim-store.git","svn_url":"https://github.com/hmcts/cmc-claim-store","homepage":"","size":4713,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523"},"html":{"href":"https://github.com/hmcts/cmc-claim-store/pull/523"},"issue":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/523"},"comments":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/523/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/523/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/b1f65b094265965d5c4b192baaaf7940aa6eb004"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sabahirfan"}}