{"action":"created","comment":{"url":"https://api.github.com/repos/dvsa/motr/pulls/comments/184374518","pull_request_review_id":115556605,"id":184374518,"diff_hunk":"@@ -0,0 +1,58 @@\n+package uk.gov.dvsa.motr.notifier.processing.factory;\n+\n+import uk.gov.dvsa.motr.notifier.module.NotificationTemplateIds;\n+import uk.gov.dvsa.motr.notifier.processing.model.notification.OneDayAfterEmailNotification;\n+import uk.gov.dvsa.motr.notifier.processing.model.notification.OneMonthEmailNotification;\n+import uk.gov.dvsa.motr.notifier.processing.model.notification.SendableNotification;\n+import uk.gov.dvsa.motr.notifier.processing.model.SubscriptionQueueItem;\n+import uk.gov.dvsa.motr.notifier.processing.model.notification.TwoWeeksEmailNotification;\n+import uk.gov.dvsa.motr.notifier.processing.service.SubscriptionHandlerHelper;\n+import uk.gov.dvsa.motr.vehicledetails.VehicleDetails;\n+\n+import java.security.NoSuchAlgorithmException;\n+import java.time.LocalDate;\n+import java.util.Optional;\n+\n+public class SendableNotificationFactory {\n+\n+    private NotificationTemplateIds notificationTemplateIds;","path":"motr-notifier/src/main/java/uk/gov/dvsa/motr/notifier/processing/factory/SendableNotificationFactory.java","position":18,"original_position":18,"commit_id":"55dcef1ea60265045f1c9d59481f02ae3d0565c0","original_commit_id":"55dcef1ea60265045f1c9d59481f02ae3d0565c0","user":{"login":"djeley","id":7505298,"avatar_url":"https://avatars0.githubusercontent.com/u/7505298?v=4","gravatar_id":"","url":"https://api.github.com/users/djeley","html_url":"https://github.com/djeley","followers_url":"https://api.github.com/users/djeley/followers","following_url":"https://api.github.com/users/djeley/following{/other_user}","gists_url":"https://api.github.com/users/djeley/gists{/gist_id}","starred_url":"https://api.github.com/users/djeley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djeley/subscriptions","organizations_url":"https://api.github.com/users/djeley/orgs","repos_url":"https://api.github.com/users/djeley/repos","events_url":"https://api.github.com/users/djeley/events{/privacy}","received_events_url":"https://api.github.com/users/djeley/received_events","type":"User","site_admin":false},"body":"Is this factory going to be extended to incorporate sms notifications?","created_at":"2018-04-26T12:45:05Z","updated_at":"2018-04-26T12:45:05Z","html_url":"https://github.com/dvsa/motr/pull/17#discussion_r184374518","pull_request_url":"https://api.github.com/repos/dvsa/motr/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dvsa/motr/pulls/comments/184374518"},"html":{"href":"https://github.com/dvsa/motr/pull/17#discussion_r184374518"},"pull_request":{"href":"https://api.github.com/repos/dvsa/motr/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/dvsa/motr/pulls/17","id":184318596,"html_url":"https://github.com/dvsa/motr/pull/17","diff_url":"https://github.com/dvsa/motr/pull/17.diff","patch_url":"https://github.com/dvsa/motr/pull/17.patch","issue_url":"https://api.github.com/repos/dvsa/motr/issues/17","number":17,"state":"open","locked":false,"title":"WIP: BL-7659 Send reminders for HGV/PSV","user":{"login":"adrianz-kainos","id":20107321,"avatar_url":"https://avatars2.githubusercontent.com/u/20107321?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianz-kainos","html_url":"https://github.com/adrianz-kainos","followers_url":"https://api.github.com/users/adrianz-kainos/followers","following_url":"https://api.github.com/users/adrianz-kainos/following{/other_user}","gists_url":"https://api.github.com/users/adrianz-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianz-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianz-kainos/subscriptions","organizations_url":"https://api.github.com/users/adrianz-kainos/orgs","repos_url":"https://api.github.com/users/adrianz-kainos/repos","events_url":"https://api.github.com/users/adrianz-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/adrianz-kainos/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-26T12:09:18Z","updated_at":"2018-04-26T12:45:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7c9117f68f8fe1262da87b2f33073c22e56092e","assignee":{"login":"michalf-kainos","id":14292844,"avatar_url":"https://avatars3.githubusercontent.com/u/14292844?v=4","gravatar_id":"","url":"https://api.github.com/users/michalf-kainos","html_url":"https://github.com/michalf-kainos","followers_url":"https://api.github.com/users/michalf-kainos/followers","following_url":"https://api.github.com/users/michalf-kainos/following{/other_user}","gists_url":"https://api.github.com/users/michalf-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/michalf-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalf-kainos/subscriptions","organizations_url":"https://api.github.com/users/michalf-kainos/orgs","repos_url":"https://api.github.com/users/michalf-kainos/repos","events_url":"https://api.github.com/users/michalf-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/michalf-kainos/received_events","type":"User","site_admin":false},"assignees":[{"login":"michalf-kainos","id":14292844,"avatar_url":"https://avatars3.githubusercontent.com/u/14292844?v=4","gravatar_id":"","url":"https://api.github.com/users/michalf-kainos","html_url":"https://github.com/michalf-kainos","followers_url":"https://api.github.com/users/michalf-kainos/followers","following_url":"https://api.github.com/users/michalf-kainos/following{/other_user}","gists_url":"https://api.github.com/users/michalf-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/michalf-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalf-kainos/subscriptions","organizations_url":"https://api.github.com/users/michalf-kainos/orgs","repos_url":"https://api.github.com/users/michalf-kainos/repos","events_url":"https://api.github.com/users/michalf-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/michalf-kainos/received_events","type":"User","site_admin":false},{"login":"adrianz-kainos","id":20107321,"avatar_url":"https://avatars2.githubusercontent.com/u/20107321?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianz-kainos","html_url":"https://github.com/adrianz-kainos","followers_url":"https://api.github.com/users/adrianz-kainos/followers","following_url":"https://api.github.com/users/adrianz-kainos/following{/other_user}","gists_url":"https://api.github.com/users/adrianz-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianz-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianz-kainos/subscriptions","organizations_url":"https://api.github.com/users/adrianz-kainos/orgs","repos_url":"https://api.github.com/users/adrianz-kainos/repos","events_url":"https://api.github.com/users/adrianz-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/adrianz-kainos/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"przemos","id":7382082,"avatar_url":"https://avatars3.githubusercontent.com/u/7382082?v=4","gravatar_id":"","url":"https://api.github.com/users/przemos","html_url":"https://github.com/przemos","followers_url":"https://api.github.com/users/przemos/followers","following_url":"https://api.github.com/users/przemos/following{/other_user}","gists_url":"https://api.github.com/users/przemos/gists{/gist_id}","starred_url":"https://api.github.com/users/przemos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/przemos/subscriptions","organizations_url":"https://api.github.com/users/przemos/orgs","repos_url":"https://api.github.com/users/przemos/repos","events_url":"https://api.github.com/users/przemos/events{/privacy}","received_events_url":"https://api.github.com/users/przemos/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dvsa/motr/pulls/17/commits","review_comments_url":"https://api.github.com/repos/dvsa/motr/pulls/17/comments","review_comment_url":"https://api.github.com/repos/dvsa/motr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dvsa/motr/issues/17/comments","statuses_url":"https://api.github.com/repos/dvsa/motr/statuses/55dcef1ea60265045f1c9d59481f02ae3d0565c0","head":{"label":"dvsa:feature-BL-7659-send-HGV-PSV-reminders","ref":"feature-BL-7659-send-HGV-PSV-reminders","sha":"55dcef1ea60265045f1c9d59481f02ae3d0565c0","user":{"login":"dvsa","id":24296376,"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":113570712,"name":"motr","full_name":"dvsa/motr","owner":{"login":"dvsa","id":24296376,"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/motr","description":"MOT Reminders","fork":false,"url":"https://api.github.com/repos/dvsa/motr","forks_url":"https://api.github.com/repos/dvsa/motr/forks","keys_url":"https://api.github.com/repos/dvsa/motr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvsa/motr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvsa/motr/teams","hooks_url":"https://api.github.com/repos/dvsa/motr/hooks","issue_events_url":"https://api.github.com/repos/dvsa/motr/issues/events{/number}","events_url":"https://api.github.com/repos/dvsa/motr/events","assignees_url":"https://api.github.com/repos/dvsa/motr/assignees{/user}","branches_url":"https://api.github.com/repos/dvsa/motr/branches{/branch}","tags_url":"https://api.github.com/repos/dvsa/motr/tags","blobs_url":"https://api.github.com/repos/dvsa/motr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvsa/motr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvsa/motr/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvsa/motr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvsa/motr/statuses/{sha}","languages_url":"https://api.github.com/repos/dvsa/motr/languages","stargazers_url":"https://api.github.com/repos/dvsa/motr/stargazers","contributors_url":"https://api.github.com/repos/dvsa/motr/contributors","subscribers_url":"https://api.github.com/repos/dvsa/motr/subscribers","subscription_url":"https://api.github.com/repos/dvsa/motr/subscription","commits_url":"https://api.github.com/repos/dvsa/motr/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvsa/motr/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvsa/motr/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvsa/motr/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvsa/motr/contents/{+path}","compare_url":"https://api.github.com/repos/dvsa/motr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvsa/motr/merges","archive_url":"https://api.github.com/repos/dvsa/motr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvsa/motr/downloads","issues_url":"https://api.github.com/repos/dvsa/motr/issues{/number}","pulls_url":"https://api.github.com/repos/dvsa/motr/pulls{/number}","milestones_url":"https://api.github.com/repos/dvsa/motr/milestones{/number}","notifications_url":"https://api.github.com/repos/dvsa/motr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvsa/motr/labels{/name}","releases_url":"https://api.github.com/repos/dvsa/motr/releases{/id}","deployments_url":"https://api.github.com/repos/dvsa/motr/deployments","created_at":"2017-12-08T12:10:42Z","updated_at":"2018-04-25T14:36:48Z","pushed_at":"2018-04-26T12:09:20Z","git_url":"git://github.com/dvsa/motr.git","ssh_url":"git@github.com:dvsa/motr.git","clone_url":"https://github.com/dvsa/motr.git","svn_url":"https://github.com/dvsa/motr","homepage":null,"size":3806,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dvsa:master","ref":"master","sha":"9ac595e2abe29411c16f873589cb33349f1f733f","user":{"login":"dvsa","id":24296376,"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":113570712,"name":"motr","full_name":"dvsa/motr","owner":{"login":"dvsa","id":24296376,"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/motr","description":"MOT Reminders","fork":false,"url":"https://api.github.com/repos/dvsa/motr","forks_url":"https://api.github.com/repos/dvsa/motr/forks","keys_url":"https://api.github.com/repos/dvsa/motr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvsa/motr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvsa/motr/teams","hooks_url":"https://api.github.com/repos/dvsa/motr/hooks","issue_events_url":"https://api.github.com/repos/dvsa/motr/issues/events{/number}","events_url":"https://api.github.com/repos/dvsa/motr/events","assignees_url":"https://api.github.com/repos/dvsa/motr/assignees{/user}","branches_url":"https://api.github.com/repos/dvsa/motr/branches{/branch}","tags_url":"https://api.github.com/repos/dvsa/motr/tags","blobs_url":"https://api.github.com/repos/dvsa/motr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvsa/motr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvsa/motr/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvsa/motr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvsa/motr/statuses/{sha}","languages_url":"https://api.github.com/repos/dvsa/motr/languages","stargazers_url":"https://api.github.com/repos/dvsa/motr/stargazers","contributors_url":"https://api.github.com/repos/dvsa/motr/contributors","subscribers_url":"https://api.github.com/repos/dvsa/motr/subscribers","subscription_url":"https://api.github.com/repos/dvsa/motr/subscription","commits_url":"https://api.github.com/repos/dvsa/motr/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvsa/motr/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvsa/motr/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvsa/motr/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvsa/motr/contents/{+path}","compare_url":"https://api.github.com/repos/dvsa/motr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvsa/motr/merges","archive_url":"https://api.github.com/repos/dvsa/motr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvsa/motr/downloads","issues_url":"https://api.github.com/repos/dvsa/motr/issues{/number}","pulls_url":"https://api.github.com/repos/dvsa/motr/pulls{/number}","milestones_url":"https://api.github.com/repos/dvsa/motr/milestones{/number}","notifications_url":"https://api.github.com/repos/dvsa/motr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvsa/motr/labels{/name}","releases_url":"https://api.github.com/repos/dvsa/motr/releases{/id}","deployments_url":"https://api.github.com/repos/dvsa/motr/deployments","created_at":"2017-12-08T12:10:42Z","updated_at":"2018-04-25T14:36:48Z","pushed_at":"2018-04-26T12:09:20Z","git_url":"git://github.com/dvsa/motr.git","ssh_url":"git@github.com:dvsa/motr.git","clone_url":"https://github.com/dvsa/motr.git","svn_url":"https://github.com/dvsa/motr","homepage":null,"size":3806,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dvsa/motr/pulls/17"},"html":{"href":"https://github.com/dvsa/motr/pull/17"},"issue":{"href":"https://api.github.com/repos/dvsa/motr/issues/17"},"comments":{"href":"https://api.github.com/repos/dvsa/motr/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/dvsa/motr/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/dvsa/motr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dvsa/motr/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/dvsa/motr/statuses/55dcef1ea60265045f1c9d59481f02ae3d0565c0"}},"author_association":"NONE"}}
{"actor":{"display_login":"djeley"}}