Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.366.0"
".": "0.367.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions src/increase/resources/simulations/card_refunds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -81,6 +85,7 @@ def create(
"/simulations/card_refunds",
body=maybe_transform(
{
"amount": amount,
"pending_transaction_id": pending_transaction_id,
"transaction_id": transaction_id,
},
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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,
},
Expand Down
6 changes: 6 additions & 0 deletions src/increase/types/simulations/card_refund_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/simulations/test_card_refunds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down