{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/stripe-java/pulls/comments/26619425","id":26619425,"diff_hunk":"@@ -67,18 +69,45 @@ public String getDisplayName() {\n \t\treturn displayName;\n \t}\n \n+\tpublic LegalEntity getLegalEntity() {\n+\t\treturn legalEntity;\n+\t}\n+\n+\tpublic static Account create(Map<String, Object> params)\n+\t\t\tthrows AuthenticationException, InvalidRequestException,\n+\t\t\tAPIConnectionException, CardException, APIException {\n+\t\treturn create(params, (RequestOptions) null);\n+\t}\n+\n+\tpublic static Account create(Map<String, Object> params, RequestOptions options)\n+\t\t\tthrows AuthenticationException, InvalidRequestException,\n+\t\t\tAPIConnectionException, CardException, APIException {\n+\t\treturn request(RequestMethod.POST, classURL(Account.class), params, Account.class, options);\n+\t}\n+\n \tpublic static Account retrieve()\n \t\t\tthrows AuthenticationException, InvalidRequestException,\n \t\t\tAPIConnectionException, CardException, APIException {\n \t\treturn retrieve((RequestOptions) null);\n \t}\n \n+\t/**\n+\t * In order to preserve backwards-compatibility, this method does two things.\n+   * If the parameter looks like an API key (starts with sk_), retrieve the","path":"src/main/java/com/stripe/model/Account.java","position":44,"original_position":44,"commit_id":"b6938c96ec07e71b260bd755e0bcd5738fcb2b2c","original_commit_id":"b6938c96ec07e71b260bd755e0bcd5738fcb2b2c","user":{"login":"jimdanz","id":620026,"avatar_url":"https://avatars.githubusercontent.com/u/620026?v=3","gravatar_id":"","url":"https://api.github.com/users/jimdanz","html_url":"https://github.com/jimdanz","followers_url":"https://api.github.com/users/jimdanz/followers","following_url":"https://api.github.com/users/jimdanz/following{/other_user}","gists_url":"https://api.github.com/users/jimdanz/gists{/gist_id}","starred_url":"https://api.github.com/users/jimdanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimdanz/subscriptions","organizations_url":"https://api.github.com/users/jimdanz/orgs","repos_url":"https://api.github.com/users/jimdanz/repos","events_url":"https://api.github.com/users/jimdanz/events{/privacy}","received_events_url":"https://api.github.com/users/jimdanz/received_events","type":"User","site_admin":false},"body":"whitespace patrol","created_at":"2015-03-17T21:42:16Z","updated_at":"2015-03-17T21:42:16Z","html_url":"https://github.com/stripe/stripe-java/pull/149#discussion_r26619425","pull_request_url":"https://api.github.com/repos/stripe/stripe-java/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-java/pulls/comments/26619425"},"html":{"href":"https://github.com/stripe/stripe-java/pull/149#discussion_r26619425"},"pull_request":{"href":"https://api.github.com/repos/stripe/stripe-java/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/stripe-java/pulls/149","id":31305902,"html_url":"https://github.com/stripe/stripe-java/pull/149","diff_url":"https://github.com/stripe/stripe-java/pull/149.diff","patch_url":"https://github.com/stripe/stripe-java/pull/149.patch","issue_url":"https://api.github.com/repos/stripe/stripe-java/issues/149","number":149,"state":"open","locked":false,"title":"Add account retrieval by ID and support for lists in params","user":{"login":"danwang","id":935063,"avatar_url":"https://avatars.githubusercontent.com/u/935063?v=3","gravatar_id":"","url":"https://api.github.com/users/danwang","html_url":"https://github.com/danwang","followers_url":"https://api.github.com/users/danwang/followers","following_url":"https://api.github.com/users/danwang/following{/other_user}","gists_url":"https://api.github.com/users/danwang/gists{/gist_id}","starred_url":"https://api.github.com/users/danwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danwang/subscriptions","organizations_url":"https://api.github.com/users/danwang/orgs","repos_url":"https://api.github.com/users/danwang/repos","events_url":"https://api.github.com/users/danwang/events{/privacy}","received_events_url":"https://api.github.com/users/danwang/received_events","type":"User","site_admin":false},"body":"r? @jimdanz @bkrausz \r\n\r\nAdd account retrieval by ID and add a super basic (stubbed!) unit test. This is an example of how #148 will work.\r\n\r\nTODO:\r\n- [x] add more tests for `Account`\r\n- [x] ~~add nested map support~~ (already exists)\r\n- [x] add support for lists\r\n- [x] add support for legal entity\r\n  - [x] verification\r\n  - [x] address\r\n  - [x] dob\r\n  - [x] personal_address\r\n  - [x] additional_owners\r\n- [x] C\r\n- [x] R\r\n- [x] U","created_at":"2015-03-17T04:05:22Z","updated_at":"2015-03-17T21:42:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f37e85c17aa20ff130e21b164fd003fa506672a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/stripe-java/pulls/149/commits","review_comments_url":"https://api.github.com/repos/stripe/stripe-java/pulls/149/comments","review_comment_url":"https://api.github.com/repos/stripe/stripe-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/stripe-java/issues/149/comments","statuses_url":"https://api.github.com/repos/stripe/stripe-java/statuses/b6938c96ec07e71b260bd755e0bcd5738fcb2b2c","head":{"label":"stripe:danwang/add-account-retrieval-by-id","ref":"danwang/add-account-retrieval-by-id","sha":"b6938c96ec07e71b260bd755e0bcd5738fcb2b2c","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":2176646,"name":"stripe-java","full_name":"stripe/stripe-java","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/stripe-java","description":"Stripe Java bindings","fork":false,"url":"https://api.github.com/repos/stripe/stripe-java","forks_url":"https://api.github.com/repos/stripe/stripe-java/forks","keys_url":"https://api.github.com/repos/stripe/stripe-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-java/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-java/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-java/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-java/events","assignees_url":"https://api.github.com/repos/stripe/stripe-java/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-java/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-java/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-java/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-java/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-java/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-java/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-java/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-java/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-java/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-java/merges","archive_url":"https://api.github.com/repos/stripe/stripe-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-java/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-java/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-java/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-java/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-java/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-java/releases{/id}","created_at":"2011-08-09T00:06:31Z","updated_at":"2015-03-16T20:31:52Z","pushed_at":"2015-03-17T19:07:20Z","git_url":"git://github.com/stripe/stripe-java.git","ssh_url":"git@github.com:stripe/stripe-java.git","clone_url":"https://github.com/stripe/stripe-java.git","svn_url":"https://github.com/stripe/stripe-java","homepage":"https://stripe.com","size":3273,"stargazers_count":123,"watchers_count":123,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":15,"forks":84,"open_issues":15,"watchers":123,"default_branch":"master"}},"base":{"label":"stripe:danwang/support-account-retrieval-and-updates","ref":"danwang/support-account-retrieval-and-updates","sha":"37b447ccdb7552f260d554bcdd1ebd91d5ef2ac9","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":2176646,"name":"stripe-java","full_name":"stripe/stripe-java","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/stripe-java","description":"Stripe Java bindings","fork":false,"url":"https://api.github.com/repos/stripe/stripe-java","forks_url":"https://api.github.com/repos/stripe/stripe-java/forks","keys_url":"https://api.github.com/repos/stripe/stripe-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-java/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-java/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-java/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-java/events","assignees_url":"https://api.github.com/repos/stripe/stripe-java/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-java/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-java/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-java/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-java/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-java/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-java/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-java/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-java/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-java/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-java/merges","archive_url":"https://api.github.com/repos/stripe/stripe-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-java/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-java/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-java/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-java/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-java/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-java/releases{/id}","created_at":"2011-08-09T00:06:31Z","updated_at":"2015-03-16T20:31:52Z","pushed_at":"2015-03-17T19:07:20Z","git_url":"git://github.com/stripe/stripe-java.git","ssh_url":"git@github.com:stripe/stripe-java.git","clone_url":"https://github.com/stripe/stripe-java.git","svn_url":"https://github.com/stripe/stripe-java","homepage":"https://stripe.com","size":3273,"stargazers_count":123,"watchers_count":123,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":15,"forks":84,"open_issues":15,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-java/pulls/149"},"html":{"href":"https://github.com/stripe/stripe-java/pull/149"},"issue":{"href":"https://api.github.com/repos/stripe/stripe-java/issues/149"},"comments":{"href":"https://api.github.com/repos/stripe/stripe-java/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/stripe-java/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/stripe-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/stripe-java/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/stripe-java/statuses/b6938c96ec07e71b260bd755e0bcd5738fcb2b2c"}}}}