{"action":"created","comment":{"url":"https://api.github.com/repos/dvsa/motr/pulls/comments/191712098","pull_request_review_id":124333950,"id":191712098,"diff_hunk":"@@ -0,0 +1,50 @@\n+package uk.gov.dvsa.motr.subscriptionloader.processing.producer;\n+\n+import uk.gov.dvsa.motr.vehicledetails.VehicleType;\n+\n+import java.time.LocalDate;\n+import java.util.Objects;\n+\n+public class SubscriptionCriteria {\n+    private final LocalDate testDueDate;\n+    private final VehicleType vehicleType;\n+\n+    public SubscriptionCriteria(LocalDate testDueDate, VehicleType vehicleType) {\n+        this.testDueDate = testDueDate;\n+        this.vehicleType = vehicleType;\n+    }\n+\n+    public LocalDate getTestDueDate() {\n+        return testDueDate;\n+    }\n+\n+    public VehicleType getVehicleType() {\n+        return vehicleType;\n+    }\n+\n+    @Override\n+    public boolean equals(Object o) {","path":"motr-subscription-loader/src/main/java/uk/gov/dvsa/motr/subscriptionloader/processing/producer/SubscriptionCriteria.java","position":26,"original_position":26,"commit_id":"57c43e1fda0543471110f772770ef7f33a77c302","original_commit_id":"e2c98dd0f8f7fcbdcdd57644e1f97a435b12f4c1","user":{"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},"body":"I went with the pattern already usend in [ContanctDetail](https://github.com/dvsa/motr/blob/c519c0569c042bf9322006272d21420ce58b189e/motr-notifier/src/main/java/uk/gov/dvsa/motr/notifier/processing/model/ContactDetail.java#L34|ContactDetail)","created_at":"2018-05-30T10:07:26Z","updated_at":"2018-05-30T10:07:26Z","html_url":"https://github.com/dvsa/motr/pull/27#discussion_r191712098","pull_request_url":"https://api.github.com/repos/dvsa/motr/pulls/27","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dvsa/motr/pulls/comments/191712098"},"html":{"href":"https://github.com/dvsa/motr/pull/27#discussion_r191712098"},"pull_request":{"href":"https://api.github.com/repos/dvsa/motr/pulls/27"}},"in_reply_to_id":191366889},"pull_request":{"url":"https://api.github.com/repos/dvsa/motr/pulls/27","id":190952751,"html_url":"https://github.com/dvsa/motr/pull/27","diff_url":"https://github.com/dvsa/motr/pull/27.diff","patch_url":"https://github.com/dvsa/motr/pull/27.patch","issue_url":"https://api.github.com/repos/dvsa/motr/issues/27","number":27,"state":"open","locked":false,"title":"WIP: BL-7659 Load HGV/PSV subscriptions for notification","user":{"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},"body":"","created_at":"2018-05-28T15:08:30Z","updated_at":"2018-05-30T10:07:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cde56420363bfe4c486729d96adf15dae110660a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dvsa/motr/pulls/27/commits","review_comments_url":"https://api.github.com/repos/dvsa/motr/pulls/27/comments","review_comment_url":"https://api.github.com/repos/dvsa/motr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dvsa/motr/issues/27/comments","statuses_url":"https://api.github.com/repos/dvsa/motr/statuses/57c43e1fda0543471110f772770ef7f33a77c302","head":{"label":"dvsa:feature-BL-7917-load-hgv-psv-subscriptions","ref":"feature-BL-7917-load-hgv-psv-subscriptions","sha":"57c43e1fda0543471110f772770ef7f33a77c302","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-05-21T14:19:11Z","pushed_at":"2018-05-30T09:41:27Z","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":2900,"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":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"dvsa:master","ref":"master","sha":"c519c0569c042bf9322006272d21420ce58b189e","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-05-21T14:19:11Z","pushed_at":"2018-05-30T09:41:27Z","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":2900,"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":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dvsa/motr/pulls/27"},"html":{"href":"https://github.com/dvsa/motr/pull/27"},"issue":{"href":"https://api.github.com/repos/dvsa/motr/issues/27"},"comments":{"href":"https://api.github.com/repos/dvsa/motr/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/dvsa/motr/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/dvsa/motr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dvsa/motr/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/dvsa/motr/statuses/57c43e1fda0543471110f772770ef7f33a77c302"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"michalf-kainos"}}