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.334.0"
".": "0.335.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: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d0d6147287983a83fc0ad164f706c3cdc48a13e223fd601aa954bbf0bbc402ed.yml
openapi_spec_hash: a3ccd1aa9bc5d03e6660b535d25401b1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-884e347f765b181f0f15f821b0c5786f51d532aae1077294aedf3fff0d6f9b22.yml
openapi_spec_hash: 119e76f07825b0975b385de037fe8d96
config_hash: 8dadd60eab7ab858cf06c6a8633ed9f3
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.335.0 (2025-09-22)

Full Changelog: [v0.334.0...v0.335.0](https://github.com/Increase/increase-python/compare/v0.334.0...v0.335.0)

### Features

* **api:** api update ([8520ec9](https://github.com/Increase/increase-python/commit/8520ec94d27119aa9c047f6347a7bc26c6b76cd0))


### Chores

* improve example values ([d6d46a8](https://github.com/Increase/increase-python/commit/d6d46a8dc97441a1c5671071df7f0809af0141f0))

## 0.334.0 (2025-09-19)

Full Changelog: [v0.333.0...v0.334.0](https://github.com/Increase/increase-python/compare/v0.333.0...v0.334.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.334.0"
version = "0.335.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.334.0" # x-release-please-version
__version__ = "0.335.0" # x-release-please-version
22 changes: 22 additions & 0 deletions src/increase/types/card_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"ElementCardSettlementPurchaseDetailsTravelAncillary",
"ElementCardSettlementPurchaseDetailsTravelAncillaryService",
"ElementCardSettlementPurchaseDetailsTravelTripLeg",
"ElementCardSettlementSurcharge",
"ElementCardValidation",
"ElementCardValidationAdditionalAmounts",
"ElementCardValidationAdditionalAmountsClinic",
Expand Down Expand Up @@ -2933,6 +2934,19 @@ class ElementCardSettlementPurchaseDetails(BaseModel):
"""Fields specific to travel."""


class ElementCardSettlementSurcharge(BaseModel):
amount: int
"""
The surcharge amount in the minor unit of the transaction's settlement currency.
"""

presentment_amount: int
"""
The surcharge amount in the minor unit of the transaction's presentment
currency.
"""


class ElementCardSettlement(BaseModel):
id: str
"""The Card Settlement identifier."""
Expand Down Expand Up @@ -3025,6 +3039,14 @@ class ElementCardSettlement(BaseModel):
fields.
"""

surcharge: Optional[ElementCardSettlementSurcharge] = None
"""Surcharge amount details, if applicable.

The amounts positive if the surcharge is added to to the overall transaction
amount (surcharge), and negative if the surcharge is deducted from the overall
transaction amount (discount).
"""

transaction_id: str
"""The identifier of the Transaction associated with this Transaction."""

Expand Down
22 changes: 22 additions & 0 deletions src/increase/types/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"SourceCardSettlementPurchaseDetailsTravelAncillary",
"SourceCardSettlementPurchaseDetailsTravelAncillaryService",
"SourceCardSettlementPurchaseDetailsTravelTripLeg",
"SourceCardSettlementSurcharge",
"SourceCashbackPayment",
"SourceCheckDepositAcceptance",
"SourceCheckDepositReturn",
Expand Down Expand Up @@ -1537,6 +1538,19 @@ class SourceCardSettlementPurchaseDetails(BaseModel):
"""Fields specific to travel."""


class SourceCardSettlementSurcharge(BaseModel):
amount: int
"""
The surcharge amount in the minor unit of the transaction's settlement currency.
"""

presentment_amount: int
"""
The surcharge amount in the minor unit of the transaction's presentment
currency.
"""


class SourceCardSettlement(BaseModel):
id: str
"""The Card Settlement identifier."""
Expand Down Expand Up @@ -1629,6 +1643,14 @@ class SourceCardSettlement(BaseModel):
fields.
"""

surcharge: Optional[SourceCardSettlementSurcharge] = None
"""Surcharge amount details, if applicable.

The amounts positive if the surcharge is added to to the overall transaction
amount (surcharge), and negative if the surcharge is deducted from the overall
transaction amount (discount).
"""

transaction_id: str
"""The identifier of the Transaction associated with this Transaction."""

Expand Down
12 changes: 6 additions & 6 deletions tests/api_resources/simulations/test_account_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ class TestAccountTransfers:
@parametrize
def test_method_complete(self, client: Increase) -> None:
account_transfer = client.simulations.account_transfers.complete(
"account_transfer_id",
"account_transfer_7k9qe1ysdgqztnt63l7n",
)
assert_matches_type(AccountTransfer, account_transfer, path=["response"])

@parametrize
def test_raw_response_complete(self, client: Increase) -> None:
response = client.simulations.account_transfers.with_raw_response.complete(
"account_transfer_id",
"account_transfer_7k9qe1ysdgqztnt63l7n",
)

assert response.is_closed is True
Expand All @@ -38,7 +38,7 @@ def test_raw_response_complete(self, client: Increase) -> None:
@parametrize
def test_streaming_response_complete(self, client: Increase) -> None:
with client.simulations.account_transfers.with_streaming_response.complete(
"account_transfer_id",
"account_transfer_7k9qe1ysdgqztnt63l7n",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -64,14 +64,14 @@ class TestAsyncAccountTransfers:
@parametrize
async def test_method_complete(self, async_client: AsyncIncrease) -> None:
account_transfer = await async_client.simulations.account_transfers.complete(
"account_transfer_id",
"account_transfer_7k9qe1ysdgqztnt63l7n",
)
assert_matches_type(AccountTransfer, account_transfer, path=["response"])

@parametrize
async def test_raw_response_complete(self, async_client: AsyncIncrease) -> None:
response = await async_client.simulations.account_transfers.with_raw_response.complete(
"account_transfer_id",
"account_transfer_7k9qe1ysdgqztnt63l7n",
)

assert response.is_closed is True
Expand All @@ -82,7 +82,7 @@ async def test_raw_response_complete(self, async_client: AsyncIncrease) -> None:
@parametrize
async def test_streaming_response_complete(self, async_client: AsyncIncrease) -> None:
async with async_client.simulations.account_transfers.with_streaming_response.complete(
"account_transfer_id",
"account_transfer_7k9qe1ysdgqztnt63l7n",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down
24 changes: 12 additions & 12 deletions tests/api_resources/simulations/test_ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ class TestACHTransfers:
@parametrize
def test_method_acknowledge(self, client: Increase) -> None:
ach_transfer = client.simulations.ach_transfers.acknowledge(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)
assert_matches_type(ACHTransfer, ach_transfer, path=["response"])

@parametrize
def test_raw_response_acknowledge(self, client: Increase) -> None:
response = client.simulations.ach_transfers.with_raw_response.acknowledge(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)

assert response.is_closed is True
Expand All @@ -38,7 +38,7 @@ def test_raw_response_acknowledge(self, client: Increase) -> None:
@parametrize
def test_streaming_response_acknowledge(self, client: Increase) -> None:
with client.simulations.ach_transfers.with_streaming_response.acknowledge(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down Expand Up @@ -196,14 +196,14 @@ def test_path_params_settle(self, client: Increase) -> None:
@parametrize
def test_method_submit(self, client: Increase) -> None:
ach_transfer = client.simulations.ach_transfers.submit(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)
assert_matches_type(ACHTransfer, ach_transfer, path=["response"])

@parametrize
def test_raw_response_submit(self, client: Increase) -> None:
response = client.simulations.ach_transfers.with_raw_response.submit(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)

assert response.is_closed is True
Expand All @@ -214,7 +214,7 @@ def test_raw_response_submit(self, client: Increase) -> None:
@parametrize
def test_streaming_response_submit(self, client: Increase) -> None:
with client.simulations.ach_transfers.with_streaming_response.submit(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -240,14 +240,14 @@ class TestAsyncACHTransfers:
@parametrize
async def test_method_acknowledge(self, async_client: AsyncIncrease) -> None:
ach_transfer = await async_client.simulations.ach_transfers.acknowledge(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)
assert_matches_type(ACHTransfer, ach_transfer, path=["response"])

@parametrize
async def test_raw_response_acknowledge(self, async_client: AsyncIncrease) -> None:
response = await async_client.simulations.ach_transfers.with_raw_response.acknowledge(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)

assert response.is_closed is True
Expand All @@ -258,7 +258,7 @@ async def test_raw_response_acknowledge(self, async_client: AsyncIncrease) -> No
@parametrize
async def test_streaming_response_acknowledge(self, async_client: AsyncIncrease) -> None:
async with async_client.simulations.ach_transfers.with_streaming_response.acknowledge(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down Expand Up @@ -416,14 +416,14 @@ async def test_path_params_settle(self, async_client: AsyncIncrease) -> None:
@parametrize
async def test_method_submit(self, async_client: AsyncIncrease) -> None:
ach_transfer = await async_client.simulations.ach_transfers.submit(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)
assert_matches_type(ACHTransfer, ach_transfer, path=["response"])

@parametrize
async def test_raw_response_submit(self, async_client: AsyncIncrease) -> None:
response = await async_client.simulations.ach_transfers.with_raw_response.submit(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
)

assert response.is_closed is True
Expand All @@ -434,7 +434,7 @@ async def test_raw_response_submit(self, async_client: AsyncIncrease) -> None:
@parametrize
async def test_streaming_response_submit(self, async_client: AsyncIncrease) -> None:
async with async_client.simulations.ach_transfers.with_streaming_response.submit(
"ach_transfer_id",
"ach_transfer_uoxatyh3lt5evrsdvo7q",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down
Loading