From 7f470e11fbd7fc4478bf062e96149bfbc6ec5510 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 7 Aug 2025 04:57:38 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/files.py | 4 ++++ src/increase/types/file.py | 2 ++ src/increase/types/file_create_params.py | 2 ++ src/increase/types/file_list_params.py | 1 + tests/api_resources/test_files.py | 4 ++-- 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index f77503ab4..ae7a72a04 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aca6b5e100fcf8da7f6fc67bfbf47543f197f1c3fed52d5f1147b7cbad515546.yml -openapi_spec_hash: 369011703600762a5a5d701b4e843f7b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-66fad62aee38079ae7b0574a128763512b551d0b0f107a056bc981123d8e348d.yml +openapi_spec_hash: 299b75e8d2f36e6fe3d2df4c10d2557c config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/src/increase/resources/files.py b/src/increase/resources/files.py index a9ce42f63..28ed80ac5 100644 --- a/src/increase/resources/files.py +++ b/src/increase/resources/files.py @@ -50,6 +50,7 @@ def create( *, file: FileTypes, purpose: Literal[ + "card_dispute_attachment", "check_image_front", "check_image_back", "mailed_check_image", @@ -88,6 +89,7 @@ def create( purpose: What the File will be used for in Increase's systems. + - `card_dispute_attachment` - A file to be attached to a Card Dispute. - `check_image_front` - An image of the front of a check, used for check deposits. - `check_image_back` - An image of the back of a check, used for check deposits. @@ -273,6 +275,7 @@ async def create( *, file: FileTypes, purpose: Literal[ + "card_dispute_attachment", "check_image_front", "check_image_back", "mailed_check_image", @@ -311,6 +314,7 @@ async def create( purpose: What the File will be used for in Increase's systems. + - `card_dispute_attachment` - A file to be attached to a Card Dispute. - `check_image_front` - An image of the front of a check, used for check deposits. - `check_image_back` - An image of the back of a check, used for check deposits. diff --git a/src/increase/types/file.py b/src/increase/types/file.py index 35e9bd3c8..73af3da80 100644 --- a/src/increase/types/file.py +++ b/src/increase/types/file.py @@ -41,6 +41,7 @@ class File(BaseModel): """The MIME type of the file.""" purpose: Literal[ + "card_dispute_attachment", "check_image_front", "check_image_back", "processed_check_image_front", @@ -75,6 +76,7 @@ class File(BaseModel): We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully. + - `card_dispute_attachment` - A file to be attached to a Card Dispute. - `check_image_front` - An image of the front of a check, used for check deposits. - `check_image_back` - An image of the back of a check, used for check deposits. diff --git a/src/increase/types/file_create_params.py b/src/increase/types/file_create_params.py index 2bf3ce98c..e55d115a2 100644 --- a/src/increase/types/file_create_params.py +++ b/src/increase/types/file_create_params.py @@ -20,6 +20,7 @@ class FileCreateParams(TypedDict, total=False): purpose: Required[ Literal[ + "card_dispute_attachment", "check_image_front", "check_image_back", "mailed_check_image", @@ -40,6 +41,7 @@ class FileCreateParams(TypedDict, total=False): ] """What the File will be used for in Increase's systems. + - `card_dispute_attachment` - A file to be attached to a Card Dispute. - `check_image_front` - An image of the front of a check, used for check deposits. - `check_image_back` - An image of the back of a check, used for check deposits. diff --git a/src/increase/types/file_list_params.py b/src/increase/types/file_list_params.py index 6c4235ab6..c6b9a4def 100644 --- a/src/increase/types/file_list_params.py +++ b/src/increase/types/file_list_params.py @@ -65,6 +65,7 @@ class CreatedAt(TypedDict, total=False): { "in": List[ Literal[ + "card_dispute_attachment", "check_image_front", "check_image_back", "processed_check_image_front", diff --git a/tests/api_resources/test_files.py b/tests/api_resources/test_files.py index 06f7bc080..1862590f8 100644 --- a/tests/api_resources/test_files.py +++ b/tests/api_resources/test_files.py @@ -117,7 +117,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: cursor="cursor", idempotency_key="x", limit=1, - purpose={"in": ["check_image_front"]}, + purpose={"in": ["card_dispute_attachment"]}, ) assert_matches_type(SyncPage[File], file, path=["response"]) @@ -245,7 +245,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) -> cursor="cursor", idempotency_key="x", limit=1, - purpose={"in": ["check_image_front"]}, + purpose={"in": ["card_dispute_attachment"]}, ) assert_matches_type(AsyncPage[File], file, path=["response"]) From 83174fa6eadf7b3ef7d8565a6b6a741b6e07b9aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 7 Aug 2025 04:57:58 +0000 Subject: [PATCH 2/2] release: 0.279.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 156b3887c..fd675b6dc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.278.0" + ".": "0.279.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f76a1db4..d245c5520 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.279.0 (2025-08-07) + +Full Changelog: [v0.278.0...v0.279.0](https://github.com/Increase/increase-python/compare/v0.278.0...v0.279.0) + +### Features + +* **api:** api update ([7f470e1](https://github.com/Increase/increase-python/commit/7f470e11fbd7fc4478bf062e96149bfbc6ec5510)) + ## 0.278.0 (2025-08-06) Full Changelog: [v0.277.0...v0.278.0](https://github.com/Increase/increase-python/compare/v0.277.0...v0.278.0) diff --git a/pyproject.toml b/pyproject.toml index 1da469412..aff6f0d8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.278.0" +version = "0.279.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 d3f4d639c..ab8ae5950 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.278.0" # x-release-please-version +__version__ = "0.279.0" # x-release-please-version