{"action":"created","comment":{"url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/comments/212878037","pull_request_review_id":149595608,"id":212878037,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjg3ODAzNw==","diff_hunk":"@@ -0,0 +1,34 @@\n+<?php\n+\n+namespace CrazyFactory\\ShopMailing\\Managers;\n+\n+use CrazyFactory\\ShopMailing\\Core\\ManagerBase;\n+\n+class UpdateListMemberManager extends ManagerBase\n+{\n+    /**\n+     * @var MailchimpSubscribersInterface\n+     */\n+    private $subscribersModel;\n+\n+    /**\n+     * UpdateListMemberNameManager constructor.\n+     * @param MailchimpSubscribersInterface $subscribersModel\n+     * @param MailchimpOperationsInterface|null $operationsModel\n+     */\n+    public function __construct(\n+        MailchimpSubscribersInterface $subscribersModel,\n+        ?MailchimpOperationsInterface $operationsModel = null\n+    ) {\n+        parent::__construct($operationsModel);\n+        $this->subscribersModel = $subscribersModel;\n+    }\n+\n+    /**\n+     * @return bool\n+     */\n+    public function shouldAdd(): bool\n+    {\n+        return $this->subscribersModel->customerIdExists($this->operation->getResourceId());\n+    }\n+}","path":"src/Managers/UpdateListMemberManager.php","position":34,"original_position":34,"commit_id":"2b4c7925b09ebec0af957ce37191ba07889d1ee8","original_commit_id":"2b4c7925b09ebec0af957ce37191ba07889d1ee8","user":{"login":"dacgray","id":12794616,"node_id":"MDQ6VXNlcjEyNzk0NjE2","avatar_url":"https://avatars1.githubusercontent.com/u/12794616?v=4","gravatar_id":"","url":"https://api.github.com/users/dacgray","html_url":"https://github.com/dacgray","followers_url":"https://api.github.com/users/dacgray/followers","following_url":"https://api.github.com/users/dacgray/following{/other_user}","gists_url":"https://api.github.com/users/dacgray/gists{/gist_id}","starred_url":"https://api.github.com/users/dacgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dacgray/subscriptions","organizations_url":"https://api.github.com/users/dacgray/orgs","repos_url":"https://api.github.com/users/dacgray/repos","events_url":"https://api.github.com/users/dacgray/events{/privacy}","received_events_url":"https://api.github.com/users/dacgray/received_events","type":"User","site_admin":false},"body":"I don't think that it will throw a typehint error.   If it does please ignore this request :)","created_at":"2018-08-27T06:40:14Z","updated_at":"2018-08-27T06:40:14Z","html_url":"https://github.com/crazyfactory/shop-mailing/pull/43#discussion_r212878037","pull_request_url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/comments/212878037"},"html":{"href":"https://github.com/crazyfactory/shop-mailing/pull/43#discussion_r212878037"},"pull_request":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43"}},"in_reply_to_id":212877717},"pull_request":{"url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43","id":210990252,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTkwMjUy","html_url":"https://github.com/crazyfactory/shop-mailing/pull/43","diff_url":"https://github.com/crazyfactory/shop-mailing/pull/43.diff","patch_url":"https://github.com/crazyfactory/shop-mailing/pull/43.patch","issue_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/43","number":43,"state":"open","locked":false,"title":"38 update last login manager","user":{"login":"lalita13008","id":8109587,"node_id":"MDQ6VXNlcjgxMDk1ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/8109587?v=4","gravatar_id":"","url":"https://api.github.com/users/lalita13008","html_url":"https://github.com/lalita13008","followers_url":"https://api.github.com/users/lalita13008/followers","following_url":"https://api.github.com/users/lalita13008/following{/other_user}","gists_url":"https://api.github.com/users/lalita13008/gists{/gist_id}","starred_url":"https://api.github.com/users/lalita13008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalita13008/subscriptions","organizations_url":"https://api.github.com/users/lalita13008/orgs","repos_url":"https://api.github.com/users/lalita13008/repos","events_url":"https://api.github.com/users/lalita13008/events{/privacy}","received_events_url":"https://api.github.com/users/lalita13008/received_events","type":"User","site_admin":false},"body":"close #38 ","created_at":"2018-08-27T02:24:08Z","updated_at":"2018-08-27T06:40:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b473d235391fcedcce05770ca106f0556542d1a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1009771759,"node_id":"MDU6TGFiZWwxMDA5NzcxNzU5","url":"https://api.github.com/repos/crazyfactory/shop-mailing/labels/WIP","name":"WIP","color":"d93f0b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43/commits","review_comments_url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43/comments","review_comment_url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/43/comments","statuses_url":"https://api.github.com/repos/crazyfactory/shop-mailing/statuses/2b4c7925b09ebec0af957ce37191ba07889d1ee8","head":{"label":"crazyfactory:38-UpdateLastLoginManager","ref":"38-UpdateLastLoginManager","sha":"2b4c7925b09ebec0af957ce37191ba07889d1ee8","user":{"login":"crazyfactory","id":16873568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODczNTY4","avatar_url":"https://avatars1.githubusercontent.com/u/16873568?v=4","gravatar_id":"","url":"https://api.github.com/users/crazyfactory","html_url":"https://github.com/crazyfactory","followers_url":"https://api.github.com/users/crazyfactory/followers","following_url":"https://api.github.com/users/crazyfactory/following{/other_user}","gists_url":"https://api.github.com/users/crazyfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/crazyfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazyfactory/subscriptions","organizations_url":"https://api.github.com/users/crazyfactory/orgs","repos_url":"https://api.github.com/users/crazyfactory/repos","events_url":"https://api.github.com/users/crazyfactory/events{/privacy}","received_events_url":"https://api.github.com/users/crazyfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":142838631,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4Mzg2MzE=","name":"shop-mailing","full_name":"crazyfactory/shop-mailing","owner":{"login":"crazyfactory","id":16873568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODczNTY4","avatar_url":"https://avatars1.githubusercontent.com/u/16873568?v=4","gravatar_id":"","url":"https://api.github.com/users/crazyfactory","html_url":"https://github.com/crazyfactory","followers_url":"https://api.github.com/users/crazyfactory/followers","following_url":"https://api.github.com/users/crazyfactory/following{/other_user}","gists_url":"https://api.github.com/users/crazyfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/crazyfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazyfactory/subscriptions","organizations_url":"https://api.github.com/users/crazyfactory/orgs","repos_url":"https://api.github.com/users/crazyfactory/repos","events_url":"https://api.github.com/users/crazyfactory/events{/privacy}","received_events_url":"https://api.github.com/users/crazyfactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crazyfactory/shop-mailing","description":"This Package contains Email related helper Classes","fork":false,"url":"https://api.github.com/repos/crazyfactory/shop-mailing","forks_url":"https://api.github.com/repos/crazyfactory/shop-mailing/forks","keys_url":"https://api.github.com/repos/crazyfactory/shop-mailing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crazyfactory/shop-mailing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crazyfactory/shop-mailing/teams","hooks_url":"https://api.github.com/repos/crazyfactory/shop-mailing/hooks","issue_events_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/events{/number}","events_url":"https://api.github.com/repos/crazyfactory/shop-mailing/events","assignees_url":"https://api.github.com/repos/crazyfactory/shop-mailing/assignees{/user}","branches_url":"https://api.github.com/repos/crazyfactory/shop-mailing/branches{/branch}","tags_url":"https://api.github.com/repos/crazyfactory/shop-mailing/tags","blobs_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/refs{/sha}","trees_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crazyfactory/shop-mailing/statuses/{sha}","languages_url":"https://api.github.com/repos/crazyfactory/shop-mailing/languages","stargazers_url":"https://api.github.com/repos/crazyfactory/shop-mailing/stargazers","contributors_url":"https://api.github.com/repos/crazyfactory/shop-mailing/contributors","subscribers_url":"https://api.github.com/repos/crazyfactory/shop-mailing/subscribers","subscription_url":"https://api.github.com/repos/crazyfactory/shop-mailing/subscription","commits_url":"https://api.github.com/repos/crazyfactory/shop-mailing/commits{/sha}","git_commits_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/commits{/sha}","comments_url":"https://api.github.com/repos/crazyfactory/shop-mailing/comments{/number}","issue_comment_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/comments{/number}","contents_url":"https://api.github.com/repos/crazyfactory/shop-mailing/contents/{+path}","compare_url":"https://api.github.com/repos/crazyfactory/shop-mailing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crazyfactory/shop-mailing/merges","archive_url":"https://api.github.com/repos/crazyfactory/shop-mailing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crazyfactory/shop-mailing/downloads","issues_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues{/number}","pulls_url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls{/number}","milestones_url":"https://api.github.com/repos/crazyfactory/shop-mailing/milestones{/number}","notifications_url":"https://api.github.com/repos/crazyfactory/shop-mailing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crazyfactory/shop-mailing/labels{/name}","releases_url":"https://api.github.com/repos/crazyfactory/shop-mailing/releases{/id}","deployments_url":"https://api.github.com/repos/crazyfactory/shop-mailing/deployments","created_at":"2018-07-30T07:10:33Z","updated_at":"2018-08-27T02:46:09Z","pushed_at":"2018-08-27T06:23:50Z","git_url":"git://github.com/crazyfactory/shop-mailing.git","ssh_url":"git@github.com:crazyfactory/shop-mailing.git","clone_url":"https://github.com/crazyfactory/shop-mailing.git","svn_url":"https://github.com/crazyfactory/shop-mailing","homepage":null,"size":176,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"crazyfactory:master","ref":"master","sha":"bcb6f516b707e3366c2c7f984203ba692658ea11","user":{"login":"crazyfactory","id":16873568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODczNTY4","avatar_url":"https://avatars1.githubusercontent.com/u/16873568?v=4","gravatar_id":"","url":"https://api.github.com/users/crazyfactory","html_url":"https://github.com/crazyfactory","followers_url":"https://api.github.com/users/crazyfactory/followers","following_url":"https://api.github.com/users/crazyfactory/following{/other_user}","gists_url":"https://api.github.com/users/crazyfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/crazyfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazyfactory/subscriptions","organizations_url":"https://api.github.com/users/crazyfactory/orgs","repos_url":"https://api.github.com/users/crazyfactory/repos","events_url":"https://api.github.com/users/crazyfactory/events{/privacy}","received_events_url":"https://api.github.com/users/crazyfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":142838631,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4Mzg2MzE=","name":"shop-mailing","full_name":"crazyfactory/shop-mailing","owner":{"login":"crazyfactory","id":16873568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODczNTY4","avatar_url":"https://avatars1.githubusercontent.com/u/16873568?v=4","gravatar_id":"","url":"https://api.github.com/users/crazyfactory","html_url":"https://github.com/crazyfactory","followers_url":"https://api.github.com/users/crazyfactory/followers","following_url":"https://api.github.com/users/crazyfactory/following{/other_user}","gists_url":"https://api.github.com/users/crazyfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/crazyfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazyfactory/subscriptions","organizations_url":"https://api.github.com/users/crazyfactory/orgs","repos_url":"https://api.github.com/users/crazyfactory/repos","events_url":"https://api.github.com/users/crazyfactory/events{/privacy}","received_events_url":"https://api.github.com/users/crazyfactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crazyfactory/shop-mailing","description":"This Package contains Email related helper Classes","fork":false,"url":"https://api.github.com/repos/crazyfactory/shop-mailing","forks_url":"https://api.github.com/repos/crazyfactory/shop-mailing/forks","keys_url":"https://api.github.com/repos/crazyfactory/shop-mailing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crazyfactory/shop-mailing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crazyfactory/shop-mailing/teams","hooks_url":"https://api.github.com/repos/crazyfactory/shop-mailing/hooks","issue_events_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/events{/number}","events_url":"https://api.github.com/repos/crazyfactory/shop-mailing/events","assignees_url":"https://api.github.com/repos/crazyfactory/shop-mailing/assignees{/user}","branches_url":"https://api.github.com/repos/crazyfactory/shop-mailing/branches{/branch}","tags_url":"https://api.github.com/repos/crazyfactory/shop-mailing/tags","blobs_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/refs{/sha}","trees_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crazyfactory/shop-mailing/statuses/{sha}","languages_url":"https://api.github.com/repos/crazyfactory/shop-mailing/languages","stargazers_url":"https://api.github.com/repos/crazyfactory/shop-mailing/stargazers","contributors_url":"https://api.github.com/repos/crazyfactory/shop-mailing/contributors","subscribers_url":"https://api.github.com/repos/crazyfactory/shop-mailing/subscribers","subscription_url":"https://api.github.com/repos/crazyfactory/shop-mailing/subscription","commits_url":"https://api.github.com/repos/crazyfactory/shop-mailing/commits{/sha}","git_commits_url":"https://api.github.com/repos/crazyfactory/shop-mailing/git/commits{/sha}","comments_url":"https://api.github.com/repos/crazyfactory/shop-mailing/comments{/number}","issue_comment_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/comments{/number}","contents_url":"https://api.github.com/repos/crazyfactory/shop-mailing/contents/{+path}","compare_url":"https://api.github.com/repos/crazyfactory/shop-mailing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crazyfactory/shop-mailing/merges","archive_url":"https://api.github.com/repos/crazyfactory/shop-mailing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crazyfactory/shop-mailing/downloads","issues_url":"https://api.github.com/repos/crazyfactory/shop-mailing/issues{/number}","pulls_url":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls{/number}","milestones_url":"https://api.github.com/repos/crazyfactory/shop-mailing/milestones{/number}","notifications_url":"https://api.github.com/repos/crazyfactory/shop-mailing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crazyfactory/shop-mailing/labels{/name}","releases_url":"https://api.github.com/repos/crazyfactory/shop-mailing/releases{/id}","deployments_url":"https://api.github.com/repos/crazyfactory/shop-mailing/deployments","created_at":"2018-07-30T07:10:33Z","updated_at":"2018-08-27T02:46:09Z","pushed_at":"2018-08-27T06:23:50Z","git_url":"git://github.com/crazyfactory/shop-mailing.git","ssh_url":"git@github.com:crazyfactory/shop-mailing.git","clone_url":"https://github.com/crazyfactory/shop-mailing.git","svn_url":"https://github.com/crazyfactory/shop-mailing","homepage":null,"size":176,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43"},"html":{"href":"https://github.com/crazyfactory/shop-mailing/pull/43"},"issue":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/43"},"comments":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/crazyfactory/shop-mailing/statuses/2b4c7925b09ebec0af957ce37191ba07889d1ee8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dacgray"}}