{"action":"created","comment":{"url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/comments/273899661","pull_request_review_id":224896021,"id":273899661,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3Mzg5OTY2MQ==","diff_hunk":"@@ -0,0 +1,42 @@\n+package com.reply.tyreshop.addons.callback.services.impl;\n+\n+import com.reply.tyreshop.addons.callback.enums.CallbackStatusEnum;\n+import com.reply.tyreshop.addons.callback.model.CallbackModel;\n+import com.reply.tyreshop.addons.callback.services.CallbackComponentService;\n+import de.hybris.platform.servicelayer.model.ModelService;\n+\n+import javax.annotation.Resource;\n+import java.util.Collections;\n+import java.util.Date;\n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n+\n+\n+public class DefaultCallbackComponentService implements CallbackComponentService {\n+    @Resource(name = \"modelService\")\n+    private ModelService modelService;\n+\n+    @Override\n+    public String testName(String name) {\n+        Pattern regexp = Pattern.compile(\"^[а-яёА-ЯЁa-zA-Z]+$\");\n+        Matcher m = regexp.matcher(name);\n+        if(!m.matches())\n+        {\n+            return \"Bad\";\n+        }\n+        return \"Okay\";\n+    }\n+\n+    @Override\n+    public String confirmCallback(String name, String phone, String comment) {","path":"bin/custom/callbackaddon/src/com/reply/tyreshop/addons/callback/services/impl/DefaultCallbackComponentService.java","position":31,"original_position":31,"commit_id":"546c4615ab85ed92a4835580f0d46582a7cfc40f","original_commit_id":"546c4615ab85ed92a4835580f0d46582a7cfc40f","user":{"login":"uhpavel","id":18547711,"node_id":"MDQ6VXNlcjE4NTQ3NzEx","avatar_url":"https://avatars0.githubusercontent.com/u/18547711?v=4","gravatar_id":"","url":"https://api.github.com/users/uhpavel","html_url":"https://github.com/uhpavel","followers_url":"https://api.github.com/users/uhpavel/followers","following_url":"https://api.github.com/users/uhpavel/following{/other_user}","gists_url":"https://api.github.com/users/uhpavel/gists{/gist_id}","starred_url":"https://api.github.com/users/uhpavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uhpavel/subscriptions","organizations_url":"https://api.github.com/users/uhpavel/orgs","repos_url":"https://api.github.com/users/uhpavel/repos","events_url":"https://api.github.com/users/uhpavel/events{/privacy}","received_events_url":"https://api.github.com/users/uhpavel/received_events","type":"User","site_admin":false},"body":"use CallbackData dto","created_at":"2019-04-10T10:54:36Z","updated_at":"2019-04-10T10:56:46Z","html_url":"https://github.com/andy-kru/cx-tyreshop/pull/27#discussion_r273899661","pull_request_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/comments/273899661"},"html":{"href":"https://github.com/andy-kru/cx-tyreshop/pull/27#discussion_r273899661"},"pull_request":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27","id":268348316,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY4MzQ4MzE2","html_url":"https://github.com/andy-kru/cx-tyreshop/pull/27","diff_url":"https://github.com/andy-kru/cx-tyreshop/pull/27.diff","patch_url":"https://github.com/andy-kru/cx-tyreshop/pull/27.patch","issue_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/27","number":27,"state":"open","locked":false,"title":"Created: New addon, new WCMS Component - CallbackComponent.","user":{"login":"kislushenko","id":30692361,"node_id":"MDQ6VXNlcjMwNjkyMzYx","avatar_url":"https://avatars1.githubusercontent.com/u/30692361?v=4","gravatar_id":"","url":"https://api.github.com/users/kislushenko","html_url":"https://github.com/kislushenko","followers_url":"https://api.github.com/users/kislushenko/followers","following_url":"https://api.github.com/users/kislushenko/following{/other_user}","gists_url":"https://api.github.com/users/kislushenko/gists{/gist_id}","starred_url":"https://api.github.com/users/kislushenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kislushenko/subscriptions","organizations_url":"https://api.github.com/users/kislushenko/orgs","repos_url":"https://api.github.com/users/kislushenko/repos","events_url":"https://api.github.com/users/kislushenko/events{/privacy}","received_events_url":"https://api.github.com/users/kislushenko/received_events","type":"User","site_admin":false},"body":"Created: New addon, new WCMS Component - CallbackComponent.\r\nAdded: New section in Backoffice for CallbackModel.","created_at":"2019-04-08T13:57:14Z","updated_at":"2019-04-10T10:56:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"991f7071cf5adb81b3f1c4c182e4edcd600d9907","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27/commits","review_comments_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27/comments","review_comment_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/27/comments","statuses_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/statuses/546c4615ab85ed92a4835580f0d46582a7cfc40f","head":{"label":"andy-kru:feature/TS-14","ref":"feature/TS-14","sha":"546c4615ab85ed92a4835580f0d46582a7cfc40f","user":{"login":"andy-kru","id":45319374,"node_id":"MDQ6VXNlcjQ1MzE5Mzc0","avatar_url":"https://avatars3.githubusercontent.com/u/45319374?v=4","gravatar_id":"","url":"https://api.github.com/users/andy-kru","html_url":"https://github.com/andy-kru","followers_url":"https://api.github.com/users/andy-kru/followers","following_url":"https://api.github.com/users/andy-kru/following{/other_user}","gists_url":"https://api.github.com/users/andy-kru/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-kru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-kru/subscriptions","organizations_url":"https://api.github.com/users/andy-kru/orgs","repos_url":"https://api.github.com/users/andy-kru/repos","events_url":"https://api.github.com/users/andy-kru/events{/privacy}","received_events_url":"https://api.github.com/users/andy-kru/received_events","type":"User","site_admin":false},"repo":{"id":177136925,"node_id":"MDEwOlJlcG9zaXRvcnkxNzcxMzY5MjU=","name":"cx-tyreshop","full_name":"andy-kru/cx-tyreshop","private":false,"owner":{"login":"andy-kru","id":45319374,"node_id":"MDQ6VXNlcjQ1MzE5Mzc0","avatar_url":"https://avatars3.githubusercontent.com/u/45319374?v=4","gravatar_id":"","url":"https://api.github.com/users/andy-kru","html_url":"https://github.com/andy-kru","followers_url":"https://api.github.com/users/andy-kru/followers","following_url":"https://api.github.com/users/andy-kru/following{/other_user}","gists_url":"https://api.github.com/users/andy-kru/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-kru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-kru/subscriptions","organizations_url":"https://api.github.com/users/andy-kru/orgs","repos_url":"https://api.github.com/users/andy-kru/repos","events_url":"https://api.github.com/users/andy-kru/events{/privacy}","received_events_url":"https://api.github.com/users/andy-kru/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andy-kru/cx-tyreshop","description":null,"fork":false,"url":"https://api.github.com/repos/andy-kru/cx-tyreshop","forks_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/forks","keys_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/teams","hooks_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/hooks","issue_events_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/events{/number}","events_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/events","assignees_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/assignees{/user}","branches_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/branches{/branch}","tags_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/tags","blobs_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/statuses/{sha}","languages_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/languages","stargazers_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/stargazers","contributors_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/contributors","subscribers_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/subscribers","subscription_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/subscription","commits_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/contents/{+path}","compare_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/merges","archive_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/downloads","issues_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues{/number}","pulls_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls{/number}","milestones_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/milestones{/number}","notifications_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/labels{/name}","releases_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/releases{/id}","deployments_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/deployments","created_at":"2019-03-22T12:34:00Z","updated_at":"2019-04-10T10:09:25Z","pushed_at":"2019-04-10T10:33:19Z","git_url":"git://github.com/andy-kru/cx-tyreshop.git","ssh_url":"git@github.com:andy-kru/cx-tyreshop.git","clone_url":"https://github.com/andy-kru/cx-tyreshop.git","svn_url":"https://github.com/andy-kru/cx-tyreshop","homepage":null,"size":18504,"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":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":null,"forks":1,"open_issues":10,"watchers":0,"default_branch":"develop"}},"base":{"label":"andy-kru:develop","ref":"develop","sha":"5d15b3a9b1b5d717736cc0321186eedf64fac38b","user":{"login":"andy-kru","id":45319374,"node_id":"MDQ6VXNlcjQ1MzE5Mzc0","avatar_url":"https://avatars3.githubusercontent.com/u/45319374?v=4","gravatar_id":"","url":"https://api.github.com/users/andy-kru","html_url":"https://github.com/andy-kru","followers_url":"https://api.github.com/users/andy-kru/followers","following_url":"https://api.github.com/users/andy-kru/following{/other_user}","gists_url":"https://api.github.com/users/andy-kru/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-kru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-kru/subscriptions","organizations_url":"https://api.github.com/users/andy-kru/orgs","repos_url":"https://api.github.com/users/andy-kru/repos","events_url":"https://api.github.com/users/andy-kru/events{/privacy}","received_events_url":"https://api.github.com/users/andy-kru/received_events","type":"User","site_admin":false},"repo":{"id":177136925,"node_id":"MDEwOlJlcG9zaXRvcnkxNzcxMzY5MjU=","name":"cx-tyreshop","full_name":"andy-kru/cx-tyreshop","private":false,"owner":{"login":"andy-kru","id":45319374,"node_id":"MDQ6VXNlcjQ1MzE5Mzc0","avatar_url":"https://avatars3.githubusercontent.com/u/45319374?v=4","gravatar_id":"","url":"https://api.github.com/users/andy-kru","html_url":"https://github.com/andy-kru","followers_url":"https://api.github.com/users/andy-kru/followers","following_url":"https://api.github.com/users/andy-kru/following{/other_user}","gists_url":"https://api.github.com/users/andy-kru/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-kru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-kru/subscriptions","organizations_url":"https://api.github.com/users/andy-kru/orgs","repos_url":"https://api.github.com/users/andy-kru/repos","events_url":"https://api.github.com/users/andy-kru/events{/privacy}","received_events_url":"https://api.github.com/users/andy-kru/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andy-kru/cx-tyreshop","description":null,"fork":false,"url":"https://api.github.com/repos/andy-kru/cx-tyreshop","forks_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/forks","keys_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/teams","hooks_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/hooks","issue_events_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/events{/number}","events_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/events","assignees_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/assignees{/user}","branches_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/branches{/branch}","tags_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/tags","blobs_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/statuses/{sha}","languages_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/languages","stargazers_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/stargazers","contributors_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/contributors","subscribers_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/subscribers","subscription_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/subscription","commits_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/contents/{+path}","compare_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/merges","archive_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/downloads","issues_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues{/number}","pulls_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls{/number}","milestones_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/milestones{/number}","notifications_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/labels{/name}","releases_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/releases{/id}","deployments_url":"https://api.github.com/repos/andy-kru/cx-tyreshop/deployments","created_at":"2019-03-22T12:34:00Z","updated_at":"2019-04-10T10:09:25Z","pushed_at":"2019-04-10T10:33:19Z","git_url":"git://github.com/andy-kru/cx-tyreshop.git","ssh_url":"git@github.com:andy-kru/cx-tyreshop.git","clone_url":"https://github.com/andy-kru/cx-tyreshop.git","svn_url":"https://github.com/andy-kru/cx-tyreshop","homepage":null,"size":18504,"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":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":null,"forks":1,"open_issues":10,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27"},"html":{"href":"https://github.com/andy-kru/cx-tyreshop/pull/27"},"issue":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/27"},"comments":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/andy-kru/cx-tyreshop/statuses/546c4615ab85ed92a4835580f0d46582a7cfc40f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"uhpavel"}}