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.327.0"
".": "0.328.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-e81b9b39563d895c47a1eceb9fd7cac6bc3f8e6f21c57c1d01ae2cdf360b73ce.yml
openapi_spec_hash: 9eee6e29a9d53623d380e8afae9ef482
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d19e08b9b1b9aa23a3a0c86db6eb3500b3a4aaf2d9f549a0177c5bebe67d098.yml
openapi_spec_hash: eec4190f1aca04351de8891c6a9b37da
config_hash: e1885b38eded054b77308a024c5d80cc
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 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)

### Features

* **api:** api update ([072b28a](https://github.com/Increase/increase-python/commit/072b28a73f3db917ffc1e31b80196d11bf29dd32))

## 0.327.0 (2025-09-16)

Full Changelog: [v0.326.0...v0.327.0](https://github.com/Increase/increase-python/compare/v0.326.0...v0.327.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.327.0"
version = "0.328.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.327.0" # x-release-please-version
__version__ = "0.328.0" # x-release-please-version
16 changes: 8 additions & 8 deletions src/increase/resources/wire_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def create(
account_id: str,
amount: int,
beneficiary_name: str,
message_to_recipient: str,
account_number: str | NotGiven = NOT_GIVEN,
beneficiary_address_line1: str | NotGiven = NOT_GIVEN,
beneficiary_address_line2: str | NotGiven = NOT_GIVEN,
Expand All @@ -59,6 +58,7 @@ def create(
originator_address_line2: str | NotGiven = NOT_GIVEN,
originator_address_line3: str | NotGiven = NOT_GIVEN,
originator_name: str | NotGiven = NOT_GIVEN,
remittance: wire_transfer_create_params.Remittance | NotGiven = NOT_GIVEN,
require_approval: bool | NotGiven = NOT_GIVEN,
routing_number: str | NotGiven = NOT_GIVEN,
source_account_number_id: str | NotGiven = NOT_GIVEN,
Expand All @@ -80,8 +80,6 @@ def create(

beneficiary_name: The beneficiary's name.

message_to_recipient: The message that will show on the recipient's bank statement.

account_number: The account number for the destination account.

beneficiary_address_line1: The beneficiary's address line 1.
Expand All @@ -108,6 +106,8 @@ def create(
originator_name: The originator's name. This is only necessary if you're transferring from a
commingled account. Otherwise, we'll use the associated entity's details.

remittance: Additional remittance information related to the wire transfer.

require_approval: Whether the transfer requires explicit approval via the dashboard or API.

routing_number: The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
Expand All @@ -132,7 +132,6 @@ def create(
"account_id": account_id,
"amount": amount,
"beneficiary_name": beneficiary_name,
"message_to_recipient": message_to_recipient,
"account_number": account_number,
"beneficiary_address_line1": beneficiary_address_line1,
"beneficiary_address_line2": beneficiary_address_line2,
Expand All @@ -143,6 +142,7 @@ def create(
"originator_address_line2": originator_address_line2,
"originator_address_line3": originator_address_line3,
"originator_name": originator_name,
"remittance": remittance,
"require_approval": require_approval,
"routing_number": routing_number,
"source_account_number_id": source_account_number_id,
Expand Down Expand Up @@ -370,7 +370,6 @@ async def create(
account_id: str,
amount: int,
beneficiary_name: str,
message_to_recipient: str,
account_number: str | NotGiven = NOT_GIVEN,
beneficiary_address_line1: str | NotGiven = NOT_GIVEN,
beneficiary_address_line2: str | NotGiven = NOT_GIVEN,
Expand All @@ -381,6 +380,7 @@ async def create(
originator_address_line2: str | NotGiven = NOT_GIVEN,
originator_address_line3: str | NotGiven = NOT_GIVEN,
originator_name: str | NotGiven = NOT_GIVEN,
remittance: wire_transfer_create_params.Remittance | NotGiven = NOT_GIVEN,
require_approval: bool | NotGiven = NOT_GIVEN,
routing_number: str | NotGiven = NOT_GIVEN,
source_account_number_id: str | NotGiven = NOT_GIVEN,
Expand All @@ -402,8 +402,6 @@ async def create(

beneficiary_name: The beneficiary's name.

message_to_recipient: The message that will show on the recipient's bank statement.

account_number: The account number for the destination account.

beneficiary_address_line1: The beneficiary's address line 1.
Expand All @@ -430,6 +428,8 @@ async def create(
originator_name: The originator's name. This is only necessary if you're transferring from a
commingled account. Otherwise, we'll use the associated entity's details.

remittance: Additional remittance information related to the wire transfer.

require_approval: Whether the transfer requires explicit approval via the dashboard or API.

routing_number: The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
Expand All @@ -454,7 +454,6 @@ async def create(
"account_id": account_id,
"amount": amount,
"beneficiary_name": beneficiary_name,
"message_to_recipient": message_to_recipient,
"account_number": account_number,
"beneficiary_address_line1": beneficiary_address_line1,
"beneficiary_address_line2": beneficiary_address_line2,
Expand All @@ -465,6 +464,7 @@ async def create(
"originator_address_line2": originator_address_line2,
"originator_address_line3": originator_address_line3,
"originator_name": originator_name,
"remittance": remittance,
"require_approval": require_approval,
"routing_number": routing_number,
"source_account_number_id": source_account_number_id,
Expand Down
67 changes: 59 additions & 8 deletions src/increase/types/wire_transfer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import datetime
from typing import Optional
from datetime import date, datetime
from typing_extensions import Literal

from .._models import BaseModel
Expand All @@ -14,13 +14,16 @@
"CreatedByAPIKey",
"CreatedByOAuthApplication",
"CreatedByUser",
"Remittance",
"RemittanceTax",
"RemittanceUnstructured",
"Reversal",
"Submission",
]


class Approval(BaseModel):
approved_at: datetime
approved_at: datetime.datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the transfer was approved.
Expand All @@ -34,7 +37,7 @@ class Approval(BaseModel):


class Cancellation(BaseModel):
canceled_at: datetime
canceled_at: datetime.datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the Transfer was canceled.
Expand Down Expand Up @@ -83,11 +86,56 @@ class CreatedBy(BaseModel):
"""If present, details about the User that created the transfer."""


class RemittanceTax(BaseModel):
date: datetime.date
"""The month and year the tax payment is for, in YYYY-MM-DD format.

The day is ignored.
"""

identification_number: str
"""
The 9-digit Tax Identification Number (TIN) or Employer Identification Number
(EIN).
"""

type_code: str
"""The 5-character tax type code."""


class RemittanceUnstructured(BaseModel):
message: str
"""The message to the beneficiary."""


class Remittance(BaseModel):
category: Literal["unstructured", "tax"]
"""The type of remittance information being passed.

- `unstructured` - The wire transfer contains unstructured remittance
information.
- `tax` - The wire transfer is for tax payment purposes to the Internal Revenue
Service (IRS).
"""

tax: Optional[RemittanceTax] = None
"""Internal Revenue Service (IRS) tax repayment information.

Required if `category` is equal to `tax`.
"""

unstructured: Optional[RemittanceUnstructured] = None
"""Unstructured remittance information.

Required if `category` is equal to `unstructured`.
"""


class Reversal(BaseModel):
amount: int
"""The amount that was reversed in USD cents."""

created_at: datetime
created_at: datetime.datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the reversal was created.
Expand All @@ -101,7 +149,7 @@ class Reversal(BaseModel):
The description on the reversal message from Fedwire, set by the reversing bank.
"""

input_cycle_date: date
input_cycle_date: datetime.date
"""The Fedwire cycle date for the wire reversal.

The "Fedwire day" begins at 9:00 PM Eastern Time on the evening before the
Expand Down Expand Up @@ -144,7 +192,7 @@ class Submission(BaseModel):
input_message_accountability_data: str
"""The accountability data for the submission."""

submitted_at: datetime
submitted_at: datetime.datetime
"""When this wire transfer was submitted to Fedwire."""


Expand Down Expand Up @@ -185,7 +233,7 @@ class WireTransfer(BaseModel):
approved, this will contain details of the cancellation.
"""

created_at: datetime
created_at: datetime.datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the transfer was created.
Expand Down Expand Up @@ -224,7 +272,7 @@ class WireTransfer(BaseModel):
was sent.
"""

message_to_recipient: Optional[str] = None
message_to_recipient: str
"""The message that will show on the recipient's bank statement."""

network: Literal["wire"]
Expand All @@ -250,6 +298,9 @@ class WireTransfer(BaseModel):
by someone else in your organization.
"""

remittance: Optional[Remittance] = None
"""Remittance information sent with the wire transfer."""

reversal: Optional[Reversal] = None
"""If your transfer is reversed, this will contain details of the reversal."""

Expand Down
59 changes: 54 additions & 5 deletions src/increase/types/wire_transfer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

from __future__ import annotations

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

__all__ = ["WireTransferCreateParams"]
from .._utils import PropertyInfo

__all__ = ["WireTransferCreateParams", "Remittance", "RemittanceTax", "RemittanceUnstructured"]


class WireTransferCreateParams(TypedDict, total=False):
Expand All @@ -17,9 +21,6 @@ class WireTransferCreateParams(TypedDict, total=False):
beneficiary_name: Required[str]
"""The beneficiary's name."""

message_to_recipient: Required[str]
"""The message that will show on the recipient's bank statement."""

account_number: str
"""The account number for the destination account."""

Expand Down Expand Up @@ -73,6 +74,9 @@ class WireTransferCreateParams(TypedDict, total=False):
Otherwise, we'll use the associated entity's details.
"""

remittance: Remittance
"""Additional remittance information related to the wire transfer."""

require_approval: bool
"""Whether the transfer requires explicit approval via the dashboard or API."""

Expand All @@ -84,3 +88,48 @@ class WireTransferCreateParams(TypedDict, total=False):

source_account_number_id: str
"""The ID of an Account Number that will be passed to the wire's recipient"""


class RemittanceTax(TypedDict, total=False):
date: Required[Annotated[Union[str, datetime.date], PropertyInfo(format="iso8601")]]
"""The month and year the tax payment is for, in YYYY-MM-DD format.

The day is ignored.
"""

identification_number: Required[str]
"""
The 9-digit Tax Identification Number (TIN) or Employer Identification Number
(EIN).
"""

type_code: Required[str]
"""The 5-character tax type code."""


class RemittanceUnstructured(TypedDict, total=False):
message: Required[str]
"""The message to the beneficiary."""


class Remittance(TypedDict, total=False):
category: Required[Literal["unstructured", "tax"]]
"""The type of remittance information being passed.

- `unstructured` - The wire transfer contains unstructured remittance
information.
- `tax` - The wire transfer is for tax payment purposes to the Internal Revenue
Service (IRS).
"""

tax: RemittanceTax
"""Internal Revenue Service (IRS) tax repayment information.

Required if `category` is equal to `tax`.
"""

unstructured: RemittanceUnstructured
"""Unstructured remittance information.

Required if `category` is equal to `unstructured`.
"""
Loading