{"action":"created","comment":{"url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments/71354792","id":71354792,"diff_hunk":"@@ -36,6 +36,30 @@ const createSubscription = (stripeAccount, customerId, subscription) => {\n };\n \n /**\n+ * Retrieve stripe subscription\n+ */\n+const retrieveSubscription = (stripeAccount, customerId, stripeSubsriptionId) => {\n+  return client(stripeAccount).customers.retreiveSubscription(customerId, stripeSubsriptionId);","path":"server/gateways/stripe.js","position":16,"original_position":16,"commit_id":"a3e01f7f3efe3e13b806d98593f35f4eb7b6ba12","original_commit_id":"a3e01f7f3efe3e13b806d98593f35f4eb7b6ba12","user":{"login":"sedubois","id":4217871,"avatar_url":"https://avatars.githubusercontent.com/u/4217871?v=3","gravatar_id":"","url":"https://api.github.com/users/sedubois","html_url":"https://github.com/sedubois","followers_url":"https://api.github.com/users/sedubois/followers","following_url":"https://api.github.com/users/sedubois/following{/other_user}","gists_url":"https://api.github.com/users/sedubois/gists{/gist_id}","starred_url":"https://api.github.com/users/sedubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedubois/subscriptions","organizations_url":"https://api.github.com/users/sedubois/orgs","repos_url":"https://api.github.com/users/sedubois/repos","events_url":"https://api.github.com/users/sedubois/events{/privacy}","received_events_url":"https://api.github.com/users/sedubois/received_events","type":"User","site_admin":false},"body":"is the typo in `retreiveSubscription` intended?\r\n","created_at":"2016-07-19T14:53:53Z","updated_at":"2016-07-19T14:53:53Z","html_url":"https://github.com/OpenCollective/opencollective-api/pull/488#discussion_r71354792","pull_request_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488","_links":{"self":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments/71354792"},"html":{"href":"https://github.com/OpenCollective/opencollective-api/pull/488#discussion_r71354792"},"pull_request":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488"}}},"pull_request":{"url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488","id":77888020,"html_url":"https://github.com/OpenCollective/opencollective-api/pull/488","diff_url":"https://github.com/OpenCollective/opencollective-api/pull/488.diff","patch_url":"https://github.com/OpenCollective/opencollective-api/pull/488.patch","issue_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/488","number":488,"state":"open","locked":false,"title":"Migrate all subscriptions from old host to new","user":{"login":"asood123","id":6106941,"avatar_url":"https://avatars.githubusercontent.com/u/6106941?v=3","gravatar_id":"","url":"https://api.github.com/users/asood123","html_url":"https://github.com/asood123","followers_url":"https://api.github.com/users/asood123/followers","following_url":"https://api.github.com/users/asood123/following{/other_user}","gists_url":"https://api.github.com/users/asood123/gists{/gist_id}","starred_url":"https://api.github.com/users/asood123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asood123/subscriptions","organizations_url":"https://api.github.com/users/asood123/orgs","repos_url":"https://api.github.com/users/asood123/repos","events_url":"https://api.github.com/users/asood123/events{/privacy}","received_events_url":"https://api.github.com/users/asood123/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-18T22:08:41Z","updated_at":"2016-07-19T14:53:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6d8c20fd0d6c3a3b9d50d2e736d797f3bbd9318","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488/commits","review_comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488/comments","review_comment_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/488/comments","statuses_url":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/a3e01f7f3efe3e13b806d98593f35f4eb7b6ba12","head":{"label":"OpenCollective:subscription-migration-script","ref":"subscription-migration-script","sha":"a3e01f7f3efe3e13b806d98593f35f4eb7b6ba12","user":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"repo":{"id":35861629,"name":"opencollective-api","full_name":"OpenCollective/opencollective-api","owner":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenCollective/opencollective-api","description":"OpenCollective's API","fork":false,"url":"https://api.github.com/repos/OpenCollective/opencollective-api","forks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/forks","keys_url":"https://api.github.com/repos/OpenCollective/opencollective-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenCollective/opencollective-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenCollective/opencollective-api/teams","hooks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/hooks","issue_events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/events{/number}","events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/events","assignees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/assignees{/user}","branches_url":"https://api.github.com/repos/OpenCollective/opencollective-api/branches{/branch}","tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/tags","blobs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenCollective/opencollective-api/languages","stargazers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/stargazers","contributors_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contributors","subscribers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscribers","subscription_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscription","commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contents/{+path}","compare_url":"https://api.github.com/repos/OpenCollective/opencollective-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenCollective/opencollective-api/merges","archive_url":"https://api.github.com/repos/OpenCollective/opencollective-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenCollective/opencollective-api/downloads","issues_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues{/number}","pulls_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenCollective/opencollective-api/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenCollective/opencollective-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenCollective/opencollective-api/labels{/name}","releases_url":"https://api.github.com/repos/OpenCollective/opencollective-api/releases{/id}","deployments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/deployments","created_at":"2015-05-19T05:40:22Z","updated_at":"2016-06-03T04:36:09Z","pushed_at":"2016-07-19T14:40:14Z","git_url":"git://github.com/OpenCollective/opencollective-api.git","ssh_url":"git@github.com:OpenCollective/opencollective-api.git","clone_url":"https://github.com/OpenCollective/opencollective-api.git","svn_url":"https://github.com/OpenCollective/opencollective-api","homepage":"","size":3378,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":6,"default_branch":"master"}},"base":{"label":"OpenCollective:master","ref":"master","sha":"22bf58c0cb3d4f44536eb86e63636a13660848ce","user":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"repo":{"id":35861629,"name":"opencollective-api","full_name":"OpenCollective/opencollective-api","owner":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenCollective/opencollective-api","description":"OpenCollective's API","fork":false,"url":"https://api.github.com/repos/OpenCollective/opencollective-api","forks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/forks","keys_url":"https://api.github.com/repos/OpenCollective/opencollective-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenCollective/opencollective-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenCollective/opencollective-api/teams","hooks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/hooks","issue_events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/events{/number}","events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/events","assignees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/assignees{/user}","branches_url":"https://api.github.com/repos/OpenCollective/opencollective-api/branches{/branch}","tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/tags","blobs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenCollective/opencollective-api/languages","stargazers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/stargazers","contributors_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contributors","subscribers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscribers","subscription_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscription","commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contents/{+path}","compare_url":"https://api.github.com/repos/OpenCollective/opencollective-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenCollective/opencollective-api/merges","archive_url":"https://api.github.com/repos/OpenCollective/opencollective-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenCollective/opencollective-api/downloads","issues_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues{/number}","pulls_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenCollective/opencollective-api/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenCollective/opencollective-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenCollective/opencollective-api/labels{/name}","releases_url":"https://api.github.com/repos/OpenCollective/opencollective-api/releases{/id}","deployments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/deployments","created_at":"2015-05-19T05:40:22Z","updated_at":"2016-06-03T04:36:09Z","pushed_at":"2016-07-19T14:40:14Z","git_url":"git://github.com/OpenCollective/opencollective-api.git","ssh_url":"git@github.com:OpenCollective/opencollective-api.git","clone_url":"https://github.com/OpenCollective/opencollective-api.git","svn_url":"https://github.com/OpenCollective/opencollective-api","homepage":"","size":3378,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488"},"html":{"href":"https://github.com/OpenCollective/opencollective-api/pull/488"},"issue":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/488"},"comments":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/488/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/488/commits"},"statuses":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/a3e01f7f3efe3e13b806d98593f35f4eb7b6ba12"}}}}
{"actor":{"display_login":"sedubois"}}