From a547f8be0e9a9256147a5daf9c65a67dd2a17359 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 23:15:32 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/types/account_statement.py | 15 +++++++++++++++ src/increase/types/balance_lookup.py | 15 +++++++++++++++ src/increase/types/program.py | 16 +++++++++++++++- 4 files changed, 47 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index e72d6310..01dd0f60 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 230 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f184b6347de456d3db4fc3d5c691beb9dec85f74849cc4439a9dd4635998b1ec.yml -openapi_spec_hash: 255de9f0f702449bddf655b19a09a0cd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-86f5f21622005ed0d2488066a1194b09fb6add92314eb797edc1ced57d7e0435.yml +openapi_spec_hash: e2e09186517e41d2332a8b59cff9b6e7 config_hash: ff2eb5f192b4de36611b37b27961c2d8 diff --git a/src/increase/types/account_statement.py b/src/increase/types/account_statement.py index 7a95b9a5..f43fc0ea 100644 --- a/src/increase/types/account_statement.py +++ b/src/increase/types/account_statement.py @@ -1,8 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, Dict from datetime import datetime from typing_extensions import Literal +from pydantic import Field as FieldInfo + from .._models import BaseModel __all__ = ["AccountStatement"] @@ -52,3 +55,15 @@ class AccountStatement(BaseModel): For this resource it will always be `account_statement`. """ + + if TYPE_CHECKING: + # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a + # value to this field, so for compatibility we avoid doing it at runtime. + __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride] + + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> object: ... + else: + __pydantic_extra__: Dict[str, object] diff --git a/src/increase/types/balance_lookup.py b/src/increase/types/balance_lookup.py index e2d3ac55..f8e1ee75 100644 --- a/src/increase/types/balance_lookup.py +++ b/src/increase/types/balance_lookup.py @@ -1,7 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, Dict from typing_extensions import Literal +from pydantic import Field as FieldInfo + from .._models import BaseModel __all__ = ["BalanceLookup"] @@ -32,3 +35,15 @@ class BalanceLookup(BaseModel): For this resource it will always be `balance_lookup`. """ + + if TYPE_CHECKING: + # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a + # value to this field, so for compatibility we avoid doing it at runtime. + __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride] + + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> object: ... + else: + __pydantic_extra__: Dict[str, object] diff --git a/src/increase/types/program.py b/src/increase/types/program.py index d7f852af..bc0b15ee 100644 --- a/src/increase/types/program.py +++ b/src/increase/types/program.py @@ -1,9 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional +from typing import TYPE_CHECKING, Dict, Optional from datetime import datetime from typing_extensions import Literal +from pydantic import Field as FieldInfo + from .._models import BaseModel __all__ = ["Program"] @@ -59,3 +61,15 @@ class Program(BaseModel): The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Program was last updated. """ + + if TYPE_CHECKING: + # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a + # value to this field, so for compatibility we avoid doing it at runtime. + __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride] + + # Stub to indicate that arbitrary properties are accepted. + # To access properties that are not valid identifiers you can use `getattr`, e.g. + # `getattr(obj, '$type')` + def __getattr__(self, attr: str) -> object: ... + else: + __pydantic_extra__: Dict[str, object] From a28e5e54f84bb4a31acd5064fb563ed416645ccf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 23:15:52 +0000 Subject: [PATCH 2/2] release: 0.415.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 26de6687..91c7e2e5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.414.0" + ".": "0.415.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index bfada7b9..ddf85e3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.415.0 (2025-12-15) + +Full Changelog: [v0.414.0...v0.415.0](https://github.com/Increase/increase-python/compare/v0.414.0...v0.415.0) + +### Features + +* **api:** api update ([a547f8b](https://github.com/Increase/increase-python/commit/a547f8be0e9a9256147a5daf9c65a67dd2a17359)) + ## 0.414.0 (2025-12-15) Full Changelog: [v0.413.0...v0.414.0](https://github.com/Increase/increase-python/compare/v0.413.0...v0.414.0) diff --git a/pyproject.toml b/pyproject.toml index 25c1bfad..491d13fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.414.0" +version = "0.415.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 f0c6b0fd..82909792 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.414.0" # x-release-please-version +__version__ = "0.415.0" # x-release-please-version