{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/stripe-go/pulls/comments/51417944","id":51417944,"diff_hunk":"@@ -154,54 +274,58 @@ func TestSourceUpdate(t *testing.T) {\n \tcustomer.Del(cust.ID)\n }\n \n-func TestSourceVerify(t *testing.T) {\n-\tbankAccountParams := &stripe.BankAccountParams{\n-\t\tCountry:  \"US\",\n-\t\tCurrency: \"usd\",\n-\t\tRouting:  \"110000000\",\n-\t\tAccount:  \"000123456789\",\n-\t}\n-\ttokenParams := &stripe.TokenParams{\n-\t\tBank: bankAccountParams,\n+func TestSourceBankAccountVerify(t *testing.T) {\n+\tbaTok, err := token.New(&stripe.TokenParams{\n+\t\tBank: &stripe.BankAccountParams{\n+\t\t\tCountry: \"US\",\n+\t\t\tCurrency: \"usd\",\n+\t\t\tRouting: \"110000000\",\n+\t\t\tAccount: \"000123456789\",\n+\t\t\tName: \"Jane Austen\",\n+\t\t\tAccountHolderType: \"individual\",\n+\t\t},\n+\t})\n+\n+\tif baTok.Bank.Name != \"Jane Austen\" {\n+\t\tt.Errorf(\"Bank account name %q was not Jane Austen as expected.\", source.BankAccount.Name)\n \t}\n-\ttoken, err := token.New(tokenParams)\n \n \tif err != nil {\n \t\tt.Error(err)\n-\t\treturn\n \t}\n \n \tcustomerParams := &stripe.CustomerParams{}\n-\tcustomerParams.SetSource(token.ID)\n-\n-\tcust, err := customer.New(customerParams)\n-\n+\tcustomer, err := customer.New(customerParams)\n \tif err != nil {\n \t\tt.Error(err)\n-\t\treturn\n \t}\n \n-\tamounts := [2]uint8{32, 45}\n+\tsource, err := New(&stripe.CustomerSourceParams{\n+\t\tCustomer: customer.ID,\n+\t\tSource: &stripe.SourceParams{\n+\t\t\tToken: baTok.ID,\n+\t\t},\n+\t})\n+\n+\tamounts := [2]uint8{32, 45};\n \n \tverifyParams := &stripe.SourceVerifyParams{\n-\t\tCustomer: cust.ID,\n-\t\tAmounts:  amounts,\n+\t\tCustomer: customer.ID,\n+\t\tAmounts: amounts,\n \t}\n \n-\tsource, err := Verify(cust.DefaultSource.ID, verifyParams)\n+\tsrc, err := Verify(source.ID, verifyParams)","path":"paymentsource/client_test.go","position":228,"original_position":228,"commit_id":"0725d5992f698bc16807f700ec1f76d2ae42ea37","original_commit_id":"0725d5992f698bc16807f700ec1f76d2ae42ea37","user":{"login":"brandur","id":96890,"avatar_url":"https://avatars.githubusercontent.com/u/96890?v=3","gravatar_id":"","url":"https://api.github.com/users/brandur","html_url":"https://github.com/brandur","followers_url":"https://api.github.com/users/brandur/followers","following_url":"https://api.github.com/users/brandur/following{/other_user}","gists_url":"https://api.github.com/users/brandur/gists{/gist_id}","starred_url":"https://api.github.com/users/brandur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandur/subscriptions","organizations_url":"https://api.github.com/users/brandur/orgs","repos_url":"https://api.github.com/users/brandur/repos","events_url":"https://api.github.com/users/brandur/events{/privacy}","received_events_url":"https://api.github.com/users/brandur/received_events","type":"User","site_admin":false},"body":"Mind if we just use `sourceVerified` instead of `src` here instead?","created_at":"2016-02-01T13:35:05Z","updated_at":"2016-02-01T13:35:05Z","html_url":"https://github.com/stripe/stripe-go/pull/182#discussion_r51417944","pull_request_url":"https://api.github.com/repos/stripe/stripe-go/pulls/182","_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-go/pulls/comments/51417944"},"html":{"href":"https://github.com/stripe/stripe-go/pull/182#discussion_r51417944"},"pull_request":{"href":"https://api.github.com/repos/stripe/stripe-go/pulls/182"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/stripe-go/pulls/182","id":56536868,"html_url":"https://github.com/stripe/stripe-go/pull/182","diff_url":"https://github.com/stripe/stripe-go/pull/182.diff","patch_url":"https://github.com/stripe/stripe-go/pull/182.patch","issue_url":"https://api.github.com/repos/stripe/stripe-go/issues/182","number":182,"state":"open","locked":false,"title":"Add support for customer bank accounts in paymentsources","user":{"login":"wbronitsky","id":3903069,"avatar_url":"https://avatars.githubusercontent.com/u/3903069?v=3","gravatar_id":"","url":"https://api.github.com/users/wbronitsky","html_url":"https://github.com/wbronitsky","followers_url":"https://api.github.com/users/wbronitsky/followers","following_url":"https://api.github.com/users/wbronitsky/following{/other_user}","gists_url":"https://api.github.com/users/wbronitsky/gists{/gist_id}","starred_url":"https://api.github.com/users/wbronitsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbronitsky/subscriptions","organizations_url":"https://api.github.com/users/wbronitsky/orgs","repos_url":"https://api.github.com/users/wbronitsky/repos","events_url":"https://api.github.com/users/wbronitsky/events{/privacy}","received_events_url":"https://api.github.com/users/wbronitsky/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-19T22:38:44Z","updated_at":"2016-02-01T13:35:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2914ad79d32a4d68df05cb637a39e237d9380363","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/stripe-go/pulls/182/commits","review_comments_url":"https://api.github.com/repos/stripe/stripe-go/pulls/182/comments","review_comment_url":"https://api.github.com/repos/stripe/stripe-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/stripe-go/issues/182/comments","statuses_url":"https://api.github.com/repos/stripe/stripe-go/statuses/0725d5992f698bc16807f700ec1f76d2ae42ea37","head":{"label":"stripe:will-customer-bank-accounts","ref":"will-customer-bank-accounts","sha":"0725d5992f698bc16807f700ec1f76d2ae42ea37","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":20545279,"name":"stripe-go","full_name":"stripe/stripe-go","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-go","description":"Go client for the Stripe API","fork":false,"url":"https://api.github.com/repos/stripe/stripe-go","forks_url":"https://api.github.com/repos/stripe/stripe-go/forks","keys_url":"https://api.github.com/repos/stripe/stripe-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-go/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-go/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-go/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-go/events","assignees_url":"https://api.github.com/repos/stripe/stripe-go/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-go/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-go/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-go/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-go/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-go/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-go/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-go/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-go/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-go/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-go/merges","archive_url":"https://api.github.com/repos/stripe/stripe-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-go/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-go/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-go/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-go/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-go/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-go/releases{/id}","deployments_url":"https://api.github.com/repos/stripe/stripe-go/deployments","created_at":"2014-06-05T23:38:14Z","updated_at":"2016-01-30T18:42:21Z","pushed_at":"2016-02-01T13:30:38Z","git_url":"git://github.com/stripe/stripe-go.git","ssh_url":"git@github.com:stripe/stripe-go.git","clone_url":"https://github.com/stripe/stripe-go.git","svn_url":"https://github.com/stripe/stripe-go","homepage":"","size":4186,"stargazers_count":330,"watchers_count":330,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":2,"forks":77,"open_issues":2,"watchers":330,"default_branch":"master"}},"base":{"label":"stripe:master","ref":"master","sha":"babc9d3fcdcb25115b82681f5e2d0822146cffac","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":20545279,"name":"stripe-go","full_name":"stripe/stripe-go","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-go","description":"Go client for the Stripe API","fork":false,"url":"https://api.github.com/repos/stripe/stripe-go","forks_url":"https://api.github.com/repos/stripe/stripe-go/forks","keys_url":"https://api.github.com/repos/stripe/stripe-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/stripe-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/stripe-go/teams","hooks_url":"https://api.github.com/repos/stripe/stripe-go/hooks","issue_events_url":"https://api.github.com/repos/stripe/stripe-go/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/stripe-go/events","assignees_url":"https://api.github.com/repos/stripe/stripe-go/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/stripe-go/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/stripe-go/tags","blobs_url":"https://api.github.com/repos/stripe/stripe-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/stripe-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/stripe-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/stripe-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/stripe-go/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/stripe-go/languages","stargazers_url":"https://api.github.com/repos/stripe/stripe-go/stargazers","contributors_url":"https://api.github.com/repos/stripe/stripe-go/contributors","subscribers_url":"https://api.github.com/repos/stripe/stripe-go/subscribers","subscription_url":"https://api.github.com/repos/stripe/stripe-go/subscription","commits_url":"https://api.github.com/repos/stripe/stripe-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/stripe-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/stripe-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/stripe-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/stripe-go/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/stripe-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/stripe-go/merges","archive_url":"https://api.github.com/repos/stripe/stripe-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/stripe-go/downloads","issues_url":"https://api.github.com/repos/stripe/stripe-go/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/stripe-go/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/stripe-go/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/stripe-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/stripe-go/labels{/name}","releases_url":"https://api.github.com/repos/stripe/stripe-go/releases{/id}","deployments_url":"https://api.github.com/repos/stripe/stripe-go/deployments","created_at":"2014-06-05T23:38:14Z","updated_at":"2016-01-30T18:42:21Z","pushed_at":"2016-02-01T13:30:38Z","git_url":"git://github.com/stripe/stripe-go.git","ssh_url":"git@github.com:stripe/stripe-go.git","clone_url":"https://github.com/stripe/stripe-go.git","svn_url":"https://github.com/stripe/stripe-go","homepage":"","size":4186,"stargazers_count":330,"watchers_count":330,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":2,"forks":77,"open_issues":2,"watchers":330,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/stripe-go/pulls/182"},"html":{"href":"https://github.com/stripe/stripe-go/pull/182"},"issue":{"href":"https://api.github.com/repos/stripe/stripe-go/issues/182"},"comments":{"href":"https://api.github.com/repos/stripe/stripe-go/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/stripe-go/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/stripe-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/stripe-go/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/stripe-go/statuses/0725d5992f698bc16807f700ec1f76d2ae42ea37"}}}}