From e3669d4c5ea7fb1057e3fcaecac9e3e0fcbe6045 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 05:03:43 +0000 Subject: [PATCH 1/2] feat(api): api update (#800) --- .stats.yml | 2 +- src/increase/resources/simulations/card_authorizations.py | 8 ++++++++ .../types/simulations/card_authorization_create_params.py | 3 +++ .../api_resources/simulations/test_card_authorizations.py | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5bdcebc5..bd842e73 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7bb6e334b298eabe597d7b87ffa9ace8fe16b38501ec6bcbfc3c6ea3a34c3435.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6851e8d3095620503dba6bf1dbbe60d894bb54200d90d7870588fe5804350392.yml diff --git a/src/increase/resources/simulations/card_authorizations.py b/src/increase/resources/simulations/card_authorizations.py index 9d58bb09..6c647fb0 100644 --- a/src/increase/resources/simulations/card_authorizations.py +++ b/src/increase/resources/simulations/card_authorizations.py @@ -78,6 +78,7 @@ def create( merchant_city: str | NotGiven = NOT_GIVEN, merchant_country: str | NotGiven = NOT_GIVEN, merchant_descriptor: str | NotGiven = NOT_GIVEN, + merchant_state: str | 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. @@ -159,6 +160,8 @@ def create( merchant_descriptor: The merchant descriptor of the merchant the card is transacting with. + merchant_state: The state the merchant resides in. + 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 @@ -190,6 +193,7 @@ def create( "merchant_city": merchant_city, "merchant_country": merchant_country, "merchant_descriptor": merchant_descriptor, + "merchant_state": merchant_state, "physical_card_id": physical_card_id, "terminal_id": terminal_id, }, @@ -258,6 +262,7 @@ async def create( merchant_city: str | NotGiven = NOT_GIVEN, merchant_country: str | NotGiven = NOT_GIVEN, merchant_descriptor: str | NotGiven = NOT_GIVEN, + merchant_state: str | 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. @@ -339,6 +344,8 @@ async def create( merchant_descriptor: The merchant descriptor of the merchant the card is transacting with. + merchant_state: The state the merchant resides in. + 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 @@ -370,6 +377,7 @@ async def create( "merchant_city": merchant_city, "merchant_country": merchant_country, "merchant_descriptor": merchant_descriptor, + "merchant_state": merchant_state, "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 386c89b3..35b5110c 100644 --- a/src/increase/types/simulations/card_authorization_create_params.py +++ b/src/increase/types/simulations/card_authorization_create_params.py @@ -108,6 +108,9 @@ class CardAuthorizationCreateParams(TypedDict, total=False): merchant_descriptor: str """The merchant descriptor of the merchant the card is transacting with.""" + merchant_state: str + """The state the merchant resides in.""" + 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 09ad8f19..eb77386f 100644 --- a/tests/api_resources/simulations/test_card_authorizations.py +++ b/tests/api_resources/simulations/test_card_authorizations.py @@ -39,6 +39,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None: merchant_city="New York", merchant_country="US", merchant_descriptor="AMAZON.COM", + merchant_state="NY", physical_card_id="physical_card_id", terminal_id="x", ) @@ -94,6 +95,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) merchant_city="New York", merchant_country="US", merchant_descriptor="AMAZON.COM", + merchant_state="NY", physical_card_id="physical_card_id", terminal_id="x", ) From 51f445ade572b4f7c998c78d1223b8c57f16fc8f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 05:04:01 +0000 Subject: [PATCH 2/2] release: 0.152.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 07c725da..ddf661b3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.151.0" + ".": "0.152.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c81f05f1..7b207e90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.152.0 (2024-11-08) + +Full Changelog: [v0.151.0...v0.152.0](https://github.com/Increase/increase-python/compare/v0.151.0...v0.152.0) + +### Features + +* **api:** api update ([#800](https://github.com/Increase/increase-python/issues/800)) ([e3669d4](https://github.com/Increase/increase-python/commit/e3669d4c5ea7fb1057e3fcaecac9e3e0fcbe6045)) + ## 0.151.0 (2024-11-08) Full Changelog: [v0.150.0...v0.151.0](https://github.com/Increase/increase-python/compare/v0.150.0...v0.151.0) diff --git a/pyproject.toml b/pyproject.toml index dac17294..f2923531 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.151.0" +version = "0.152.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 1ed71a67..530bcdc4 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.151.0" # x-release-please-version +__version__ = "0.152.0" # x-release-please-version