{"action":"created","comment":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/comments/25389391","id":25389391,"diff_hunk":"@@ -163,11 +204,51 @@ response.variables = ->\n   [\n     { name: 'outcome', type: 'string', description: 'Integration outcome (success, failure, or error)' },\n     { name: 'reason', type: 'string', description: 'If outcome is error, the error reason' },\n-    { name: 'gender', type: 'gender', description: 'Gender associated with email address. \"Male\", \"Female\"' },\n-    { name: 'age', type: 'range', description: 'Age or age range associated with email address. \"18-20\", \"21-24\", \"25-34\", \"35-44\", \"45-54\", \"55-64\", \"65+\"' }\n+    { name: 'age', type: 'range', description: 'Age or age range associated with consumer\\'s email. \"18-20\", \"21-24\", \"25-34\", \"35-44\", \"45-54\", \"55-64\", \"65+\"' },\n+    { name: 'gender', type: 'gender', description: 'Gender associated with consumer\\'s email. \"Male\", \"Female\"' },\n+    { name: 'education', type: 'string', description: 'Education level associated with the consumer\\'s email. \"Completed High School\", \"Attended College\", \"Completed College\", \"Completed Graduate School\", \"Attended Vocational/Technical\"'}\n+    { name: 'annual_household_income', type: 'range', description: 'Household income associated with the consumer\\'s email.  \"0-15000\", \"15000-25000\", \"25000-35000\", \"35000-50000\", \"50000-75000\", \"75000-100000\", \"100000-125000\", \"125000-150000\", \"150000-175000\", \"175k-200000\", \"200000-250000\", \"250000+\"'}\n+    { name: 'home_market_value', type: 'range', description: 'Home market value associated with the consumer\\'s email. \"1000-25000\", \"25000-50000\", \"50000-75000\", \"75000-100000\", \"100000-150000\", \"150000-200000\", \"200000-250000\", \"250000-300000\", \"300000-350000\", \"350k-500000\", \"500000-1mm\", \"1mm+\"'}\n+    { name: 'home_owner_status', type: 'string', description: 'Home owner status associated with the consumer\\'s email.  \"Own\", \"Rent\"'}\n+    { name: 'years_at_residence', type: 'range', description: 'Length of residence associated with the consumer\\'s email. \"Less than 1 year\", \"1 Year\",  \"2 Years\",  \"3 Years\",  \"4 Years\", \"5 Years\",  \"6 Years\",  \"7 Years\",  \"8 Years\",  \"9 Years\",  \"10 Years\",  \"11-15 years\", \"16-19 years\",  \"20+ years\"'}\n+    { name: 'marital_status', type: 'string', description: 'Marital status associated with the consumer\\'s email. \"Single\", \"Married\"'}\n+    { name: 'occupation', type: 'string', description: 'Occupation associated with the consumer\\'s email.  \"Blue Collar Worker\", \"Business Owner\", \"Civil Service\", \"Executive/Upper Management\", \"Health Services\", \"Homemaker\", \"Middle Management\", \"Military Personnel\", \"Nurse\", \"Part Time\", \"Professional\", \"Retired\", \"Secretary\", \"Student\", \"Teacher\", \"Technology\", \"White Collar Worker\"'}\n+    { name: 'children', type: 'boolean', description: 'Presence of children associated with the consumer\\'s email. \"Yes\", \"No\"'}\n   ]\n \n+#\n+# Helpers ----------------------------------------------------------------\n+#\n \n+parseKto000 = (value) ->\n+  value = value.replace(/k/g, '000')\n+  value = value.replace(/m/g, '000000')\n+  return value\n+\n+parseMarital = (value) ->\n+  value = value.toLowerCase()\n+  switch value\n+    when 'single' then 'not married'\n+    else 'married'\n+\n+parseYearsToRange = (value) ->\n+  value = value.toLowerCase()\n+  switch value\n+    when 'less than 1 year' then '0-1'\n+    when '1 year' then '1-2'\n+    when '2 years' then '2-3'\n+    when '3 years' then '3-4'\n+    when '4 years' then '4-5'\n+    when '5 years' then '5-6'\n+    when '6 years' then '6-7'\n+    when '7 years' then '7-8'\n+    when '8 years' then '8-9'\n+    when '9 years' then '9-10'\n+    when '10 years' then '10-11'","path":"src/outbound.coffee","position":130,"original_position":130,"commit_id":"f0aaed1618683bd5da2fa571a733b1766dc0abfb","original_commit_id":"f0aaed1618683bd5da2fa571a733b1766dc0abfb","user":{"login":"zalary","id":338654,"avatar_url":"https://avatars.githubusercontent.com/u/338654?v=3","gravatar_id":"","url":"https://api.github.com/users/zalary","html_url":"https://github.com/zalary","followers_url":"https://api.github.com/users/zalary/followers","following_url":"https://api.github.com/users/zalary/following{/other_user}","gists_url":"https://api.github.com/users/zalary/gists{/gist_id}","starred_url":"https://api.github.com/users/zalary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalary/subscriptions","organizations_url":"https://api.github.com/users/zalary/orgs","repos_url":"https://api.github.com/users/zalary/repos","events_url":"https://api.github.com/users/zalary/events{/privacy}","received_events_url":"https://api.github.com/users/zalary/received_events","type":"User","site_admin":false},"body":"should less than one be 0 or still 0-1 or something else?","created_at":"2015-02-25T23:06:56Z","updated_at":"2015-02-25T23:06:56Z","html_url":"https://github.com/activeprospect/leadconduit-integration-towerdata/pull/6#discussion_r25389391","pull_request_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/comments/25389391"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-towerdata/pull/6#discussion_r25389391"},"pull_request":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6","id":29908458,"html_url":"https://github.com/activeprospect/leadconduit-integration-towerdata/pull/6","diff_url":"https://github.com/activeprospect/leadconduit-integration-towerdata/pull/6.diff","patch_url":"https://github.com/activeprospect/leadconduit-integration-towerdata/pull/6.patch","issue_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/6","number":6,"state":"open","locked":false,"title":"add support for additional personalization checks","user":{"login":"zalary","id":338654,"avatar_url":"https://avatars.githubusercontent.com/u/338654?v=3","gravatar_id":"","url":"https://api.github.com/users/zalary","html_url":"https://github.com/zalary","followers_url":"https://api.github.com/users/zalary/followers","following_url":"https://api.github.com/users/zalary/following{/other_user}","gists_url":"https://api.github.com/users/zalary/gists{/gist_id}","starred_url":"https://api.github.com/users/zalary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalary/subscriptions","organizations_url":"https://api.github.com/users/zalary/orgs","repos_url":"https://api.github.com/users/zalary/repos","events_url":"https://api.github.com/users/zalary/events{/privacy}","received_events_url":"https://api.github.com/users/zalary/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-24T15:49:22Z","updated_at":"2015-02-25T23:06:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91a8d1c1a8749887b04ed50d4223ef9bda004e8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6/commits","review_comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6/comments","review_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/6/comments","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/statuses/f0aaed1618683bd5da2fa571a733b1766dc0abfb","head":{"label":"activeprospect:addproperties","ref":"addproperties","sha":"f0aaed1618683bd5da2fa571a733b1766dc0abfb","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":29369415,"name":"leadconduit-integration-towerdata","full_name":"activeprospect/leadconduit-integration-towerdata","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-towerdata","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/releases{/id}","created_at":"2015-01-16T21:51:20Z","updated_at":"2015-02-16T15:31:52Z","pushed_at":"2015-02-25T00:51:51Z","git_url":"git://github.com/activeprospect/leadconduit-integration-towerdata.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-towerdata.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-towerdata.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-towerdata","homepage":null,"size":308,"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":"0f9e54e6c75066bbad335671ced915575cfbb9ba","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":29369415,"name":"leadconduit-integration-towerdata","full_name":"activeprospect/leadconduit-integration-towerdata","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-towerdata","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/releases{/id}","created_at":"2015-01-16T21:51:20Z","updated_at":"2015-02-16T15:31:52Z","pushed_at":"2015-02-25T00:51:51Z","git_url":"git://github.com/activeprospect/leadconduit-integration-towerdata.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-towerdata.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-towerdata.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-towerdata","homepage":null,"size":308,"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-towerdata/pulls/6"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-towerdata/pull/6"},"issue":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/6"},"comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-towerdata/statuses/f0aaed1618683bd5da2fa571a733b1766dc0abfb"}}}}