diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 285be38e..39ba1f87 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.449.0" + ".": "0.450.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d4fff91f..8e3e051f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 236 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5444aa15ed771b293975e4ea457bbf96f3fd4268dab9cef1d64fc18efbba3718.yml -openapi_spec_hash: 94be74f7b294a338dd47d95721bb52ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f3d22401feb4671870673cb67688b163ee7f26acb6d2f89dcf79b26b0675523f.yml +openapi_spec_hash: 4d6dbce33f5de203d92df4c20a957665 config_hash: 25d7d7aa4882db6189b4b53e8e249e80 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2a1b88..e91eb08d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.450.0 (2026-03-19) + +Full Changelog: [v0.449.0...v0.450.0](https://github.com/Increase/increase-python/compare/v0.449.0...v0.450.0) + +### Features + +* **api:** api update ([7e47f38](https://github.com/Increase/increase-python/commit/7e47f38865a9511e1dfd4a3fcfb66885a1cb22e5)) + ## 0.449.0 (2026-03-18) Full Changelog: [v0.448.0...v0.449.0](https://github.com/Increase/increase-python/compare/v0.448.0...v0.449.0) diff --git a/pyproject.toml b/pyproject.toml index 632896cd..e363c8db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.449.0" +version = "0.450.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 6cebf721..ea6a8848 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.449.0" # x-release-please-version +__version__ = "0.450.0" # x-release-please-version diff --git a/src/increase/resources/wire_drawdown_requests.py b/src/increase/resources/wire_drawdown_requests.py index 76408df8..a05d7ad2 100644 --- a/src/increase/resources/wire_drawdown_requests.py +++ b/src/increase/resources/wire_drawdown_requests.py @@ -2,6 +2,8 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx from ..types import wire_drawdown_request_list_params, wire_drawdown_request_create_params @@ -52,6 +54,7 @@ def create( debtor_address: wire_drawdown_request_create_params.DebtorAddress, debtor_name: str, unstructured_remittance_information: str, + charge_bearer: Literal["shared", "debtor", "creditor", "service_level"] | Omit = omit, debtor_account_number: str | Omit = omit, debtor_external_account_id: str | Omit = omit, debtor_routing_number: str | Omit = omit, @@ -82,6 +85,14 @@ def create( unstructured_remittance_information: Remittance information the debtor will see as part of the request. + charge_bearer: Determines who bears the cost of the drawdown request. Defaults to `shared` if + not specified. + + - `shared` - Charges are shared between the debtor and creditor. + - `debtor` - Charges are borne by the debtor. + - `creditor` - Charges are borne by the creditor. + - `service_level` - Charges are determined by the service level. + debtor_account_number: The debtor's account number. debtor_external_account_id: The ID of an External Account to initiate a transfer to. If this parameter is @@ -113,6 +124,7 @@ def create( "debtor_address": debtor_address, "debtor_name": debtor_name, "unstructured_remittance_information": unstructured_remittance_information, + "charge_bearer": charge_bearer, "debtor_account_number": debtor_account_number, "debtor_external_account_id": debtor_external_account_id, "debtor_routing_number": debtor_routing_number, @@ -255,6 +267,7 @@ async def create( debtor_address: wire_drawdown_request_create_params.DebtorAddress, debtor_name: str, unstructured_remittance_information: str, + charge_bearer: Literal["shared", "debtor", "creditor", "service_level"] | Omit = omit, debtor_account_number: str | Omit = omit, debtor_external_account_id: str | Omit = omit, debtor_routing_number: str | Omit = omit, @@ -285,6 +298,14 @@ async def create( unstructured_remittance_information: Remittance information the debtor will see as part of the request. + charge_bearer: Determines who bears the cost of the drawdown request. Defaults to `shared` if + not specified. + + - `shared` - Charges are shared between the debtor and creditor. + - `debtor` - Charges are borne by the debtor. + - `creditor` - Charges are borne by the creditor. + - `service_level` - Charges are determined by the service level. + debtor_account_number: The debtor's account number. debtor_external_account_id: The ID of an External Account to initiate a transfer to. If this parameter is @@ -316,6 +337,7 @@ async def create( "debtor_address": debtor_address, "debtor_name": debtor_name, "unstructured_remittance_information": unstructured_remittance_information, + "charge_bearer": charge_bearer, "debtor_account_number": debtor_account_number, "debtor_external_account_id": debtor_external_account_id, "debtor_routing_number": debtor_routing_number, diff --git a/src/increase/types/wire_drawdown_request.py b/src/increase/types/wire_drawdown_request.py index e797756b..2084c934 100644 --- a/src/increase/types/wire_drawdown_request.py +++ b/src/increase/types/wire_drawdown_request.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__ = ["WireDrawdownRequest", "CreditorAddress", "DebtorAddress", "Submission"] @@ -163,3 +165,15 @@ class WireDrawdownRequest(BaseModel): unstructured_remittance_information: str """Remittance information the debtor will see as part of the drawdown request.""" + + 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/wire_drawdown_request_create_params.py b/src/increase/types/wire_drawdown_request_create_params.py index 7d9e8e37..41a38f0c 100644 --- a/src/increase/types/wire_drawdown_request_create_params.py +++ b/src/increase/types/wire_drawdown_request_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Literal, Required, TypedDict __all__ = ["WireDrawdownRequestCreateParams", "CreditorAddress", "DebtorAddress"] @@ -29,6 +29,17 @@ class WireDrawdownRequestCreateParams(TypedDict, total=False): unstructured_remittance_information: Required[str] """Remittance information the debtor will see as part of the request.""" + charge_bearer: Literal["shared", "debtor", "creditor", "service_level"] + """Determines who bears the cost of the drawdown request. + + Defaults to `shared` if not specified. + + - `shared` - Charges are shared between the debtor and creditor. + - `debtor` - Charges are borne by the debtor. + - `creditor` - Charges are borne by the creditor. + - `service_level` - Charges are determined by the service level. + """ + debtor_account_number: str """The debtor's account number.""" diff --git a/tests/api_resources/test_wire_drawdown_requests.py b/tests/api_resources/test_wire_drawdown_requests.py index 826ff461..62a03679 100644 --- a/tests/api_resources/test_wire_drawdown_requests.py +++ b/tests/api_resources/test_wire_drawdown_requests.py @@ -63,6 +63,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None: }, debtor_name="Ian Crease", unstructured_remittance_information="Invoice 29582", + charge_bearer="shared", debtor_account_number="987654321", debtor_external_account_id="debtor_external_account_id", debtor_routing_number="101050001", @@ -248,6 +249,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) }, debtor_name="Ian Crease", unstructured_remittance_information="Invoice 29582", + charge_bearer="shared", debtor_account_number="987654321", debtor_external_account_id="debtor_external_account_id", debtor_routing_number="101050001",