Skip to content

Commit 2e7cf6e

Browse files
feat(api): api update
1 parent e262d6b commit 2e7cf6e

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 228
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fd1e9a0d66098ce0c20cb6c15bbb8c26a8662d52730907deb4a179aebd6b89d6.yml
3-
openapi_spec_hash: 2139b75a9f653c413775fb96f70ba794
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-29da995f8b04baed0eb2b6b038bc14f3165a3e1eae15b7a1136cce323d132bfd.yml
3+
openapi_spec_hash: ff369b84b7477f46c3f3e3edeecaf176
44
config_hash: eb2035151c7b49c2f12caf55469b8f9a

src/increase/resources/check_transfers.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def create(
5151
amount: int,
5252
fulfillment_method: Literal["physical_check", "third_party"],
5353
source_account_number_id: str,
54+
balance_check: Literal["full", "none"] | Omit = omit,
5455
check_number: str | Omit = omit,
5556
physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit,
5657
require_approval: bool | Omit = omit,
@@ -81,6 +82,15 @@ def create(
8182
source_account_number_id: The identifier of the Account Number from which to send the transfer and print
8283
on the check.
8384
85+
balance_check: How the account's available balance should be checked. Please contact
86+
[support@increase.com](mailto:support@increase.com) to enable this parameter.
87+
88+
- `full` - The available balance of the account must be at least the amount of
89+
the check, and a Pending Transaction will be created for the full amount.
90+
- `none` - No balance check will performed when the check transfer is initiated.
91+
A zero-dollar Pending Transaction will be created. The balance will still be
92+
checked when the Inbound Check Deposit is created.
93+
8494
check_number: The check number Increase should use for the check. This should not contain
8595
leading zeroes and must be unique across the `source_account_number`. If this is
8696
omitted, Increase will generate a check number for you.
@@ -113,6 +123,7 @@ def create(
113123
"amount": amount,
114124
"fulfillment_method": fulfillment_method,
115125
"source_account_number_id": source_account_number_id,
126+
"balance_check": balance_check,
116127
"check_number": check_number,
117128
"physical_check": physical_check,
118129
"require_approval": require_approval,
@@ -390,6 +401,7 @@ async def create(
390401
amount: int,
391402
fulfillment_method: Literal["physical_check", "third_party"],
392403
source_account_number_id: str,
404+
balance_check: Literal["full", "none"] | Omit = omit,
393405
check_number: str | Omit = omit,
394406
physical_check: check_transfer_create_params.PhysicalCheck | Omit = omit,
395407
require_approval: bool | Omit = omit,
@@ -420,6 +432,15 @@ async def create(
420432
source_account_number_id: The identifier of the Account Number from which to send the transfer and print
421433
on the check.
422434
435+
balance_check: How the account's available balance should be checked. Please contact
436+
[support@increase.com](mailto:support@increase.com) to enable this parameter.
437+
438+
- `full` - The available balance of the account must be at least the amount of
439+
the check, and a Pending Transaction will be created for the full amount.
440+
- `none` - No balance check will performed when the check transfer is initiated.
441+
A zero-dollar Pending Transaction will be created. The balance will still be
442+
checked when the Inbound Check Deposit is created.
443+
423444
check_number: The check number Increase should use for the check. This should not contain
424445
leading zeroes and must be unique across the `source_account_number`. If this is
425446
omitted, Increase will generate a check number for you.
@@ -452,6 +473,7 @@ async def create(
452473
"amount": amount,
453474
"fulfillment_method": fulfillment_method,
454475
"source_account_number_id": source_account_number_id,
476+
"balance_check": balance_check,
455477
"check_number": check_number,
456478
"physical_check": physical_check,
457479
"require_approval": require_approval,

src/increase/types/check_transfer_create_params.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ class CheckTransferCreateParams(TypedDict, total=False):
3737
on the check.
3838
"""
3939

40+
balance_check: Literal["full", "none"]
41+
"""How the account's available balance should be checked.
42+
43+
Please contact [support@increase.com](mailto:support@increase.com) to enable
44+
this parameter.
45+
46+
- `full` - The available balance of the account must be at least the amount of
47+
the check, and a Pending Transaction will be created for the full amount.
48+
- `none` - No balance check will performed when the check transfer is initiated.
49+
A zero-dollar Pending Transaction will be created. The balance will still be
50+
checked when the Inbound Check Deposit is created.
51+
"""
52+
4053
check_number: str
4154
"""The check number Increase should use for the check.
4255

tests/api_resources/test_check_transfers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
3838
amount=1000,
3939
fulfillment_method="physical_check",
4040
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
41+
balance_check="full",
4142
check_number="x",
4243
physical_check={
4344
"mailing_address": {
@@ -323,6 +324,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
323324
amount=1000,
324325
fulfillment_method="physical_check",
325326
source_account_number_id="account_number_v18nkfqm6afpsrvy82b2",
327+
balance_check="full",
326328
check_number="x",
327329
physical_check={
328330
"mailing_address": {

0 commit comments

Comments
 (0)