{"action":"created","comment":{"url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/comments/34538588","id":34538588,"diff_hunk":"@@ -185,6 +191,14 @@ method get_bitcoin_receiver(Str $id, :$headers) {\n     return $self->get( \"/v1/bitcoin/receivers/$id\", {}, headers => $headers );\n }\n \n+method _stripe_opts_to_headers(HashRef $opts) {\n+    my $headers = $opts->{'headers'} // {};\n+    if ($opts->{'stripe_account'}) {\n+        $headers->{'Stripe-Account'} = $opts->{'stripe_account'};\n+    }\n+    return $headers;\n+}","path":"lib/WebService/Stripe.pm","position":23,"original_position":23,"commit_id":"ecf3eeca33dfcce5632bc16b0cc25ef76661c259","original_commit_id":"ecf3eeca33dfcce5632bc16b0cc25ef76661c259","user":{"login":"ironcamel","id":50831,"avatar_url":"https://avatars.githubusercontent.com/u/50831?v=3","gravatar_id":"","url":"https://api.github.com/users/ironcamel","html_url":"https://github.com/ironcamel","followers_url":"https://api.github.com/users/ironcamel/followers","following_url":"https://api.github.com/users/ironcamel/following{/other_user}","gists_url":"https://api.github.com/users/ironcamel/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcamel/subscriptions","organizations_url":"https://api.github.com/users/ironcamel/orgs","repos_url":"https://api.github.com/users/ironcamel/repos","events_url":"https://api.github.com/users/ironcamel/events{/privacy}","received_events_url":"https://api.github.com/users/ironcamel/received_events","type":"User","site_admin":false},"body":"You mean adding an `apply_options` hook to WS::Client? :+1: I like that. But maybe with a better name.","created_at":"2015-07-14T05:40:45Z","updated_at":"2015-07-14T05:40:45Z","html_url":"https://github.com/Crowdtilt/WebService-Stripe/pull/21#discussion_r34538588","pull_request_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/comments/34538588"},"html":{"href":"https://github.com/Crowdtilt/WebService-Stripe/pull/21#discussion_r34538588"},"pull_request":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21","id":39848580,"html_url":"https://github.com/Crowdtilt/WebService-Stripe/pull/21","diff_url":"https://github.com/Crowdtilt/WebService-Stripe/pull/21.diff","patch_url":"https://github.com/Crowdtilt/WebService-Stripe/pull/21.patch","issue_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/21","number":21,"state":"open","locked":false,"title":"Support Transfer Reversals (#20)","user":{"login":"danschmidt5189","id":2547585,"avatar_url":"https://avatars.githubusercontent.com/u/2547585?v=3","gravatar_id":"","url":"https://api.github.com/users/danschmidt5189","html_url":"https://github.com/danschmidt5189","followers_url":"https://api.github.com/users/danschmidt5189/followers","following_url":"https://api.github.com/users/danschmidt5189/following{/other_user}","gists_url":"https://api.github.com/users/danschmidt5189/gists{/gist_id}","starred_url":"https://api.github.com/users/danschmidt5189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danschmidt5189/subscriptions","organizations_url":"https://api.github.com/users/danschmidt5189/orgs","repos_url":"https://api.github.com/users/danschmidt5189/repos","events_url":"https://api.github.com/users/danschmidt5189/events{/privacy}","received_events_url":"https://api.github.com/users/danschmidt5189/received_events","type":"User","site_admin":false},"body":"Adds support for reversing existing transfers via a new create_reversal method:\r\n\r\n```perl\r\n# $xfer_id is not type-hinted - it's just stringified\r\n# $data is optional, defaulting to {}. Passed as POST body.\r\n# $opts is optional, defaulting to {}. Usage: $opts = {\r\n#     stripe_account => $acct_id,\r\n#     headers => \\%headers\r\n# }\r\nmy $reversal = $ws_stripe->create_reversal($xfer_id, $data // {}, $opts // {});\r\n```","created_at":"2015-07-13T19:45:09Z","updated_at":"2015-07-14T05:40:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b02b47ffda043f93ce9c452c688d3351d71b000f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/21/comments","statuses_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/statuses/ecf3eeca33dfcce5632bc16b0cc25ef76661c259","head":{"label":"Crowdtilt:Reversals","ref":"Reversals","sha":"ecf3eeca33dfcce5632bc16b0cc25ef76661c259","user":{"login":"Crowdtilt","id":985144,"avatar_url":"https://avatars.githubusercontent.com/u/985144?v=3","gravatar_id":"","url":"https://api.github.com/users/Crowdtilt","html_url":"https://github.com/Crowdtilt","followers_url":"https://api.github.com/users/Crowdtilt/followers","following_url":"https://api.github.com/users/Crowdtilt/following{/other_user}","gists_url":"https://api.github.com/users/Crowdtilt/gists{/gist_id}","starred_url":"https://api.github.com/users/Crowdtilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crowdtilt/subscriptions","organizations_url":"https://api.github.com/users/Crowdtilt/orgs","repos_url":"https://api.github.com/users/Crowdtilt/repos","events_url":"https://api.github.com/users/Crowdtilt/events{/privacy}","received_events_url":"https://api.github.com/users/Crowdtilt/received_events","type":"Organization","site_admin":false},"repo":{"id":26508391,"name":"WebService-Stripe","full_name":"Crowdtilt/WebService-Stripe","owner":{"login":"Crowdtilt","id":985144,"avatar_url":"https://avatars.githubusercontent.com/u/985144?v=3","gravatar_id":"","url":"https://api.github.com/users/Crowdtilt","html_url":"https://github.com/Crowdtilt","followers_url":"https://api.github.com/users/Crowdtilt/followers","following_url":"https://api.github.com/users/Crowdtilt/following{/other_user}","gists_url":"https://api.github.com/users/Crowdtilt/gists{/gist_id}","starred_url":"https://api.github.com/users/Crowdtilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crowdtilt/subscriptions","organizations_url":"https://api.github.com/users/Crowdtilt/orgs","repos_url":"https://api.github.com/users/Crowdtilt/repos","events_url":"https://api.github.com/users/Crowdtilt/events{/privacy}","received_events_url":"https://api.github.com/users/Crowdtilt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Crowdtilt/WebService-Stripe","description":"Stripe API Client","fork":false,"url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe","forks_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/forks","keys_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/teams","hooks_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/hooks","issue_events_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/events{/number}","events_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/events","assignees_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/assignees{/user}","branches_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/branches{/branch}","tags_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/tags","blobs_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/refs{/sha}","trees_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/statuses/{sha}","languages_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/languages","stargazers_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/stargazers","contributors_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/contributors","subscribers_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/subscribers","subscription_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/subscription","commits_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/commits{/sha}","git_commits_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/commits{/sha}","comments_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/comments{/number}","issue_comment_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/comments{/number}","contents_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/contents/{+path}","compare_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/merges","archive_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/downloads","issues_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues{/number}","pulls_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls{/number}","milestones_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/milestones{/number}","notifications_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/labels{/name}","releases_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/releases{/id}","created_at":"2014-11-11T22:43:35Z","updated_at":"2015-05-07T15:30:09Z","pushed_at":"2015-07-13T19:59:05Z","git_url":"git://github.com/Crowdtilt/WebService-Stripe.git","ssh_url":"git@github.com:Crowdtilt/WebService-Stripe.git","clone_url":"https://github.com/Crowdtilt/WebService-Stripe.git","svn_url":"https://github.com/Crowdtilt/WebService-Stripe","homepage":null,"size":682,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Crowdtilt:master","ref":"master","sha":"9d0a6bfef44a29c072488ebb37031b7d6b80772f","user":{"login":"Crowdtilt","id":985144,"avatar_url":"https://avatars.githubusercontent.com/u/985144?v=3","gravatar_id":"","url":"https://api.github.com/users/Crowdtilt","html_url":"https://github.com/Crowdtilt","followers_url":"https://api.github.com/users/Crowdtilt/followers","following_url":"https://api.github.com/users/Crowdtilt/following{/other_user}","gists_url":"https://api.github.com/users/Crowdtilt/gists{/gist_id}","starred_url":"https://api.github.com/users/Crowdtilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crowdtilt/subscriptions","organizations_url":"https://api.github.com/users/Crowdtilt/orgs","repos_url":"https://api.github.com/users/Crowdtilt/repos","events_url":"https://api.github.com/users/Crowdtilt/events{/privacy}","received_events_url":"https://api.github.com/users/Crowdtilt/received_events","type":"Organization","site_admin":false},"repo":{"id":26508391,"name":"WebService-Stripe","full_name":"Crowdtilt/WebService-Stripe","owner":{"login":"Crowdtilt","id":985144,"avatar_url":"https://avatars.githubusercontent.com/u/985144?v=3","gravatar_id":"","url":"https://api.github.com/users/Crowdtilt","html_url":"https://github.com/Crowdtilt","followers_url":"https://api.github.com/users/Crowdtilt/followers","following_url":"https://api.github.com/users/Crowdtilt/following{/other_user}","gists_url":"https://api.github.com/users/Crowdtilt/gists{/gist_id}","starred_url":"https://api.github.com/users/Crowdtilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crowdtilt/subscriptions","organizations_url":"https://api.github.com/users/Crowdtilt/orgs","repos_url":"https://api.github.com/users/Crowdtilt/repos","events_url":"https://api.github.com/users/Crowdtilt/events{/privacy}","received_events_url":"https://api.github.com/users/Crowdtilt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Crowdtilt/WebService-Stripe","description":"Stripe API Client","fork":false,"url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe","forks_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/forks","keys_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/teams","hooks_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/hooks","issue_events_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/events{/number}","events_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/events","assignees_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/assignees{/user}","branches_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/branches{/branch}","tags_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/tags","blobs_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/refs{/sha}","trees_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/statuses/{sha}","languages_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/languages","stargazers_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/stargazers","contributors_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/contributors","subscribers_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/subscribers","subscription_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/subscription","commits_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/commits{/sha}","git_commits_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/git/commits{/sha}","comments_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/comments{/number}","issue_comment_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/comments{/number}","contents_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/contents/{+path}","compare_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/merges","archive_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/downloads","issues_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues{/number}","pulls_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls{/number}","milestones_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/milestones{/number}","notifications_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/labels{/name}","releases_url":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/releases{/id}","created_at":"2014-11-11T22:43:35Z","updated_at":"2015-05-07T15:30:09Z","pushed_at":"2015-07-13T19:59:05Z","git_url":"git://github.com/Crowdtilt/WebService-Stripe.git","ssh_url":"git@github.com:Crowdtilt/WebService-Stripe.git","clone_url":"https://github.com/Crowdtilt/WebService-Stripe.git","svn_url":"https://github.com/Crowdtilt/WebService-Stripe","homepage":null,"size":682,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21"},"html":{"href":"https://github.com/Crowdtilt/WebService-Stripe/pull/21"},"issue":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/21"},"comments":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Crowdtilt/WebService-Stripe/statuses/ecf3eeca33dfcce5632bc16b0cc25ef76661c259"}}}}