From 6bade3d48ab79b820d56872b0712e7b293dcf4f1 Mon Sep 17 00:00:00 2001 From: Paul DeMarco Date: Wed, 2 Oct 2019 04:27:25 -0400 Subject: [PATCH 1/2] Add the Account field to BankAccount. Fixes #965 --- bankaccount.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bankaccount.go b/bankaccount.go index 5d966ef933..0b799b2f81 100644 --- a/bankaccount.go +++ b/bankaccount.go @@ -141,6 +141,7 @@ func (p *BankAccountListParams) AppendTo(body *form.Values, keyParts []string) { // BankAccount represents a Stripe bank account. type BankAccount struct { + Account string `json:"account"` AccountHolderName string `json:"account_holder_name"` AccountHolderType BankAccountAccountHolderType `json:"account_holder_type"` BankName string `json:"bank_name"` From cfb44bde83d34f8b7a2483f639c492b09979b076 Mon Sep 17 00:00:00 2001 From: Paul DeMarco Date: Wed, 2 Oct 2019 23:40:27 -0400 Subject: [PATCH 2/2] Change Account field to expanded version. --- bankaccount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bankaccount.go b/bankaccount.go index 0b799b2f81..08be247a2e 100644 --- a/bankaccount.go +++ b/bankaccount.go @@ -141,7 +141,7 @@ func (p *BankAccountListParams) AppendTo(body *form.Values, keyParts []string) { // BankAccount represents a Stripe bank account. type BankAccount struct { - Account string `json:"account"` + Account *Account `json:"account"` AccountHolderName string `json:"account_holder_name"` AccountHolderType BankAccountAccountHolderType `json:"account_holder_type"` BankName string `json:"bank_name"`