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.205.0"
".": "0.206.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 198
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c09f0dfa89faafa23f31631468c822ada82b0ab08a1661ce7ee2e47fd78e575c.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9c95b020510d1ae7d912fa71032eb2fef43dacfb6ee2ba7b989f18ed8d0a9348.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.206.0 (2025-03-13)

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

### Features

* **api:** api update ([#1022](https://github.com/Increase/increase-python/issues/1022)) ([437e696](https://github.com/Increase/increase-python/commit/437e69676994ef9e987feaae8823999493b54986))


### Chores

* **internal:** remove extra empty newlines ([#1020](https://github.com/Increase/increase-python/issues/1020)) ([5889f24](https://github.com/Increase/increase-python/commit/5889f2402d12142cd9cdb5917ede650427a651fc))

## 0.205.0 (2025-03-12)

Full Changelog: [v0.204.0...v0.205.0](https://github.com/Increase/increase-python/compare/v0.204.0...v0.205.0)
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.205.0"
version = "0.206.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -38,7 +38,6 @@ Homepage = "https://github.com/Increase/increase-python"
Repository = "https://github.com/Increase/increase-python"



[tool.rye]
managed = true
# version pins are in requirements-dev.lock
Expand Down Expand Up @@ -152,7 +151,6 @@ reportImplicitOverride = true
reportImportCycles = false
reportPrivateUsage = false


[tool.ruff]
line-length = 120
output-format = "grouped"
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.205.0" # x-release-please-version
__version__ = "0.206.0" # x-release-please-version
12 changes: 10 additions & 2 deletions src/increase/resources/simulations/interest_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def create(
*,
account_id: str,
amount: int,
accrued_on_account_id: str | NotGiven = NOT_GIVEN,
period_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
period_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -68,10 +69,12 @@ def create(
automatically on the first of each month.

Args:
account_id: The identifier of the Account Number the Interest Payment is for.
account_id: The identifier of the Account the Interest Payment should be paid to is for.

amount: The interest amount in cents. Must be positive.

accrued_on_account_id: The identifier of the Account the Interest accrued on. Defaults to `account_id`.

period_end: The end of the interest period. If not provided, defaults to the current time.

period_start: The start of the interest period. If not provided, defaults to the current time.
Expand All @@ -92,6 +95,7 @@ def create(
{
"account_id": account_id,
"amount": amount,
"accrued_on_account_id": accrued_on_account_id,
"period_end": period_end,
"period_start": period_start,
},
Expand Down Expand Up @@ -133,6 +137,7 @@ async def create(
*,
account_id: str,
amount: int,
accrued_on_account_id: str | NotGiven = NOT_GIVEN,
period_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
period_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -149,10 +154,12 @@ async def create(
automatically on the first of each month.

Args:
account_id: The identifier of the Account Number the Interest Payment is for.
account_id: The identifier of the Account the Interest Payment should be paid to is for.

amount: The interest amount in cents. Must be positive.

accrued_on_account_id: The identifier of the Account the Interest accrued on. Defaults to `account_id`.

period_end: The end of the interest period. If not provided, defaults to the current time.

period_start: The start of the interest period. If not provided, defaults to the current time.
Expand All @@ -173,6 +180,7 @@ async def create(
{
"account_id": account_id,
"amount": amount,
"accrued_on_account_id": accrued_on_account_id,
"period_end": period_end,
"period_start": period_start,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@

class InterestPaymentCreateParams(TypedDict, total=False):
account_id: Required[str]
"""The identifier of the Account Number the Interest Payment is for."""
"""The identifier of the Account the Interest Payment should be paid to is for."""

amount: Required[int]
"""The interest amount in cents. Must be positive."""

accrued_on_account_id: str
"""The identifier of the Account the Interest accrued on.

Defaults to `account_id`.
"""

period_end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
"""The end of the interest period. If not provided, defaults to the current time."""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/simulations/test_interest_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
interest_payment = client.simulations.interest_payments.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
accrued_on_account_id="accrued_on_account_id",
period_end=parse_datetime("2019-12-27T18:11:19.117Z"),
period_start=parse_datetime("2019-12-27T18:11:19.117Z"),
)
Expand Down Expand Up @@ -79,6 +80,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
interest_payment = await async_client.simulations.interest_payments.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
accrued_on_account_id="accrued_on_account_id",
period_end=parse_datetime("2019-12-27T18:11:19.117Z"),
period_start=parse_datetime("2019-12-27T18:11:19.117Z"),
)
Expand Down