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.367.0"
".": "0.368.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-6fc6504fd01ec9082a1f98aedf474846382b0196143751c1cae21fb7651c7fd1.yml
openapi_spec_hash: 7b2f1e569444dec8f4e02a26adf6eae0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4ecdf6d7ab918ac6bedd10130962aa92a2b10e59ca7a98849bcbb72878bffc92.yml
openapi_spec_hash: cefa36c80b576364e72406d7da8c4610
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.368.0 (2025-10-27)

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

### Features

* **api:** api update ([760f818](https://github.com/Increase/increase-python/commit/760f818a7d09397385fe3de0f0cc8cd623de28a1))

## 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)
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.367.0"
version = "0.368.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.367.0" # x-release-please-version
__version__ = "0.368.0" # x-release-please-version
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

from typing_extensions import Literal, Required, TypedDict

__all__ = ["CardAuthorizationCreateParams", "NetworkDetails", "NetworkDetailsVisa", "ProcessingCategory"]
__all__ = [
"CardAuthorizationCreateParams",
"NetworkDetails",
"NetworkDetailsVisa",
"ProcessingCategory",
"ProcessingCategoryRefund",
]


class CardAuthorizationCreateParams(TypedDict, total=False):
Expand Down Expand Up @@ -175,6 +181,11 @@ class NetworkDetails(TypedDict, total=False):
"""Fields specific to the Visa network."""


class ProcessingCategoryRefund(TypedDict, total=False):
original_card_payment_id: str
"""The card payment to link this refund to."""


class ProcessingCategory(TypedDict, total=False):
category: Required[
Literal[
Expand Down Expand Up @@ -209,3 +220,6 @@ class ProcessingCategory(TypedDict, total=False):
- `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
from an ATM or a point of sale.
"""

refund: ProcessingCategoryRefund
"""Details related to refund authorizations."""
10 changes: 8 additions & 2 deletions tests/api_resources/simulations/test_card_authorizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
network_details={"visa": {"stand_in_processing_reason": "issuer_error"}},
network_risk_score=0,
physical_card_id="physical_card_id",
processing_category={"category": "account_funding"},
processing_category={
"category": "account_funding",
"refund": {"original_card_payment_id": "original_card_payment_id"},
},
terminal_id="x",
)
assert_matches_type(CardAuthorizationCreateResponse, card_authorization, path=["response"])
Expand Down Expand Up @@ -102,7 +105,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
network_details={"visa": {"stand_in_processing_reason": "issuer_error"}},
network_risk_score=0,
physical_card_id="physical_card_id",
processing_category={"category": "account_funding"},
processing_category={
"category": "account_funding",
"refund": {"original_card_payment_id": "original_card_payment_id"},
},
terminal_id="x",
)
assert_matches_type(CardAuthorizationCreateResponse, card_authorization, path=["response"])
Expand Down