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.328.0"
".": "0.329.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 217
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d19e08b9b1b9aa23a3a0c86db6eb3500b3a4aaf2d9f549a0177c5bebe67d098.yml
openapi_spec_hash: eec4190f1aca04351de8891c6a9b37da
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-61210b27ac135ed841515ad3c3dfedaf42dc1398b0a3ed63bbd6c154d1b31a6a.yml
openapi_spec_hash: b0d2957f6269776252f0ddaa6489772a
config_hash: e1885b38eded054b77308a024c5d80cc
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.329.0 (2025-09-17)

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

### Features

* **api:** api update ([9ca82f2](https://github.com/Increase/increase-python/commit/9ca82f2dcd1a9133d67c88990edb16ffc8221c8c))


### Chores

* **internal:** update pydantic dependency ([5b20dc0](https://github.com/Increase/increase-python/commit/5b20dc034ac27e1b21ce98b370362b40d98971b8))

## 0.328.0 (2025-09-16)

Full Changelog: [v0.327.0...v0.328.0](https://github.com/Increase/increase-python/compare/v0.327.0...v0.328.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.328.0"
version = "0.329.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
7 changes: 5 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ pluggy==1.5.0
propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.10.3
pydantic==2.11.9
# via increase
pydantic-core==2.27.1
pydantic-core==2.33.2
# via pydantic
pygments==2.18.0
# via rich
Expand Down Expand Up @@ -126,6 +126,9 @@ typing-extensions==4.12.2
# via pydantic
# via pydantic-core
# via pyright
# via typing-inspection
typing-inspection==0.4.1
# via pydantic
virtualenv==20.24.5
# via nox
yarl==1.20.0
Expand Down
7 changes: 5 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ multidict==6.4.4
propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.10.3
pydantic==2.11.9
# via increase
pydantic-core==2.27.1
pydantic-core==2.33.2
# via pydantic
sniffio==1.3.0
# via anyio
Expand All @@ -68,5 +68,8 @@ typing-extensions==4.12.2
# via multidict
# via pydantic
# via pydantic-core
# via typing-inspection
typing-inspection==0.4.1
# via pydantic
yarl==1.20.0
# via aiohttp
14 changes: 10 additions & 4 deletions src/increase/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,15 @@ def model_dump(
mode: Literal["json", "python"] | str = "python",
include: IncEx | None = None,
exclude: IncEx | None = None,
by_alias: bool = False,
by_alias: bool | None = None,
exclude_unset: bool = False,
exclude_defaults: bool = False,
exclude_none: bool = False,
round_trip: bool = False,
warnings: bool | Literal["none", "warn", "error"] = True,
context: dict[str, Any] | None = None,
serialize_as_any: bool = False,
fallback: Callable[[Any], Any] | None = None,
) -> dict[str, Any]:
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Expand Down Expand Up @@ -295,10 +296,12 @@ def model_dump(
raise ValueError("context is only supported in Pydantic v2")
if serialize_as_any != False:
raise ValueError("serialize_as_any is only supported in Pydantic v2")
if fallback is not None:
raise ValueError("fallback is only supported in Pydantic v2")
dumped = super().dict( # pyright: ignore[reportDeprecated]
include=include,
exclude=exclude,
by_alias=by_alias,
by_alias=by_alias if by_alias is not None else False,
exclude_unset=exclude_unset,
exclude_defaults=exclude_defaults,
exclude_none=exclude_none,
Expand All @@ -313,13 +316,14 @@ def model_dump_json(
indent: int | None = None,
include: IncEx | None = None,
exclude: IncEx | None = None,
by_alias: bool = False,
by_alias: bool | None = None,
exclude_unset: bool = False,
exclude_defaults: bool = False,
exclude_none: bool = False,
round_trip: bool = False,
warnings: bool | Literal["none", "warn", "error"] = True,
context: dict[str, Any] | None = None,
fallback: Callable[[Any], Any] | None = None,
serialize_as_any: bool = False,
) -> str:
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
Expand Down Expand Up @@ -348,11 +352,13 @@ def model_dump_json(
raise ValueError("context is only supported in Pydantic v2")
if serialize_as_any != False:
raise ValueError("serialize_as_any is only supported in Pydantic v2")
if fallback is not None:
raise ValueError("fallback is only supported in Pydantic v2")
return super().json( # type: ignore[reportDeprecated]
indent=indent,
include=include,
exclude=exclude,
by_alias=by_alias,
by_alias=by_alias if by_alias is not None else False,
exclude_unset=exclude_unset,
exclude_defaults=exclude_defaults,
exclude_none=exclude_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.328.0" # x-release-please-version
__version__ = "0.329.0" # x-release-please-version
12 changes: 12 additions & 0 deletions src/increase/resources/event_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def create(
"inbound_ach_transfer_return.updated",
"inbound_check_deposit.created",
"inbound_check_deposit.updated",
"inbound_fednow_transfer.created",
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_transfer.created",
Expand Down Expand Up @@ -245,6 +247,10 @@ def create(
created.
- `inbound_check_deposit.updated` - Occurs whenever an Inbound Check Deposit is
updated.
- `inbound_fednow_transfer.created` - Occurs whenever an Inbound FedNow Transfer
is created.
- `inbound_fednow_transfer.updated` - Occurs whenever an Inbound FedNow Transfer
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Expand Down Expand Up @@ -590,6 +596,8 @@ async def create(
"inbound_ach_transfer_return.updated",
"inbound_check_deposit.created",
"inbound_check_deposit.updated",
"inbound_fednow_transfer.created",
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_transfer.created",
Expand Down Expand Up @@ -734,6 +742,10 @@ async def create(
created.
- `inbound_check_deposit.updated` - Occurs whenever an Inbound Check Deposit is
updated.
- `inbound_fednow_transfer.created` - Occurs whenever an Inbound FedNow Transfer
is created.
- `inbound_fednow_transfer.updated` - Occurs whenever an Inbound FedNow Transfer
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Expand Down
35 changes: 35 additions & 0 deletions src/increase/types/declined_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"SourceCardDeclineVerificationCardholderAddress",
"SourceCheckDecline",
"SourceCheckDepositRejection",
"SourceInboundFednowTransferDecline",
"SourceInboundRealTimePaymentsTransferDecline",
"SourceWireDecline",
]
Expand Down Expand Up @@ -871,6 +872,30 @@ class SourceCheckDepositRejection(BaseModel):
"""


class SourceInboundFednowTransferDecline(BaseModel):
reason: Literal[
"account_number_canceled",
"account_number_disabled",
"account_restricted",
"group_locked",
"entity_not_active",
"fednow_not_enabled",
]
"""Why the transfer was declined.

- `account_number_canceled` - The account number is canceled.
- `account_number_disabled` - The account number is disabled.
- `account_restricted` - Your account is restricted.
- `group_locked` - Your account is inactive.
- `entity_not_active` - The account's entity is not active.
- `fednow_not_enabled` - Your account is not enabled to receive FedNow
transfers.
"""

transfer_id: str
"""The identifier of the FedNow Transfer that led to this declined transaction."""


class SourceInboundRealTimePaymentsTransferDecline(BaseModel):
amount: int
"""The declined amount in the minor unit of the destination account currency.
Expand Down Expand Up @@ -977,6 +1002,7 @@ class Source(BaseModel):
"card_decline",
"check_decline",
"inbound_real_time_payments_transfer_decline",
"inbound_fednow_transfer_decline",
"wire_decline",
"check_deposit_rejection",
"other",
Expand All @@ -994,6 +1020,8 @@ class Source(BaseModel):
- `inbound_real_time_payments_transfer_decline` - Inbound Real-Time Payments
Transfer Decline: details will be under the
`inbound_real_time_payments_transfer_decline` object.
- `inbound_fednow_transfer_decline` - Inbound FedNow Transfer Decline: details
will be under the `inbound_fednow_transfer_decline` object.
- `wire_decline` - Wire Decline: details will be under the `wire_decline`
object.
- `check_deposit_rejection` - Check Deposit Rejection: details will be under the
Expand All @@ -1016,6 +1044,13 @@ class Source(BaseModel):
equal to `check_deposit_rejection`.
"""

inbound_fednow_transfer_decline: Optional[SourceInboundFednowTransferDecline] = None
"""An Inbound FedNow Transfer Decline object.

This field will be present in the JSON response if and only if `category` is
equal to `inbound_fednow_transfer_decline`.
"""

inbound_real_time_payments_transfer_decline: Optional[SourceInboundRealTimePaymentsTransferDecline] = None
"""An Inbound Real-Time Payments Transfer Decline object.

Expand Down
1 change: 1 addition & 0 deletions src/increase/types/declined_transaction_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class DeclinedTransactionListParams(TypedDict, total=False):
"card_decline",
"check_decline",
"inbound_real_time_payments_transfer_decline",
"inbound_fednow_transfer_decline",
"wire_decline",
"check_deposit_rejection",
"other",
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class Event(BaseModel):
"inbound_ach_transfer_return.updated",
"inbound_check_deposit.created",
"inbound_check_deposit.updated",
"inbound_fednow_transfer.created",
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_transfer.created",
Expand Down Expand Up @@ -197,6 +199,10 @@ class Event(BaseModel):
created.
- `inbound_check_deposit.updated` - Occurs whenever an Inbound Check Deposit is
updated.
- `inbound_fednow_transfer.created` - Occurs whenever an Inbound FedNow Transfer
is created.
- `inbound_fednow_transfer.updated` - Occurs whenever an Inbound FedNow Transfer
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Expand Down
2 changes: 2 additions & 0 deletions src/increase/types/event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class EventListParams(TypedDict, total=False):
"inbound_ach_transfer_return.updated",
"inbound_check_deposit.created",
"inbound_check_deposit.updated",
"inbound_fednow_transfer.created",
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_transfer.created",
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class EventSubscription(BaseModel):
"inbound_ach_transfer_return.updated",
"inbound_check_deposit.created",
"inbound_check_deposit.updated",
"inbound_fednow_transfer.created",
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_transfer.created",
Expand Down Expand Up @@ -210,6 +212,10 @@ class EventSubscription(BaseModel):
created.
- `inbound_check_deposit.updated` - Occurs whenever an Inbound Check Deposit is
updated.
- `inbound_fednow_transfer.created` - Occurs whenever an Inbound FedNow Transfer
is created.
- `inbound_fednow_transfer.updated` - Occurs whenever an Inbound FedNow Transfer
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/event_subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class EventSubscriptionCreateParams(TypedDict, total=False):
"inbound_ach_transfer_return.updated",
"inbound_check_deposit.created",
"inbound_check_deposit.updated",
"inbound_fednow_transfer.created",
"inbound_fednow_transfer.updated",
"inbound_mail_item.created",
"inbound_mail_item.updated",
"inbound_real_time_payments_transfer.created",
Expand Down Expand Up @@ -195,6 +197,10 @@ class EventSubscriptionCreateParams(TypedDict, total=False):
created.
- `inbound_check_deposit.updated` - Occurs whenever an Inbound Check Deposit is
updated.
- `inbound_fednow_transfer.created` - Occurs whenever an Inbound FedNow Transfer
is created.
- `inbound_fednow_transfer.updated` - Occurs whenever an Inbound FedNow Transfer
is updated.
- `inbound_mail_item.created` - Occurs whenever an Inbound Mail Item is created.
- `inbound_mail_item.updated` - Occurs whenever an Inbound Mail Item is updated.
- `inbound_real_time_payments_transfer.created` - Occurs whenever an Inbound
Expand Down
18 changes: 18 additions & 0 deletions src/increase/types/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"SourceInboundACHTransferReturnIntention",
"SourceInboundCheckAdjustment",
"SourceInboundCheckDepositReturnIntention",
"SourceInboundFednowTransferConfirmation",
"SourceInboundRealTimePaymentsTransferConfirmation",
"SourceInboundWireReversal",
"SourceInboundWireTransfer",
Expand Down Expand Up @@ -2005,6 +2006,11 @@ class SourceInboundCheckDepositReturnIntention(BaseModel):
"""The identifier of the Check Transfer object that was deposited."""


class SourceInboundFednowTransferConfirmation(BaseModel):
transfer_id: str
"""The identifier of the FedNow Transfer that led to this Transaction."""


class SourceInboundRealTimePaymentsTransferConfirmation(BaseModel):
amount: int
"""The amount in the minor unit of the transfer's currency.
Expand Down Expand Up @@ -2447,6 +2453,7 @@ class Source(BaseModel):
"inbound_ach_transfer_return_intention",
"inbound_check_deposit_return_intention",
"inbound_check_adjustment",
"inbound_fednow_transfer_confirmation",
"inbound_real_time_payments_transfer_confirmation",
"inbound_wire_reversal",
"inbound_wire_transfer",
Expand Down Expand Up @@ -2507,6 +2514,8 @@ class Source(BaseModel):
object.
- `inbound_check_adjustment` - Inbound Check Adjustment: details will be under
the `inbound_check_adjustment` object.
- `inbound_fednow_transfer_confirmation` - Inbound FedNow Transfer Confirmation:
details will be under the `inbound_fednow_transfer_confirmation` object.
- `inbound_real_time_payments_transfer_confirmation` - Inbound Real-Time
Payments Transfer Confirmation: details will be under the
`inbound_real_time_payments_transfer_confirmation` object.
Expand Down Expand Up @@ -2617,6 +2626,15 @@ class Source(BaseModel):
requests that it be returned.
"""

inbound_fednow_transfer_confirmation: Optional[SourceInboundFednowTransferConfirmation] = None
"""An Inbound FedNow Transfer Confirmation object.

This field will be present in the JSON response if and only if `category` is
equal to `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer
Confirmation is created when a FedNow transfer is initiated at another bank and
received by Increase.
"""

inbound_real_time_payments_transfer_confirmation: Optional[SourceInboundRealTimePaymentsTransferConfirmation] = None
"""An Inbound Real-Time Payments Transfer Confirmation object.

Expand Down
1 change: 1 addition & 0 deletions src/increase/types/transaction_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class TransactionListParams(TypedDict, total=False):
"inbound_ach_transfer_return_intention",
"inbound_check_deposit_return_intention",
"inbound_check_adjustment",
"inbound_fednow_transfer_confirmation",
"inbound_real_time_payments_transfer_confirmation",
"inbound_wire_reversal",
"inbound_wire_transfer",
Expand Down