Skip to content

Commit bb2f23d

Browse files
feat(api): api update
1 parent b36eafb commit bb2f23d

File tree

8 files changed

+32
-2
lines changed

8 files changed

+32
-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: 229
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a66f039751a4ffdebbbf533f24f55cd2c42708b9cf105512849849fddaafb5e8.yml
3-
openapi_spec_hash: c265609bceb053f898ea14b1191fe927
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-bd464d151612058d8029150b376949b22d5515af23621465c0ce1c1069b91644.yml
3+
openapi_spec_hash: e60e1548c523a0ee7c9daa1bd988cbc5
44
config_hash: ca1425272e17fa23d4466d33492334fa

src/increase/resources/files.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def create(
5555
"check_image_back",
5656
"mailed_check_image",
5757
"check_attachment",
58+
"check_voucher_image",
5859
"form_ss_4",
5960
"identity_document",
6061
"loan_application_supplemental_document",
@@ -97,6 +98,9 @@ def create(
9798
- `mailed_check_image` - An image of a check that was mailed to a recipient.
9899
- `check_attachment` - A document to be printed on an additional page and mailed
99100
with a check that you've requested Increase print.
101+
- `check_voucher_image` - An image to be used as the check voucher image, which
102+
is printed in the middle of the trifold area of a check. This must be a
103+
2550x1100 pixel PNG.
100104
- `form_ss_4` - IRS Form SS-4.
101105
- `identity_document` - An image of a government-issued ID.
102106
- `loan_application_supplemental_document` - A supplemental document for a Loan
@@ -283,6 +287,7 @@ async def create(
283287
"check_image_back",
284288
"mailed_check_image",
285289
"check_attachment",
290+
"check_voucher_image",
286291
"form_ss_4",
287292
"identity_document",
288293
"loan_application_supplemental_document",
@@ -325,6 +330,9 @@ async def create(
325330
- `mailed_check_image` - An image of a check that was mailed to a recipient.
326331
- `check_attachment` - A document to be printed on an additional page and mailed
327332
with a check that you've requested Increase print.
333+
- `check_voucher_image` - An image to be used as the check voucher image, which
334+
is printed in the middle of the trifold area of a check. This must be a
335+
2550x1100 pixel PNG.
328336
- `form_ss_4` - IRS Form SS-4.
329337
- `identity_document` - An image of a government-issued ID.
330338
- `loan_application_supplemental_document` - A supplemental document for a Loan

src/increase/types/check_transfer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ class PhysicalCheck(BaseModel):
185185
attachment_file_id: Optional[str] = None
186186
"""The ID of the file for the check attachment."""
187187

188+
check_voucher_image_file_id: Optional[str] = None
189+
"""The ID of the file for the check voucher image."""
190+
188191
mailing_address: PhysicalCheckMailingAddress
189192
"""Details for where Increase will mail the check."""
190193

src/increase/types/check_transfer_create_params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ class PhysicalCheckTyped(TypedDict, total=False):
161161
https://increase.com/documentation/originating-checks#printing-checks .
162162
"""
163163

164+
check_voucher_image_file_id: str
165+
"""The ID of a File to be used as the check voucher image.
166+
167+
This must have `purpose: check_voucher_image`. For details on pricing and
168+
restrictions, see
169+
https://increase.com/documentation/originating-checks#printing-checks .
170+
"""
171+
164172
note: str
165173
"""The descriptor that will be printed on the letter included with the check."""
166174

src/increase/types/file.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class File(BaseModel):
5050
"processed_check_image_back",
5151
"mailed_check_image",
5252
"check_attachment",
53+
"check_voucher_image",
5354
"inbound_mail_item",
5455
"form_1099_int",
5556
"form_1099_misc",
@@ -90,6 +91,9 @@ class File(BaseModel):
9091
- `mailed_check_image` - An image of a check that was mailed to a recipient.
9192
- `check_attachment` - A document to be printed on an additional page and mailed
9293
with a check that you've requested Increase print.
94+
- `check_voucher_image` - An image to be used as the check voucher image, which
95+
is printed in the middle of the trifold area of a check. This must be a
96+
2550x1100 pixel PNG.
9397
- `inbound_mail_item` - A scanned mail item sent to Increase.
9498
- `form_1099_int` - IRS Form 1099-INT.
9599
- `form_1099_misc` - IRS Form 1099-MISC.

src/increase/types/file_create_params.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class FileCreateParams(TypedDict, total=False):
2525
"check_image_back",
2626
"mailed_check_image",
2727
"check_attachment",
28+
"check_voucher_image",
2829
"form_ss_4",
2930
"identity_document",
3031
"loan_application_supplemental_document",
@@ -49,6 +50,9 @@ class FileCreateParams(TypedDict, total=False):
4950
- `mailed_check_image` - An image of a check that was mailed to a recipient.
5051
- `check_attachment` - A document to be printed on an additional page and mailed
5152
with a check that you've requested Increase print.
53+
- `check_voucher_image` - An image to be used as the check voucher image, which
54+
is printed in the middle of the trifold area of a check. This must be a
55+
2550x1100 pixel PNG.
5256
- `form_ss_4` - IRS Form SS-4.
5357
- `identity_document` - An image of a government-issued ID.
5458
- `loan_application_supplemental_document` - A supplemental document for a Loan

src/increase/types/file_list_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class CreatedAt(TypedDict, total=False):
7272
"processed_check_image_back",
7373
"mailed_check_image",
7474
"check_attachment",
75+
"check_voucher_image",
7576
"inbound_mail_item",
7677
"form_1099_int",
7778
"form_1099_misc",

tests/api_resources/test_check_transfers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
5353
"memo": "Check payment",
5454
"recipient_name": "Ian Crease",
5555
"attachment_file_id": "attachment_file_id",
56+
"check_voucher_image_file_id": "check_voucher_image_file_id",
5657
"note": "x",
5758
"payer": [{"contents": "x"}],
5859
"return_address": {
@@ -342,6 +343,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
342343
"memo": "Check payment",
343344
"recipient_name": "Ian Crease",
344345
"attachment_file_id": "attachment_file_id",
346+
"check_voucher_image_file_id": "check_voucher_image_file_id",
345347
"note": "x",
346348
"payer": [{"contents": "x"}],
347349
"return_address": {

0 commit comments

Comments
 (0)