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.300.0"
".": "0.301.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-740517a6a575bb225c5bfa111ab83611c58533d5b1514f505aab22185f4a8992.yml
openapi_spec_hash: 8bfd6dcf11d076c24e4f092dc7e151ac
config_hash: 29e452035e915a07cd64333b10a83077
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b6c7f7c551cd8635ddf3fa27eb1040a4e3888c8190326472c19fd919a5e2c8c5.yml
openapi_spec_hash: 287cbadcab1cec9f352da22a4e39c160
config_hash: 632b628b59d8f0b717153b3d8133f6cb
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.301.0 (2025-08-26)

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

### Features

* **api:** api update ([5591091](https://github.com/Increase/increase-python/commit/55910913cc6c2ab91564cd9a3449956d068ce654))


### Chores

* **internal:** update pyright exclude list ([ab37786](https://github.com/Increase/increase-python/commit/ab37786fa3bb4c75a4e96119895b4ee561a1c32c))

## 0.300.0 (2025-08-26)

Full Changelog: [v0.299.0...v0.300.0](https://github.com/Increase/increase-python/compare/v0.299.0...v0.300.0)
Expand Down
10 changes: 2 additions & 8 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -858,17 +858,11 @@ Methods:

- <code title="post /simulations/digital_wallet_token_requests">client.simulations.digital_wallet_token_requests.<a href="./src/increase/resources/simulations/digital_wallet_token_requests.py">create</a>(\*\*<a href="src/increase/types/simulations/digital_wallet_token_request_create_params.py">params</a>) -> <a href="./src/increase/types/simulations/digital_wallet_token_request_create_response.py">DigitalWalletTokenRequestCreateResponse</a></code>

## InboundFundsHolds

Types:

```python
from increase.types.simulations import InboundFundsHoldReleaseResponse
```
## PendingTransactions

Methods:

- <code title="post /simulations/inbound_funds_holds/{inbound_funds_hold_id}/release">client.simulations.inbound_funds_holds.<a href="./src/increase/resources/simulations/inbound_funds_holds.py">release</a>(inbound_funds_hold_id) -> <a href="./src/increase/types/simulations/inbound_funds_hold_release_response.py">InboundFundsHoldReleaseResponse</a></code>
- <code title="post /simulations/pending_transactions/{pending_transaction_id}/release_inbound_funds_hold">client.simulations.pending_transactions.<a href="./src/increase/resources/simulations/pending_transactions.py">release_inbound_funds_hold</a>(pending_transaction_id) -> <a href="./src/increase/types/pending_transaction.py">PendingTransaction</a></code>

## AccountTransfers

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.300.0"
version = "0.301.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -148,6 +148,7 @@ exclude = [
"_dev",
".venv",
".nox",
".git",
]

reportImplicitOverride = true
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.300.0" # x-release-please-version
__version__ = "0.301.0" # x-release-please-version
26 changes: 13 additions & 13 deletions src/increase/resources/simulations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@
CardAuthorizationsResourceWithStreamingResponse,
AsyncCardAuthorizationsResourceWithStreamingResponse,
)
from .inbound_funds_holds import (
InboundFundsHoldsResource,
AsyncInboundFundsHoldsResource,
InboundFundsHoldsResourceWithRawResponse,
AsyncInboundFundsHoldsResourceWithRawResponse,
InboundFundsHoldsResourceWithStreamingResponse,
AsyncInboundFundsHoldsResourceWithStreamingResponse,
from .pending_transactions import (
PendingTransactionsResource,
AsyncPendingTransactionsResource,
PendingTransactionsResourceWithRawResponse,
AsyncPendingTransactionsResourceWithRawResponse,
PendingTransactionsResourceWithStreamingResponse,
AsyncPendingTransactionsResourceWithStreamingResponse,
)
from .inbound_ach_transfers import (
InboundACHTransfersResource,
Expand Down Expand Up @@ -308,12 +308,12 @@
"AsyncDigitalWalletTokenRequestsResourceWithRawResponse",
"DigitalWalletTokenRequestsResourceWithStreamingResponse",
"AsyncDigitalWalletTokenRequestsResourceWithStreamingResponse",
"InboundFundsHoldsResource",
"AsyncInboundFundsHoldsResource",
"InboundFundsHoldsResourceWithRawResponse",
"AsyncInboundFundsHoldsResourceWithRawResponse",
"InboundFundsHoldsResourceWithStreamingResponse",
"AsyncInboundFundsHoldsResourceWithStreamingResponse",
"PendingTransactionsResource",
"AsyncPendingTransactionsResource",
"PendingTransactionsResourceWithRawResponse",
"AsyncPendingTransactionsResourceWithRawResponse",
"PendingTransactionsResourceWithStreamingResponse",
"AsyncPendingTransactionsResourceWithStreamingResponse",
"AccountTransfersResource",
"AsyncAccountTransfersResource",
"AccountTransfersResourceWithRawResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,34 @@
async_to_streamed_response_wrapper,
)
from ..._base_client import make_request_options
from ...types.simulations.inbound_funds_hold_release_response import InboundFundsHoldReleaseResponse
from ...types.pending_transaction import PendingTransaction

__all__ = ["InboundFundsHoldsResource", "AsyncInboundFundsHoldsResource"]
__all__ = ["PendingTransactionsResource", "AsyncPendingTransactionsResource"]


class InboundFundsHoldsResource(SyncAPIResource):
class PendingTransactionsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> InboundFundsHoldsResourceWithRawResponse:
def with_raw_response(self) -> PendingTransactionsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
"""
return InboundFundsHoldsResourceWithRawResponse(self)
return PendingTransactionsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> InboundFundsHoldsResourceWithStreamingResponse:
def with_streaming_response(self) -> PendingTransactionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/Increase/increase-python#with_streaming_response
"""
return InboundFundsHoldsResourceWithStreamingResponse(self)
return PendingTransactionsResourceWithStreamingResponse(self)

def release(
def release_inbound_funds_hold(
self,
inbound_funds_hold_id: str,
pending_transaction_id: str,
*,
# 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.
Expand All @@ -50,13 +50,14 @@ def release(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> InboundFundsHoldReleaseResponse:
) -> PendingTransaction:
"""
This endpoint simulates immediately releasing an Inbound Funds Hold, which might
be created as a result of e.g., an ACH debit.
be created as a result of, for example, an ACH debit.

Args:
inbound_funds_hold_id: The inbound funds hold to release.
pending_transaction_id: The pending transaction to release. The pending transaction must have a
`inbound_funds_hold` source.

extra_headers: Send extra headers

Expand All @@ -68,46 +69,46 @@ def release(

idempotency_key: Specify a custom idempotency key for this request
"""
if not inbound_funds_hold_id:
if not pending_transaction_id:
raise ValueError(
f"Expected a non-empty value for `inbound_funds_hold_id` but received {inbound_funds_hold_id!r}"
f"Expected a non-empty value for `pending_transaction_id` but received {pending_transaction_id!r}"
)
return self._post(
f"/simulations/inbound_funds_holds/{inbound_funds_hold_id}/release",
f"/simulations/pending_transactions/{pending_transaction_id}/release_inbound_funds_hold",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=InboundFundsHoldReleaseResponse,
cast_to=PendingTransaction,
)


class AsyncInboundFundsHoldsResource(AsyncAPIResource):
class AsyncPendingTransactionsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncInboundFundsHoldsResourceWithRawResponse:
def with_raw_response(self) -> AsyncPendingTransactionsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
"""
return AsyncInboundFundsHoldsResourceWithRawResponse(self)
return AsyncPendingTransactionsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncInboundFundsHoldsResourceWithStreamingResponse:
def with_streaming_response(self) -> AsyncPendingTransactionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/Increase/increase-python#with_streaming_response
"""
return AsyncInboundFundsHoldsResourceWithStreamingResponse(self)
return AsyncPendingTransactionsResourceWithStreamingResponse(self)

async def release(
async def release_inbound_funds_hold(
self,
inbound_funds_hold_id: str,
pending_transaction_id: str,
*,
# 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.
Expand All @@ -116,13 +117,14 @@ async def release(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> InboundFundsHoldReleaseResponse:
) -> PendingTransaction:
"""
This endpoint simulates immediately releasing an Inbound Funds Hold, which might
be created as a result of e.g., an ACH debit.
be created as a result of, for example, an ACH debit.

Args:
inbound_funds_hold_id: The inbound funds hold to release.
pending_transaction_id: The pending transaction to release. The pending transaction must have a
`inbound_funds_hold` source.

extra_headers: Send extra headers

Expand All @@ -134,54 +136,54 @@ async def release(

idempotency_key: Specify a custom idempotency key for this request
"""
if not inbound_funds_hold_id:
if not pending_transaction_id:
raise ValueError(
f"Expected a non-empty value for `inbound_funds_hold_id` but received {inbound_funds_hold_id!r}"
f"Expected a non-empty value for `pending_transaction_id` but received {pending_transaction_id!r}"
)
return await self._post(
f"/simulations/inbound_funds_holds/{inbound_funds_hold_id}/release",
f"/simulations/pending_transactions/{pending_transaction_id}/release_inbound_funds_hold",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=InboundFundsHoldReleaseResponse,
cast_to=PendingTransaction,
)


class InboundFundsHoldsResourceWithRawResponse:
def __init__(self, inbound_funds_holds: InboundFundsHoldsResource) -> None:
self._inbound_funds_holds = inbound_funds_holds
class PendingTransactionsResourceWithRawResponse:
def __init__(self, pending_transactions: PendingTransactionsResource) -> None:
self._pending_transactions = pending_transactions

self.release = to_raw_response_wrapper(
inbound_funds_holds.release,
self.release_inbound_funds_hold = to_raw_response_wrapper(
pending_transactions.release_inbound_funds_hold,
)


class AsyncInboundFundsHoldsResourceWithRawResponse:
def __init__(self, inbound_funds_holds: AsyncInboundFundsHoldsResource) -> None:
self._inbound_funds_holds = inbound_funds_holds
class AsyncPendingTransactionsResourceWithRawResponse:
def __init__(self, pending_transactions: AsyncPendingTransactionsResource) -> None:
self._pending_transactions = pending_transactions

self.release = async_to_raw_response_wrapper(
inbound_funds_holds.release,
self.release_inbound_funds_hold = async_to_raw_response_wrapper(
pending_transactions.release_inbound_funds_hold,
)


class InboundFundsHoldsResourceWithStreamingResponse:
def __init__(self, inbound_funds_holds: InboundFundsHoldsResource) -> None:
self._inbound_funds_holds = inbound_funds_holds
class PendingTransactionsResourceWithStreamingResponse:
def __init__(self, pending_transactions: PendingTransactionsResource) -> None:
self._pending_transactions = pending_transactions

self.release = to_streamed_response_wrapper(
inbound_funds_holds.release,
self.release_inbound_funds_hold = to_streamed_response_wrapper(
pending_transactions.release_inbound_funds_hold,
)


class AsyncInboundFundsHoldsResourceWithStreamingResponse:
def __init__(self, inbound_funds_holds: AsyncInboundFundsHoldsResource) -> None:
self._inbound_funds_holds = inbound_funds_holds
class AsyncPendingTransactionsResourceWithStreamingResponse:
def __init__(self, pending_transactions: AsyncPendingTransactionsResource) -> None:
self._pending_transactions = pending_transactions

self.release = async_to_streamed_response_wrapper(
inbound_funds_holds.release,
self.release_inbound_funds_hold = async_to_streamed_response_wrapper(
pending_transactions.release_inbound_funds_hold,
)
Loading