diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 544c63271..022b8de78 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.204.0" + ".": "0.205.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a08326a76..b219e9a3a 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-82672744c336fb928794ae216fe177d65ad3b762159a39fb972612d991f01c81.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c09f0dfa89faafa23f31631468c822ada82b0ab08a1661ce7ee2e47fd78e575c.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9792ef9..5c18984c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 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) + +### Features + +* **api:** api update ([#1017](https://github.com/Increase/increase-python/issues/1017)) ([1427cd2](https://github.com/Increase/increase-python/commit/1427cd297e6d82e8177b59ba800130203c3f3276)) + ## 0.204.0 (2025-03-11) Full Changelog: [v0.203.0...v0.204.0](https://github.com/Increase/increase-python/compare/v0.203.0...v0.204.0) diff --git a/pyproject.toml b/pyproject.toml index b3136dd19..94a47e0e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.204.0" +version = "0.205.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 ff67b2c83..9fcd0556a 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.204.0" # x-release-please-version +__version__ = "0.205.0" # x-release-please-version diff --git a/src/increase/resources/check_transfers.py b/src/increase/resources/check_transfers.py index 0d2a96d94..83364c819 100644 --- a/src/increase/resources/check_transfers.py +++ b/src/increase/resources/check_transfers.py @@ -174,6 +174,7 @@ def list( cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, + status: check_transfer_list_params.Status | 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. extra_headers: Headers | None = None, @@ -220,6 +221,7 @@ def list( "cursor": cursor, "idempotency_key": idempotency_key, "limit": limit, + "status": status, }, check_transfer_list_params.CheckTransferListParams, ), @@ -505,6 +507,7 @@ def list( cursor: str | NotGiven = NOT_GIVEN, idempotency_key: str | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, + status: check_transfer_list_params.Status | 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. extra_headers: Headers | None = None, @@ -551,6 +554,7 @@ def list( "cursor": cursor, "idempotency_key": idempotency_key, "limit": limit, + "status": status, }, check_transfer_list_params.CheckTransferListParams, ), diff --git a/src/increase/types/check_transfer_list_params.py b/src/increase/types/check_transfer_list_params.py index 4ec86b6d4..2f8ccf2c3 100644 --- a/src/increase/types/check_transfer_list_params.py +++ b/src/increase/types/check_transfer_list_params.py @@ -2,13 +2,13 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from datetime import datetime -from typing_extensions import Annotated, TypedDict +from typing_extensions import Literal, Annotated, TypedDict from .._utils import PropertyInfo -__all__ = ["CheckTransferListParams", "CreatedAt"] +__all__ = ["CheckTransferListParams", "CreatedAt", "Status"] class CheckTransferListParams(TypedDict, total=False): @@ -34,6 +34,8 @@ class CheckTransferListParams(TypedDict, total=False): The default (and maximum) is 100 objects. """ + status: Status + class CreatedAt(TypedDict, total=False): after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] @@ -59,3 +61,29 @@ class CreatedAt(TypedDict, total=False): Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. """ + + +_StatusReservedKeywords = TypedDict( + "_StatusReservedKeywords", + { + "in": List[ + Literal[ + "pending_approval", + "canceled", + "pending_submission", + "requires_attention", + "rejected", + "pending_mailing", + "mailed", + "deposited", + "stopped", + "returned", + ] + ], + }, + total=False, +) + + +class Status(_StatusReservedKeywords, total=False): + pass diff --git a/tests/api_resources/test_check_transfers.py b/tests/api_resources/test_check_transfers.py index 2d1da7a4f..03ed3dc18 100644 --- a/tests/api_resources/test_check_transfers.py +++ b/tests/api_resources/test_check_transfers.py @@ -151,6 +151,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: cursor="cursor", idempotency_key="x", limit=1, + status={"in": ["pending_approval"]}, ) assert_matches_type(SyncPage[CheckTransfer], check_transfer, path=["response"]) @@ -430,6 +431,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> cursor="cursor", idempotency_key="x", limit=1, + status={"in": ["pending_approval"]}, ) assert_matches_type(AsyncPage[CheckTransfer], check_transfer, path=["response"])