Skip to content

Commit 5d0605a

Browse files
Add accountType to transactions#list params (#23) (#475)
Co-authored-by: Terence Li <[email protected]>
1 parent 627c74c commit 5d0605a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/transactions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class Transactions extends BaseResource {
4242
...(params?.excludeFees && { "filter[excludeFees]": params.excludeFees }),
4343
...(params?.fromAmount && { "filter[fromAmount]": params.fromAmount }),
4444
...(params?.toAmount && { "filter[toAmount]": params.toAmount }),
45+
...(params?.accountType && { "filter[accountType]": params.accountType }),
4546
"sort": params?.sort ? params.sort : "-createdAt",
4647
"include": params?.include ? params.include : ""
4748
}
@@ -88,6 +89,12 @@ export interface TransactionListParams extends BaseListParams {
8889
*/
8990
accountId?: string
9091

92+
/**
93+
* Optional. Filters the results by the specified account type.
94+
* default: empty
95+
*/
96+
accountType?: string
97+
9198
/**
9299
* Optional. Filters the results by the specified customer id.
93100
* default: empty

0 commit comments

Comments
 (0)