Skip to content

Commit

Permalink
Add object param to list method for BankAccount/Card (#1880)
Browse files Browse the repository at this point in the history
* Add object param to list method for BankAccount/Card

* Empty
  • Loading branch information
ramya-stripe committed Jun 26, 2024
1 parent 6278741 commit 9fd5f14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion card.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fd5f14

Please sign in to comment.