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.198.0"
".": "0.199.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8882da77555a843811f51c01d96a8a0f5dd36dc70de46bdf01a1e624807ba3a6.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5dd5f2439cdbbb3bffe2ef733d3d173a10ca3233d15763bad8ccf8f87c10e246.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.199.0 (2025-03-01)

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

### Features

* **api:** api update ([#995](https://github.com/Increase/increase-python/issues/995)) ([55f3816](https://github.com/Increase/increase-python/commit/55f38166ff2d50e726ed17dff2b3e1f83cb61bc9))

## 0.198.0 (2025-03-01)

Full Changelog: [v0.197.0...v0.198.0](https://github.com/Increase/increase-python/compare/v0.197.0...v0.198.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.198.0"
version = "0.199.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.198.0" # x-release-please-version
__version__ = "0.199.0" # x-release-please-version
30 changes: 26 additions & 4 deletions src/increase/resources/account_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ def list(
self,
*,
account_id: str | NotGiven = NOT_GIVEN,
ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN,
ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN,
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: account_number_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["active", "disabled", "canceled"] | 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 All @@ -236,6 +236,11 @@ def list(
Args:
account_id: Filter Account Numbers to those belonging to the specified Account.

ach_debit_status: The ACH Debit status to retrieve Account Numbers for.

- `allowed` - ACH Debits are allowed.
- `blocked` - ACH Debits are blocked.

cursor: Return the page of entries after this one.

idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for
Expand All @@ -246,6 +251,12 @@ def list(
limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: The status to retrieve Account Numbers for.

- `active` - The account number is active.
- `disabled` - The account number is temporarily disabled.
- `canceled` - The account number is permanently disabled.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -465,12 +476,12 @@ def list(
self,
*,
account_id: str | NotGiven = NOT_GIVEN,
ach_debit_status: account_number_list_params.ACHDebitStatus | NotGiven = NOT_GIVEN,
ach_debit_status: Literal["allowed", "blocked"] | NotGiven = NOT_GIVEN,
created_at: account_number_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: account_number_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["active", "disabled", "canceled"] | 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 All @@ -484,6 +495,11 @@ def list(
Args:
account_id: Filter Account Numbers to those belonging to the specified Account.

ach_debit_status: The ACH Debit status to retrieve Account Numbers for.

- `allowed` - ACH Debits are allowed.
- `blocked` - ACH Debits are blocked.

cursor: Return the page of entries after this one.

idempotency_key: Filter records to the one with the specified `idempotency_key` you chose for
Expand All @@ -494,6 +510,12 @@ def list(
limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: The status to retrieve Account Numbers for.

- `active` - The account number is active.
- `disabled` - The account number is temporarily disabled.
- `canceled` - The account number is permanently disabled.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
28 changes: 22 additions & 6 deletions src/increase/resources/inbound_ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def list(
created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["pending", "declined", "accepted", "returned"] | 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 All @@ -109,15 +109,23 @@ def list(
List Inbound ACH Transfers

Args:
account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account.
account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account.

account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number.
account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: Filter Inbound ACH Transfers to those with the specified status.

- `pending` - The Inbound ACH Transfer is awaiting action, will transition
automatically if no action is taken.
- `declined` - The Inbound ACH Transfer has been declined.
- `accepted` - The Inbound ACH Transfer is accepted.
- `returned` - The Inbound ACH Transfer has been returned.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -446,7 +454,7 @@ def list(
created_at: inbound_ach_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: inbound_ach_transfer_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["pending", "declined", "accepted", "returned"] | 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 All @@ -458,15 +466,23 @@ def list(
List Inbound ACH Transfers

Args:
account_id: Filter Inbound ACH Transfers to ones belonging to the specified Account.
account_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account.

account_number_id: Filter Inbound ACH Transfers to ones belonging to the specified Account Number.
account_number_id: Filter Inbound ACH Tranfers to ones belonging to the specified Account Number.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: Filter Inbound ACH Transfers to those with the specified status.

- `pending` - The Inbound ACH Transfer is awaiting action, will transition
automatically if no action is taken.
- `declined` - The Inbound ACH Transfer has been declined.
- `accepted` - The Inbound ACH Transfer is accepted.
- `returned` - The Inbound ACH Transfer has been returned.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
30 changes: 24 additions & 6 deletions src/increase/resources/inbound_wire_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from typing_extensions import Literal

import httpx

from ..types import inbound_wire_transfer_list_params
Expand Down Expand Up @@ -87,7 +89,7 @@ def list(
created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["pending", "accepted", "declined", "reversed"] | 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 All @@ -99,15 +101,23 @@ def list(
List Inbound Wire Transfers

Args:
account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account.
account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account.

account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number.
account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: Filter Inbound Wire Transfers to those with the specified status.

- `pending` - The Inbound Wire Transfer is awaiting action, will transition
automatically if no action is taken.
- `accepted` - The Inbound Wire Transfer is accepted.
- `declined` - The Inbound Wire Transfer was declined.
- `reversed` - The Inbound Wire Transfer was reversed.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -205,7 +215,7 @@ def list(
created_at: inbound_wire_transfer_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: inbound_wire_transfer_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["pending", "accepted", "declined", "reversed"] | 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 All @@ -217,15 +227,23 @@ def list(
List Inbound Wire Transfers

Args:
account_id: Filter Inbound Wire Transfers to ones belonging to the specified Account.
account_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account.

account_number_id: Filter Inbound Wire Transfers to ones belonging to the specified Account Number.
account_number_id: Filter Inbound Wire Tranfers to ones belonging to the specified Account Number.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: Filter Inbound Wire Transfers to those with the specified status.

- `pending` - The Inbound Wire Transfer is awaiting action, will transition
automatically if no action is taken.
- `accepted` - The Inbound Wire Transfer is accepted.
- `declined` - The Inbound Wire Transfer was declined.
- `reversed` - The Inbound Wire Transfer was reversed.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
24 changes: 22 additions & 2 deletions src/increase/resources/wire_drawdown_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -190,7 +192,7 @@ def list(
cursor: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | 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 All @@ -212,6 +214,15 @@ def list(
limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: Filter Wire Drawdown Requests for those with the specified status.

- `pending_submission` - The drawdown request is queued to be submitted to
Fedwire.
- `pending_response` - The drawdown request has been sent and the recipient
should respond in some way.
- `fulfilled` - The drawdown request has been fulfilled by the recipient.
- `refused` - The drawdown request has been refused by the recipient.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -407,7 +418,7 @@ def list(
cursor: str | NotGiven = NOT_GIVEN,
idempotency_key: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: wire_drawdown_request_list_params.Status | NotGiven = NOT_GIVEN,
status: Literal["pending_submission", "pending_response", "fulfilled", "refused"] | 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 All @@ -429,6 +440,15 @@ def list(
limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

status: Filter Wire Drawdown Requests for those with the specified status.

- `pending_submission` - The drawdown request is queued to be submitted to
Fedwire.
- `pending_response` - The drawdown request has been sent and the recipient
should respond in some way.
- `fulfilled` - The drawdown request has been fulfilled by the recipient.
- `refused` - The drawdown request has been refused by the recipient.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
43 changes: 14 additions & 29 deletions src/increase/types/account_number_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@

from __future__ import annotations

from typing import List, Union
from typing import Union
from datetime import datetime
from typing_extensions import Literal, Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["AccountNumberListParams", "ACHDebitStatus", "CreatedAt", "Status"]
__all__ = ["AccountNumberListParams", "CreatedAt"]


class AccountNumberListParams(TypedDict, total=False):
account_id: str
"""Filter Account Numbers to those belonging to the specified Account."""

ach_debit_status: ACHDebitStatus
ach_debit_status: Literal["allowed", "blocked"]
"""The ACH Debit status to retrieve Account Numbers for.

- `allowed` - ACH Debits are allowed.
- `blocked` - ACH Debits are blocked.
"""

created_at: CreatedAt

Expand All @@ -36,20 +41,13 @@ class AccountNumberListParams(TypedDict, total=False):
The default (and maximum) is 100 objects.
"""

status: Status


_ACHDebitStatusReservedKeywords = TypedDict(
"_ACHDebitStatusReservedKeywords",
{
"in": List[Literal["allowed", "blocked"]],
},
total=False,
)

status: Literal["active", "disabled", "canceled"]
"""The status to retrieve Account Numbers for.

class ACHDebitStatus(_ACHDebitStatusReservedKeywords, total=False):
pass
- `active` - The account number is active.
- `disabled` - The account number is temporarily disabled.
- `canceled` - The account number is permanently disabled.
"""


class CreatedAt(TypedDict, total=False):
Expand All @@ -76,16 +74,3 @@ 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["active", "disabled", "canceled"]],
},
total=False,
)


class Status(_StatusReservedKeywords, total=False):
pass
Loading