{"action":"created","comment":{"url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/comments/224762850","pull_request_review_id":164213577,"id":224762850,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDc2Mjg1MA==","diff_hunk":"@@ -0,0 +1,41 @@\n+package com.ddebowczyk.parkingmeter.service.parkingcharge.strategy;\n+\n+import com.ddebowczyk.parkingmeter.domain.DriverType;\n+import com.ddebowczyk.parkingmeter.service.parkingcharge.CurrencyAndDriverTypeHourRateChargeModel;\n+import com.ddebowczyk.parkingmeter.service.parkingcharge.ParkingChargeModel;\n+import org.springframework.core.annotation.Order;\n+import org.springframework.stereotype.Component;\n+\n+import java.math.BigDecimal;\n+\n+@Component\n+@Order(value = 1)\n+public class ReducedParkingChargeHourRateStrategy extends ParkingChargeHourRateStrategy {\n+\n+    private static final BigDecimal FIRST_HOUR_CHARGE = new BigDecimal(\"0\");\n+    private static final BigDecimal SECOND_HOUR_CHARGE = new BigDecimal(\"2\");\n+    private static final BigDecimal NEXT_HOUR_RATE = new BigDecimal(\"1.2\");\n+\n+    @Override\n+    public boolean applies(ParkingChargeModel parkingChargeModel) {\n+        if (parkingChargeModel instanceof CurrencyAndDriverTypeHourRateChargeModel) {\n+            return DriverType.DISABLED == ((CurrencyAndDriverTypeHourRateChargeModel) parkingChargeModel).getDriverType();","path":"src/main/java/com/ddebowczyk/parkingmeter/service/parkingcharge/strategy/ReducedParkingChargeHourRateStrategy.java","position":22,"original_position":22,"commit_id":"d87c0e14e1d39a64208cb7c6343c7a09ba1ff595","original_commit_id":"d87c0e14e1d39a64208cb7c6343c7a09ba1ff595","user":{"login":"ddebowczyk92","id":8567235,"node_id":"MDQ6VXNlcjg1NjcyMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8567235?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebowczyk92","html_url":"https://github.com/ddebowczyk92","followers_url":"https://api.github.com/users/ddebowczyk92/followers","following_url":"https://api.github.com/users/ddebowczyk92/following{/other_user}","gists_url":"https://api.github.com/users/ddebowczyk92/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebowczyk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebowczyk92/subscriptions","organizations_url":"https://api.github.com/users/ddebowczyk92/orgs","repos_url":"https://api.github.com/users/ddebowczyk92/repos","events_url":"https://api.github.com/users/ddebowczyk92/events{/privacy}","received_events_url":"https://api.github.com/users/ddebowczyk92/received_events","type":"User","site_admin":false},"body":"szczerze to nie mam pomysłu","created_at":"2018-10-12T12:10:19Z","updated_at":"2018-10-12T12:10:19Z","html_url":"https://github.com/ddebowczyk92/parking-meter/pull/1#discussion_r224762850","pull_request_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/comments/224762850"},"html":{"href":"https://github.com/ddebowczyk92/parking-meter/pull/1#discussion_r224762850"},"pull_request":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1"}},"in_reply_to_id":224750628},"pull_request":{"url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1","id":222304313,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMzA0MzEz","html_url":"https://github.com/ddebowczyk92/parking-meter/pull/1","diff_url":"https://github.com/ddebowczyk92/parking-meter/pull/1.diff","patch_url":"https://github.com/ddebowczyk92/parking-meter/pull/1.patch","issue_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/1","number":1,"state":"open","locked":false,"title":"completed recruitment project","user":{"login":"ddebowczyk92","id":8567235,"node_id":"MDQ6VXNlcjg1NjcyMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8567235?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebowczyk92","html_url":"https://github.com/ddebowczyk92","followers_url":"https://api.github.com/users/ddebowczyk92/followers","following_url":"https://api.github.com/users/ddebowczyk92/following{/other_user}","gists_url":"https://api.github.com/users/ddebowczyk92/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebowczyk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebowczyk92/subscriptions","organizations_url":"https://api.github.com/users/ddebowczyk92/orgs","repos_url":"https://api.github.com/users/ddebowczyk92/repos","events_url":"https://api.github.com/users/ddebowczyk92/events{/privacy}","received_events_url":"https://api.github.com/users/ddebowczyk92/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-11T23:00:51Z","updated_at":"2018-10-12T12:10:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daf7f3d7aec210c069f165ecdbbfb552cbcc920c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/1/comments","statuses_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/statuses/d87c0e14e1d39a64208cb7c6343c7a09ba1ff595","head":{"label":"ddebowczyk92:develop","ref":"develop","sha":"d87c0e14e1d39a64208cb7c6343c7a09ba1ff595","user":{"login":"ddebowczyk92","id":8567235,"node_id":"MDQ6VXNlcjg1NjcyMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8567235?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebowczyk92","html_url":"https://github.com/ddebowczyk92","followers_url":"https://api.github.com/users/ddebowczyk92/followers","following_url":"https://api.github.com/users/ddebowczyk92/following{/other_user}","gists_url":"https://api.github.com/users/ddebowczyk92/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebowczyk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebowczyk92/subscriptions","organizations_url":"https://api.github.com/users/ddebowczyk92/orgs","repos_url":"https://api.github.com/users/ddebowczyk92/repos","events_url":"https://api.github.com/users/ddebowczyk92/events{/privacy}","received_events_url":"https://api.github.com/users/ddebowczyk92/received_events","type":"User","site_admin":false},"repo":{"id":152664366,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI2NjQzNjY=","name":"parking-meter","full_name":"ddebowczyk92/parking-meter","private":false,"owner":{"login":"ddebowczyk92","id":8567235,"node_id":"MDQ6VXNlcjg1NjcyMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8567235?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebowczyk92","html_url":"https://github.com/ddebowczyk92","followers_url":"https://api.github.com/users/ddebowczyk92/followers","following_url":"https://api.github.com/users/ddebowczyk92/following{/other_user}","gists_url":"https://api.github.com/users/ddebowczyk92/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebowczyk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebowczyk92/subscriptions","organizations_url":"https://api.github.com/users/ddebowczyk92/orgs","repos_url":"https://api.github.com/users/ddebowczyk92/repos","events_url":"https://api.github.com/users/ddebowczyk92/events{/privacy}","received_events_url":"https://api.github.com/users/ddebowczyk92/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ddebowczyk92/parking-meter","description":"Recruitment project","fork":false,"url":"https://api.github.com/repos/ddebowczyk92/parking-meter","forks_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/forks","keys_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/teams","hooks_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/hooks","issue_events_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/events{/number}","events_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/events","assignees_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/assignees{/user}","branches_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/branches{/branch}","tags_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/tags","blobs_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/statuses/{sha}","languages_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/languages","stargazers_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/stargazers","contributors_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/contributors","subscribers_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/subscribers","subscription_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/subscription","commits_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/contents/{+path}","compare_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/merges","archive_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/downloads","issues_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues{/number}","pulls_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls{/number}","milestones_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/milestones{/number}","notifications_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/labels{/name}","releases_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/releases{/id}","deployments_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/deployments","created_at":"2018-10-11T22:42:19Z","updated_at":"2018-10-11T22:43:17Z","pushed_at":"2018-10-11T23:00:52Z","git_url":"git://github.com/ddebowczyk92/parking-meter.git","ssh_url":"git@github.com:ddebowczyk92/parking-meter.git","clone_url":"https://github.com/ddebowczyk92/parking-meter.git","svn_url":"https://github.com/ddebowczyk92/parking-meter","homepage":null,"size":71,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ddebowczyk92:master","ref":"master","sha":"1ee78386b58a82d4d255bacf77ada9fb7e533b7e","user":{"login":"ddebowczyk92","id":8567235,"node_id":"MDQ6VXNlcjg1NjcyMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8567235?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebowczyk92","html_url":"https://github.com/ddebowczyk92","followers_url":"https://api.github.com/users/ddebowczyk92/followers","following_url":"https://api.github.com/users/ddebowczyk92/following{/other_user}","gists_url":"https://api.github.com/users/ddebowczyk92/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebowczyk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebowczyk92/subscriptions","organizations_url":"https://api.github.com/users/ddebowczyk92/orgs","repos_url":"https://api.github.com/users/ddebowczyk92/repos","events_url":"https://api.github.com/users/ddebowczyk92/events{/privacy}","received_events_url":"https://api.github.com/users/ddebowczyk92/received_events","type":"User","site_admin":false},"repo":{"id":152664366,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI2NjQzNjY=","name":"parking-meter","full_name":"ddebowczyk92/parking-meter","private":false,"owner":{"login":"ddebowczyk92","id":8567235,"node_id":"MDQ6VXNlcjg1NjcyMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8567235?v=4","gravatar_id":"","url":"https://api.github.com/users/ddebowczyk92","html_url":"https://github.com/ddebowczyk92","followers_url":"https://api.github.com/users/ddebowczyk92/followers","following_url":"https://api.github.com/users/ddebowczyk92/following{/other_user}","gists_url":"https://api.github.com/users/ddebowczyk92/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebowczyk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebowczyk92/subscriptions","organizations_url":"https://api.github.com/users/ddebowczyk92/orgs","repos_url":"https://api.github.com/users/ddebowczyk92/repos","events_url":"https://api.github.com/users/ddebowczyk92/events{/privacy}","received_events_url":"https://api.github.com/users/ddebowczyk92/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ddebowczyk92/parking-meter","description":"Recruitment project","fork":false,"url":"https://api.github.com/repos/ddebowczyk92/parking-meter","forks_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/forks","keys_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/teams","hooks_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/hooks","issue_events_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/events{/number}","events_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/events","assignees_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/assignees{/user}","branches_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/branches{/branch}","tags_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/tags","blobs_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/statuses/{sha}","languages_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/languages","stargazers_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/stargazers","contributors_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/contributors","subscribers_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/subscribers","subscription_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/subscription","commits_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/contents/{+path}","compare_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/merges","archive_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/downloads","issues_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues{/number}","pulls_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls{/number}","milestones_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/milestones{/number}","notifications_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/labels{/name}","releases_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/releases{/id}","deployments_url":"https://api.github.com/repos/ddebowczyk92/parking-meter/deployments","created_at":"2018-10-11T22:42:19Z","updated_at":"2018-10-11T22:43:17Z","pushed_at":"2018-10-11T23:00:52Z","git_url":"git://github.com/ddebowczyk92/parking-meter.git","ssh_url":"git@github.com:ddebowczyk92/parking-meter.git","clone_url":"https://github.com/ddebowczyk92/parking-meter.git","svn_url":"https://github.com/ddebowczyk92/parking-meter","homepage":null,"size":71,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1"},"html":{"href":"https://github.com/ddebowczyk92/parking-meter/pull/1"},"issue":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/1"},"comments":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ddebowczyk92/parking-meter/statuses/d87c0e14e1d39a64208cb7c6343c7a09ba1ff595"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ddebowczyk92"}}