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.212.0"
".": "0.213.0"
}
4 changes: 3 additions & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 199
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-37dc1802736b75bd7602c7be0989e9bbfcd9d2d93b1a3491011ce86cb150cc5a.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-33b4fdf3af0d0c7816a818cea776370220613e9ea8812a8339e6203d0f4b23e6.yml
openapi_spec_hash: 242db9c21568746bbbbdf9cf090db82e
config_hash: 20a463ecd33bd32b7b9bc6f4990907ac
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.213.0 (2025-03-26)

Full Changelog: [v0.212.0...v0.213.0](https://github.com/Increase/increase-python/compare/v0.212.0...v0.213.0)

### Features

* **api:** api update ([#1055](https://github.com/Increase/increase-python/issues/1055)) ([5a5a72a](https://github.com/Increase/increase-python/commit/5a5a72a2c6685f43b846538bdb95ea9b5ba38f34))


### Chores

* fix typos ([#1053](https://github.com/Increase/increase-python/issues/1053)) ([aa0f9c1](https://github.com/Increase/increase-python/commit/aa0f9c198b9df52fca6a1716c56f000ea672282f))

## 0.212.0 (2025-03-22)

Full Changelog: [v0.211.0...v0.212.0](https://github.com/Increase/increase-python/compare/v0.211.0...v0.212.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.212.0"
version = "0.213.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
setattr(typ, "__pydantic_config__", config) # noqa: B010


# our use of subclasssing here causes weirdness for type checkers,
# our use of subclassing here causes weirdness for type checkers,
# so we just pretend that we don't subclass
if TYPE_CHECKING:
GenericModel = BaseModel
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_utils/_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _get_annotated_type(type_: type) -> type | None:
def _maybe_transform_key(key: str, type_: type) -> str:
"""Transform the given `data` based on the annotations provided in `type_`.
Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata.
Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata.
"""
annotated_type = _get_annotated_type(type_)
if annotated_type is None:
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.212.0" # x-release-please-version
__version__ = "0.213.0" # x-release-please-version
4 changes: 4 additions & 0 deletions src/increase/resources/ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def list(
external_account_id: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: ach_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,
Expand Down Expand Up @@ -299,6 +300,7 @@ def list(
"external_account_id": external_account_id,
"idempotency_key": idempotency_key,
"limit": limit,
"status": status,
},
ach_transfer_list_params.ACHTransferListParams,
),
Expand Down Expand Up @@ -614,6 +616,7 @@ def list(
external_account_id: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: ach_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,
Expand Down Expand Up @@ -663,6 +666,7 @@ def list(
"external_account_id": external_account_id,
"idempotency_key": idempotency_key,
"limit": limit,
"status": status,
},
ach_transfer_list_params.ACHTransferListParams,
),
Expand Down
4 changes: 4 additions & 0 deletions src/increase/resources/real_time_payments_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def list(
external_account_id: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: real_time_payments_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,
Expand Down Expand Up @@ -234,6 +235,7 @@ def list(
"external_account_id": external_account_id,
"idempotency_key": idempotency_key,
"limit": limit,
"status": status,
},
real_time_payments_transfer_list_params.RealTimePaymentsTransferListParams,
),
Expand Down Expand Up @@ -401,6 +403,7 @@ def list(
external_account_id: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: real_time_payments_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,
Expand Down Expand Up @@ -451,6 +454,7 @@ def list(
"external_account_id": external_account_id,
"idempotency_key": idempotency_key,
"limit": limit,
"status": status,
},
real_time_payments_transfer_list_params.RealTimePaymentsTransferListParams,
),
Expand Down
33 changes: 30 additions & 3 deletions src/increase/types/ach_transfer_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = ["ACHTransferListParams", "CreatedAt"]
__all__ = ["ACHTransferListParams", "CreatedAt", "Status"]


class ACHTransferListParams(TypedDict, total=False):
Expand Down Expand Up @@ -37,6 +37,8 @@ class ACHTransferListParams(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")]
Expand All @@ -62,3 +64,28 @@ 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",
"pending_transfer_session_confirmation",
"canceled",
"pending_submission",
"pending_reviewing",
"requires_attention",
"rejected",
"submitted",
"returned",
]
],
},
total=False,
)


class Status(_StatusReservedKeywords, total=False):
pass
32 changes: 29 additions & 3 deletions src/increase/types/real_time_payments_transfer_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = ["RealTimePaymentsTransferListParams", "CreatedAt"]
__all__ = ["RealTimePaymentsTransferListParams", "CreatedAt", "Status"]


class RealTimePaymentsTransferListParams(TypedDict, total=False):
Expand Down Expand Up @@ -42,6 +42,8 @@ class RealTimePaymentsTransferListParams(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")]
Expand All @@ -67,3 +69,27 @@ 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_reviewing",
"requires_attention",
"rejected",
"pending_submission",
"submitted",
"complete",
]
],
},
total=False,
)


class Status(_StatusReservedKeywords, total=False):
pass
2 changes: 2 additions & 0 deletions tests/api_resources/test_ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
external_account_id="external_account_id",
idempotency_key="x",
limit=1,
status={"in": ["pending_approval"]},
)
assert_matches_type(SyncPage[ACHTransfer], ach_transfer, path=["response"])

Expand Down Expand Up @@ -388,6 +389,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) ->
external_account_id="external_account_id",
idempotency_key="x",
limit=1,
status={"in": ["pending_approval"]},
)
assert_matches_type(AsyncPage[ACHTransfer], ach_transfer, path=["response"])

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_real_time_payments_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
external_account_id="external_account_id",
idempotency_key="x",
limit=1,
status={"in": ["pending_approval"]},
)
assert_matches_type(SyncPage[RealTimePaymentsTransfer], real_time_payments_transfer, path=["response"])

Expand Down Expand Up @@ -280,6 +281,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) ->
external_account_id="external_account_id",
idempotency_key="x",
limit=1,
status={"in": ["pending_approval"]},
)
assert_matches_type(AsyncPage[RealTimePaymentsTransfer], real_time_payments_transfer, path=["response"])

Expand Down