{"action":"created","comment":{"url":"https://api.github.com/repos/guardian/identity-processes/pulls/comments/245357343","pull_request_review_id":189446204,"id":245357343,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTM1NzM0Mw==","diff_hunk":"@@ -5,7 +5,7 @@ class SendEmailService (identityClient: IdentityClient, brazeClient: BrazeClient\n   def sendEmail(emailData: IdentityBrazeEmailData, config: Config): Either[Throwable, BrazeResponse] = {\n     for {\n       encryptedTokenResponse <- identityClient.encryptEmail(emailData.emailAddress, config)\n-      brazeResponse <- brazeClient.sendEmail(emailData, encryptedTokenResponse.encryptedEmail)\n+      brazeResponse <- brazeClient.sendEmail(emailData, encryptedTokenResponse.encryptedEmail, config)","path":"payment-failure/src/main/scala/com/gu/identity/paymentfailure/SendEmailService.scala","position":null,"original_position":5,"commit_id":"01b05209acff81b7e79173aeabcee916855808df","original_commit_id":"2ddf8d66662131df32dc54ec207c5f026ab7dd14","user":{"login":"Calum-Campbell","id":14179210,"node_id":"MDQ6VXNlcjE0MTc5MjEw","avatar_url":"https://avatars1.githubusercontent.com/u/14179210?v=4","gravatar_id":"","url":"https://api.github.com/users/Calum-Campbell","html_url":"https://github.com/Calum-Campbell","followers_url":"https://api.github.com/users/Calum-Campbell/followers","following_url":"https://api.github.com/users/Calum-Campbell/following{/other_user}","gists_url":"https://api.github.com/users/Calum-Campbell/gists{/gist_id}","starred_url":"https://api.github.com/users/Calum-Campbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calum-Campbell/subscriptions","organizations_url":"https://api.github.com/users/Calum-Campbell/orgs","repos_url":"https://api.github.com/users/Calum-Campbell/repos","events_url":"https://api.github.com/users/Calum-Campbell/events{/privacy}","received_events_url":"https://api.github.com/users/Calum-Campbell/received_events","type":"User","site_admin":false},"body":"Yep good point thanks","created_at":"2019-01-04T16:58:41Z","updated_at":"2019-01-04T16:58:41Z","html_url":"https://github.com/guardian/identity-processes/pull/4#discussion_r245357343","pull_request_url":"https://api.github.com/repos/guardian/identity-processes/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/guardian/identity-processes/pulls/comments/245357343"},"html":{"href":"https://github.com/guardian/identity-processes/pull/4#discussion_r245357343"},"pull_request":{"href":"https://api.github.com/repos/guardian/identity-processes/pulls/4"}},"in_reply_to_id":245275024},"pull_request":{"url":"https://api.github.com/repos/guardian/identity-processes/pulls/4","id":241972111,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxOTcyMTEx","html_url":"https://github.com/guardian/identity-processes/pull/4","diff_url":"https://github.com/guardian/identity-processes/pull/4.diff","patch_url":"https://github.com/guardian/identity-processes/pull/4.patch","issue_url":"https://api.github.com/repos/guardian/identity-processes/issues/4","number":4,"state":"open","locked":false,"title":"Add braze integration and sendEmailTest","user":{"login":"Calum-Campbell","id":14179210,"node_id":"MDQ6VXNlcjE0MTc5MjEw","avatar_url":"https://avatars1.githubusercontent.com/u/14179210?v=4","gravatar_id":"","url":"https://api.github.com/users/Calum-Campbell","html_url":"https://github.com/Calum-Campbell","followers_url":"https://api.github.com/users/Calum-Campbell/followers","following_url":"https://api.github.com/users/Calum-Campbell/following{/other_user}","gists_url":"https://api.github.com/users/Calum-Campbell/gists{/gist_id}","starred_url":"https://api.github.com/users/Calum-Campbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calum-Campbell/subscriptions","organizations_url":"https://api.github.com/users/Calum-Campbell/orgs","repos_url":"https://api.github.com/users/Calum-Campbell/repos","events_url":"https://api.github.com/users/Calum-Campbell/events{/privacy}","received_events_url":"https://api.github.com/users/Calum-Campbell/received_events","type":"User","site_admin":false},"body":"Payment failure lambda should send the request to Braze to send a payment failure email.\r\n\r\nI have tested this end to end, so theoretically we can switch over workflow to sending payment failure messages to our queue and there would be no noticable change to the end user.","created_at":"2019-01-03T11:43:17Z","updated_at":"2019-01-04T16:58:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"125da5ba2fbb5615edc59847d5c525254bb3b808","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/guardian/identity-processes/pulls/4/commits","review_comments_url":"https://api.github.com/repos/guardian/identity-processes/pulls/4/comments","review_comment_url":"https://api.github.com/repos/guardian/identity-processes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/identity-processes/issues/4/comments","statuses_url":"https://api.github.com/repos/guardian/identity-processes/statuses/01b05209acff81b7e79173aeabcee916855808df","head":{"label":"guardian:cc-braze-integration","ref":"cc-braze-integration","sha":"01b05209acff81b7e79173aeabcee916855808df","user":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":161363777,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEzNjM3Nzc=","name":"identity-processes","full_name":"guardian/identity-processes","private":false,"owner":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/guardian/identity-processes","description":"Placeholder description: @Mullefa created this with repo-genesis","fork":false,"url":"https://api.github.com/repos/guardian/identity-processes","forks_url":"https://api.github.com/repos/guardian/identity-processes/forks","keys_url":"https://api.github.com/repos/guardian/identity-processes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/identity-processes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/identity-processes/teams","hooks_url":"https://api.github.com/repos/guardian/identity-processes/hooks","issue_events_url":"https://api.github.com/repos/guardian/identity-processes/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/identity-processes/events","assignees_url":"https://api.github.com/repos/guardian/identity-processes/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/identity-processes/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/identity-processes/tags","blobs_url":"https://api.github.com/repos/guardian/identity-processes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/identity-processes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/identity-processes/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/identity-processes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/identity-processes/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/identity-processes/languages","stargazers_url":"https://api.github.com/repos/guardian/identity-processes/stargazers","contributors_url":"https://api.github.com/repos/guardian/identity-processes/contributors","subscribers_url":"https://api.github.com/repos/guardian/identity-processes/subscribers","subscription_url":"https://api.github.com/repos/guardian/identity-processes/subscription","commits_url":"https://api.github.com/repos/guardian/identity-processes/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/identity-processes/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/identity-processes/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/identity-processes/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/identity-processes/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/identity-processes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/identity-processes/merges","archive_url":"https://api.github.com/repos/guardian/identity-processes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/identity-processes/downloads","issues_url":"https://api.github.com/repos/guardian/identity-processes/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/identity-processes/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/identity-processes/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/identity-processes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/identity-processes/labels{/name}","releases_url":"https://api.github.com/repos/guardian/identity-processes/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/identity-processes/deployments","created_at":"2018-12-11T16:38:26Z","updated_at":"2019-01-02T13:45:53Z","pushed_at":"2019-01-04T16:49:24Z","git_url":"git://github.com/guardian/identity-processes.git","ssh_url":"git@github.com:guardian/identity-processes.git","clone_url":"https://github.com/guardian/identity-processes.git","svn_url":"https://github.com/guardian/identity-processes","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"d714afe6c870b1596461f8e85cb7d9f0402fc749","user":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":161363777,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEzNjM3Nzc=","name":"identity-processes","full_name":"guardian/identity-processes","private":false,"owner":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/guardian/identity-processes","description":"Placeholder description: @Mullefa created this with repo-genesis","fork":false,"url":"https://api.github.com/repos/guardian/identity-processes","forks_url":"https://api.github.com/repos/guardian/identity-processes/forks","keys_url":"https://api.github.com/repos/guardian/identity-processes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/identity-processes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/identity-processes/teams","hooks_url":"https://api.github.com/repos/guardian/identity-processes/hooks","issue_events_url":"https://api.github.com/repos/guardian/identity-processes/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/identity-processes/events","assignees_url":"https://api.github.com/repos/guardian/identity-processes/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/identity-processes/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/identity-processes/tags","blobs_url":"https://api.github.com/repos/guardian/identity-processes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/identity-processes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/identity-processes/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/identity-processes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/identity-processes/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/identity-processes/languages","stargazers_url":"https://api.github.com/repos/guardian/identity-processes/stargazers","contributors_url":"https://api.github.com/repos/guardian/identity-processes/contributors","subscribers_url":"https://api.github.com/repos/guardian/identity-processes/subscribers","subscription_url":"https://api.github.com/repos/guardian/identity-processes/subscription","commits_url":"https://api.github.com/repos/guardian/identity-processes/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/identity-processes/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/identity-processes/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/identity-processes/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/identity-processes/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/identity-processes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/identity-processes/merges","archive_url":"https://api.github.com/repos/guardian/identity-processes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/identity-processes/downloads","issues_url":"https://api.github.com/repos/guardian/identity-processes/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/identity-processes/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/identity-processes/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/identity-processes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/identity-processes/labels{/name}","releases_url":"https://api.github.com/repos/guardian/identity-processes/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/identity-processes/deployments","created_at":"2018-12-11T16:38:26Z","updated_at":"2019-01-02T13:45:53Z","pushed_at":"2019-01-04T16:49:24Z","git_url":"git://github.com/guardian/identity-processes.git","ssh_url":"git@github.com:guardian/identity-processes.git","clone_url":"https://github.com/guardian/identity-processes.git","svn_url":"https://github.com/guardian/identity-processes","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/identity-processes/pulls/4"},"html":{"href":"https://github.com/guardian/identity-processes/pull/4"},"issue":{"href":"https://api.github.com/repos/guardian/identity-processes/issues/4"},"comments":{"href":"https://api.github.com/repos/guardian/identity-processes/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/identity-processes/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/identity-processes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/identity-processes/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/identity-processes/statuses/01b05209acff81b7e79173aeabcee916855808df"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Calum-Campbell"}}