From 9fd5f14ded9d9a80a5d9025a78cb7b37738d9d3f Mon Sep 17 00:00:00 2001 From: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:53:06 -0700 Subject: [PATCH] Add object param to list method for BankAccount/Card (#1880) * Add object param to list method for BankAccount/Card * Empty --- bankaccount.go | 8 +++++--- card.go | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) 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