diff --git a/bankaccount.go b/bankaccount.go index 5c37834164..5ba0332153 100644 --- a/bankaccount.go +++ b/bankaccount.go @@ -381,12 +381,14 @@ type BankAccountDocumentsParams struct { } type BankAccountListParams struct { ListParams `form:"*"` - // The identifier of the parent account under which the bank accounts are - // nested. Either Account or Customer should be populated. - Account *string `form:"-"` // Included in URL // The identifier of the parent customer under which the bank accounts are // nested. Either Account or Customer should be populated. Customer *string `form:"-"` // Included in URL + // The identifier of the parent account under which the bank accounts are + // nested. Either Account or Customer should be populated. + Account *string `form:"-"` // Included in URL + // Filter according to a particular object type. Valid values are "bank_account" or "card". + Object *string `form:"object"` } // AppendTo implements custom encoding logic for BankAccountListParams diff --git a/card.go b/card.go index 8b66354fc0..5527a0a647 100644 --- a/card.go +++ b/card.go @@ -269,8 +269,9 @@ type CardOwnerParams struct { } type CardListParams struct { ListParams `form:"*"` - Account *string `form:"-"` // Included in URL Customer *string `form:"-"` // Included in URL + Account *string `form:"-"` // Included in URL + Object *string `form:"object"` } // AppendTo implements custom encoding logic for CardListParams