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.322.0"
".": "0.323.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 217
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-387c9e5ff5305d470ddf290a424b9d0f087fa295b56cf82265f2dfe8355a589a.yml
openapi_spec_hash: 2c624b8535be90329028f6b10281a313
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-10d8a2e25ff71893e14a81477ef7dbbf761af689e6ff074e13da10729a75cc9d.yml
openapi_spec_hash: 77a4f7c4b166e73a84c3b7f4e177631c
config_hash: e1885b38eded054b77308a024c5d80cc
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.323.0 (2025-09-09)

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

### Features

* **api:** api update ([8e45040](https://github.com/Increase/increase-python/commit/8e4504073bb7e32e07247a304f8ef2e2dbca0506))

## 0.322.0 (2025-09-08)

Full Changelog: [v0.321.0...v0.322.0](https://github.com/Increase/increase-python/compare/v0.321.0...v0.322.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.322.0"
version = "0.323.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.322.0" # x-release-please-version
__version__ = "0.323.0" # x-release-please-version
39 changes: 21 additions & 18 deletions src/increase/types/card_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,23 +582,24 @@ class ElementCardAuthorizationVerificationCardholderAddress(BaseModel):

result: Literal[
"not_checked",
"postal_code_match_address_not_checked",
"postal_code_match_address_no_match",
"postal_code_no_match_address_match",
"match",
"no_match",
"postal_code_match_address_not_checked",
]
"""The address verification result returned to the card network.

- `not_checked` - No address was provided in the authorization request.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified.
- `not_checked` - No address information was provided in the authorization
request.
- `postal_code_match_address_no_match` - Postal code matches, but the street
address does not match.
address does not match or was not provided.
- `postal_code_no_match_address_match` - Postal code does not match, but the
street address matches.
street address matches or was not provided.
- `match` - Postal code and street address match.
- `no_match` - Postal code and street address do not match.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified. (deprecated)
"""


Expand Down Expand Up @@ -1149,23 +1150,24 @@ class ElementCardDeclineVerificationCardholderAddress(BaseModel):

result: Literal[
"not_checked",
"postal_code_match_address_not_checked",
"postal_code_match_address_no_match",
"postal_code_no_match_address_match",
"match",
"no_match",
"postal_code_match_address_not_checked",
]
"""The address verification result returned to the card network.

- `not_checked` - No address was provided in the authorization request.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified.
- `not_checked` - No address information was provided in the authorization
request.
- `postal_code_match_address_no_match` - Postal code matches, but the street
address does not match.
address does not match or was not provided.
- `postal_code_no_match_address_match` - Postal code does not match, but the
street address matches.
street address matches or was not provided.
- `match` - Postal code and street address match.
- `no_match` - Postal code and street address do not match.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified. (deprecated)
"""


Expand Down Expand Up @@ -3342,23 +3344,24 @@ class ElementCardValidationVerificationCardholderAddress(BaseModel):

result: Literal[
"not_checked",
"postal_code_match_address_not_checked",
"postal_code_match_address_no_match",
"postal_code_no_match_address_match",
"match",
"no_match",
"postal_code_match_address_not_checked",
]
"""The address verification result returned to the card network.

- `not_checked` - No address was provided in the authorization request.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified.
- `not_checked` - No address information was provided in the authorization
request.
- `postal_code_match_address_no_match` - Postal code matches, but the street
address does not match.
address does not match or was not provided.
- `postal_code_no_match_address_match` - Postal code does not match, but the
street address matches.
street address matches or was not provided.
- `match` - Postal code and street address match.
- `no_match` - Postal code and street address do not match.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified. (deprecated)
"""


Expand Down
13 changes: 7 additions & 6 deletions src/increase/types/declined_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,23 +430,24 @@ class SourceCardDeclineVerificationCardholderAddress(BaseModel):

result: Literal[
"not_checked",
"postal_code_match_address_not_checked",
"postal_code_match_address_no_match",
"postal_code_no_match_address_match",
"match",
"no_match",
"postal_code_match_address_not_checked",
]
"""The address verification result returned to the card network.

- `not_checked` - No address was provided in the authorization request.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified.
- `not_checked` - No address information was provided in the authorization
request.
- `postal_code_match_address_no_match` - Postal code matches, but the street
address does not match.
address does not match or was not provided.
- `postal_code_no_match_address_match` - Postal code does not match, but the
street address matches.
street address matches or was not provided.
- `match` - Postal code and street address match.
- `no_match` - Postal code and street address do not match.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified. (deprecated)
"""


Expand Down
13 changes: 7 additions & 6 deletions src/increase/types/pending_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,23 +380,24 @@ class SourceCardAuthorizationVerificationCardholderAddress(BaseModel):

result: Literal[
"not_checked",
"postal_code_match_address_not_checked",
"postal_code_match_address_no_match",
"postal_code_no_match_address_match",
"match",
"no_match",
"postal_code_match_address_not_checked",
]
"""The address verification result returned to the card network.

- `not_checked` - No address was provided in the authorization request.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified.
- `not_checked` - No address information was provided in the authorization
request.
- `postal_code_match_address_no_match` - Postal code matches, but the street
address does not match.
address does not match or was not provided.
- `postal_code_no_match_address_match` - Postal code does not match, but the
street address matches.
street address matches or was not provided.
- `match` - Postal code and street address match.
- `no_match` - Postal code and street address do not match.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified. (deprecated)
"""


Expand Down
25 changes: 19 additions & 6 deletions src/increase/types/real_time_decision.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"CardAuthorizationAdditionalAmountsTransit",
"CardAuthorizationAdditionalAmountsUnknown",
"CardAuthorizationAdditionalAmountsVision",
"CardAuthorizationDecline",
"CardAuthorizationNetworkDetails",
"CardAuthorizationNetworkDetailsVisa",
"CardAuthorizationNetworkIdentifiers",
Expand Down Expand Up @@ -214,6 +215,11 @@ class CardAuthorizationAdditionalAmounts(BaseModel):
"""The part of this transaction amount that was for vision-related services."""


class CardAuthorizationDecline(BaseModel):
reason: str
"""The reason the authorization was declined."""


class CardAuthorizationNetworkDetailsVisa(BaseModel):
electronic_commerce_indicator: Optional[
Literal[
Expand Down Expand Up @@ -422,23 +428,24 @@ class CardAuthorizationVerificationCardholderAddress(BaseModel):

result: Literal[
"not_checked",
"postal_code_match_address_not_checked",
"postal_code_match_address_no_match",
"postal_code_no_match_address_match",
"match",
"no_match",
"postal_code_match_address_not_checked",
]
"""The address verification result returned to the card network.

- `not_checked` - No address was provided in the authorization request.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified.
- `not_checked` - No address information was provided in the authorization
request.
- `postal_code_match_address_no_match` - Postal code matches, but the street
address does not match.
address does not match or was not provided.
- `postal_code_no_match_address_match` - Postal code does not match, but the
street address matches.
street address matches or was not provided.
- `match` - Postal code and street address match.
- `no_match` - Postal code and street address do not match.
- `postal_code_match_address_not_checked` - Postal code matches, but the street
address was not verified. (deprecated)
"""


Expand Down Expand Up @@ -477,6 +484,12 @@ class CardAuthorization(BaseModel):
- `decline` - Decline the authorization.
"""

decline: Optional[CardAuthorizationDecline] = None
"""Present if and only if `decision` is `decline`.

Contains information related to the reason the authorization was declined.
"""

digital_wallet_token_id: Optional[str] = None
"""
If the authorization was made via a Digital Wallet Token (such as an Apple Pay
Expand Down
90 changes: 90 additions & 0 deletions src/increase/types/real_time_decision_action_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"CardAuthentication",
"CardAuthenticationChallenge",
"CardAuthorization",
"CardAuthorizationApproval",
"CardAuthorizationApprovalCardholderAddressVerificationResult",
"CardAuthorizationDecline",
"DigitalWalletAuthentication",
"DigitalWalletAuthenticationSuccess",
"DigitalWalletToken",
Expand Down Expand Up @@ -73,6 +76,73 @@ class CardAuthenticationChallenge(TypedDict, total=False):
"""


class CardAuthorizationApprovalCardholderAddressVerificationResult(TypedDict, total=False):
line1: Required[Literal["match", "no_match"]]
"""Your decision on the address line of the provided address.

- `match` - The cardholder address verification result matches the address
provided by the merchant.
- `no_match` - The cardholder address verification result does not match the
address provided by the merchant.
"""

postal_code: Required[Literal["match", "no_match"]]
"""Your decision on the postal code of the provided address.

- `match` - The cardholder address verification result matches the address
provided by the merchant.
- `no_match` - The cardholder address verification result does not match the
address provided by the merchant.
"""


class CardAuthorizationApproval(TypedDict, total=False):
cardholder_address_verification_result: CardAuthorizationApprovalCardholderAddressVerificationResult
"""Your decisions on whether or not each provided address component is a match.

Your response here is evaluated against the customer's provided `postal_code`
and `line1`, and an appropriate network response is generated. For example, if
you would like to approve all transactions for a given card, you can submit
`match` for both `postal_code` and `line1` and Increase will generate an
approval with an Address Verification System (AVS) code that will match all of
the available address information, or will report that no check was performed if
no address information is available. If you do not provide a response, the
address verification result will be calculated by Increase using the available
address information available on the card. If none is available, Increase will
report that no check was performed.
"""


class CardAuthorizationDecline(TypedDict, total=False):
reason: Required[
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 CardAuthorization(TypedDict, total=False):
decision: Required[Literal["approve", "decline"]]
"""Whether the card authorization should be approved or declined.
Expand All @@ -81,6 +151,20 @@ class CardAuthorization(TypedDict, total=False):
- `decline` - Decline the authorization.
"""

approval: CardAuthorizationApproval
"""
If your application approves the authorization, this contains metadata about
your decision to approve. Your response here is advisory to the acquiring bank.
The bank may choose to reverse the authorization if you approve the transaction
but indicate the address does not match.
"""

decline: CardAuthorizationDecline
"""
If your application declines the authorization, this contains details about the
decline.
"""

decline_reason: Literal[
"insufficient_funds",
"transaction_never_allowed",
Expand All @@ -92,6 +176,8 @@ class CardAuthorization(TypedDict, total=False):
"""The reason the card authorization was declined.

This translates to a specific decline code that is sent to the card network.
This field is deprecated, please transition to using the `decline` object as
this field will be removed in a future release.

- `insufficient_funds` - The cardholder does not have sufficient funds to cover
the transaction. The merchant may attempt to process the transaction again.
Expand Down Expand Up @@ -130,6 +216,10 @@ class DigitalWalletAuthentication(TypedDict, total=False):
"""

success: DigitalWalletAuthenticationSuccess
"""
If your application was able to deliver the one-time passcode, this contains
metadata about the delivery. Exactly one of `phone` or `email` must be provided.
"""


class DigitalWalletTokenApproval(TypedDict, total=False):
Expand Down
Loading