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
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
run: ./scripts/lint

build:
if: github.repository == 'stainless-sdks/increase-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
runs-on: ${{ github.repository == 'stainless-sdks/increase-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -61,12 +61,14 @@ jobs:
run: rye build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/increase-python'
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/increase-python'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
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.297.0"
".": "0.298.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: 215
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ead33c34bfbcc450c88d09e7d880fa5be57c504a66102e098ac03c5b220dea80.yml
openapi_spec_hash: 1544de50d73f80b843d5761009764ab6
config_hash: 0b0a2503208283b283fc5bc6df6a07a5
configured_endpoints: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-658e39148e80216f2f6064ec405b424afb64c63842e8f6c61f14100bb149d069.yml
openapi_spec_hash: 38618257a4272f341695cd522f3e6dce
config_hash: 29e452035e915a07cd64333b10a83077
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 0.298.0 (2025-08-25)

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

### Features

* **api:** api update ([2f99575](https://github.com/Increase/increase-python/commit/2f995756e809f840847f978c81d47f6a19834ac9))
* **api:** api update ([cd71c6e](https://github.com/Increase/increase-python/commit/cd71c6e5fb9db33e4d84cfb6b4e07cb8acea0e57))
* **api:** api update ([5cef34f](https://github.com/Increase/increase-python/commit/5cef34f7fe43f7a82f315a53e0f59938c4bb7885))
* **api:** api update ([58beb3f](https://github.com/Increase/increase-python/commit/58beb3f7aa0d89787f2aac817926b89eb74e212d))


### Chores

* **internal:** change ci workflow machines ([37b5b77](https://github.com/Increase/increase-python/commit/37b5b77126340c76eae6b65bea5312d33f9cf4c0))
* update github action ([72a863f](https://github.com/Increase/increase-python/commit/72a863f01af3fea1e41f0d0dc5e0571a5b88c246))

## 0.297.0 (2025-08-21)

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

- <code title="post /simulations/wire_drawdown_requests/{wire_drawdown_request_id}/refuse">client.simulations.wire_drawdown_requests.<a href="./src/increase/resources/simulations/wire_drawdown_requests.py">refuse</a>(wire_drawdown_request_id) -> <a href="./src/increase/types/wire_drawdown_request.py">WireDrawdownRequest</a></code>
- <code title="post /simulations/wire_drawdown_requests/{wire_drawdown_request_id}/submit">client.simulations.wire_drawdown_requests.<a href="./src/increase/resources/simulations/wire_drawdown_requests.py">submit</a>(wire_drawdown_request_id) -> <a href="./src/increase/types/wire_drawdown_request.py">WireDrawdownRequest</a></code>

## InboundWireDrawdownRequests

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.297.0"
version = "0.298.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.297.0" # x-release-please-version
__version__ = "0.298.0" # x-release-please-version
230 changes: 114 additions & 116 deletions src/increase/resources/simulations/inbound_wire_drawdown_requests.py

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions src/increase/resources/simulations/wire_drawdown_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,50 @@ def refuse(
cast_to=WireDrawdownRequest,
)

def submit(
self,
wire_drawdown_request_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.
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,
) -> WireDrawdownRequest:
"""
Simulates a Wire Drawdown Request being submitted to Fedwire.

Args:
wire_drawdown_request_id: The identifier of the Wire Drawdown Request you wish to submit.

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 wire_drawdown_request_id:
raise ValueError(
f"Expected a non-empty value for `wire_drawdown_request_id` but received {wire_drawdown_request_id!r}"
)
return self._post(
f"/simulations/wire_drawdown_requests/{wire_drawdown_request_id}/submit",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=WireDrawdownRequest,
)


class AsyncWireDrawdownRequestsResource(AsyncAPIResource):
@cached_property
Expand Down Expand Up @@ -148,6 +192,50 @@ async def refuse(
cast_to=WireDrawdownRequest,
)

async def submit(
self,
wire_drawdown_request_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.
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,
) -> WireDrawdownRequest:
"""
Simulates a Wire Drawdown Request being submitted to Fedwire.

Args:
wire_drawdown_request_id: The identifier of the Wire Drawdown Request you wish to submit.

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 wire_drawdown_request_id:
raise ValueError(
f"Expected a non-empty value for `wire_drawdown_request_id` but received {wire_drawdown_request_id!r}"
)
return await self._post(
f"/simulations/wire_drawdown_requests/{wire_drawdown_request_id}/submit",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=WireDrawdownRequest,
)


class WireDrawdownRequestsResourceWithRawResponse:
def __init__(self, wire_drawdown_requests: WireDrawdownRequestsResource) -> None:
Expand All @@ -156,6 +244,9 @@ def __init__(self, wire_drawdown_requests: WireDrawdownRequestsResource) -> None
self.refuse = to_raw_response_wrapper(
wire_drawdown_requests.refuse,
)
self.submit = to_raw_response_wrapper(
wire_drawdown_requests.submit,
)


class AsyncWireDrawdownRequestsResourceWithRawResponse:
Expand All @@ -165,6 +256,9 @@ def __init__(self, wire_drawdown_requests: AsyncWireDrawdownRequestsResource) ->
self.refuse = async_to_raw_response_wrapper(
wire_drawdown_requests.refuse,
)
self.submit = async_to_raw_response_wrapper(
wire_drawdown_requests.submit,
)


class WireDrawdownRequestsResourceWithStreamingResponse:
Expand All @@ -174,6 +268,9 @@ def __init__(self, wire_drawdown_requests: WireDrawdownRequestsResource) -> None
self.refuse = to_streamed_response_wrapper(
wire_drawdown_requests.refuse,
)
self.submit = to_streamed_response_wrapper(
wire_drawdown_requests.submit,
)


class AsyncWireDrawdownRequestsResourceWithStreamingResponse:
Expand All @@ -183,3 +280,6 @@ def __init__(self, wire_drawdown_requests: AsyncWireDrawdownRequestsResource) ->
self.refuse = async_to_streamed_response_wrapper(
wire_drawdown_requests.refuse,
)
self.submit = async_to_streamed_response_wrapper(
wire_drawdown_requests.submit,
)
9 changes: 8 additions & 1 deletion src/increase/types/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ class Account(BaseModel):
id: str
"""The Account identifier."""

account_revenue_rate: Optional[str] = None
"""
The account revenue rate currently being earned on the account, as a string
containing a decimal number. For example, a 1% account revenue rate would be
represented as "0.01".
"""

bank: Literal["core_bank", "first_internet_bank", "grasshopper_bank"]
"""The bank the Account is with.

Expand Down Expand Up @@ -77,7 +84,7 @@ class Account(BaseModel):

interest_rate: str
"""
The Interest Rate currently being earned on the account, as a string containing
The interest rate currently being earned on the account, as a string containing
a decimal number. For example, a 1% interest rate would be represented as
"0.01".
"""
Expand Down
95 changes: 44 additions & 51 deletions src/increase/types/inbound_wire_drawdown_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,80 +16,63 @@ class InboundWireDrawdownRequest(BaseModel):
amount: int
"""The amount being requested in cents."""

beneficiary_account_number: str
"""The drawdown request's beneficiary's account number."""
created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the inbound wire drawdown requested was created.
"""

beneficiary_address_line1: Optional[str] = None
"""Line 1 of the drawdown request's beneficiary's address."""
creditor_account_number: str
"""The creditor's account number."""

beneficiary_address_line2: Optional[str] = None
"""Line 2 of the drawdown request's beneficiary's address."""
creditor_address_line1: Optional[str] = None
"""A free-form address field set by the sender."""

beneficiary_address_line3: Optional[str] = None
"""Line 3 of the drawdown request's beneficiary's address."""
creditor_address_line2: Optional[str] = None
"""A free-form address field set by the sender."""

beneficiary_name: Optional[str] = None
"""The drawdown request's beneficiary's name."""
creditor_address_line3: Optional[str] = None
"""A free-form address field set by the sender."""

beneficiary_routing_number: str
"""The drawdown request's beneficiary's routing number."""
creditor_name: Optional[str] = None
"""A name set by the sender."""

created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the inbound wire drawdown requested was created.
"""
creditor_routing_number: str
"""The creditor's routing number."""

currency: str
"""
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
requested. Will always be "USD".
"""

message_to_recipient: Optional[str] = None
"""A message from the drawdown request's originator."""

originator_account_number: Optional[str] = None
"""The drawdown request's originator's account number."""
debtor_address_line1: Optional[str] = None
"""A free-form address field set by the sender."""

originator_address_line1: Optional[str] = None
"""Line 1 of the drawdown request's originator's address."""
debtor_address_line2: Optional[str] = None
"""A free-form address field set by the sender."""

originator_address_line2: Optional[str] = None
"""Line 2 of the drawdown request's originator's address."""
debtor_address_line3: Optional[str] = None
"""A free-form address field set by the sender."""

originator_address_line3: Optional[str] = None
"""Line 3 of the drawdown request's originator's address."""
debtor_name: Optional[str] = None
"""A name set by the sender."""

originator_name: Optional[str] = None
"""The drawdown request's originator's name."""

originator_routing_number: str
"""The drawdown request's originator's routing number."""

originator_to_beneficiary_information_line1: Optional[str] = None
end_to_end_identification: Optional[str] = None
"""
Line 1 of the information conveyed from the originator of the message to the
beneficiary.
A free-form reference string set by the sender, to help identify the drawdown
request.
"""

originator_to_beneficiary_information_line2: Optional[str] = None
input_message_accountability_data: Optional[str] = None
"""
Line 2 of the information conveyed from the originator of the message to the
beneficiary.
A unique identifier available to the originating and receiving banks, commonly
abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
service and is helpful when debugging wires with the originating bank.
"""

originator_to_beneficiary_information_line3: Optional[str] = None
"""
Line 3 of the information conveyed from the originator of the message to the
beneficiary.
"""

originator_to_beneficiary_information_line4: Optional[str] = None
"""
Line 4 of the information conveyed from the originator of the message to the
beneficiary.
"""
instruction_identification: Optional[str] = None
"""The sending bank's identifier for the drawdown request."""

recipient_account_number_id: str
"""
Expand All @@ -102,3 +85,13 @@ class InboundWireDrawdownRequest(BaseModel):

For this resource it will always be `inbound_wire_drawdown_request`.
"""

unique_end_to_end_transaction_reference: Optional[str] = None
"""
The Unique End-to-end Transaction Reference
([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
of the drawdown request.
"""

unstructured_remittance_information: Optional[str] = None
"""A free-form message set by the sender."""
Loading