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.265.0"
".": "0.266.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: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c9d527ceb849bd9a01edc968016381f25fcc375a1409eb113d7e876ae0f2f529.yml
openapi_spec_hash: c7820089282fc6db267d08eaa465075f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7f26440e2137fb4f39521c361e76d56bad7c56d81cd06d0677d7735e73f7c160.yml
openapi_spec_hash: aa475d425f493e41eb8485ae17a3d0f9
config_hash: a185e9a72778cc4658ea73fb3a7f1354
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.266.0 (2025-07-18)

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

### Features

* **api:** api update ([57fbc26](https://github.com/Increase/increase-python/commit/57fbc268c42bf896250f2e3222392c420eb4f91d))
* clean up environment call outs ([a83de7e](https://github.com/Increase/increase-python/commit/a83de7ed9822100c5391c7af937accbba3bfdb23))

## 0.265.0 (2025-07-11)

Full Changelog: [v0.264.0...v0.265.0](https://github.com/Increase/increase-python/compare/v0.264.0...v0.265.0)
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,14 @@ pip install increase[aiohttp]
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:

```python
import os
import asyncio
from increase import DefaultAioHttpClient
from increase import AsyncIncrease


async def main() -> None:
async with AsyncIncrease(
api_key=os.environ.get("INCREASE_API_KEY"), # This is the default and can be omitted
api_key="My API Key",
http_client=DefaultAioHttpClient(),
) as client:
account = await client.accounts.create(
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.265.0"
version = "0.266.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.265.0" # x-release-please-version
__version__ = "0.266.0" # x-release-please-version
24 changes: 22 additions & 2 deletions src/increase/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def update(
self,
account_id: str,
*,
credit_limit: int | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -160,6 +161,9 @@ def update(
Args:
account_id: The identifier of the Account to update.

credit_limit: The new credit limit of the Account, if and only if the Account is a loan
account.

name: The new name of the Account.

extra_headers: Send extra headers
Expand All @@ -176,7 +180,13 @@ def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._patch(
f"/accounts/{account_id}",
body=maybe_transform({"name": name}, account_update_params.AccountUpdateParams),
body=maybe_transform(
{
"credit_limit": credit_limit,
"name": name,
},
account_update_params.AccountUpdateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -464,6 +474,7 @@ async def update(
self,
account_id: str,
*,
credit_limit: int | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -479,6 +490,9 @@ async def update(
Args:
account_id: The identifier of the Account to update.

credit_limit: The new credit limit of the Account, if and only if the Account is a loan
account.

name: The new name of the Account.

extra_headers: Send extra headers
Expand All @@ -495,7 +509,13 @@ async def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._patch(
f"/accounts/{account_id}",
body=await async_maybe_transform({"name": name}, account_update_params.AccountUpdateParams),
body=await async_maybe_transform(
{
"credit_limit": credit_limit,
"name": name,
},
account_update_params.AccountUpdateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/account_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@


class AccountUpdateParams(TypedDict, total=False):
credit_limit: int
"""
The new credit limit of the Account, if and only if the Account is a loan
account.
"""

name: str
"""The new name of the Account."""
2 changes: 2 additions & 0 deletions tests/api_resources/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def test_method_update(self, client: Increase) -> None:
def test_method_update_with_all_params(self, client: Increase) -> None:
account = client.accounts.update(
account_id="account_in71c4amph0vgo2qllky",
credit_limit=0,
name="My renamed account",
)
assert_matches_type(Account, account, path=["response"])
Expand Down Expand Up @@ -371,6 +372,7 @@ async def test_method_update(self, async_client: AsyncIncrease) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncIncrease) -> None:
account = await async_client.accounts.update(
account_id="account_in71c4amph0vgo2qllky",
credit_limit=0,
name="My renamed account",
)
assert_matches_type(Account, account, path=["response"])
Expand Down