From 5319a205632cdf1de1ba7b63a05456e5589ee5c8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:09:18 +0000 Subject: [PATCH 1/5] chore(internal): avoid pytest-asyncio deprecation warning (#917) --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 2dc07ac59..871c2f382 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,6 +129,7 @@ testpaths = ["tests"] addopts = "--tb=short" xfail_strict = true asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "session" filterwarnings = [ "error" ] From 1fc8a52b940b4c60634574847aebc680c8330e57 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:59:16 +0000 Subject: [PATCH 2/5] chore(internal): minor style changes (#919) --- src/increase/_response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/increase/_response.py b/src/increase/_response.py index cfff40032..9597a5b3b 100644 --- a/src/increase/_response.py +++ b/src/increase/_response.py @@ -136,6 +136,8 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T: if cast_to and is_annotated_type(cast_to): cast_to = extract_type_arg(cast_to, 0) + origin = get_origin(cast_to) or cast_to + if self._is_sse_stream: if to: if not is_stream_class_type(to): @@ -195,8 +197,6 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T: if cast_to == bool: return cast(R, response.text.lower() == "true") - origin = get_origin(cast_to) or cast_to - if origin == APIResponse: raise RuntimeError("Unexpected state - cast_to is `APIResponse`") From 214bfcc9ab9f392db92d036a786d0f70e7f349c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:46:51 +0000 Subject: [PATCH 3/5] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9478903e6..fbfe303ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9f22ab139c225a56bc829befa825a81eb1f2bc1af4b1a934b6f8888d4e422a58.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d0f9cb729e759d76c6e2853df124642232778711c74086512185cd65ab17f5e6.yml From 1d47b66ddc6f13615c23b2f07876c4f1c3f86a99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 21:52:48 +0000 Subject: [PATCH 4/5] feat(api): api update (#920) --- .stats.yml | 2 +- src/increase/resources/files.py | 6 ++++++ src/increase/types/file.py | 3 +++ src/increase/types/file_create_params.py | 3 +++ src/increase/types/file_list_params.py | 1 + 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index fbfe303ce..5eac66deb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d0f9cb729e759d76c6e2853df124642232778711c74086512185cd65ab17f5e6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-03ecb68309b2d2429b7c74b155e110f4d992425d54067160881ecc1d1aa1551e.yml diff --git a/src/increase/resources/files.py b/src/increase/resources/files.py index b9bfe8da8..ac54dc1a0 100644 --- a/src/increase/resources/files.py +++ b/src/increase/resources/files.py @@ -59,6 +59,7 @@ def create( "check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "form_ss_4", "identity_document", "other", @@ -98,6 +99,8 @@ def create( - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `form_ss_4` - IRS Form SS-4. - `identity_document` - An image of a government-issued ID. - `other` - A file purpose not covered by any of the other cases. @@ -279,6 +282,7 @@ async def create( "check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "form_ss_4", "identity_document", "other", @@ -318,6 +322,8 @@ async def create( - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `form_ss_4` - IRS Form SS-4. - `identity_document` - An image of a government-issued ID. - `other` - A file purpose not covered by any of the other cases. diff --git a/src/increase/types/file.py b/src/increase/types/file.py index 362ead3ae..cb9079d4e 100644 --- a/src/increase/types/file.py +++ b/src/increase/types/file.py @@ -53,6 +53,7 @@ class File(BaseModel): "processed_check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "inbound_mail_item", "form_1099_int", "form_ss_4", @@ -86,6 +87,8 @@ class File(BaseModel): - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `inbound_mail_item` - A scanned mail item sent to Increase. - `form_1099_int` - IRS Form 1099-INT. - `form_ss_4` - IRS Form SS-4. diff --git a/src/increase/types/file_create_params.py b/src/increase/types/file_create_params.py index c71a677d4..bbf9fa309 100644 --- a/src/increase/types/file_create_params.py +++ b/src/increase/types/file_create_params.py @@ -24,6 +24,7 @@ class FileCreateParams(TypedDict, total=False): "check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "form_ss_4", "identity_document", "other", @@ -45,6 +46,8 @@ class FileCreateParams(TypedDict, total=False): - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `form_ss_4` - IRS Form SS-4. - `identity_document` - An image of a government-issued ID. - `other` - A file purpose not covered by any of the other cases. diff --git a/src/increase/types/file_list_params.py b/src/increase/types/file_list_params.py index afc00a66c..a6ca7ce80 100644 --- a/src/increase/types/file_list_params.py +++ b/src/increase/types/file_list_params.py @@ -71,6 +71,7 @@ class CreatedAt(TypedDict, total=False): "processed_check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "inbound_mail_item", "form_1099_int", "form_ss_4", From a74d073d141c2549a8bd70f64206d6dbe0d35cba Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 21:53:19 +0000 Subject: [PATCH 5/5] release: 0.178.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7f4bb0b5b..ab928dd0c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.177.1" + ".": "0.178.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0efdd4ceb..9e7ec7541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.178.0 (2025-01-21) + +Full Changelog: [v0.177.1...v0.178.0](https://github.com/Increase/increase-python/compare/v0.177.1...v0.178.0) + +### Features + +* **api:** api update ([#920](https://github.com/Increase/increase-python/issues/920)) ([1d47b66](https://github.com/Increase/increase-python/commit/1d47b66ddc6f13615c23b2f07876c4f1c3f86a99)) + + +### Chores + +* **internal:** avoid pytest-asyncio deprecation warning ([#917](https://github.com/Increase/increase-python/issues/917)) ([5319a20](https://github.com/Increase/increase-python/commit/5319a205632cdf1de1ba7b63a05456e5589ee5c8)) +* **internal:** minor style changes ([#919](https://github.com/Increase/increase-python/issues/919)) ([1fc8a52](https://github.com/Increase/increase-python/commit/1fc8a52b940b4c60634574847aebc680c8330e57)) + ## 0.177.1 (2025-01-20) Full Changelog: [v0.177.0...v0.177.1](https://github.com/Increase/increase-python/compare/v0.177.0...v0.177.1) diff --git a/pyproject.toml b/pyproject.toml index 871c2f382..77922d9c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.177.1" +version = "0.178.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index fed4d4bcc..a78d6c9f0 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.177.1" # x-release-please-version +__version__ = "0.178.0" # x-release-please-version