diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 022b8de78..fc8cb459a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.205.0" + ".": "0.206.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index b219e9a3a..3b32bb026 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c18984c7..7cf496438 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 94a47e0e8..6a615a6f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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 @@ -152,7 +151,6 @@ reportImplicitOverride = true reportImportCycles = false reportPrivateUsage = false - [tool.ruff] line-length = 120 output-format = "grouped" diff --git a/src/increase/_version.py b/src/increase/_version.py index 9fcd0556a..87feb9ad0 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.205.0" # x-release-please-version +__version__ = "0.206.0" # x-release-please-version diff --git a/src/increase/resources/simulations/interest_payments.py b/src/increase/resources/simulations/interest_payments.py index fde1548d3..074e86213 100644 --- a/src/increase/resources/simulations/interest_payments.py +++ b/src/increase/resources/simulations/interest_payments.py @@ -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. @@ -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. @@ -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, }, @@ -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. @@ -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. @@ -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, }, diff --git a/src/increase/types/simulations/interest_payment_create_params.py b/src/increase/types/simulations/interest_payment_create_params.py index a180e1eae..6659005dd 100644 --- a/src/increase/types/simulations/interest_payment_create_params.py +++ b/src/increase/types/simulations/interest_payment_create_params.py @@ -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.""" diff --git a/tests/api_resources/simulations/test_interest_payments.py b/tests/api_resources/simulations/test_interest_payments.py index e51d2e67d..a84df20b3 100644 --- a/tests/api_resources/simulations/test_interest_payments.py +++ b/tests/api_resources/simulations/test_interest_payments.py @@ -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"), ) @@ -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"), )