diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 808fe524..ca3555a7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.476.0" + ".": "0.477.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 238fb5aa..3a06ad51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e79df86..b2ce7b9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 8afe5c9c..f003c91c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index 3a46a878..80bc1ebb 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -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 diff --git a/src/increase/types/export.py b/src/increase/types/export.py index c2d66dda..c127d385 100644 --- a/src/increase/types/export.py +++ b/src/increase/types/export.py @@ -17,7 +17,6 @@ "BalanceCsv", "BalanceCsvCreatedAt", "BookkeepingAccountBalanceCsv", - "BookkeepingAccountBalanceCsvCreatedAt", "DailyAccountBalanceCsv", "DashboardTableCsv", "EntityCsv", @@ -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. @@ -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): diff --git a/src/increase/types/export_create_params.py b/src/increase/types/export_create_params.py index 65670a4f..0f5ad0cd 100644 --- a/src/increase/types/export_create_params.py +++ b/src/increase/types/export_create_params.py @@ -17,7 +17,6 @@ "BalanceCsv", "BalanceCsvCreatedAt", "BookkeepingAccountBalanceCsv", - "BookkeepingAccountBalanceCsvCreatedAt", "DailyAccountBalanceCsv", "EntityCsv", "FundingInstructions", @@ -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. @@ -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): diff --git a/tests/api_resources/test_exports.py b/tests/api_resources/test_exports.py index 6be8af62..0bdf3446 100644 --- a/tests/api_resources/test_exports.py +++ b/tests/api_resources/test_exports.py @@ -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", @@ -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",