diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 345dc1229..70486fbf9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.216.0" + ".": "0.217.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 208e661be..7a1085205 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-dbfb4cc4f72a4a3d1f957a3f02cda743d386896e85293e0cb3f2ce0c70af2ae5.yml -openapi_spec_hash: e8943405e5f69ae7d23a305a5c449fad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-33bdf702b7e17c6ce26736fdcbf42437952f56eed26df196c073d8c2d0405364.yml +openapi_spec_hash: e528f453ee22576ba66bc039e99977a9 config_hash: 20a463ecd33bd32b7b9bc6f4990907ac diff --git a/CHANGELOG.md b/CHANGELOG.md index abe3a7b25..1b7b04843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.217.0 (2025-04-01) + +Full Changelog: [v0.216.0...v0.217.0](https://github.com/Increase/increase-python/compare/v0.216.0...v0.217.0) + +### Features + +* **api:** api update ([#1067](https://github.com/Increase/increase-python/issues/1067)) ([f01ba32](https://github.com/Increase/increase-python/commit/f01ba3295d8d109a2b9fdb6f5d990f6a27f96d4b)) + ## 0.216.0 (2025-04-01) Full Changelog: [v0.215.0...v0.216.0](https://github.com/Increase/increase-python/compare/v0.215.0...v0.216.0) diff --git a/pyproject.toml b/pyproject.toml index 011ef4b61..f21a43ed5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.216.0" +version = "0.217.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 ed3f7a7b4..98f841162 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.216.0" # x-release-please-version +__version__ = "0.217.0" # x-release-please-version diff --git a/src/increase/resources/simulations/card_authorizations.py b/src/increase/resources/simulations/card_authorizations.py index 81fc40c65..04e192319 100644 --- a/src/increase/resources/simulations/card_authorizations.py +++ b/src/increase/resources/simulations/card_authorizations.py @@ -82,6 +82,7 @@ def create( merchant_descriptor: str | NotGiven = NOT_GIVEN, merchant_state: str | NotGiven = NOT_GIVEN, network_details: card_authorization_create_params.NetworkDetails | NotGiven = NOT_GIVEN, + network_risk_score: int | NotGiven = NOT_GIVEN, physical_card_id: str | NotGiven = NOT_GIVEN, terminal_id: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -169,6 +170,9 @@ def create( network_details: Fields specific to a given card network. + network_risk_score: The risk score generated by the card network. For Visa this is the Visa Advanced + Authorization risk score, from 0 to 99, where 99 is the riskiest. + physical_card_id: The identifier of the Physical Card to be authorized. terminal_id: The terminal identifier (commonly abbreviated as TID) of the terminal the card @@ -202,6 +206,7 @@ def create( "merchant_descriptor": merchant_descriptor, "merchant_state": merchant_state, "network_details": network_details, + "network_risk_score": network_risk_score, "physical_card_id": physical_card_id, "terminal_id": terminal_id, }, @@ -274,6 +279,7 @@ async def create( merchant_descriptor: str | NotGiven = NOT_GIVEN, merchant_state: str | NotGiven = NOT_GIVEN, network_details: card_authorization_create_params.NetworkDetails | NotGiven = NOT_GIVEN, + network_risk_score: int | NotGiven = NOT_GIVEN, physical_card_id: str | NotGiven = NOT_GIVEN, terminal_id: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -361,6 +367,9 @@ async def create( network_details: Fields specific to a given card network. + network_risk_score: The risk score generated by the card network. For Visa this is the Visa Advanced + Authorization risk score, from 0 to 99, where 99 is the riskiest. + physical_card_id: The identifier of the Physical Card to be authorized. terminal_id: The terminal identifier (commonly abbreviated as TID) of the terminal the card @@ -394,6 +403,7 @@ async def create( "merchant_descriptor": merchant_descriptor, "merchant_state": merchant_state, "network_details": network_details, + "network_risk_score": network_risk_score, "physical_card_id": physical_card_id, "terminal_id": terminal_id, }, diff --git a/src/increase/types/simulations/card_authorization_create_params.py b/src/increase/types/simulations/card_authorization_create_params.py index 29203d2ae..6704fc21e 100644 --- a/src/increase/types/simulations/card_authorization_create_params.py +++ b/src/increase/types/simulations/card_authorization_create_params.py @@ -118,6 +118,13 @@ class CardAuthorizationCreateParams(TypedDict, total=False): network_details: NetworkDetails """Fields specific to a given card network.""" + network_risk_score: int + """The risk score generated by the card network. + + For Visa this is the Visa Advanced Authorization risk score, from 0 to 99, where + 99 is the riskiest. + """ + physical_card_id: str """The identifier of the Physical Card to be authorized.""" diff --git a/tests/api_resources/simulations/test_card_authorizations.py b/tests/api_resources/simulations/test_card_authorizations.py index 5c8e03185..891bef151 100644 --- a/tests/api_resources/simulations/test_card_authorizations.py +++ b/tests/api_resources/simulations/test_card_authorizations.py @@ -41,6 +41,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None: merchant_descriptor="AMAZON.COM", merchant_state="NY", network_details={"visa": {"stand_in_processing_reason": "issuer_error"}}, + network_risk_score=0, physical_card_id="physical_card_id", terminal_id="x", ) @@ -98,6 +99,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) merchant_descriptor="AMAZON.COM", merchant_state="NY", network_details={"visa": {"stand_in_processing_reason": "issuer_error"}}, + network_risk_score=0, physical_card_id="physical_card_id", terminal_id="x", )