Skip to content

Commit

Permalink
feat(api): add StatementListParams property include_initial_statements (
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Aug 16, 2024
1 parent e2a157b commit 6e399f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions financialaccountstatement.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ type FinancialAccountStatementListParams struct {
// A cursor representing an item's token before which a page of results should end.
// Used to retrieve the previous page of results before this item.
EndingBefore param.Field[string] `query:"ending_before"`
// Whether to include the initial statement. It is not included by default.
IncludeInitialStatements param.Field[bool] `query:"include_initial_statements"`
// Page size (for pagination).
PageSize param.Field[int64] `query:"page_size"`
// A cursor representing an item's token after which a page of results should
Expand Down
11 changes: 6 additions & 5 deletions financialaccountstatement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ func TestFinancialAccountStatementListWithOptionalParams(t *testing.T) {
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
lithic.FinancialAccountStatementListParams{
Begin: lithic.F(time.Now()),
End: lithic.F(time.Now()),
EndingBefore: lithic.F("ending_before"),
PageSize: lithic.F(int64(1)),
StartingAfter: lithic.F("starting_after"),
Begin: lithic.F(time.Now()),
End: lithic.F(time.Now()),
EndingBefore: lithic.F("ending_before"),
IncludeInitialStatements: lithic.F(true),
PageSize: lithic.F(int64(1)),
StartingAfter: lithic.F("starting_after"),
},
)
if err != nil {
Expand Down

0 comments on commit 6e399f3

Please sign in to comment.