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.195.0"
".": "0.196.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: 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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.195.0"
version = "0.196.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
8 changes: 7 additions & 1 deletion src/increase/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
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.195.0" # x-release-please-version
__version__ = "0.196.0" # x-release-please-version
4 changes: 2 additions & 2 deletions tests/api_resources/test_event_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down