{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments/225912392","pull_request_review_id":165603152,"id":225912392,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTkxMjM5Mg==","diff_hunk":"@@ -22,12 +23,13 @@ export class DraftClaimantResponse extends DraftDocument {\n   alternatePaymentMethod?: DraftPaymentIntention\n   courtCalculatedPaymentIntention?: PaymentIntention\n   courtOfferedPaymentIntention?: PaymentIntention\n-  courtDecisionType?: DecisionType\n+  decisionType?: DecisionType\n   freeMediation?: FreeMediation\n   paidAmount?: PaidAmount\n   rejectionReason?: RejectionReason\n   acceptCourtOffer?: AcceptCourtOffer\n   disposableIncome: number\n+  courtDetermination?: CourtDetermination","path":"src/main/features/claimant-response/draft/draftClaimantResponse.ts","position":21,"original_position":21,"commit_id":"3af23a0973406421fe32891dd788498e404bab49","original_commit_id":"3af23a0973406421fe32891dd788498e404bab49","user":{"login":"ckalista","id":138029,"node_id":"MDQ6VXNlcjEzODAyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/138029?v=4","gravatar_id":"","url":"https://api.github.com/users/ckalista","html_url":"https://github.com/ckalista","followers_url":"https://api.github.com/users/ckalista/followers","following_url":"https://api.github.com/users/ckalista/following{/other_user}","gists_url":"https://api.github.com/users/ckalista/gists{/gist_id}","starred_url":"https://api.github.com/users/ckalista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckalista/subscriptions","organizations_url":"https://api.github.com/users/ckalista/orgs","repos_url":"https://api.github.com/users/ckalista/repos","events_url":"https://api.github.com/users/ckalista/events{/privacy}","received_events_url":"https://api.github.com/users/ckalista/received_events","type":"User","site_admin":false},"body":"Also in your new form model make sure `decisionType` is an enum (not a string like it is now in the claim model). That enum must also be a new one defined as a form model (so you can't reuse `DecisionType` from `common/court-calculations/courtDecision.ts` or you will contaminate domain models again).","created_at":"2018-10-17T12:48:31Z","updated_at":"2018-10-17T12:49:49Z","html_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/1030#discussion_r225912392","pull_request_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments/225912392"},"html":{"href":"https://github.com/hmcts/cmc-citizen-frontend/pull/1030#discussion_r225912392"},"pull_request":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030"}},"in_reply_to_id":225911364},"pull_request":{"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030","id":223500427,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNTAwNDI3","html_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/1030","diff_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/1030.diff","patch_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/1030.patch","issue_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/1030","number":1030,"state":"open","locked":false,"title":"Feature/add court determination to draft","user":{"login":"varma02","id":12914259,"node_id":"MDQ6VXNlcjEyOTE0MjU5","avatar_url":"https://avatars2.githubusercontent.com/u/12914259?v=4","gravatar_id":"","url":"https://api.github.com/users/varma02","html_url":"https://github.com/varma02","followers_url":"https://api.github.com/users/varma02/followers","following_url":"https://api.github.com/users/varma02/following{/other_user}","gists_url":"https://api.github.com/users/varma02/gists{/gist_id}","starred_url":"https://api.github.com/users/varma02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varma02/subscriptions","organizations_url":"https://api.github.com/users/varma02/orgs","repos_url":"https://api.github.com/users/varma02/repos","events_url":"https://api.github.com/users/varma02/events{/privacy}","received_events_url":"https://api.github.com/users/varma02/received_events","type":"User","site_admin":false},"body":"### JIRA link\r\nhttps://tools.hmcts.net/jira/browse/ROC-4566\r\n\r\n\r\n### Change description\r\nCreate CourtDetermination model in claimant response draft to encapsulate all court decision related calculations in 1 place same as back end data model.\r\n\r\nThis is first PR to create data model , other PR's to follow to use this new data model","created_at":"2018-10-17T07:49:13Z","updated_at":"2018-10-17T12:49:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e75f2ec81b4a3260b7bde71e50e53238847466a","assignee":null,"assignees":[],"requested_reviewers":[{"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},{"login":"srineelesh","id":13573884,"node_id":"MDQ6VXNlcjEzNTczODg0","avatar_url":"https://avatars2.githubusercontent.com/u/13573884?v=4","gravatar_id":"","url":"https://api.github.com/users/srineelesh","html_url":"https://github.com/srineelesh","followers_url":"https://api.github.com/users/srineelesh/followers","following_url":"https://api.github.com/users/srineelesh/following{/other_user}","gists_url":"https://api.github.com/users/srineelesh/gists{/gist_id}","starred_url":"https://api.github.com/users/srineelesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srineelesh/subscriptions","organizations_url":"https://api.github.com/users/srineelesh/orgs","repos_url":"https://api.github.com/users/srineelesh/repos","events_url":"https://api.github.com/users/srineelesh/events{/privacy}","received_events_url":"https://api.github.com/users/srineelesh/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1094156195,"node_id":"MDU6TGFiZWwxMDk0MTU2MTk1","url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels/ns:cmc-citizen-frontend-pr-1030","name":"ns:cmc-citizen-frontend-pr-1030","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030/commits","review_comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030/comments","review_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/1030/comments","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/3af23a0973406421fe32891dd788498e404bab49","head":{"label":"hmcts:feature/addCourtDeterminationToDraft","ref":"feature/addCourtDeterminationToDraft","sha":"3af23a0973406421fe32891dd788498e404bab49","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":100393203,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAzOTMyMDM=","name":"cmc-citizen-frontend","full_name":"hmcts/cmc-citizen-frontend","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-citizen-frontend","description":"Citizen frontend application for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend","forks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/deployments","created_at":"2017-08-15T15:44:48Z","updated_at":"2018-10-17T09:30:46Z","pushed_at":"2018-10-17T10:42:01Z","git_url":"git://github.com/hmcts/cmc-citizen-frontend.git","ssh_url":"git@github.com:hmcts/cmc-citizen-frontend.git","clone_url":"https://github.com/hmcts/cmc-citizen-frontend.git","svn_url":"https://github.com/hmcts/cmc-citizen-frontend","homepage":"https://www.gov.uk/make-money-claim","size":9460,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","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":28,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":28,"watchers":3,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"9ce7f08de3e84305f1603ee68bd92e11bbe72a79","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":100393203,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAzOTMyMDM=","name":"cmc-citizen-frontend","full_name":"hmcts/cmc-citizen-frontend","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-citizen-frontend","description":"Citizen frontend application for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend","forks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/deployments","created_at":"2017-08-15T15:44:48Z","updated_at":"2018-10-17T09:30:46Z","pushed_at":"2018-10-17T10:42:01Z","git_url":"git://github.com/hmcts/cmc-citizen-frontend.git","ssh_url":"git@github.com:hmcts/cmc-citizen-frontend.git","clone_url":"https://github.com/hmcts/cmc-citizen-frontend.git","svn_url":"https://github.com/hmcts/cmc-citizen-frontend","homepage":"https://www.gov.uk/make-money-claim","size":9460,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","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":28,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":28,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030"},"html":{"href":"https://github.com/hmcts/cmc-citizen-frontend/pull/1030"},"issue":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/1030"},"comments":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/1030/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/1030/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/3af23a0973406421fe32891dd788498e404bab49"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ckalista"}}