diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e9cee8d37..ba48addfa 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.195.0" + ".": "0.196.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 965dafe41..43048b318 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5c3b5c54f9deac8411f40a4a8e14715ed60acd2ae56c5e36e83664586ef5aafd.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d4eedf5add319b076d462be8b764246f0c3251ff60708906a90494e05ed8e93c.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 90c250671..b27cf236d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.196.0 (2025-02-26) + +Full Changelog: [v0.195.0...v0.196.0](https://github.com/Increase/increase-python/compare/v0.195.0...v0.196.0) + +### Features + +* **api:** api update ([#985](https://github.com/Increase/increase-python/issues/985)) ([81f6b10](https://github.com/Increase/increase-python/commit/81f6b105c54e0c4819f2b73796d4c9732f0eff78)) + + +### Chores + +* **internal:** properly set __pydantic_private__ ([#983](https://github.com/Increase/increase-python/issues/983)) ([205e301](https://github.com/Increase/increase-python/commit/205e301b786c31f8d1e3bdfdfcbe7b396f53c743)) + ## 0.195.0 (2025-02-24) Full Changelog: [v0.194.0...v0.195.0](https://github.com/Increase/increase-python/compare/v0.194.0...v0.195.0) diff --git a/pyproject.toml b/pyproject.toml index 6a4c34d02..82d6a30ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.195.0" +version = "0.196.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_base_client.py b/src/increase/_base_client.py index 978d684f1..67dc8a43d 100644 --- a/src/increase/_base_client.py +++ b/src/increase/_base_client.py @@ -63,7 +63,7 @@ ModelBuilderProtocol, ) from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping -from ._compat import model_copy, model_dump +from ._compat import PYDANTIC_V2, model_copy, model_dump from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type from ._response import ( APIResponse, @@ -207,6 +207,9 @@ def _set_private_attributes( model: Type[_T], options: FinalRequestOptions, ) -> None: + if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None: + self.__pydantic_private__ = {} + self._model = model self._client = client self._options = options @@ -292,6 +295,9 @@ def _set_private_attributes( client: AsyncAPIClient, options: FinalRequestOptions, ) -> None: + if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None: + self.__pydantic_private__ = {} + self._model = model self._client = client self._options = options diff --git a/src/increase/_version.py b/src/increase/_version.py index 2169af86d..7c542a20e 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.195.0" # x-release-please-version +__version__ = "0.196.0" # x-release-please-version diff --git a/tests/api_resources/test_event_subscriptions.py b/tests/api_resources/test_event_subscriptions.py index 877e24f0f..b2edc3d62 100644 --- a/tests/api_resources/test_event_subscriptions.py +++ b/tests/api_resources/test_event_subscriptions.py @@ -31,7 +31,7 @@ def test_method_create(self, client: Increase) -> None: def test_method_create_with_all_params(self, client: Increase) -> None: event_subscription = client.event_subscriptions.create( url="https://website.com/webhooks", - oauth_connection_id="oauth_connection_id", + oauth_connection_id="x", selected_event_category="account.created", shared_secret="x", ) @@ -194,7 +194,7 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: async def test_method_create_with_all_params(self, async_client: AsyncIncrease) -> None: event_subscription = await async_client.event_subscriptions.create( url="https://website.com/webhooks", - oauth_connection_id="oauth_connection_id", + oauth_connection_id="x", selected_event_category="account.created", shared_secret="x", )