diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a2a6d2690..e9cee8d37 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.194.0" + ".": "0.195.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d9c437e9c..965dafe41 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-15ead2ecf5c1d979cfa951c578d25ba20f9f5c1b987d109b6eaa4e8eeda973e1.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5c3b5c54f9deac8411f40a4a8e14715ed60acd2ae56c5e36e83664586ef5aafd.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 18d124fb9..90c250671 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.195.0 (2025-02-24) + +Full Changelog: [v0.194.0...v0.195.0](https://github.com/Increase/increase-python/compare/v0.194.0...v0.195.0) + +### Features + +* **api:** api update ([#980](https://github.com/Increase/increase-python/issues/980)) ([327dd31](https://github.com/Increase/increase-python/commit/327dd314e50476aa9a7852375d73deed9da790be)) + ## 0.194.0 (2025-02-22) Full Changelog: [v0.193.0...v0.194.0](https://github.com/Increase/increase-python/compare/v0.193.0...v0.194.0) diff --git a/pyproject.toml b/pyproject.toml index 01188ee0d..6a4c34d02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.194.0" +version = "0.195.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 777ad0bd2..2169af86d 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.194.0" # x-release-please-version +__version__ = "0.195.0" # x-release-please-version diff --git a/src/increase/resources/simulations/card_authorizations.py b/src/increase/resources/simulations/card_authorizations.py index a7e8f0413..2ff7b86d7 100644 --- a/src/increase/resources/simulations/card_authorizations.py +++ b/src/increase/resources/simulations/card_authorizations.py @@ -53,6 +53,7 @@ def create( authenticated_card_payment_id: str | NotGiven = NOT_GIVEN, card_id: str | NotGiven = NOT_GIVEN, decline_reason: Literal[ + "account_closed", "card_not_active", "physical_card_not_active", "entity_not_active", @@ -111,6 +112,7 @@ def create( decline_reason: Forces a card decline with a specific reason. No real time decision will be sent. + - `account_closed` - The account has been closed. - `card_not_active` - The Card was not active. - `physical_card_not_active` - The Physical Card was not active. - `entity_not_active` - The account's entity was not active. @@ -241,6 +243,7 @@ async def create( authenticated_card_payment_id: str | NotGiven = NOT_GIVEN, card_id: str | NotGiven = NOT_GIVEN, decline_reason: Literal[ + "account_closed", "card_not_active", "physical_card_not_active", "entity_not_active", @@ -299,6 +302,7 @@ async def create( decline_reason: Forces a card decline with a specific reason. No real time decision will be sent. + - `account_closed` - The account has been closed. - `card_not_active` - The Card was not active. - `physical_card_not_active` - The Physical Card was not active. - `entity_not_active` - The account's entity was not active. diff --git a/src/increase/types/card_payment.py b/src/increase/types/card_payment.py index 7d6898681..236e444fd 100644 --- a/src/increase/types/card_payment.py +++ b/src/increase/types/card_payment.py @@ -1037,6 +1037,7 @@ class ElementCardDecline(BaseModel): """ reason: Literal[ + "account_closed", "card_not_active", "physical_card_not_active", "entity_not_active", @@ -1055,6 +1056,7 @@ class ElementCardDecline(BaseModel): ] """Why the transaction was declined. + - `account_closed` - The account has been closed. - `card_not_active` - The Card was not active. - `physical_card_not_active` - The Physical Card was not active. - `entity_not_active` - The account's entity was not active. diff --git a/src/increase/types/declined_transaction.py b/src/increase/types/declined_transaction.py index 1a8aee9d0..8faa51eb3 100644 --- a/src/increase/types/declined_transaction.py +++ b/src/increase/types/declined_transaction.py @@ -498,6 +498,7 @@ class SourceCardDecline(BaseModel): """ reason: Literal[ + "account_closed", "card_not_active", "physical_card_not_active", "entity_not_active", @@ -516,6 +517,7 @@ class SourceCardDecline(BaseModel): ] """Why the transaction was declined. + - `account_closed` - The account has been closed. - `card_not_active` - The Card was not active. - `physical_card_not_active` - The Physical Card was not active. - `entity_not_active` - The account's entity was not active. diff --git a/src/increase/types/simulations/card_authorization_create_params.py b/src/increase/types/simulations/card_authorization_create_params.py index 9232f0e10..323a950b4 100644 --- a/src/increase/types/simulations/card_authorization_create_params.py +++ b/src/increase/types/simulations/card_authorization_create_params.py @@ -21,6 +21,7 @@ class CardAuthorizationCreateParams(TypedDict, total=False): """The identifier of the Card to be authorized.""" decline_reason: Literal[ + "account_closed", "card_not_active", "physical_card_not_active", "entity_not_active", @@ -41,6 +42,7 @@ class CardAuthorizationCreateParams(TypedDict, total=False): No real time decision will be sent. + - `account_closed` - The account has been closed. - `card_not_active` - The Card was not active. - `physical_card_not_active` - The Physical Card was not active. - `entity_not_active` - The account's entity was not active. diff --git a/tests/api_resources/simulations/test_card_authorizations.py b/tests/api_resources/simulations/test_card_authorizations.py index eddb63f32..5c8e03185 100644 --- a/tests/api_resources/simulations/test_card_authorizations.py +++ b/tests/api_resources/simulations/test_card_authorizations.py @@ -30,7 +30,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None: amount=1000, authenticated_card_payment_id="authenticated_card_payment_id", card_id="card_oubs0hwk5rn6knuecxg2", - decline_reason="card_not_active", + decline_reason="account_closed", digital_wallet_token_id="digital_wallet_token_id", direction="settlement", event_subscription_id="event_subscription_001dzz0r20rcdxgb013zqb8m04g", @@ -87,7 +87,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) amount=1000, authenticated_card_payment_id="authenticated_card_payment_id", card_id="card_oubs0hwk5rn6knuecxg2", - decline_reason="card_not_active", + decline_reason="account_closed", digital_wallet_token_id="digital_wallet_token_id", direction="settlement", event_subscription_id="event_subscription_001dzz0r20rcdxgb013zqb8m04g",