Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.162.0"
".": "0.163.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions src/increase/types/card_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
28 changes: 28 additions & 0 deletions src/increase/types/declined_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down