diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b727f170..493e9f4f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.162.0" + ".": "0.163.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ffcfc72d..8ae04803 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-3a8cddc4ecee394a7253767a8c87cf9f8a188ac4912ed2646bb2e17f6e75c967.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c9e121d35d8e61a73dbf20411a863cb00a0a19d62efc4ae6d7c379a41f402da5.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index e4551fb1..06ade462 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.163.0 (2024-11-14) + +Full Changelog: [v0.162.0...v0.163.0](https://github.com/Increase/increase-python/compare/v0.162.0...v0.163.0) + +### Features + +* **api:** api update ([#836](https://github.com/Increase/increase-python/issues/836)) ([1e75802](https://github.com/Increase/increase-python/commit/1e75802248f306092936d15a69dbb0f0d5050b93)) + ## 0.162.0 (2024-11-14) Full Changelog: [v0.161.0...v0.162.0](https://github.com/Increase/increase-python/compare/v0.161.0...v0.162.0) diff --git a/pyproject.toml b/pyproject.toml index 9cf845dc..6a9199f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.162.0" +version = "0.163.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 657ff194..581f0c95 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.162.0" # x-release-please-version +__version__ = "0.163.0" # x-release-please-version diff --git a/src/increase/types/card_payment.py b/src/increase/types/card_payment.py index ac6a2124..a14b2f97 100644 --- a/src/increase/types/card_payment.py +++ b/src/increase/types/card_payment.py @@ -828,6 +828,34 @@ class ElementCardDecline(BaseModel): transaction. """ + real_time_decision_reason: Optional[ + Literal[ + "insufficient_funds", + "transaction_never_allowed", + "exceeds_approval_limit", + "card_temporarily_disabled", + "suspected_fraud", + "other", + ] + ] = None + """ + This is present if a specific decline reason was given in the real-time + decision. + + - `insufficient_funds` - The cardholder does not have sufficient funds to cover + the transaction. The merchant may attempt to process the transaction again. + - `transaction_never_allowed` - This type of transaction is not allowed for this + card. This transaction should not be retried. + - `exceeds_approval_limit` - The transaction amount exceeds the cardholder's + approval limit. The merchant may attempt to process the transaction again. + - `card_temporarily_disabled` - The card has been temporarily disabled or not + yet activated. The merchant may attempt to process the transaction again. + - `suspected_fraud` - The transaction is suspected to be fraudulent. The + merchant may attempt to process the transaction again. + - `other` - The transaction was declined for another reason. The merchant may + attempt to process the transaction again. This should be used sparingly. + """ + reason: Literal[ "card_not_active", "physical_card_not_active", diff --git a/src/increase/types/declined_transaction.py b/src/increase/types/declined_transaction.py index 61fb3539..bc33fc7f 100644 --- a/src/increase/types/declined_transaction.py +++ b/src/increase/types/declined_transaction.py @@ -465,6 +465,34 @@ class SourceCardDecline(BaseModel): transaction. """ + real_time_decision_reason: Optional[ + Literal[ + "insufficient_funds", + "transaction_never_allowed", + "exceeds_approval_limit", + "card_temporarily_disabled", + "suspected_fraud", + "other", + ] + ] = None + """ + This is present if a specific decline reason was given in the real-time + decision. + + - `insufficient_funds` - The cardholder does not have sufficient funds to cover + the transaction. The merchant may attempt to process the transaction again. + - `transaction_never_allowed` - This type of transaction is not allowed for this + card. This transaction should not be retried. + - `exceeds_approval_limit` - The transaction amount exceeds the cardholder's + approval limit. The merchant may attempt to process the transaction again. + - `card_temporarily_disabled` - The card has been temporarily disabled or not + yet activated. The merchant may attempt to process the transaction again. + - `suspected_fraud` - The transaction is suspected to be fraudulent. The + merchant may attempt to process the transaction again. + - `other` - The transaction was declined for another reason. The merchant may + attempt to process the transaction again. This should be used sparingly. + """ + reason: Literal[ "card_not_active", "physical_card_not_active",