{"action":"created","comment":{"url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/comments/208934219","pull_request_review_id":144846305,"id":208934219,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODkzNDIxOQ==","diff_hunk":"@@ -32,3 +36,15 @@ export default async (req, res) => {\n function isValidPaymentPaymentType(type) {\n   return ['FPN', 'CDN', 'IM'].includes(type);\n }\n+\n+function addFormattedPaymentDateTimes(paymentDetails) {\n+  const newPaymentDetails = { ...paymentDetails };\n+  const paymentTypes = Object.keys(newPaymentDetails.Payments);\n+  for (let i = 0; i < paymentTypes.length; i += 1) {","path":"src/server/controllers/receipt.controller.js","position":29,"original_position":29,"commit_id":"0dc6140c7362cca1b354ed060fec1802c6aec870","original_commit_id":"0dc6140c7362cca1b354ed060fec1802c6aec870","user":{"login":"ammarhaiderbjss","id":33695049,"node_id":"MDQ6VXNlcjMzNjk1MDQ5","avatar_url":"https://avatars2.githubusercontent.com/u/33695049?v=4","gravatar_id":"","url":"https://api.github.com/users/ammarhaiderbjss","html_url":"https://github.com/ammarhaiderbjss","followers_url":"https://api.github.com/users/ammarhaiderbjss/followers","following_url":"https://api.github.com/users/ammarhaiderbjss/following{/other_user}","gists_url":"https://api.github.com/users/ammarhaiderbjss/gists{/gist_id}","starred_url":"https://api.github.com/users/ammarhaiderbjss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammarhaiderbjss/subscriptions","organizations_url":"https://api.github.com/users/ammarhaiderbjss/orgs","repos_url":"https://api.github.com/users/ammarhaiderbjss/repos","events_url":"https://api.github.com/users/ammarhaiderbjss/events{/privacy}","received_events_url":"https://api.github.com/users/ammarhaiderbjss/received_events","type":"User","site_admin":false},"body":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in?","created_at":"2018-08-09T13:45:26Z","updated_at":"2018-08-09T13:45:35Z","html_url":"https://github.com/dvsa/rsp-public-portal/pull/37#discussion_r208934219","pull_request_url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/comments/208934219"},"html":{"href":"https://github.com/dvsa/rsp-public-portal/pull/37#discussion_r208934219"},"pull_request":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37","id":207316810,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MzE2ODEw","html_url":"https://github.com/dvsa/rsp-public-portal/pull/37","diff_url":"https://github.com/dvsa/rsp-public-portal/pull/37.diff","patch_url":"https://github.com/dvsa/rsp-public-portal/pull/37.patch","issue_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/37","number":37,"state":"open","locked":false,"title":"Bugfix/multipenalty template enhancements","user":{"login":"johnmorleybjss","id":41190821,"node_id":"MDQ6VXNlcjQxMTkwODIx","avatar_url":"https://avatars2.githubusercontent.com/u/41190821?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmorleybjss","html_url":"https://github.com/johnmorleybjss","followers_url":"https://api.github.com/users/johnmorleybjss/followers","following_url":"https://api.github.com/users/johnmorleybjss/following{/other_user}","gists_url":"https://api.github.com/users/johnmorleybjss/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmorleybjss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmorleybjss/subscriptions","organizations_url":"https://api.github.com/users/johnmorleybjss/orgs","repos_url":"https://api.github.com/users/johnmorleybjss/repos","events_url":"https://api.github.com/users/johnmorleybjss/events{/privacy}","received_events_url":"https://api.github.com/users/johnmorleybjss/received_events","type":"User","site_admin":false},"body":"* Prevent back to multipayment summary link opening in new tab\r\n* Sort types in multipenalty payment code overview so IM is first\r\n* Only show multipenalty breakdown total for more than 1 penalty\r\n* Add formatting to multipenalty receipt transaction datetime","created_at":"2018-08-09T13:29:34Z","updated_at":"2018-08-09T13:45:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ca0ec9f47986c53d50f5fd054134ab9afa17ed7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37/commits","review_comments_url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37/comments","review_comment_url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/37/comments","statuses_url":"https://api.github.com/repos/dvsa/rsp-public-portal/statuses/0dc6140c7362cca1b354ed060fec1802c6aec870","head":{"label":"dvsa:bugfix/multipenalty-template-enhancements","ref":"bugfix/multipenalty-template-enhancements","sha":"0dc6140c7362cca1b354ed060fec1802c6aec870","user":{"login":"dvsa","id":24296376,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0Mjk2Mzc2","avatar_url":"https://avatars1.githubusercontent.com/u/24296376?v=4","gravatar_id":"","url":"https://api.github.com/users/dvsa","html_url":"https://github.com/dvsa","followers_url":"https://api.github.com/users/dvsa/followers","following_url":"https://api.github.com/users/dvsa/following{/other_user}","gists_url":"https://api.github.com/users/dvsa/gists{/gist_id}","starred_url":"https://api.github.com/users/dvsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvsa/subscriptions","organizations_url":"https://api.github.com/users/dvsa/orgs","repos_url":"https://api.github.com/users/dvsa/repos","events_url":"https://api.github.com/users/dvsa/events{/privacy}","received_events_url":"https://api.github.com/users/dvsa/received_events","type":"Organization","site_admin":false},"repo":{"id":120375916,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAzNzU5MTY=","name":"rsp-public-portal","full_name":"dvsa/rsp-public-portal","owner":{"login":"dvsa","id":24296376,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0Mjk2Mzc2","avatar_url":"https://avatars1.githubusercontent.com/u/24296376?v=4","gravatar_id":"","url":"https://api.github.com/users/dvsa","html_url":"https://github.com/dvsa","followers_url":"https://api.github.com/users/dvsa/followers","following_url":"https://api.github.com/users/dvsa/following{/other_user}","gists_url":"https://api.github.com/users/dvsa/gists{/gist_id}","starred_url":"https://api.github.com/users/dvsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvsa/subscriptions","organizations_url":"https://api.github.com/users/dvsa/orgs","repos_url":"https://api.github.com/users/dvsa/repos","events_url":"https://api.github.com/users/dvsa/events{/privacy}","received_events_url":"https://api.github.com/users/dvsa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dvsa/rsp-public-portal","description":null,"fork":false,"url":"https://api.github.com/repos/dvsa/rsp-public-portal","forks_url":"https://api.github.com/repos/dvsa/rsp-public-portal/forks","keys_url":"https://api.github.com/repos/dvsa/rsp-public-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvsa/rsp-public-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvsa/rsp-public-portal/teams","hooks_url":"https://api.github.com/repos/dvsa/rsp-public-portal/hooks","issue_events_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/events{/number}","events_url":"https://api.github.com/repos/dvsa/rsp-public-portal/events","assignees_url":"https://api.github.com/repos/dvsa/rsp-public-portal/assignees{/user}","branches_url":"https://api.github.com/repos/dvsa/rsp-public-portal/branches{/branch}","tags_url":"https://api.github.com/repos/dvsa/rsp-public-portal/tags","blobs_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvsa/rsp-public-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/dvsa/rsp-public-portal/languages","stargazers_url":"https://api.github.com/repos/dvsa/rsp-public-portal/stargazers","contributors_url":"https://api.github.com/repos/dvsa/rsp-public-portal/contributors","subscribers_url":"https://api.github.com/repos/dvsa/rsp-public-portal/subscribers","subscription_url":"https://api.github.com/repos/dvsa/rsp-public-portal/subscription","commits_url":"https://api.github.com/repos/dvsa/rsp-public-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvsa/rsp-public-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvsa/rsp-public-portal/contents/{+path}","compare_url":"https://api.github.com/repos/dvsa/rsp-public-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvsa/rsp-public-portal/merges","archive_url":"https://api.github.com/repos/dvsa/rsp-public-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvsa/rsp-public-portal/downloads","issues_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues{/number}","pulls_url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/dvsa/rsp-public-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/dvsa/rsp-public-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvsa/rsp-public-portal/labels{/name}","releases_url":"https://api.github.com/repos/dvsa/rsp-public-portal/releases{/id}","deployments_url":"https://api.github.com/repos/dvsa/rsp-public-portal/deployments","created_at":"2018-02-05T23:35:11Z","updated_at":"2018-04-27T13:27:28Z","pushed_at":"2018-08-09T13:29:34Z","git_url":"git://github.com/dvsa/rsp-public-portal.git","ssh_url":"git@github.com:dvsa/rsp-public-portal.git","clone_url":"https://github.com/dvsa/rsp-public-portal.git","svn_url":"https://github.com/dvsa/rsp-public-portal","homepage":null,"size":1989,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"dvsa:develop","ref":"develop","sha":"f74e60954475bd1e96a9c57397b7a214c470e261","user":{"login":"dvsa","id":24296376,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0Mjk2Mzc2","avatar_url":"https://avatars1.githubusercontent.com/u/24296376?v=4","gravatar_id":"","url":"https://api.github.com/users/dvsa","html_url":"https://github.com/dvsa","followers_url":"https://api.github.com/users/dvsa/followers","following_url":"https://api.github.com/users/dvsa/following{/other_user}","gists_url":"https://api.github.com/users/dvsa/gists{/gist_id}","starred_url":"https://api.github.com/users/dvsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvsa/subscriptions","organizations_url":"https://api.github.com/users/dvsa/orgs","repos_url":"https://api.github.com/users/dvsa/repos","events_url":"https://api.github.com/users/dvsa/events{/privacy}","received_events_url":"https://api.github.com/users/dvsa/received_events","type":"Organization","site_admin":false},"repo":{"id":120375916,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAzNzU5MTY=","name":"rsp-public-portal","full_name":"dvsa/rsp-public-portal","owner":{"login":"dvsa","id":24296376,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0Mjk2Mzc2","avatar_url":"https://avatars1.githubusercontent.com/u/24296376?v=4","gravatar_id":"","url":"https://api.github.com/users/dvsa","html_url":"https://github.com/dvsa","followers_url":"https://api.github.com/users/dvsa/followers","following_url":"https://api.github.com/users/dvsa/following{/other_user}","gists_url":"https://api.github.com/users/dvsa/gists{/gist_id}","starred_url":"https://api.github.com/users/dvsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvsa/subscriptions","organizations_url":"https://api.github.com/users/dvsa/orgs","repos_url":"https://api.github.com/users/dvsa/repos","events_url":"https://api.github.com/users/dvsa/events{/privacy}","received_events_url":"https://api.github.com/users/dvsa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dvsa/rsp-public-portal","description":null,"fork":false,"url":"https://api.github.com/repos/dvsa/rsp-public-portal","forks_url":"https://api.github.com/repos/dvsa/rsp-public-portal/forks","keys_url":"https://api.github.com/repos/dvsa/rsp-public-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvsa/rsp-public-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvsa/rsp-public-portal/teams","hooks_url":"https://api.github.com/repos/dvsa/rsp-public-portal/hooks","issue_events_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/events{/number}","events_url":"https://api.github.com/repos/dvsa/rsp-public-portal/events","assignees_url":"https://api.github.com/repos/dvsa/rsp-public-portal/assignees{/user}","branches_url":"https://api.github.com/repos/dvsa/rsp-public-portal/branches{/branch}","tags_url":"https://api.github.com/repos/dvsa/rsp-public-portal/tags","blobs_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvsa/rsp-public-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/dvsa/rsp-public-portal/languages","stargazers_url":"https://api.github.com/repos/dvsa/rsp-public-portal/stargazers","contributors_url":"https://api.github.com/repos/dvsa/rsp-public-portal/contributors","subscribers_url":"https://api.github.com/repos/dvsa/rsp-public-portal/subscribers","subscription_url":"https://api.github.com/repos/dvsa/rsp-public-portal/subscription","commits_url":"https://api.github.com/repos/dvsa/rsp-public-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvsa/rsp-public-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvsa/rsp-public-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvsa/rsp-public-portal/contents/{+path}","compare_url":"https://api.github.com/repos/dvsa/rsp-public-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvsa/rsp-public-portal/merges","archive_url":"https://api.github.com/repos/dvsa/rsp-public-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvsa/rsp-public-portal/downloads","issues_url":"https://api.github.com/repos/dvsa/rsp-public-portal/issues{/number}","pulls_url":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/dvsa/rsp-public-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/dvsa/rsp-public-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvsa/rsp-public-portal/labels{/name}","releases_url":"https://api.github.com/repos/dvsa/rsp-public-portal/releases{/id}","deployments_url":"https://api.github.com/repos/dvsa/rsp-public-portal/deployments","created_at":"2018-02-05T23:35:11Z","updated_at":"2018-04-27T13:27:28Z","pushed_at":"2018-08-09T13:29:34Z","git_url":"git://github.com/dvsa/rsp-public-portal.git","ssh_url":"git@github.com:dvsa/rsp-public-portal.git","clone_url":"https://github.com/dvsa/rsp-public-portal.git","svn_url":"https://github.com/dvsa/rsp-public-portal","homepage":null,"size":1989,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37"},"html":{"href":"https://github.com/dvsa/rsp-public-portal/pull/37"},"issue":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/37"},"comments":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/dvsa/rsp-public-portal/statuses/0dc6140c7362cca1b354ed060fec1802c6aec870"}},"author_association":"NONE"}}
{"actor":{"display_login":"ammarhaiderbjss"}}