{"action":"created","comment":{"url":"https://api.github.com/repos/Patrolfr/parking-management/pulls/comments/244699321","pull_request_review_id":188631554,"id":244699321,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDY5OTMyMQ==","diff_hunk":"@@ -0,0 +1,122 @@\n+package komo.fraczek.toukparking.domain;\n+\n+import javax.persistence.*;\n+import java.math.BigDecimal;\n+import java.time.LocalDate;\n+\n+\n+@Entity\n+public class ParkingBill {\n+\n+    @javax.persistence.Id\n+    @GeneratedValue(strategy = GenerationType.IDENTITY)\n+    private Long Id;\n+\n+    //    Driver type\n+    @Enumerated(EnumType.STRING)\n+    private DriverType driverType;\n+\n+    //    Parking activity status\n+    @Enumerated(EnumType.STRING)\n+    private ParkingStatus parkingStatus;\n+\n+    //    Vehicle registration number\n+    private String numberPlate;\n+\n+    private int parkingTimeInHours;\n+\n+    //    Bill issue date\n+    private LocalDate date;\n+\n+    //    Fee grows so fast that after few days it exceedes default DECIMAL(19, 2) range..\n+    @Column(name = \"PARKING_FEE\", columnDefinition = \"DECIMAL(30, 2)\")\n+    private BigDecimal parkingFee;\n+\n+\n+    public ParkingBill() {\n+    }\n+\n+    public ParkingBill(DriverType driverType, String numberPlate) {\n+        this.driverType = driverType;\n+        this.numberPlate = numberPlate;\n+        this.parkingStatus = ParkingStatus.OCCUPIED;\n+    }\n+\n+    public ParkingBill(DriverType driverType, ParkingStatus parkingStatus, String numberPlate, int parkingTimeInHours, LocalDate date, BigDecimal parkingFee) {\n+        this.driverType = driverType;\n+        this.parkingStatus = parkingStatus;\n+        this.numberPlate = numberPlate;\n+        this.parkingTimeInHours = parkingTimeInHours;\n+        this.date = date;\n+        this.parkingFee = parkingFee;\n+    }\n+\n+    public int getParkingTimeInHours() {","path":"src/main/java/komo/fraczek/toukparking/domain/ParkingBill.java","position":54,"original_position":54,"commit_id":"623751f273f847df74c212af6eea3975e25abba7","original_commit_id":"623751f273f847df74c212af6eea3975e25abba7","user":{"login":"Patrolfr","id":11542462,"node_id":"MDQ6VXNlcjExNTQyNDYy","avatar_url":"https://avatars0.githubusercontent.com/u/11542462?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrolfr","html_url":"https://github.com/Patrolfr","followers_url":"https://api.github.com/users/Patrolfr/followers","following_url":"https://api.github.com/users/Patrolfr/following{/other_user}","gists_url":"https://api.github.com/users/Patrolfr/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrolfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrolfr/subscriptions","organizations_url":"https://api.github.com/users/Patrolfr/orgs","repos_url":"https://api.github.com/users/Patrolfr/repos","events_url":"https://api.github.com/users/Patrolfr/events{/privacy}","received_events_url":"https://api.github.com/users/Patrolfr/received_events","type":"User","site_admin":false},"body":"Czytałem o projekcie Lombok, jeśli polecasz to pewnie zacznę dodatkowo używać :)","created_at":"2019-01-02T10:17:10Z","updated_at":"2019-01-02T10:17:11Z","html_url":"https://github.com/Patrolfr/parking-management/pull/2#discussion_r244699321","pull_request_url":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Patrolfr/parking-management/pulls/comments/244699321"},"html":{"href":"https://github.com/Patrolfr/parking-management/pull/2#discussion_r244699321"},"pull_request":{"href":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2"}},"in_reply_to_id":244668493},"pull_request":{"url":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2","id":241588013,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNTg4MDEz","html_url":"https://github.com/Patrolfr/parking-management/pull/2","diff_url":"https://github.com/Patrolfr/parking-management/pull/2.diff","patch_url":"https://github.com/Patrolfr/parking-management/pull/2.patch","issue_url":"https://api.github.com/repos/Patrolfr/parking-management/issues/2","number":2,"state":"open","locked":false,"title":"Review","user":{"login":"Patrolfr","id":11542462,"node_id":"MDQ6VXNlcjExNTQyNDYy","avatar_url":"https://avatars0.githubusercontent.com/u/11542462?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrolfr","html_url":"https://github.com/Patrolfr","followers_url":"https://api.github.com/users/Patrolfr/followers","following_url":"https://api.github.com/users/Patrolfr/following{/other_user}","gists_url":"https://api.github.com/users/Patrolfr/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrolfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrolfr/subscriptions","organizations_url":"https://api.github.com/users/Patrolfr/orgs","repos_url":"https://api.github.com/users/Patrolfr/repos","events_url":"https://api.github.com/users/Patrolfr/events{/privacy}","received_events_url":"https://api.github.com/users/Patrolfr/received_events","type":"User","site_admin":false},"body":"I have created new pull request with source files..","created_at":"2018-12-31T17:59:30Z","updated_at":"2019-01-02T10:17:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0036662fdca592d1840bc91e3dc1e0b403f64127","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Patrolfr/parking-management/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Patrolfr/parking-management/issues/2/comments","statuses_url":"https://api.github.com/repos/Patrolfr/parking-management/statuses/623751f273f847df74c212af6eea3975e25abba7","head":{"label":"Patrolfr:review","ref":"review","sha":"623751f273f847df74c212af6eea3975e25abba7","user":{"login":"Patrolfr","id":11542462,"node_id":"MDQ6VXNlcjExNTQyNDYy","avatar_url":"https://avatars0.githubusercontent.com/u/11542462?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrolfr","html_url":"https://github.com/Patrolfr","followers_url":"https://api.github.com/users/Patrolfr/followers","following_url":"https://api.github.com/users/Patrolfr/following{/other_user}","gists_url":"https://api.github.com/users/Patrolfr/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrolfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrolfr/subscriptions","organizations_url":"https://api.github.com/users/Patrolfr/orgs","repos_url":"https://api.github.com/users/Patrolfr/repos","events_url":"https://api.github.com/users/Patrolfr/events{/privacy}","received_events_url":"https://api.github.com/users/Patrolfr/received_events","type":"User","site_admin":false},"repo":{"id":161913295,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE5MTMyOTU=","name":"parking-management","full_name":"Patrolfr/parking-management","private":false,"owner":{"login":"Patrolfr","id":11542462,"node_id":"MDQ6VXNlcjExNTQyNDYy","avatar_url":"https://avatars0.githubusercontent.com/u/11542462?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrolfr","html_url":"https://github.com/Patrolfr","followers_url":"https://api.github.com/users/Patrolfr/followers","following_url":"https://api.github.com/users/Patrolfr/following{/other_user}","gists_url":"https://api.github.com/users/Patrolfr/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrolfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrolfr/subscriptions","organizations_url":"https://api.github.com/users/Patrolfr/orgs","repos_url":"https://api.github.com/users/Patrolfr/repos","events_url":"https://api.github.com/users/Patrolfr/events{/privacy}","received_events_url":"https://api.github.com/users/Patrolfr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Patrolfr/parking-management","description":"Service for managing the city parking spaces.","fork":false,"url":"https://api.github.com/repos/Patrolfr/parking-management","forks_url":"https://api.github.com/repos/Patrolfr/parking-management/forks","keys_url":"https://api.github.com/repos/Patrolfr/parking-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Patrolfr/parking-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Patrolfr/parking-management/teams","hooks_url":"https://api.github.com/repos/Patrolfr/parking-management/hooks","issue_events_url":"https://api.github.com/repos/Patrolfr/parking-management/issues/events{/number}","events_url":"https://api.github.com/repos/Patrolfr/parking-management/events","assignees_url":"https://api.github.com/repos/Patrolfr/parking-management/assignees{/user}","branches_url":"https://api.github.com/repos/Patrolfr/parking-management/branches{/branch}","tags_url":"https://api.github.com/repos/Patrolfr/parking-management/tags","blobs_url":"https://api.github.com/repos/Patrolfr/parking-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Patrolfr/parking-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Patrolfr/parking-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/Patrolfr/parking-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Patrolfr/parking-management/statuses/{sha}","languages_url":"https://api.github.com/repos/Patrolfr/parking-management/languages","stargazers_url":"https://api.github.com/repos/Patrolfr/parking-management/stargazers","contributors_url":"https://api.github.com/repos/Patrolfr/parking-management/contributors","subscribers_url":"https://api.github.com/repos/Patrolfr/parking-management/subscribers","subscription_url":"https://api.github.com/repos/Patrolfr/parking-management/subscription","commits_url":"https://api.github.com/repos/Patrolfr/parking-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/Patrolfr/parking-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/Patrolfr/parking-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/Patrolfr/parking-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/Patrolfr/parking-management/contents/{+path}","compare_url":"https://api.github.com/repos/Patrolfr/parking-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Patrolfr/parking-management/merges","archive_url":"https://api.github.com/repos/Patrolfr/parking-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Patrolfr/parking-management/downloads","issues_url":"https://api.github.com/repos/Patrolfr/parking-management/issues{/number}","pulls_url":"https://api.github.com/repos/Patrolfr/parking-management/pulls{/number}","milestones_url":"https://api.github.com/repos/Patrolfr/parking-management/milestones{/number}","notifications_url":"https://api.github.com/repos/Patrolfr/parking-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Patrolfr/parking-management/labels{/name}","releases_url":"https://api.github.com/repos/Patrolfr/parking-management/releases{/id}","deployments_url":"https://api.github.com/repos/Patrolfr/parking-management/deployments","created_at":"2018-12-15T14:34:51Z","updated_at":"2018-12-30T18:53:32Z","pushed_at":"2018-12-31T17:59:31Z","git_url":"git://github.com/Patrolfr/parking-management.git","ssh_url":"git@github.com:Patrolfr/parking-management.git","clone_url":"https://github.com/Patrolfr/parking-management.git","svn_url":"https://github.com/Patrolfr/parking-management","homepage":null,"size":261,"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":"Patrolfr:ref","ref":"ref","sha":"01e06b9b97914ab6be3e69dec1d6a51e24aecd12","user":{"login":"Patrolfr","id":11542462,"node_id":"MDQ6VXNlcjExNTQyNDYy","avatar_url":"https://avatars0.githubusercontent.com/u/11542462?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrolfr","html_url":"https://github.com/Patrolfr","followers_url":"https://api.github.com/users/Patrolfr/followers","following_url":"https://api.github.com/users/Patrolfr/following{/other_user}","gists_url":"https://api.github.com/users/Patrolfr/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrolfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrolfr/subscriptions","organizations_url":"https://api.github.com/users/Patrolfr/orgs","repos_url":"https://api.github.com/users/Patrolfr/repos","events_url":"https://api.github.com/users/Patrolfr/events{/privacy}","received_events_url":"https://api.github.com/users/Patrolfr/received_events","type":"User","site_admin":false},"repo":{"id":161913295,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE5MTMyOTU=","name":"parking-management","full_name":"Patrolfr/parking-management","private":false,"owner":{"login":"Patrolfr","id":11542462,"node_id":"MDQ6VXNlcjExNTQyNDYy","avatar_url":"https://avatars0.githubusercontent.com/u/11542462?v=4","gravatar_id":"","url":"https://api.github.com/users/Patrolfr","html_url":"https://github.com/Patrolfr","followers_url":"https://api.github.com/users/Patrolfr/followers","following_url":"https://api.github.com/users/Patrolfr/following{/other_user}","gists_url":"https://api.github.com/users/Patrolfr/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrolfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrolfr/subscriptions","organizations_url":"https://api.github.com/users/Patrolfr/orgs","repos_url":"https://api.github.com/users/Patrolfr/repos","events_url":"https://api.github.com/users/Patrolfr/events{/privacy}","received_events_url":"https://api.github.com/users/Patrolfr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Patrolfr/parking-management","description":"Service for managing the city parking spaces.","fork":false,"url":"https://api.github.com/repos/Patrolfr/parking-management","forks_url":"https://api.github.com/repos/Patrolfr/parking-management/forks","keys_url":"https://api.github.com/repos/Patrolfr/parking-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Patrolfr/parking-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Patrolfr/parking-management/teams","hooks_url":"https://api.github.com/repos/Patrolfr/parking-management/hooks","issue_events_url":"https://api.github.com/repos/Patrolfr/parking-management/issues/events{/number}","events_url":"https://api.github.com/repos/Patrolfr/parking-management/events","assignees_url":"https://api.github.com/repos/Patrolfr/parking-management/assignees{/user}","branches_url":"https://api.github.com/repos/Patrolfr/parking-management/branches{/branch}","tags_url":"https://api.github.com/repos/Patrolfr/parking-management/tags","blobs_url":"https://api.github.com/repos/Patrolfr/parking-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Patrolfr/parking-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Patrolfr/parking-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/Patrolfr/parking-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Patrolfr/parking-management/statuses/{sha}","languages_url":"https://api.github.com/repos/Patrolfr/parking-management/languages","stargazers_url":"https://api.github.com/repos/Patrolfr/parking-management/stargazers","contributors_url":"https://api.github.com/repos/Patrolfr/parking-management/contributors","subscribers_url":"https://api.github.com/repos/Patrolfr/parking-management/subscribers","subscription_url":"https://api.github.com/repos/Patrolfr/parking-management/subscription","commits_url":"https://api.github.com/repos/Patrolfr/parking-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/Patrolfr/parking-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/Patrolfr/parking-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/Patrolfr/parking-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/Patrolfr/parking-management/contents/{+path}","compare_url":"https://api.github.com/repos/Patrolfr/parking-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Patrolfr/parking-management/merges","archive_url":"https://api.github.com/repos/Patrolfr/parking-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Patrolfr/parking-management/downloads","issues_url":"https://api.github.com/repos/Patrolfr/parking-management/issues{/number}","pulls_url":"https://api.github.com/repos/Patrolfr/parking-management/pulls{/number}","milestones_url":"https://api.github.com/repos/Patrolfr/parking-management/milestones{/number}","notifications_url":"https://api.github.com/repos/Patrolfr/parking-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Patrolfr/parking-management/labels{/name}","releases_url":"https://api.github.com/repos/Patrolfr/parking-management/releases{/id}","deployments_url":"https://api.github.com/repos/Patrolfr/parking-management/deployments","created_at":"2018-12-15T14:34:51Z","updated_at":"2018-12-30T18:53:32Z","pushed_at":"2018-12-31T17:59:31Z","git_url":"git://github.com/Patrolfr/parking-management.git","ssh_url":"git@github.com:Patrolfr/parking-management.git","clone_url":"https://github.com/Patrolfr/parking-management.git","svn_url":"https://github.com/Patrolfr/parking-management","homepage":null,"size":261,"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/Patrolfr/parking-management/pulls/2"},"html":{"href":"https://github.com/Patrolfr/parking-management/pull/2"},"issue":{"href":"https://api.github.com/repos/Patrolfr/parking-management/issues/2"},"comments":{"href":"https://api.github.com/repos/Patrolfr/parking-management/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Patrolfr/parking-management/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Patrolfr/parking-management/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Patrolfr/parking-management/statuses/623751f273f847df74c212af6eea3975e25abba7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Patrolfr"}}