{"action":"created","comment":{"url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/comments/59785281","id":59785281,"diff_hunk":"@@ -0,0 +1,70 @@\n+package edu.cornell.kfs.tax.service.impl;\n+\n+import java.io.Serializable;\n+import java.util.Collection;\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import org.apache.commons.lang.StringUtils;\n+import org.kuali.kfs.sys.context.SpringContext;\n+import org.kuali.rice.coreservice.framework.parameter.ParameterService;\n+\n+import edu.cornell.kfs.tax.CUTaxConstants;\n+import edu.cornell.kfs.tax.CUTaxConstants.Tax1099ParameterNames;\n+import edu.cornell.kfs.tax.service.PaymentReason1099BoxService;\n+\n+public class PaymentReason1099BoxServiceImpl implements PaymentReason1099BoxService, Serializable {\n+\n+\tprivate ParameterService parameterService;\n+\tprivate static final long serialVersionUID = 3831002692873100613L;\n+\n+\t@Override\n+\tpublic boolean isPaymentReasonMappedTo1099Box(String paymentReasonCode) {\n+\t\treturn convertCollectionToMap(getPaumentReasonTo1099BoxMappings()).containsKey(paymentReasonCode);\n+\t}\n+\n+\t@Override\n+\tpublic String getPaymentReason1099Box(String paymentReasonCode) {\n+\t\treturn convertCollectionToMap(getPaumentReasonTo1099BoxMappings()).get(paymentReasonCode);\n+\t}\n+\n+\t@Override\n+\tpublic boolean isPaymentReasonMappedToNo1099Box(String paymentReasonCode) {\t\n+\t\treturn getPaumentReasonToNo1099Boxes().contains(paymentReasonCode);\n+\t}\n+\t\n+\tpublic Collection<String> getPaumentReasonTo1099BoxMappings() {\n+\t\treturn getParameterService().getParameterValuesAsString(CUTaxConstants.TAX_NAMESPACE, CUTaxConstants.TAX_1099_PARM_DETAIL, \n+\t\t\t\tTax1099ParameterNames.PAYMENT_REASON_TO_TAX_BOX);\n+\t}\n+\t\n+\tpublic Collection<String> getPaumentReasonToNo1099Boxes() {","path":"src/main/java/edu/cornell/kfs/tax/service/impl/PaymentReason1099BoxServiceImpl.java","position":41,"original_position":41,"commit_id":"d7ff3fe33449b1b70801e9acfdec646d462b71aa","original_commit_id":"d7ff3fe33449b1b70801e9acfdec646d462b71aa","user":{"login":"bhutchinson","id":1806259,"avatar_url":"https://avatars.githubusercontent.com/u/1806259?v=3","gravatar_id":"","url":"https://api.github.com/users/bhutchinson","html_url":"https://github.com/bhutchinson","followers_url":"https://api.github.com/users/bhutchinson/followers","following_url":"https://api.github.com/users/bhutchinson/following{/other_user}","gists_url":"https://api.github.com/users/bhutchinson/gists{/gist_id}","starred_url":"https://api.github.com/users/bhutchinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhutchinson/subscriptions","organizations_url":"https://api.github.com/users/bhutchinson/orgs","repos_url":"https://api.github.com/users/bhutchinson/repos","events_url":"https://api.github.com/users/bhutchinson/events{/privacy}","received_events_url":"https://api.github.com/users/bhutchinson/received_events","type":"User","site_admin":false},"body":"another misspelling I think","created_at":"2016-04-14T20:26:01Z","updated_at":"2016-04-14T20:26:01Z","html_url":"https://github.com/CU-CommunityApps/cu-kfs/pull/82#discussion_r59785281","pull_request_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/comments/59785281"},"html":{"href":"https://github.com/CU-CommunityApps/cu-kfs/pull/82#discussion_r59785281"},"pull_request":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82","id":66499379,"html_url":"https://github.com/CU-CommunityApps/cu-kfs/pull/82","diff_url":"https://github.com/CU-CommunityApps/cu-kfs/pull/82.diff","patch_url":"https://github.com/CU-CommunityApps/cu-kfs/pull/82.patch","issue_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/82","number":82,"state":"open","locked":false,"title":"KFSPTS-5409 mapping payment reasons to 1099 tax box","user":{"login":"jhulslander","id":5121156,"avatar_url":"https://avatars.githubusercontent.com/u/5121156?v=3","gravatar_id":"","url":"https://api.github.com/users/jhulslander","html_url":"https://github.com/jhulslander","followers_url":"https://api.github.com/users/jhulslander/followers","following_url":"https://api.github.com/users/jhulslander/following{/other_user}","gists_url":"https://api.github.com/users/jhulslander/gists{/gist_id}","starred_url":"https://api.github.com/users/jhulslander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhulslander/subscriptions","organizations_url":"https://api.github.com/users/jhulslander/orgs","repos_url":"https://api.github.com/users/jhulslander/repos","events_url":"https://api.github.com/users/jhulslander/events{/privacy}","received_events_url":"https://api.github.com/users/jhulslander/received_events","type":"User","site_admin":false},"body":"Please don't merge this yet, I need to some more testing in regards to the \"mapped to no boxes\" configuration.  I would like to get some feedback on this code as I complete testing.","created_at":"2016-04-14T15:00:14Z","updated_at":"2016-04-14T20:26:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4669d142ff2336029b82008bc165ce09ee92629c","assignee":{"login":"bhutchinson","id":1806259,"avatar_url":"https://avatars.githubusercontent.com/u/1806259?v=3","gravatar_id":"","url":"https://api.github.com/users/bhutchinson","html_url":"https://github.com/bhutchinson","followers_url":"https://api.github.com/users/bhutchinson/followers","following_url":"https://api.github.com/users/bhutchinson/following{/other_user}","gists_url":"https://api.github.com/users/bhutchinson/gists{/gist_id}","starred_url":"https://api.github.com/users/bhutchinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhutchinson/subscriptions","organizations_url":"https://api.github.com/users/bhutchinson/orgs","repos_url":"https://api.github.com/users/bhutchinson/repos","events_url":"https://api.github.com/users/bhutchinson/events{/privacy}","received_events_url":"https://api.github.com/users/bhutchinson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82/commits","review_comments_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82/comments","review_comment_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/82/comments","statuses_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/statuses/d7ff3fe33449b1b70801e9acfdec646d462b71aa","head":{"label":"CU-CommunityApps:KFSPTS-5409-1099PaymentReason","ref":"KFSPTS-5409-1099PaymentReason","sha":"d7ff3fe33449b1b70801e9acfdec646d462b71aa","user":{"login":"CU-CommunityApps","id":5115848,"avatar_url":"https://avatars.githubusercontent.com/u/5115848?v=3","gravatar_id":"","url":"https://api.github.com/users/CU-CommunityApps","html_url":"https://github.com/CU-CommunityApps","followers_url":"https://api.github.com/users/CU-CommunityApps/followers","following_url":"https://api.github.com/users/CU-CommunityApps/following{/other_user}","gists_url":"https://api.github.com/users/CU-CommunityApps/gists{/gist_id}","starred_url":"https://api.github.com/users/CU-CommunityApps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CU-CommunityApps/subscriptions","organizations_url":"https://api.github.com/users/CU-CommunityApps/orgs","repos_url":"https://api.github.com/users/CU-CommunityApps/repos","events_url":"https://api.github.com/users/CU-CommunityApps/events{/privacy}","received_events_url":"https://api.github.com/users/CU-CommunityApps/received_events","type":"Organization","site_admin":false},"repo":{"id":12188834,"name":"cu-kfs","full_name":"CU-CommunityApps/cu-kfs","owner":{"login":"CU-CommunityApps","id":5115848,"avatar_url":"https://avatars.githubusercontent.com/u/5115848?v=3","gravatar_id":"","url":"https://api.github.com/users/CU-CommunityApps","html_url":"https://github.com/CU-CommunityApps","followers_url":"https://api.github.com/users/CU-CommunityApps/followers","following_url":"https://api.github.com/users/CU-CommunityApps/following{/other_user}","gists_url":"https://api.github.com/users/CU-CommunityApps/gists{/gist_id}","starred_url":"https://api.github.com/users/CU-CommunityApps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CU-CommunityApps/subscriptions","organizations_url":"https://api.github.com/users/CU-CommunityApps/orgs","repos_url":"https://api.github.com/users/CU-CommunityApps/repos","events_url":"https://api.github.com/users/CU-CommunityApps/events{/privacy}","received_events_url":"https://api.github.com/users/CU-CommunityApps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CU-CommunityApps/cu-kfs","description":"","fork":false,"url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs","forks_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/forks","keys_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/teams","hooks_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/hooks","issue_events_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/events{/number}","events_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/events","assignees_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/assignees{/user}","branches_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/branches{/branch}","tags_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/tags","blobs_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/statuses/{sha}","languages_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/languages","stargazers_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/stargazers","contributors_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/contributors","subscribers_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/subscribers","subscription_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/subscription","commits_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/contents/{+path}","compare_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/merges","archive_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/downloads","issues_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues{/number}","pulls_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls{/number}","milestones_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/milestones{/number}","notifications_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/labels{/name}","releases_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/releases{/id}","deployments_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/deployments","created_at":"2013-08-18T01:55:18Z","updated_at":"2016-01-11T17:11:20Z","pushed_at":"2016-04-14T15:04:17Z","git_url":"git://github.com/CU-CommunityApps/cu-kfs.git","ssh_url":"git@github.com:CU-CommunityApps/cu-kfs.git","clone_url":"https://github.com/CU-CommunityApps/cu-kfs.git","svn_url":"https://github.com/CU-CommunityApps/cu-kfs","homepage":null,"size":16829,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CU-CommunityApps:develop","ref":"develop","sha":"d331cd9d4446dc88344c4a077b5fde4b392b8a42","user":{"login":"CU-CommunityApps","id":5115848,"avatar_url":"https://avatars.githubusercontent.com/u/5115848?v=3","gravatar_id":"","url":"https://api.github.com/users/CU-CommunityApps","html_url":"https://github.com/CU-CommunityApps","followers_url":"https://api.github.com/users/CU-CommunityApps/followers","following_url":"https://api.github.com/users/CU-CommunityApps/following{/other_user}","gists_url":"https://api.github.com/users/CU-CommunityApps/gists{/gist_id}","starred_url":"https://api.github.com/users/CU-CommunityApps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CU-CommunityApps/subscriptions","organizations_url":"https://api.github.com/users/CU-CommunityApps/orgs","repos_url":"https://api.github.com/users/CU-CommunityApps/repos","events_url":"https://api.github.com/users/CU-CommunityApps/events{/privacy}","received_events_url":"https://api.github.com/users/CU-CommunityApps/received_events","type":"Organization","site_admin":false},"repo":{"id":12188834,"name":"cu-kfs","full_name":"CU-CommunityApps/cu-kfs","owner":{"login":"CU-CommunityApps","id":5115848,"avatar_url":"https://avatars.githubusercontent.com/u/5115848?v=3","gravatar_id":"","url":"https://api.github.com/users/CU-CommunityApps","html_url":"https://github.com/CU-CommunityApps","followers_url":"https://api.github.com/users/CU-CommunityApps/followers","following_url":"https://api.github.com/users/CU-CommunityApps/following{/other_user}","gists_url":"https://api.github.com/users/CU-CommunityApps/gists{/gist_id}","starred_url":"https://api.github.com/users/CU-CommunityApps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CU-CommunityApps/subscriptions","organizations_url":"https://api.github.com/users/CU-CommunityApps/orgs","repos_url":"https://api.github.com/users/CU-CommunityApps/repos","events_url":"https://api.github.com/users/CU-CommunityApps/events{/privacy}","received_events_url":"https://api.github.com/users/CU-CommunityApps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CU-CommunityApps/cu-kfs","description":"","fork":false,"url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs","forks_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/forks","keys_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/teams","hooks_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/hooks","issue_events_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/events{/number}","events_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/events","assignees_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/assignees{/user}","branches_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/branches{/branch}","tags_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/tags","blobs_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/statuses/{sha}","languages_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/languages","stargazers_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/stargazers","contributors_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/contributors","subscribers_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/subscribers","subscription_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/subscription","commits_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/contents/{+path}","compare_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/merges","archive_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/downloads","issues_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues{/number}","pulls_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls{/number}","milestones_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/milestones{/number}","notifications_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/labels{/name}","releases_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/releases{/id}","deployments_url":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/deployments","created_at":"2013-08-18T01:55:18Z","updated_at":"2016-01-11T17:11:20Z","pushed_at":"2016-04-14T15:04:17Z","git_url":"git://github.com/CU-CommunityApps/cu-kfs.git","ssh_url":"git@github.com:CU-CommunityApps/cu-kfs.git","clone_url":"https://github.com/CU-CommunityApps/cu-kfs.git","svn_url":"https://github.com/CU-CommunityApps/cu-kfs","homepage":null,"size":16829,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82"},"html":{"href":"https://github.com/CU-CommunityApps/cu-kfs/pull/82"},"issue":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/82"},"comments":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/CU-CommunityApps/cu-kfs/statuses/d7ff3fe33449b1b70801e9acfdec646d462b71aa"}}}}