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.182.0"
".": "0.183.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-acd347798fc268a8063bde83e83ff69541a1feb789e40bc54b3798937a7492ca.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-503b3369995201c52ca638ced198ae20c73a0b26e5db67b8963e107bff5d1c2d.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.183.0 (2025-01-30)

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

### Features

* **api:** api update ([#935](https://github.com/Increase/increase-python/issues/935)) ([274426b](https://github.com/Increase/increase-python/commit/274426b1f2aa958f2fbd3b282275411512ede76a))

## 0.182.0 (2025-01-30)

Full Changelog: [v0.181.0...v0.182.0](https://github.com/Increase/increase-python/compare/v0.181.0...v0.182.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.182.0"
version = "0.183.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.182.0" # x-release-please-version
__version__ = "0.183.0" # x-release-please-version
20 changes: 10 additions & 10 deletions src/increase/resources/check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def create(
*,
account_id: str,
amount: int,
fulfillment_method: Literal["physical_check", "third_party"],
source_account_number_id: str,
fulfillment_method: Literal["physical_check", "third_party"] | NotGiven = NOT_GIVEN,
physical_check: check_transfer_create_params.PhysicalCheck | NotGiven = NOT_GIVEN,
require_approval: bool | NotGiven = NOT_GIVEN,
third_party: check_transfer_create_params.ThirdParty | NotGiven = NOT_GIVEN,
Expand All @@ -77,16 +77,16 @@ def create(

amount: The transfer amount in USD cents.

source_account_number_id: The identifier of the Account Number from which to send the transfer and print
on the check.

fulfillment_method: Whether Increase will print and mail the check or if you will do it yourself.

- `physical_check` - Increase will print and mail a physical check.
- `third_party` - Increase will not print a check; you are responsible for
printing and mailing a check with the provided account number, routing number,
check number, and amount.

source_account_number_id: The identifier of the Account Number from which to send the transfer and print
on the check.

physical_check: Details relating to the physical check that Increase will print and mail. This
is required if `fulfillment_method` is equal to `physical_check`. It must not be
included if any other `fulfillment_method` is provided.
Expand All @@ -113,8 +113,8 @@ def create(
{
"account_id": account_id,
"amount": amount,
"source_account_number_id": source_account_number_id,
"fulfillment_method": fulfillment_method,
"source_account_number_id": source_account_number_id,
"physical_check": physical_check,
"require_approval": require_approval,
"third_party": third_party,
Expand Down Expand Up @@ -387,8 +387,8 @@ async def create(
*,
account_id: str,
amount: int,
fulfillment_method: Literal["physical_check", "third_party"],
source_account_number_id: str,
fulfillment_method: Literal["physical_check", "third_party"] | NotGiven = NOT_GIVEN,
physical_check: check_transfer_create_params.PhysicalCheck | NotGiven = NOT_GIVEN,
require_approval: bool | NotGiven = NOT_GIVEN,
third_party: check_transfer_create_params.ThirdParty | NotGiven = NOT_GIVEN,
Expand All @@ -408,16 +408,16 @@ async def create(

amount: The transfer amount in USD cents.

source_account_number_id: The identifier of the Account Number from which to send the transfer and print
on the check.

fulfillment_method: Whether Increase will print and mail the check or if you will do it yourself.

- `physical_check` - Increase will print and mail a physical check.
- `third_party` - Increase will not print a check; you are responsible for
printing and mailing a check with the provided account number, routing number,
check number, and amount.

source_account_number_id: The identifier of the Account Number from which to send the transfer and print
on the check.

physical_check: Details relating to the physical check that Increase will print and mail. This
is required if `fulfillment_method` is equal to `physical_check`. It must not be
included if any other `fulfillment_method` is provided.
Expand All @@ -444,8 +444,8 @@ async def create(
{
"account_id": account_id,
"amount": amount,
"source_account_number_id": source_account_number_id,
"fulfillment_method": fulfillment_method,
"source_account_number_id": source_account_number_id,
"physical_check": physical_check,
"require_approval": require_approval,
"third_party": third_party,
Expand Down
14 changes: 7 additions & 7 deletions src/increase/types/check_transfer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ class CheckTransferCreateParams(TypedDict, total=False):
amount: Required[int]
"""The transfer amount in USD cents."""

source_account_number_id: Required[str]
"""
The identifier of the Account Number from which to send the transfer and print
on the check.
"""

fulfillment_method: Literal["physical_check", "third_party"]
fulfillment_method: Required[Literal["physical_check", "third_party"]]
"""Whether Increase will print and mail the check or if you will do it yourself.

- `physical_check` - Increase will print and mail a physical check.
Expand All @@ -35,6 +29,12 @@ class CheckTransferCreateParams(TypedDict, total=False):
check number, and amount.
"""

source_account_number_id: Required[str]
"""
The identifier of the Account Number from which to send the transfer and print
on the check.
"""

physical_check: PhysicalCheck
"""Details relating to the physical check that Increase will print and mail.

Expand Down
10 changes: 8 additions & 2 deletions tests/api_resources/test_check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def test_method_create(self, client: Increase) -> None:
check_transfer = client.check_transfers.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
)
assert_matches_type(CheckTransfer, check_transfer, path=["response"])
Expand All @@ -35,8 +36,8 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
check_transfer = client.check_transfers.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
physical_check={
"mailing_address": {
"city": "New York",
Expand Down Expand Up @@ -69,6 +70,7 @@ def test_raw_response_create(self, client: Increase) -> None:
response = client.check_transfers.with_raw_response.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
)

Expand All @@ -82,6 +84,7 @@ def test_streaming_response_create(self, client: Increase) -> None:
with client.check_transfers.with_streaming_response.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -302,6 +305,7 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None:
check_transfer = await async_client.check_transfers.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
)
assert_matches_type(CheckTransfer, check_transfer, path=["response"])
Expand All @@ -311,8 +315,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
check_transfer = await async_client.check_transfers.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
physical_check={
"mailing_address": {
"city": "New York",
Expand Down Expand Up @@ -345,6 +349,7 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None:
response = await async_client.check_transfers.with_raw_response.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
)

Expand All @@ -358,6 +363,7 @@ async def test_streaming_response_create(self, async_client: AsyncIncrease) -> N
async with async_client.check_transfers.with_streaming_response.create(
account_id="account_in71c4amph0vgo2qllky",
amount=1000,
fulfillment_method="physical_check",
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
) as response:
assert not response.is_closed
Expand Down