{"action":"created","comment":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/comments/43663016","id":43663016,"diff_hunk":"@@ -189,12 +189,16 @@ parseProductType = (product) ->\n \n parseError = (description) ->\n   return unless description and description.toLowerCase() != 'success'\n-  errors = description.match(/Message: .+\\. /g)\n+  errors = description.match(/Message: .+\\. /g) or description\n   reason = ''\n   for err in errors\n-    reason += err.substr(9)\n+    reason += err.replace(/Message: /, '')\n   reason.trim()\n \n+getNumber = (number) ->\n+  return number if typeof number == 'string'","path":"src/outbound.coffee","position":49,"original_position":49,"commit_id":"4c67f2534b0dab89212f808582095ebb5b42c849","original_commit_id":"4c67f2534b0dab89212f808582095ebb5b42c849","user":{"login":"alexkwolfe","id":569,"avatar_url":"https://avatars.githubusercontent.com/u/569?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkwolfe","html_url":"https://github.com/alexkwolfe","followers_url":"https://api.github.com/users/alexkwolfe/followers","following_url":"https://api.github.com/users/alexkwolfe/following{/other_user}","gists_url":"https://api.github.com/users/alexkwolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkwolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkwolfe/subscriptions","organizations_url":"https://api.github.com/users/alexkwolfe/orgs","repos_url":"https://api.github.com/users/alexkwolfe/repos","events_url":"https://api.github.com/users/alexkwolfe/events{/privacy}","received_events_url":"https://api.github.com/users/alexkwolfe/received_events","type":"User","site_admin":false},"body":"Gotcha regarding the tests. But what do mean that \"not all of these are standard fields\"?","created_at":"2015-11-02T18:35:35Z","updated_at":"2015-11-02T18:35:35Z","html_url":"https://github.com/activeprospect/leadconduit-integration-cashcall/pull/6#discussion_r43663016","pull_request_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/comments/43663016"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-cashcall/pull/6#discussion_r43663016"},"pull_request":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6","id":49467373,"html_url":"https://github.com/activeprospect/leadconduit-integration-cashcall/pull/6","diff_url":"https://github.com/activeprospect/leadconduit-integration-cashcall/pull/6.diff","patch_url":"https://github.com/activeprospect/leadconduit-integration-cashcall/pull/6.patch","issue_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/6","number":6,"state":"open","locked":false,"title":"fix to not send 'NaN's; improve error parsing","user":{"login":"cgrayson","id":5596,"avatar_url":"https://avatars.githubusercontent.com/u/5596?v=3","gravatar_id":"","url":"https://api.github.com/users/cgrayson","html_url":"https://github.com/cgrayson","followers_url":"https://api.github.com/users/cgrayson/followers","following_url":"https://api.github.com/users/cgrayson/following{/other_user}","gists_url":"https://api.github.com/users/cgrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/cgrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgrayson/subscriptions","organizations_url":"https://api.github.com/users/cgrayson/orgs","repos_url":"https://api.github.com/users/cgrayson/repos","events_url":"https://api.github.com/users/cgrayson/events{/privacy}","received_events_url":"https://api.github.com/users/cgrayson/received_events","type":"User","site_admin":false},"body":"@alexkwolfe when you have a minute, please?","created_at":"2015-11-02T18:30:06Z","updated_at":"2015-11-02T18:35:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0dfafa2f046a2b1420aa4c3fafa21f9a3197dc07","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6/commits","review_comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6/comments","review_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/6/comments","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/statuses/4c67f2534b0dab89212f808582095ebb5b42c849","head":{"label":"activeprospect:fix-numbers-and-errors","ref":"fix-numbers-and-errors","sha":"4c67f2534b0dab89212f808582095ebb5b42c849","user":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"repo":{"id":45053946,"name":"leadconduit-integration-cashcall","full_name":"activeprospect/leadconduit-integration-cashcall","owner":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeprospect/leadconduit-integration-cashcall","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/releases{/id}","created_at":"2015-10-27T16:23:52Z","updated_at":"2015-10-27T16:29:25Z","pushed_at":"2015-11-02T18:30:07Z","git_url":"git://github.com/activeprospect/leadconduit-integration-cashcall.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-cashcall.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-cashcall.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-cashcall","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"activeprospect:master","ref":"master","sha":"e5605dd2dd75d3cb9b0acad2e6003db3bd205502","user":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"repo":{"id":45053946,"name":"leadconduit-integration-cashcall","full_name":"activeprospect/leadconduit-integration-cashcall","owner":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeprospect/leadconduit-integration-cashcall","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/releases{/id}","created_at":"2015-10-27T16:23:52Z","updated_at":"2015-10-27T16:29:25Z","pushed_at":"2015-11-02T18:30:07Z","git_url":"git://github.com/activeprospect/leadconduit-integration-cashcall.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-cashcall.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-cashcall.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-cashcall","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-cashcall/pull/6"},"issue":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/6"},"comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-cashcall/statuses/4c67f2534b0dab89212f808582095ebb5b42c849"}}}}