Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.476.0"
".": "0.477.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 241
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-16584f71f31837a98f04250e08aec539fd7eb0bf69178b0e6b24254642f6755f.yml
openapi_spec_hash: a67f1f1147858e6b2143b5215fc80e04
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9cc37a5650ead65f77fe88834795d2e80f5f0f79e474d15030145f8303835a4f.yml
openapi_spec_hash: 68ec4be9e1dd4153a3175ad41a36352f
config_hash: d48e9f65bcf642f92610034d6c43f07a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.477.0 (2026-04-10)

Full Changelog: [v0.476.0...v0.477.0](https://github.com/Increase/increase-python/compare/v0.476.0...v0.477.0)

### Features

* **api:** api update ([910904c](https://github.com/Increase/increase-python/commit/910904cca76c5341fc5c2358e3a6c33b07ed32ff))

## 0.476.0 (2026-04-10)

Full Changelog: [v0.475.1...v0.476.0](https://github.com/Increase/increase-python/compare/v0.475.1...v0.476.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.476.0"
version = "0.477.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "increase"
__version__ = "0.476.0" # x-release-please-version
__version__ = "0.477.0" # x-release-please-version
18 changes: 5 additions & 13 deletions src/increase/types/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"BalanceCsv",
"BalanceCsvCreatedAt",
"BookkeepingAccountBalanceCsv",
"BookkeepingAccountBalanceCsvCreatedAt",
"DailyAccountBalanceCsv",
"DashboardTableCsv",
"EntityCsv",
Expand Down Expand Up @@ -110,16 +109,6 @@ class BalanceCsv(BaseModel):
"""Filter balances by their created date."""


class BookkeepingAccountBalanceCsvCreatedAt(BaseModel):
"""Filter balances by their created date."""

after: Optional[datetime] = None
"""Filter balances created after this time."""

before: Optional[datetime] = None
"""Filter balances created before this time."""


class BookkeepingAccountBalanceCsv(BaseModel):
"""Details of the bookkeeping account balance CSV export.

Expand All @@ -129,8 +118,11 @@ class BookkeepingAccountBalanceCsv(BaseModel):
bookkeeping_account_id: Optional[str] = None
"""Filter results by Bookkeeping Account."""

created_at: Optional[BookkeepingAccountBalanceCsvCreatedAt] = None
"""Filter balances by their created date."""
on_or_after_date: Optional[date] = None
"""Filter balances to those on or after this date."""

on_or_before_date: Optional[date] = None
"""Filter balances to those on or before this date."""


class DailyAccountBalanceCsv(BaseModel):
Expand Down
36 changes: 5 additions & 31 deletions src/increase/types/export_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"BalanceCsv",
"BalanceCsvCreatedAt",
"BookkeepingAccountBalanceCsv",
"BookkeepingAccountBalanceCsvCreatedAt",
"DailyAccountBalanceCsv",
"EntityCsv",
"FundingInstructions",
Expand Down Expand Up @@ -237,34 +236,6 @@ class BalanceCsv(TypedDict, total=False):
"""Filter results by time range on the `created_at` attribute."""


class BookkeepingAccountBalanceCsvCreatedAt(TypedDict, total=False):
"""Filter results by time range on the `created_at` attribute."""

after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
"""
Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
timestamp.
"""

before: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
"""
Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
timestamp.
"""

on_or_after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
"""
Return results on or after this
[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
"""

on_or_before: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
"""
Return results on or before this
[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
"""


class BookkeepingAccountBalanceCsv(TypedDict, total=False):
"""Options for the created export.

Expand All @@ -277,8 +248,11 @@ class BookkeepingAccountBalanceCsv(TypedDict, total=False):
Account.
"""

created_at: BookkeepingAccountBalanceCsvCreatedAt
"""Filter results by time range on the `created_at` attribute."""
on_or_after_date: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
"""Filter exported Balances to those on or after this date."""

on_or_before_date: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
"""Filter exported Balances to those on or before this date."""


class DailyAccountBalanceCsv(TypedDict, total=False):
Expand Down
16 changes: 4 additions & 12 deletions tests/api_resources/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,8 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
bookkeeping_account_balance_csv={
"bookkeeping_account_id": "bookkeeping_account_id",
"created_at": {
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
"on_or_after": parse_datetime("2019-12-27T18:11:19.117Z"),
"on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"),
},
"on_or_after_date": parse_date("2019-12-27"),
"on_or_before_date": parse_date("2019-12-27"),
},
daily_account_balance_csv={
"account_id": "account_id",
Expand Down Expand Up @@ -238,12 +234,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
},
bookkeeping_account_balance_csv={
"bookkeeping_account_id": "bookkeeping_account_id",
"created_at": {
"after": parse_datetime("2019-12-27T18:11:19.117Z"),
"before": parse_datetime("2019-12-27T18:11:19.117Z"),
"on_or_after": parse_datetime("2019-12-27T18:11:19.117Z"),
"on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"),
},
"on_or_after_date": parse_date("2019-12-27"),
"on_or_before_date": parse_date("2019-12-27"),
},
daily_account_balance_csv={
"account_id": "account_id",
Expand Down