{"action":"created","comment":{"url":"https://api.github.com/repos/ogify/ogify/pulls/comments/43087307","id":43087307,"diff_hunk":"@@ -61,6 +61,23 @@ public Order createOrder(Long userId, Order order) {\n     }\n \n     /**\n+     * Method edits order on behalf of the specified user.\n+     *\n+     * @param userId users id on behalf order should be created\n+     * @param order order which should be created.\n+     */\n+    public void editOrder(Long userId, Order order) {","path":"srv/src/main/java/net/ogify/engine/order/OrderProcessor.java","position":9,"original_position":9,"commit_id":"83bb1746194a090bdc6fbee7db47b22ffd324612","original_commit_id":"83bb1746194a090bdc6fbee7db47b22ffd324612","user":{"login":"melges-morgen","id":1835443,"avatar_url":"https://avatars.githubusercontent.com/u/1835443?v=3","gravatar_id":"","url":"https://api.github.com/users/melges-morgen","html_url":"https://github.com/melges-morgen","followers_url":"https://api.github.com/users/melges-morgen/followers","following_url":"https://api.github.com/users/melges-morgen/following{/other_user}","gists_url":"https://api.github.com/users/melges-morgen/gists{/gist_id}","starred_url":"https://api.github.com/users/melges-morgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melges-morgen/subscriptions","organizations_url":"https://api.github.com/users/melges-morgen/orgs","repos_url":"https://api.github.com/users/melges-morgen/repos","events_url":"https://api.github.com/users/melges-morgen/events{/privacy}","received_events_url":"https://api.github.com/users/melges-morgen/received_events","type":"User","site_admin":false},"body":"Можно брать ордер из базы, проверять все поля, и обновлять только items, description и expireIn","created_at":"2015-10-27T06:15:15Z","updated_at":"2015-10-27T06:15:15Z","html_url":"https://github.com/ogify/ogify/pull/129#discussion_r43087307","pull_request_url":"https://api.github.com/repos/ogify/ogify/pulls/129","_links":{"self":{"href":"https://api.github.com/repos/ogify/ogify/pulls/comments/43087307"},"html":{"href":"https://github.com/ogify/ogify/pull/129#discussion_r43087307"},"pull_request":{"href":"https://api.github.com/repos/ogify/ogify/pulls/129"}}},"pull_request":{"url":"https://api.github.com/repos/ogify/ogify/pulls/129","id":48679489,"html_url":"https://github.com/ogify/ogify/pull/129","diff_url":"https://github.com/ogify/ogify/pull/129.diff","patch_url":"https://github.com/ogify/ogify/pull/129.patch","issue_url":"https://api.github.com/repos/ogify/ogify/issues/129","number":129,"state":"closed","locked":false,"title":"Feature/edit and delete orders","user":{"login":"matveiosipov","id":14932103,"avatar_url":"https://avatars.githubusercontent.com/u/14932103?v=3","gravatar_id":"","url":"https://api.github.com/users/matveiosipov","html_url":"https://github.com/matveiosipov","followers_url":"https://api.github.com/users/matveiosipov/followers","following_url":"https://api.github.com/users/matveiosipov/following{/other_user}","gists_url":"https://api.github.com/users/matveiosipov/gists{/gist_id}","starred_url":"https://api.github.com/users/matveiosipov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matveiosipov/subscriptions","organizations_url":"https://api.github.com/users/matveiosipov/orgs","repos_url":"https://api.github.com/users/matveiosipov/repos","events_url":"https://api.github.com/users/matveiosipov/events{/privacy}","received_events_url":"https://api.github.com/users/matveiosipov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-25T14:29:44Z","updated_at":"2015-10-27T06:15:15Z","closed_at":"2015-10-26T15:07:08Z","merged_at":"2015-10-26T15:07:08Z","merge_commit_sha":"9af59424c2ca4d750640515de91495e2fb94e57f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ogify/ogify/pulls/129/commits","review_comments_url":"https://api.github.com/repos/ogify/ogify/pulls/129/comments","review_comment_url":"https://api.github.com/repos/ogify/ogify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ogify/ogify/issues/129/comments","statuses_url":"https://api.github.com/repos/ogify/ogify/statuses/83bb1746194a090bdc6fbee7db47b22ffd324612","head":{"label":"ogify:feature/Edit-And-Delete-Orders","ref":"feature/Edit-And-Delete-Orders","sha":"83bb1746194a090bdc6fbee7db47b22ffd324612","user":{"login":"ogify","id":14138153,"avatar_url":"https://avatars.githubusercontent.com/u/14138153?v=3","gravatar_id":"","url":"https://api.github.com/users/ogify","html_url":"https://github.com/ogify","followers_url":"https://api.github.com/users/ogify/followers","following_url":"https://api.github.com/users/ogify/following{/other_user}","gists_url":"https://api.github.com/users/ogify/gists{/gist_id}","starred_url":"https://api.github.com/users/ogify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogify/subscriptions","organizations_url":"https://api.github.com/users/ogify/orgs","repos_url":"https://api.github.com/users/ogify/repos","events_url":"https://api.github.com/users/ogify/events{/privacy}","received_events_url":"https://api.github.com/users/ogify/received_events","type":"Organization","site_admin":false},"repo":{"id":30619500,"name":"ogify","full_name":"ogify/ogify","owner":{"login":"ogify","id":14138153,"avatar_url":"https://avatars.githubusercontent.com/u/14138153?v=3","gravatar_id":"","url":"https://api.github.com/users/ogify","html_url":"https://github.com/ogify","followers_url":"https://api.github.com/users/ogify/followers","following_url":"https://api.github.com/users/ogify/following{/other_user}","gists_url":"https://api.github.com/users/ogify/gists{/gist_id}","starred_url":"https://api.github.com/users/ogify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogify/subscriptions","organizations_url":"https://api.github.com/users/ogify/orgs","repos_url":"https://api.github.com/users/ogify/repos","events_url":"https://api.github.com/users/ogify/events{/privacy}","received_events_url":"https://api.github.com/users/ogify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ogify/ogify","description":"Eat With Benefit","fork":false,"url":"https://api.github.com/repos/ogify/ogify","forks_url":"https://api.github.com/repos/ogify/ogify/forks","keys_url":"https://api.github.com/repos/ogify/ogify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogify/ogify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogify/ogify/teams","hooks_url":"https://api.github.com/repos/ogify/ogify/hooks","issue_events_url":"https://api.github.com/repos/ogify/ogify/issues/events{/number}","events_url":"https://api.github.com/repos/ogify/ogify/events","assignees_url":"https://api.github.com/repos/ogify/ogify/assignees{/user}","branches_url":"https://api.github.com/repos/ogify/ogify/branches{/branch}","tags_url":"https://api.github.com/repos/ogify/ogify/tags","blobs_url":"https://api.github.com/repos/ogify/ogify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogify/ogify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogify/ogify/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogify/ogify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogify/ogify/statuses/{sha}","languages_url":"https://api.github.com/repos/ogify/ogify/languages","stargazers_url":"https://api.github.com/repos/ogify/ogify/stargazers","contributors_url":"https://api.github.com/repos/ogify/ogify/contributors","subscribers_url":"https://api.github.com/repos/ogify/ogify/subscribers","subscription_url":"https://api.github.com/repos/ogify/ogify/subscription","commits_url":"https://api.github.com/repos/ogify/ogify/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogify/ogify/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogify/ogify/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogify/ogify/issues/comments{/number}","contents_url":"https://api.github.com/repos/ogify/ogify/contents/{+path}","compare_url":"https://api.github.com/repos/ogify/ogify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogify/ogify/merges","archive_url":"https://api.github.com/repos/ogify/ogify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogify/ogify/downloads","issues_url":"https://api.github.com/repos/ogify/ogify/issues{/number}","pulls_url":"https://api.github.com/repos/ogify/ogify/pulls{/number}","milestones_url":"https://api.github.com/repos/ogify/ogify/milestones{/number}","notifications_url":"https://api.github.com/repos/ogify/ogify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogify/ogify/labels{/name}","releases_url":"https://api.github.com/repos/ogify/ogify/releases{/id}","created_at":"2015-02-10T23:07:28Z","updated_at":"2015-10-01T05:58:37Z","pushed_at":"2015-10-26T22:15:38Z","git_url":"git://github.com/ogify/ogify.git","ssh_url":"git@github.com:ogify/ogify.git","clone_url":"https://github.com/ogify/ogify.git","svn_url":"https://github.com/ogify/ogify","homepage":null,"size":34143,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":1,"default_branch":"build_0"}},"base":{"label":"ogify:build_0","ref":"build_0","sha":"4252c10b32a5bad8f6f83b03dcba6842902e6c4c","user":{"login":"ogify","id":14138153,"avatar_url":"https://avatars.githubusercontent.com/u/14138153?v=3","gravatar_id":"","url":"https://api.github.com/users/ogify","html_url":"https://github.com/ogify","followers_url":"https://api.github.com/users/ogify/followers","following_url":"https://api.github.com/users/ogify/following{/other_user}","gists_url":"https://api.github.com/users/ogify/gists{/gist_id}","starred_url":"https://api.github.com/users/ogify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogify/subscriptions","organizations_url":"https://api.github.com/users/ogify/orgs","repos_url":"https://api.github.com/users/ogify/repos","events_url":"https://api.github.com/users/ogify/events{/privacy}","received_events_url":"https://api.github.com/users/ogify/received_events","type":"Organization","site_admin":false},"repo":{"id":30619500,"name":"ogify","full_name":"ogify/ogify","owner":{"login":"ogify","id":14138153,"avatar_url":"https://avatars.githubusercontent.com/u/14138153?v=3","gravatar_id":"","url":"https://api.github.com/users/ogify","html_url":"https://github.com/ogify","followers_url":"https://api.github.com/users/ogify/followers","following_url":"https://api.github.com/users/ogify/following{/other_user}","gists_url":"https://api.github.com/users/ogify/gists{/gist_id}","starred_url":"https://api.github.com/users/ogify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogify/subscriptions","organizations_url":"https://api.github.com/users/ogify/orgs","repos_url":"https://api.github.com/users/ogify/repos","events_url":"https://api.github.com/users/ogify/events{/privacy}","received_events_url":"https://api.github.com/users/ogify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ogify/ogify","description":"Eat With Benefit","fork":false,"url":"https://api.github.com/repos/ogify/ogify","forks_url":"https://api.github.com/repos/ogify/ogify/forks","keys_url":"https://api.github.com/repos/ogify/ogify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogify/ogify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogify/ogify/teams","hooks_url":"https://api.github.com/repos/ogify/ogify/hooks","issue_events_url":"https://api.github.com/repos/ogify/ogify/issues/events{/number}","events_url":"https://api.github.com/repos/ogify/ogify/events","assignees_url":"https://api.github.com/repos/ogify/ogify/assignees{/user}","branches_url":"https://api.github.com/repos/ogify/ogify/branches{/branch}","tags_url":"https://api.github.com/repos/ogify/ogify/tags","blobs_url":"https://api.github.com/repos/ogify/ogify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogify/ogify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogify/ogify/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogify/ogify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogify/ogify/statuses/{sha}","languages_url":"https://api.github.com/repos/ogify/ogify/languages","stargazers_url":"https://api.github.com/repos/ogify/ogify/stargazers","contributors_url":"https://api.github.com/repos/ogify/ogify/contributors","subscribers_url":"https://api.github.com/repos/ogify/ogify/subscribers","subscription_url":"https://api.github.com/repos/ogify/ogify/subscription","commits_url":"https://api.github.com/repos/ogify/ogify/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogify/ogify/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogify/ogify/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogify/ogify/issues/comments{/number}","contents_url":"https://api.github.com/repos/ogify/ogify/contents/{+path}","compare_url":"https://api.github.com/repos/ogify/ogify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogify/ogify/merges","archive_url":"https://api.github.com/repos/ogify/ogify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogify/ogify/downloads","issues_url":"https://api.github.com/repos/ogify/ogify/issues{/number}","pulls_url":"https://api.github.com/repos/ogify/ogify/pulls{/number}","milestones_url":"https://api.github.com/repos/ogify/ogify/milestones{/number}","notifications_url":"https://api.github.com/repos/ogify/ogify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogify/ogify/labels{/name}","releases_url":"https://api.github.com/repos/ogify/ogify/releases{/id}","created_at":"2015-02-10T23:07:28Z","updated_at":"2015-10-01T05:58:37Z","pushed_at":"2015-10-26T22:15:38Z","git_url":"git://github.com/ogify/ogify.git","ssh_url":"git@github.com:ogify/ogify.git","clone_url":"https://github.com/ogify/ogify.git","svn_url":"https://github.com/ogify/ogify","homepage":null,"size":34143,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":1,"default_branch":"build_0"}},"_links":{"self":{"href":"https://api.github.com/repos/ogify/ogify/pulls/129"},"html":{"href":"https://github.com/ogify/ogify/pull/129"},"issue":{"href":"https://api.github.com/repos/ogify/ogify/issues/129"},"comments":{"href":"https://api.github.com/repos/ogify/ogify/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/ogify/ogify/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/ogify/ogify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ogify/ogify/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/ogify/ogify/statuses/83bb1746194a090bdc6fbee7db47b22ffd324612"}}}}