From e7ae04d422f543cb09b68b039890be596bc8254b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:39:54 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/simulations/card_refunds.py | 10 ++++++++++ .../types/simulations/card_refund_create_params.py | 6 ++++++ tests/api_resources/simulations/test_card_refunds.py | 2 ++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 23a163cf1..3af61a35c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9848b3b7725425c712a5fba932c836f3210adf21b9b7a232370f13960790158c.yml -openapi_spec_hash: 49090a79a8225d8ad36fe249aac2a12a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6fc6504fd01ec9082a1f98aedf474846382b0196143751c1cae21fb7651c7fd1.yml +openapi_spec_hash: 7b2f1e569444dec8f4e02a26adf6eae0 config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/src/increase/resources/simulations/card_refunds.py b/src/increase/resources/simulations/card_refunds.py index a233eed0a..cf9fa8569 100644 --- a/src/increase/resources/simulations/card_refunds.py +++ b/src/increase/resources/simulations/card_refunds.py @@ -44,6 +44,7 @@ def with_streaming_response(self) -> CardRefundsResourceWithStreamingResponse: def create( self, *, + amount: int | Omit = omit, pending_transaction_id: str | Omit = omit, transaction_id: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -60,6 +61,9 @@ def create( transaction is refunded. Args: + amount: The refund amount in cents. Pulled off the `pending_transaction` or the + `transaction` if not provided. + pending_transaction_id: The identifier of the Pending Transaction for the refund authorization. If this is provided, `transaction` must not be provided as a refund with a refund authorized can not be linked to a regular transaction. @@ -81,6 +85,7 @@ def create( "/simulations/card_refunds", body=maybe_transform( { + "amount": amount, "pending_transaction_id": pending_transaction_id, "transaction_id": transaction_id, }, @@ -120,6 +125,7 @@ def with_streaming_response(self) -> AsyncCardRefundsResourceWithStreamingRespon async def create( self, *, + amount: int | Omit = omit, pending_transaction_id: str | Omit = omit, transaction_id: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -136,6 +142,9 @@ async def create( transaction is refunded. Args: + amount: The refund amount in cents. Pulled off the `pending_transaction` or the + `transaction` if not provided. + pending_transaction_id: The identifier of the Pending Transaction for the refund authorization. If this is provided, `transaction` must not be provided as a refund with a refund authorized can not be linked to a regular transaction. @@ -157,6 +166,7 @@ async def create( "/simulations/card_refunds", body=await async_maybe_transform( { + "amount": amount, "pending_transaction_id": pending_transaction_id, "transaction_id": transaction_id, }, diff --git a/src/increase/types/simulations/card_refund_create_params.py b/src/increase/types/simulations/card_refund_create_params.py index da0c4704a..c7fcd9878 100644 --- a/src/increase/types/simulations/card_refund_create_params.py +++ b/src/increase/types/simulations/card_refund_create_params.py @@ -8,6 +8,12 @@ class CardRefundCreateParams(TypedDict, total=False): + amount: int + """The refund amount in cents. + + Pulled off the `pending_transaction` or the `transaction` if not provided. + """ + pending_transaction_id: str """The identifier of the Pending Transaction for the refund authorization. diff --git a/tests/api_resources/simulations/test_card_refunds.py b/tests/api_resources/simulations/test_card_refunds.py index 36b239d51..f75e12c4c 100644 --- a/tests/api_resources/simulations/test_card_refunds.py +++ b/tests/api_resources/simulations/test_card_refunds.py @@ -25,6 +25,7 @@ def test_method_create(self, client: Increase) -> None: @parametrize def test_method_create_with_all_params(self, client: Increase) -> None: card_refund = client.simulations.card_refunds.create( + amount=1, pending_transaction_id="pending_transaction_id", transaction_id="transaction_uyrp7fld2ium70oa7oi", ) @@ -64,6 +65,7 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncIncrease) -> None: card_refund = await async_client.simulations.card_refunds.create( + amount=1, pending_transaction_id="pending_transaction_id", transaction_id="transaction_uyrp7fld2ium70oa7oi", ) From 49c18dcf5029c536a7d32559e62626fcaed2a9d9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:40:18 +0000 Subject: [PATCH 2/2] release: 0.367.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 1edf3a94d..171e59a68 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.366.0" + ".": "0.367.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a44f6392..547b93ba4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.367.0 (2025-10-27) + +Full Changelog: [v0.366.0...v0.367.0](https://github.com/Increase/increase-python/compare/v0.366.0...v0.367.0) + +### Features + +* **api:** api update ([e7ae04d](https://github.com/Increase/increase-python/commit/e7ae04d422f543cb09b68b039890be596bc8254b)) + ## 0.366.0 (2025-10-26) Full Changelog: [v0.365.0...v0.366.0](https://github.com/Increase/increase-python/compare/v0.365.0...v0.366.0) diff --git a/pyproject.toml b/pyproject.toml index 2e51273c8..b25636b6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.366.0" +version = "0.367.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 9aef908be..b72e4f696 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.366.0" # x-release-please-version +__version__ = "0.367.0" # x-release-please-version