diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 171e59a68..741f062e3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.367.0" + ".": "0.368.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 3af61a35c..09fe707d7 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 547b93ba4..46464b259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index b25636b6f..709246b5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index b72e4f696..a035b4468 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.367.0" # x-release-please-version +__version__ = "0.368.0" # x-release-please-version diff --git a/src/increase/types/simulations/card_authorization_create_params.py b/src/increase/types/simulations/card_authorization_create_params.py index 98cfa68fe..6907569dd 100644 --- a/src/increase/types/simulations/card_authorization_create_params.py +++ b/src/increase/types/simulations/card_authorization_create_params.py @@ -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): @@ -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[ @@ -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.""" diff --git a/tests/api_resources/simulations/test_card_authorizations.py b/tests/api_resources/simulations/test_card_authorizations.py index e75da86aa..4dd066d31 100644 --- a/tests/api_resources/simulations/test_card_authorizations.py +++ b/tests/api_resources/simulations/test_card_authorizations.py @@ -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"]) @@ -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"])