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.391.1"
".": "0.392.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b6b193549e9c795e807b299e7161628dc1e504d43d6be27113b1f3a1e491914f.yml
openapi_spec_hash: 9d0ff6cc1ec60a6772598cff20f8db1d
config_hash: eb2035151c7b49c2f12caf55469b8f9a
configured_endpoints: 229
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a0eb4b9ef698e80be2fc9e995d6096b96de35e4985c8586e0773fa55a6b50943.yml
openapi_spec_hash: a36c0bee01bf3af40ebcd7075308f170
config_hash: ca1425272e17fa23d4466d33492334fa
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.392.0 (2025-11-12)

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

### Features

* **api:** api update ([24ba362](https://github.com/Increase/increase-python/commit/24ba362e89f89ecafaa159a9be401f3185a619de))

## 0.391.1 (2025-11-11)

Full Changelog: [v0.391.0...v0.391.1](https://github.com/Increase/increase-python/compare/v0.391.0...v0.391.1)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ Methods:

- <code title="get /inbound_mail_items/{inbound_mail_item_id}">client.inbound_mail_items.<a href="./src/increase/resources/inbound_mail_items.py">retrieve</a>(inbound_mail_item_id) -> <a href="./src/increase/types/inbound_mail_item.py">InboundMailItem</a></code>
- <code title="get /inbound_mail_items">client.inbound_mail_items.<a href="./src/increase/resources/inbound_mail_items.py">list</a>(\*\*<a href="src/increase/types/inbound_mail_item_list_params.py">params</a>) -> <a href="./src/increase/types/inbound_mail_item.py">SyncPage[InboundMailItem]</a></code>
- <code title="post /inbound_mail_items/{inbound_mail_item_id}/action">client.inbound_mail_items.<a href="./src/increase/resources/inbound_mail_items.py">action</a>(inbound_mail_item_id, \*\*<a href="src/increase/types/inbound_mail_item_action_params.py">params</a>) -> <a href="./src/increase/types/inbound_mail_item.py">InboundMailItem</a></code>

# RoutingNumbers

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.391.1"
version = "0.392.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/_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.391.1" # x-release-please-version
__version__ = "0.392.0" # x-release-please-version
116 changes: 114 additions & 2 deletions src/increase/resources/inbound_mail_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

from __future__ import annotations

from typing import Iterable

import httpx

from ..types import inbound_mail_item_list_params
from ..types import inbound_mail_item_list_params, inbound_mail_item_action_params
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
from .._utils import maybe_transform
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
Expand Down Expand Up @@ -133,6 +135,54 @@ def list(
model=InboundMailItem,
)

def action(
self,
inbound_mail_item_id: str,
*,
checks: Iterable[inbound_mail_item_action_params.Check],
# 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> InboundMailItem:
"""
Action a Inbound Mail Item

Args:
inbound_mail_item_id: The identifier of the Inbound Mail Item to action.

checks: The actions to perform on the Inbound Mail Item.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
if not inbound_mail_item_id:
raise ValueError(
f"Expected a non-empty value for `inbound_mail_item_id` but received {inbound_mail_item_id!r}"
)
return self._post(
f"/inbound_mail_items/{inbound_mail_item_id}/action",
body=maybe_transform({"checks": checks}, inbound_mail_item_action_params.InboundMailItemActionParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=InboundMailItem,
)


class AsyncInboundMailItemsResource(AsyncAPIResource):
@cached_property
Expand Down Expand Up @@ -245,6 +295,56 @@ def list(
model=InboundMailItem,
)

async def action(
self,
inbound_mail_item_id: str,
*,
checks: Iterable[inbound_mail_item_action_params.Check],
# 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> InboundMailItem:
"""
Action a Inbound Mail Item

Args:
inbound_mail_item_id: The identifier of the Inbound Mail Item to action.

checks: The actions to perform on the Inbound Mail Item.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
if not inbound_mail_item_id:
raise ValueError(
f"Expected a non-empty value for `inbound_mail_item_id` but received {inbound_mail_item_id!r}"
)
return await self._post(
f"/inbound_mail_items/{inbound_mail_item_id}/action",
body=await async_maybe_transform(
{"checks": checks}, inbound_mail_item_action_params.InboundMailItemActionParams
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=InboundMailItem,
)


class InboundMailItemsResourceWithRawResponse:
def __init__(self, inbound_mail_items: InboundMailItemsResource) -> None:
Expand All @@ -256,6 +356,9 @@ def __init__(self, inbound_mail_items: InboundMailItemsResource) -> None:
self.list = to_raw_response_wrapper(
inbound_mail_items.list,
)
self.action = to_raw_response_wrapper(
inbound_mail_items.action,
)


class AsyncInboundMailItemsResourceWithRawResponse:
Expand All @@ -268,6 +371,9 @@ def __init__(self, inbound_mail_items: AsyncInboundMailItemsResource) -> None:
self.list = async_to_raw_response_wrapper(
inbound_mail_items.list,
)
self.action = async_to_raw_response_wrapper(
inbound_mail_items.action,
)


class InboundMailItemsResourceWithStreamingResponse:
Expand All @@ -280,6 +386,9 @@ def __init__(self, inbound_mail_items: InboundMailItemsResource) -> None:
self.list = to_streamed_response_wrapper(
inbound_mail_items.list,
)
self.action = to_streamed_response_wrapper(
inbound_mail_items.action,
)


class AsyncInboundMailItemsResourceWithStreamingResponse:
Expand All @@ -292,3 +401,6 @@ def __init__(self, inbound_mail_items: AsyncInboundMailItemsResource) -> None:
self.list = async_to_streamed_response_wrapper(
inbound_mail_items.list,
)
self.action = async_to_streamed_response_wrapper(
inbound_mail_items.action,
)
8 changes: 6 additions & 2 deletions src/increase/resources/lockboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def update(
self,
lockbox_id: str,
*,
check_deposit_behavior: Literal["enabled", "disabled"] | Omit = omit,
check_deposit_behavior: Literal["enabled", "disabled", "pend_for_processing"] | Omit = omit,
description: str | Omit = omit,
recipient_name: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -158,6 +158,8 @@ def update(

- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
- `pend_for_processing` - Checks mailed to this Lockbox will be pending until
actioned.

description: The description you choose for the Lockbox.

Expand Down Expand Up @@ -370,7 +372,7 @@ async def update(
self,
lockbox_id: str,
*,
check_deposit_behavior: Literal["enabled", "disabled"] | Omit = omit,
check_deposit_behavior: Literal["enabled", "disabled", "pend_for_processing"] | Omit = omit,
description: str | Omit = omit,
recipient_name: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -391,6 +393,8 @@ async def update(

- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
- `pend_for_processing` - Checks mailed to this Lockbox will be pending until
actioned.

description: The description you choose for the Lockbox.

Expand Down
1 change: 1 addition & 0 deletions src/increase/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
from .external_account_update_params import ExternalAccountUpdateParams as ExternalAccountUpdateParams
from .ach_prenotification_list_params import ACHPrenotificationListParams as ACHPrenotificationListParams
from .bookkeeping_account_list_params import BookkeepingAccountListParams as BookkeepingAccountListParams
from .inbound_mail_item_action_params import InboundMailItemActionParams as InboundMailItemActionParams
from .intrafi_exclusion_create_params import IntrafiExclusionCreateParams as IntrafiExclusionCreateParams
from .pending_transaction_list_params import PendingTransactionListParams as PendingTransactionListParams
from .card_push_transfer_create_params import CardPushTransferCreateParams as CardPushTransferCreateParams
Expand Down
29 changes: 29 additions & 0 deletions src/increase/types/inbound_mail_item_action_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Iterable
from typing_extensions import Literal, Required, TypedDict

__all__ = ["InboundMailItemActionParams", "Check"]


class InboundMailItemActionParams(TypedDict, total=False):
checks: Required[Iterable[Check]]
"""The actions to perform on the Inbound Mail Item."""


class Check(TypedDict, total=False):
action: Required[Literal["deposit", "ignore"]]
"""The action to perform on the Inbound Mail Item.

- `deposit` - The check will be deposited.
- `ignore` - The check will be ignored.
"""

account: str
"""The identifier of the Account to deposit the check into.

If not provided, the check will be deposited into the Account associated with
the Lockbox.
"""
4 changes: 3 additions & 1 deletion src/increase/types/lockbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ class Lockbox(BaseModel):
address: Address
"""The mailing address for the Lockbox."""

check_deposit_behavior: Literal["enabled", "disabled"]
check_deposit_behavior: Literal["enabled", "disabled", "pend_for_processing"]
"""Indicates if checks mailed to this lockbox will be deposited.

- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
- `pend_for_processing` - Checks mailed to this Lockbox will be pending until
actioned.
"""

created_at: datetime
Expand Down
4 changes: 3 additions & 1 deletion src/increase/types/lockbox_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@


class LockboxUpdateParams(TypedDict, total=False):
check_deposit_behavior: Literal["enabled", "disabled"]
check_deposit_behavior: Literal["enabled", "disabled", "pend_for_processing"]
"""This indicates if checks mailed to this lockbox will be deposited.

- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
- `pend_for_processing` - Checks mailed to this Lockbox will be pending until
actioned.
"""

description: str
Expand Down
Loading