{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments/31695998","id":31695998,"diff_hunk":"@@ -40,4 +40,37 @@ def retrieve_customer_invoice_lines(invoice_id)\n   rescue\n     false\n   end\n+\n+  def add_invoice_item(add_on_amount, add_on_description, add_on_quantity)\n+    invoice_item = Stripe::InvoiceItem.create(\n+      :customer => current_user.stripe_customer_id,\n+      :amount => add_on_amount * add_on_quantity,\n+      :currency => \"eur\",","path":"app/helpers/stripe_invoices_helper.rb","position":9,"original_position":9,"commit_id":"e9f63c3f52fda16efe486ec12546f71595b3b1d1","original_commit_id":"e9f63c3f52fda16efe486ec12546f71595b3b1d1","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use the new Ruby 1.9 hash syntax.","created_at":"2015-06-04T06:27:53Z","updated_at":"2015-06-04T06:27:53Z","html_url":"https://github.com/evercam/evercam-dashboard/pull/554#discussion_r31695998","pull_request_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments/31695998"},"html":{"href":"https://github.com/evercam/evercam-dashboard/pull/554#discussion_r31695998"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554","id":36904382,"html_url":"https://github.com/evercam/evercam-dashboard/pull/554","diff_url":"https://github.com/evercam/evercam-dashboard/pull/554.diff","patch_url":"https://github.com/evercam/evercam-dashboard/pull/554.patch","issue_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/554","number":554,"state":"open","locked":false,"title":"Update invoice to refelect add ons","user":{"login":"azharmalik3","id":6176136,"avatar_url":"https://avatars.githubusercontent.com/u/6176136?v=3","gravatar_id":"","url":"https://api.github.com/users/azharmalik3","html_url":"https://github.com/azharmalik3","followers_url":"https://api.github.com/users/azharmalik3/followers","following_url":"https://api.github.com/users/azharmalik3/following{/other_user}","gists_url":"https://api.github.com/users/azharmalik3/gists{/gist_id}","starred_url":"https://api.github.com/users/azharmalik3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azharmalik3/subscriptions","organizations_url":"https://api.github.com/users/azharmalik3/orgs","repos_url":"https://api.github.com/users/azharmalik3/repos","events_url":"https://api.github.com/users/azharmalik3/events{/privacy}","received_events_url":"https://api.github.com/users/azharmalik3/received_events","type":"User","site_admin":false},"body":"@mosic ","created_at":"2015-06-04T05:54:43Z","updated_at":"2015-06-04T06:27:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5c1672c871eb3a8378396d5fae37ff0793cb4ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/554/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/e9f63c3f52fda16efe486ec12546f71595b3b1d1","head":{"label":"evercam:update_invoice_to_refelect_add_ons","ref":"update_invoice_to_refelect_add_ons","sha":"e9f63c3f52fda16efe486ec12546f71595b3b1d1","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":17252115,"name":"evercam-dashboard","full_name":"evercam/evercam-dashboard","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-dashboard","description":"A Rails application that provides the user facing side of Evercam.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-dashboard","forks_url":"https://api.github.com/repos/evercam/evercam-dashboard/forks","keys_url":"https://api.github.com/repos/evercam/evercam-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-dashboard/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-dashboard/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/events","assignees_url":"https://api.github.com/repos/evercam/evercam-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-dashboard/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-dashboard/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-dashboard/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-dashboard/merges","archive_url":"https://api.github.com/repos/evercam/evercam-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-dashboard/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-dashboard/releases{/id}","created_at":"2014-02-27T14:46:47Z","updated_at":"2015-05-25T08:17:08Z","pushed_at":"2015-06-04T06:27:46Z","git_url":"git://github.com/evercam/evercam-dashboard.git","ssh_url":"git@github.com:evercam/evercam-dashboard.git","clone_url":"https://github.com/evercam/evercam-dashboard.git","svn_url":"https://github.com/evercam/evercam-dashboard","homepage":null,"size":236691,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"cbd68561299d110725d8739a6e19c3c735776455","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":17252115,"name":"evercam-dashboard","full_name":"evercam/evercam-dashboard","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-dashboard","description":"A Rails application that provides the user facing side of Evercam.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-dashboard","forks_url":"https://api.github.com/repos/evercam/evercam-dashboard/forks","keys_url":"https://api.github.com/repos/evercam/evercam-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-dashboard/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-dashboard/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/events","assignees_url":"https://api.github.com/repos/evercam/evercam-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-dashboard/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-dashboard/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-dashboard/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-dashboard/merges","archive_url":"https://api.github.com/repos/evercam/evercam-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-dashboard/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-dashboard/releases{/id}","created_at":"2014-02-27T14:46:47Z","updated_at":"2015-05-25T08:17:08Z","pushed_at":"2015-06-04T06:27:46Z","git_url":"git://github.com/evercam/evercam-dashboard.git","ssh_url":"git@github.com:evercam/evercam-dashboard.git","clone_url":"https://github.com/evercam/evercam-dashboard.git","svn_url":"https://github.com/evercam/evercam-dashboard","homepage":null,"size":236691,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554"},"html":{"href":"https://github.com/evercam/evercam-dashboard/pull/554"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/issues/554"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/issues/554/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/554/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/e9f63c3f52fda16efe486ec12546f71595b3b1d1"}}}}