{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/comments/25666826","id":25666826,"diff_hunk":"@@ -47,6 +43,12 @@ def serialize_params(obj)\n             update_hash[k] = serialize_params(obj_values[k])\n           end\n \n+          obj_values.each do |k, v|\n+            if v.is_a?(StripeObject) || v.is_a?(Hash)","path":"lib/stripe/api_operations/update.rb","position":45,"original_position":45,"commit_id":"03abd88f0c4d15f466f18b1d324d57489db2a51b","original_commit_id":"03abd88f0c4d15f466f18b1d324d57489db2a51b","user":{"login":"russelldavis","id":551404,"avatar_url":"https://avatars.githubusercontent.com/u/551404?v=3","gravatar_id":"","url":"https://api.github.com/users/russelldavis","html_url":"https://github.com/russelldavis","followers_url":"https://api.github.com/users/russelldavis/followers","following_url":"https://api.github.com/users/russelldavis/following{/other_user}","gists_url":"https://api.github.com/users/russelldavis/gists{/gist_id}","starred_url":"https://api.github.com/users/russelldavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russelldavis/subscriptions","organizations_url":"https://api.github.com/users/russelldavis/orgs","repos_url":"https://api.github.com/users/russelldavis/repos","events_url":"https://api.github.com/users/russelldavis/events{/privacy}","received_events_url":"https://api.github.com/users/russelldavis/received_events","type":"User","site_admin":false},"body":"Should we add support for arrays as well?","created_at":"2015-03-03T07:06:35Z","updated_at":"2015-03-03T07:06:35Z","html_url":"https://github.com/stripe/stripe-ruby/pull/217#discussion_r25666826","pull_request_url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217","_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-ruby/pulls/comments/25666826"},"html":{"href":"https://github.com/stripe/stripe-ruby/pull/217#discussion_r25666826"},"pull_request":{"href":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217","id":30341572,"html_url":"https://github.com/stripe/stripe-ruby/pull/217","diff_url":"https://github.com/stripe/stripe-ruby/pull/217.diff","patch_url":"https://github.com/stripe/stripe-ruby/pull/217.patch","issue_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/217","number":217,"state":"open","locked":false,"title":"Fix updating for nested hashes","user":{"login":"bkrausz","id":364070,"avatar_url":"https://avatars.githubusercontent.com/u/364070?v=3","gravatar_id":"","url":"https://api.github.com/users/bkrausz","html_url":"https://github.com/bkrausz","followers_url":"https://api.github.com/users/bkrausz/followers","following_url":"https://api.github.com/users/bkrausz/following{/other_user}","gists_url":"https://api.github.com/users/bkrausz/gists{/gist_id}","starred_url":"https://api.github.com/users/bkrausz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkrausz/subscriptions","organizations_url":"https://api.github.com/users/bkrausz/orgs","repos_url":"https://api.github.com/users/bkrausz/repos","events_url":"https://api.github.com/users/bkrausz/events{/privacy}","received_events_url":"https://api.github.com/users/bkrausz/received_events","type":"User","site_admin":false},"body":"r? @russelldavis \r\n\r\nThis is analogous to https://github.com/stripe/stripe-python/pull/126/files","created_at":"2015-03-03T02:30:35Z","updated_at":"2015-03-03T07:06:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47b30a07537393ffdf2c208f201ace346e910136","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217/commits","review_comments_url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217/comments","review_comment_url":"https://api.github.com/repos/stripe/stripe-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/217/comments","statuses_url":"https://api.github.com/repos/stripe/stripe-ruby/statuses/03abd88f0c4d15f466f18b1d324d57489db2a51b","head":{"label":"stripe:bk-hashes","ref":"bk-hashes","sha":"03abd88f0c4d15f466f18b1d324d57489db2a51b","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":1953385,"name":"stripe-ruby","full_name":"stripe/stripe-ruby","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-ruby","description":"Stripe Ruby bindings","fork":false,"url":"https://api.github.com/repos/stripe/stripe-ruby","forks_url":"https://api.github.com/repos/stripe/stripe-ruby/forks","keys_url":"https://api.github.com/repos/stripe/stripe-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-ruby/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-ruby/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-ruby/events","assignees_url":"https://api.github.com/repos/stripe/stripe-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-ruby/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-ruby/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-ruby/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-ruby/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-ruby/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-ruby/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-ruby/merges","archive_url":"https://api.github.com/repos/stripe/stripe-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-ruby/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-ruby/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-ruby/releases{/id}","created_at":"2011-06-25T19:51:57Z","updated_at":"2015-02-28T05:38:12Z","pushed_at":"2015-03-03T02:30:05Z","git_url":"git://github.com/stripe/stripe-ruby.git","ssh_url":"git@github.com:stripe/stripe-ruby.git","clone_url":"https://github.com/stripe/stripe-ruby.git","svn_url":"https://github.com/stripe/stripe-ruby","homepage":"https://stripe.com","size":2768,"stargazers_count":481,"watchers_count":481,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":137,"mirror_url":null,"open_issues_count":18,"forks":137,"open_issues":18,"watchers":481,"default_branch":"master"}},"base":{"label":"stripe:master","ref":"master","sha":"1bcaa10abd6e62a2a9871915103261354a66463c","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":1953385,"name":"stripe-ruby","full_name":"stripe/stripe-ruby","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-ruby","description":"Stripe Ruby bindings","fork":false,"url":"https://api.github.com/repos/stripe/stripe-ruby","forks_url":"https://api.github.com/repos/stripe/stripe-ruby/forks","keys_url":"https://api.github.com/repos/stripe/stripe-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-ruby/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-ruby/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-ruby/events","assignees_url":"https://api.github.com/repos/stripe/stripe-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-ruby/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-ruby/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-ruby/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-ruby/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-ruby/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-ruby/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-ruby/merges","archive_url":"https://api.github.com/repos/stripe/stripe-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-ruby/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-ruby/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-ruby/releases{/id}","created_at":"2011-06-25T19:51:57Z","updated_at":"2015-02-28T05:38:12Z","pushed_at":"2015-03-03T02:30:05Z","git_url":"git://github.com/stripe/stripe-ruby.git","ssh_url":"git@github.com:stripe/stripe-ruby.git","clone_url":"https://github.com/stripe/stripe-ruby.git","svn_url":"https://github.com/stripe/stripe-ruby","homepage":"https://stripe.com","size":2768,"stargazers_count":481,"watchers_count":481,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":137,"mirror_url":null,"open_issues_count":18,"forks":137,"open_issues":18,"watchers":481,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217"},"html":{"href":"https://github.com/stripe/stripe-ruby/pull/217"},"issue":{"href":"https://api.github.com/repos/stripe/stripe-ruby/issues/217"},"comments":{"href":"https://api.github.com/repos/stripe/stripe-ruby/issues/217/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/stripe-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/stripe-ruby/pulls/217/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/stripe-ruby/statuses/03abd88f0c4d15f466f18b1d324d57489db2a51b"}}}}