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.160.0"
".": "0.161.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-20b5808422396f14819d54eb4e784f9cb93645d7bddbc3129e8fcf0b39e377b7.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3a8cddc4ecee394a7253767a8c87cf9f8a188ac4912ed2646bb2e17f6e75c967.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.161.0 (2024-11-13)

Full Changelog: [v0.160.0...v0.161.0](https://github.com/Increase/increase-python/compare/v0.160.0...v0.161.0)

### Features

* **api:** api update ([#829](https://github.com/Increase/increase-python/issues/829)) ([25b1e0e](https://github.com/Increase/increase-python/commit/25b1e0e9891df0d6f45e947c9e3ddf9b90c2d8e6))

## 0.160.0 (2024-11-13)

Full Changelog: [v0.159.0...v0.160.0](https://github.com/Increase/increase-python/compare/v0.159.0...v0.160.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.160.0"
version = "0.161.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.160.0" # x-release-please-version
__version__ = "0.161.0" # x-release-please-version
26 changes: 26 additions & 0 deletions src/increase/types/real_time_decision_action_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,32 @@ class CardAuthorization(TypedDict, total=False):
- `decline` - Decline the authorization.
"""

decline_reason: Literal[
"insufficient_funds",
"transaction_never_allowed",
"exceeds_approval_limit",
"card_temporarily_disabled",
"suspected_fraud",
"other",
]
"""The reason the card authorization was declined.

This translates to a specific decline code that is sent to the card network.

- `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 DigitalWalletAuthenticationSuccess(TypedDict, total=False):
email: str
Expand Down
10 changes: 8 additions & 2 deletions tests/api_resources/test_real_time_decisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def test_method_action_with_all_params(self, client: Increase) -> None:
real_time_decision_id="real_time_decision_j76n2e810ezcg3zh5qtn",
card_authentication={"decision": "approve"},
card_authentication_challenge={"result": "success"},
card_authorization={"decision": "approve"},
card_authorization={
"decision": "approve",
"decline_reason": "insufficient_funds",
},
digital_wallet_authentication={
"result": "success",
"success": {
Expand Down Expand Up @@ -172,7 +175,10 @@ async def test_method_action_with_all_params(self, async_client: AsyncIncrease)
real_time_decision_id="real_time_decision_j76n2e810ezcg3zh5qtn",
card_authentication={"decision": "approve"},
card_authentication_challenge={"result": "success"},
card_authorization={"decision": "approve"},
card_authorization={
"decision": "approve",
"decline_reason": "insufficient_funds",
},
digital_wallet_authentication={
"result": "success",
"success": {
Expand Down