{"action":"created","comment":{"url":"https://api.github.com/repos/craiglobo7/assignments/pulls/comments/37519499","id":37519499,"diff_hunk":"@@ -0,0 +1,119 @@\n+/**\n+ * Collection of Closed Won Opportunities \n+ * The Primary contact associated with an account needs to know which all are the \n+ * closed won opportunities for his account per day. \n+ * Create a process which will run everyday in the midnight & collect all the \n+ * Closed won opportunities of that account in a day & send an email to Primary Contact. \n+ * The email body should contain the Opportunity Name & it's respective amount \n+ * with the aggregated amount in the end. \n+ */\n+global with sharing class BatchApex implements Database.Batchable<Sobject>, Database.Stateful, \n+    Schedulable {\n+    map<String,WrapperClass> accountOpportunityMap;","path":"BatchApex/BatchApex.cls","position":null,"original_position":12,"commit_id":"ec3dd10ebd1762e536e890a49ad50b97afd7799d","original_commit_id":"328ed86443953d83b49b146e40bf137d92cee383","user":{"login":"craiglobo7","id":13256923,"avatar_url":"https://avatars.githubusercontent.com/u/13256923?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglobo7","html_url":"https://github.com/craiglobo7","followers_url":"https://api.github.com/users/craiglobo7/followers","following_url":"https://api.github.com/users/craiglobo7/following{/other_user}","gists_url":"https://api.github.com/users/craiglobo7/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglobo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglobo7/subscriptions","organizations_url":"https://api.github.com/users/craiglobo7/orgs","repos_url":"https://api.github.com/users/craiglobo7/repos","events_url":"https://api.github.com/users/craiglobo7/events{/privacy}","received_events_url":"https://api.github.com/users/craiglobo7/received_events","type":"User","site_admin":false},"body":"Changes Done","created_at":"2015-08-20T11:34:46Z","updated_at":"2015-08-20T11:34:46Z","html_url":"https://github.com/craiglobo7/assignments/pull/7#discussion_r37519499","pull_request_url":"https://api.github.com/repos/craiglobo7/assignments/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/craiglobo7/assignments/pulls/comments/37519499"},"html":{"href":"https://github.com/craiglobo7/assignments/pull/7#discussion_r37519499"},"pull_request":{"href":"https://api.github.com/repos/craiglobo7/assignments/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/craiglobo7/assignments/pulls/7","id":42482529,"html_url":"https://github.com/craiglobo7/assignments/pull/7","diff_url":"https://github.com/craiglobo7/assignments/pull/7.diff","patch_url":"https://github.com/craiglobo7/assignments/pull/7.patch","issue_url":"https://api.github.com/repos/craiglobo7/assignments/issues/7","number":7,"state":"open","locked":false,"title":"Batch Apex","user":{"login":"craiglobo7","id":13256923,"avatar_url":"https://avatars.githubusercontent.com/u/13256923?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglobo7","html_url":"https://github.com/craiglobo7","followers_url":"https://api.github.com/users/craiglobo7/followers","following_url":"https://api.github.com/users/craiglobo7/following{/other_user}","gists_url":"https://api.github.com/users/craiglobo7/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglobo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglobo7/subscriptions","organizations_url":"https://api.github.com/users/craiglobo7/orgs","repos_url":"https://api.github.com/users/craiglobo7/repos","events_url":"https://api.github.com/users/craiglobo7/events{/privacy}","received_events_url":"https://api.github.com/users/craiglobo7/received_events","type":"User","site_admin":false},"body":"Batch Apex","created_at":"2015-08-14T18:14:32Z","updated_at":"2015-08-20T11:34:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c9de55a31beb248426ff0648a97ae724e55604c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/craiglobo7/assignments/pulls/7/commits","review_comments_url":"https://api.github.com/repos/craiglobo7/assignments/pulls/7/comments","review_comment_url":"https://api.github.com/repos/craiglobo7/assignments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/craiglobo7/assignments/issues/7/comments","statuses_url":"https://api.github.com/repos/craiglobo7/assignments/statuses/ec3dd10ebd1762e536e890a49ad50b97afd7799d","head":{"label":"craiglobo7:day.19","ref":"day.19","sha":"ec3dd10ebd1762e536e890a49ad50b97afd7799d","user":{"login":"craiglobo7","id":13256923,"avatar_url":"https://avatars.githubusercontent.com/u/13256923?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglobo7","html_url":"https://github.com/craiglobo7","followers_url":"https://api.github.com/users/craiglobo7/followers","following_url":"https://api.github.com/users/craiglobo7/following{/other_user}","gists_url":"https://api.github.com/users/craiglobo7/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglobo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglobo7/subscriptions","organizations_url":"https://api.github.com/users/craiglobo7/orgs","repos_url":"https://api.github.com/users/craiglobo7/repos","events_url":"https://api.github.com/users/craiglobo7/events{/privacy}","received_events_url":"https://api.github.com/users/craiglobo7/received_events","type":"User","site_admin":false},"repo":{"id":40168913,"name":"assignments","full_name":"craiglobo7/assignments","owner":{"login":"craiglobo7","id":13256923,"avatar_url":"https://avatars.githubusercontent.com/u/13256923?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglobo7","html_url":"https://github.com/craiglobo7","followers_url":"https://api.github.com/users/craiglobo7/followers","following_url":"https://api.github.com/users/craiglobo7/following{/other_user}","gists_url":"https://api.github.com/users/craiglobo7/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglobo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglobo7/subscriptions","organizations_url":"https://api.github.com/users/craiglobo7/orgs","repos_url":"https://api.github.com/users/craiglobo7/repos","events_url":"https://api.github.com/users/craiglobo7/events{/privacy}","received_events_url":"https://api.github.com/users/craiglobo7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/craiglobo7/assignments","description":"","fork":false,"url":"https://api.github.com/repos/craiglobo7/assignments","forks_url":"https://api.github.com/repos/craiglobo7/assignments/forks","keys_url":"https://api.github.com/repos/craiglobo7/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craiglobo7/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craiglobo7/assignments/teams","hooks_url":"https://api.github.com/repos/craiglobo7/assignments/hooks","issue_events_url":"https://api.github.com/repos/craiglobo7/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/craiglobo7/assignments/events","assignees_url":"https://api.github.com/repos/craiglobo7/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/craiglobo7/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/craiglobo7/assignments/tags","blobs_url":"https://api.github.com/repos/craiglobo7/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craiglobo7/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craiglobo7/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/craiglobo7/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craiglobo7/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/craiglobo7/assignments/languages","stargazers_url":"https://api.github.com/repos/craiglobo7/assignments/stargazers","contributors_url":"https://api.github.com/repos/craiglobo7/assignments/contributors","subscribers_url":"https://api.github.com/repos/craiglobo7/assignments/subscribers","subscription_url":"https://api.github.com/repos/craiglobo7/assignments/subscription","commits_url":"https://api.github.com/repos/craiglobo7/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/craiglobo7/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/craiglobo7/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/craiglobo7/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/craiglobo7/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/craiglobo7/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craiglobo7/assignments/merges","archive_url":"https://api.github.com/repos/craiglobo7/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craiglobo7/assignments/downloads","issues_url":"https://api.github.com/repos/craiglobo7/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/craiglobo7/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/craiglobo7/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/craiglobo7/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craiglobo7/assignments/labels{/name}","releases_url":"https://api.github.com/repos/craiglobo7/assignments/releases{/id}","created_at":"2015-08-04T07:06:20Z","updated_at":"2015-08-04T10:46:00Z","pushed_at":"2015-08-18T14:12:54Z","git_url":"git://github.com/craiglobo7/assignments.git","ssh_url":"git@github.com:craiglobo7/assignments.git","clone_url":"https://github.com/craiglobo7/assignments.git","svn_url":"https://github.com/craiglobo7/assignments","homepage":null,"size":536,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"a11"}},"base":{"label":"craiglobo7:develop","ref":"develop","sha":"87c852dc08d12a97b6293f1c4f93d868914ce54a","user":{"login":"craiglobo7","id":13256923,"avatar_url":"https://avatars.githubusercontent.com/u/13256923?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglobo7","html_url":"https://github.com/craiglobo7","followers_url":"https://api.github.com/users/craiglobo7/followers","following_url":"https://api.github.com/users/craiglobo7/following{/other_user}","gists_url":"https://api.github.com/users/craiglobo7/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglobo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglobo7/subscriptions","organizations_url":"https://api.github.com/users/craiglobo7/orgs","repos_url":"https://api.github.com/users/craiglobo7/repos","events_url":"https://api.github.com/users/craiglobo7/events{/privacy}","received_events_url":"https://api.github.com/users/craiglobo7/received_events","type":"User","site_admin":false},"repo":{"id":40168913,"name":"assignments","full_name":"craiglobo7/assignments","owner":{"login":"craiglobo7","id":13256923,"avatar_url":"https://avatars.githubusercontent.com/u/13256923?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglobo7","html_url":"https://github.com/craiglobo7","followers_url":"https://api.github.com/users/craiglobo7/followers","following_url":"https://api.github.com/users/craiglobo7/following{/other_user}","gists_url":"https://api.github.com/users/craiglobo7/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglobo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglobo7/subscriptions","organizations_url":"https://api.github.com/users/craiglobo7/orgs","repos_url":"https://api.github.com/users/craiglobo7/repos","events_url":"https://api.github.com/users/craiglobo7/events{/privacy}","received_events_url":"https://api.github.com/users/craiglobo7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/craiglobo7/assignments","description":"","fork":false,"url":"https://api.github.com/repos/craiglobo7/assignments","forks_url":"https://api.github.com/repos/craiglobo7/assignments/forks","keys_url":"https://api.github.com/repos/craiglobo7/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craiglobo7/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craiglobo7/assignments/teams","hooks_url":"https://api.github.com/repos/craiglobo7/assignments/hooks","issue_events_url":"https://api.github.com/repos/craiglobo7/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/craiglobo7/assignments/events","assignees_url":"https://api.github.com/repos/craiglobo7/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/craiglobo7/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/craiglobo7/assignments/tags","blobs_url":"https://api.github.com/repos/craiglobo7/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craiglobo7/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craiglobo7/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/craiglobo7/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craiglobo7/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/craiglobo7/assignments/languages","stargazers_url":"https://api.github.com/repos/craiglobo7/assignments/stargazers","contributors_url":"https://api.github.com/repos/craiglobo7/assignments/contributors","subscribers_url":"https://api.github.com/repos/craiglobo7/assignments/subscribers","subscription_url":"https://api.github.com/repos/craiglobo7/assignments/subscription","commits_url":"https://api.github.com/repos/craiglobo7/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/craiglobo7/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/craiglobo7/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/craiglobo7/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/craiglobo7/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/craiglobo7/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craiglobo7/assignments/merges","archive_url":"https://api.github.com/repos/craiglobo7/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craiglobo7/assignments/downloads","issues_url":"https://api.github.com/repos/craiglobo7/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/craiglobo7/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/craiglobo7/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/craiglobo7/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craiglobo7/assignments/labels{/name}","releases_url":"https://api.github.com/repos/craiglobo7/assignments/releases{/id}","created_at":"2015-08-04T07:06:20Z","updated_at":"2015-08-04T10:46:00Z","pushed_at":"2015-08-18T14:12:54Z","git_url":"git://github.com/craiglobo7/assignments.git","ssh_url":"git@github.com:craiglobo7/assignments.git","clone_url":"https://github.com/craiglobo7/assignments.git","svn_url":"https://github.com/craiglobo7/assignments","homepage":null,"size":536,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"a11"}},"_links":{"self":{"href":"https://api.github.com/repos/craiglobo7/assignments/pulls/7"},"html":{"href":"https://github.com/craiglobo7/assignments/pull/7"},"issue":{"href":"https://api.github.com/repos/craiglobo7/assignments/issues/7"},"comments":{"href":"https://api.github.com/repos/craiglobo7/assignments/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/craiglobo7/assignments/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/craiglobo7/assignments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/craiglobo7/assignments/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/craiglobo7/assignments/statuses/ec3dd10ebd1762e536e890a49ad50b97afd7799d"}}}}