diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a13afdac..88948f35 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.399.0" + ".": "0.400.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ea9c085b..94f44024 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 229 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cfdb6b2516039e7537ec6edb67df5581e3f08396a9f92579dd42c565015583e6.yml -openapi_spec_hash: c41230e467198f4240e80c77ef8c5c7c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a66f039751a4ffdebbbf533f24f55cd2c42708b9cf105512849849fddaafb5e8.yml +openapi_spec_hash: c265609bceb053f898ea14b1191fe927 config_hash: ca1425272e17fa23d4466d33492334fa diff --git a/CHANGELOG.md b/CHANGELOG.md index c85c3f5c..6305313d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.400.0 (2025-11-24) + +Full Changelog: [v0.399.0...v0.400.0](https://github.com/Increase/increase-python/compare/v0.399.0...v0.400.0) + +### Features + +* **api:** api update ([ef8c92f](https://github.com/Increase/increase-python/commit/ef8c92f7aa7a9e5078198e8db712742139323a53)) + + +### Chores + +* add Python 3.14 classifier and testing ([4960e57](https://github.com/Increase/increase-python/commit/4960e57589600e7b8b1f4f9eed59500d2b3bf444)) + ## 0.399.0 (2025-11-21) Full Changelog: [v0.398.0...v0.399.0](https://github.com/Increase/increase-python/compare/v0.398.0...v0.399.0) diff --git a/pyproject.toml b/pyproject.toml index c031900f..b0a15666 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.399.0" +version = "0.400.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Operating System :: OS Independent", "Operating System :: POSIX", "Operating System :: MacOS", diff --git a/src/increase/_version.py b/src/increase/_version.py index f2b74cd4..91aeef79 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.399.0" # x-release-please-version +__version__ = "0.400.0" # x-release-please-version diff --git a/src/increase/types/real_time_decision.py b/src/increase/types/real_time_decision.py index ff389765..3de77429 100644 --- a/src/increase/types/real_time_decision.py +++ b/src/increase/types/real_time_decision.py @@ -275,8 +275,29 @@ class CardAuthorizationAdditionalAmounts(BaseModel): class CardAuthorizationDecline(BaseModel): - reason: str - """The reason the authorization was declined.""" + reason: Literal[ + "insufficient_funds", + "transaction_never_allowed", + "exceeds_approval_limit", + "card_temporarily_disabled", + "suspected_fraud", + "other", + ] + """The reason the authorization was declined. + + - `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. + """ class CardAuthorizationNetworkDetailsPulse(BaseModel):