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.426.0"
".": "0.427.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: 234
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d73ee438cf15ca739d3ac64cc009b613f9e17ed76a31f8cc95f1a9968196bde1.yml
openapi_spec_hash: 933ce5facdc1d8a41ed063d925846de3
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b42ffa447aa14da70d972676b1d5ad0c2720ff4e33a483037b2b1bb51190a69f.yml
openapi_spec_hash: f2a5c5e804880a8e8d13f5f32ca264a1
config_hash: b7ec7f54fa76c1f8bde7a548710a1d38
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.427.0 (2026-03-09)

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

### Features

* **api:** api update ([3c46a09](https://github.com/Increase/increase-python/commit/3c46a098fe1079196e5f265b479eb1349993c0fe))

## 0.426.0 (2026-03-09)

Full Changelog: [v0.425.0...v0.426.0](https://github.com/Increase/increase-python/compare/v0.425.0...v0.426.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.426.0"
version = "0.427.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.426.0" # x-release-please-version
__version__ = "0.427.0" # x-release-please-version
108 changes: 67 additions & 41 deletions src/increase/types/card_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"ElementCardAuthenticationDeviceChannel",
"ElementCardAuthenticationDeviceChannelBrowser",
"ElementCardAuthenticationDeviceChannelMerchantInitiated",
"ElementCardAuthenticationMessageCategory",
"ElementCardAuthenticationMessageCategoryNonPayment",
"ElementCardAuthenticationMessageCategoryPayment",
"ElementCardAuthorization",
"ElementCardAuthorizationAdditionalAmounts",
"ElementCardAuthorizationAdditionalAmountsClinic",
Expand Down Expand Up @@ -299,6 +302,67 @@ class ElementCardAuthenticationDeviceChannel(BaseModel):
"""Fields specific to merchant initiated transactions."""


class ElementCardAuthenticationMessageCategoryNonPayment(BaseModel):
"""Fields specific to non-payment authentication attempts."""

pass


class ElementCardAuthenticationMessageCategoryPayment(BaseModel):
"""Fields specific to payment authentication attempts."""

purchase_amount: int
"""The purchase amount in minor units."""

purchase_amount_cardholder_estimated: Optional[int] = None
"""
The purchase amount in the cardholder's currency (i.e., USD) estimated using
daily conversion rates from the card network.
"""

purchase_currency: str
"""
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
authentication attempt's purchase currency.
"""

transaction_type: Optional[
Literal[
"goods_service_purchase",
"check_acceptance",
"account_funding",
"quasi_cash_transaction",
"prepaid_activation_and_load",
]
] = None
"""The type of transaction being authenticated.

- `goods_service_purchase` - Purchase of goods or services.
- `check_acceptance` - Check acceptance.
- `account_funding` - Account funding.
- `quasi_cash_transaction` - Quasi-cash transaction.
- `prepaid_activation_and_load` - Prepaid activation and load.
"""


class ElementCardAuthenticationMessageCategory(BaseModel):
"""The message category of the card authentication attempt."""

category: Literal["payment_authentication", "non_payment_authentication"]
"""The category of the card authentication attempt.

- `payment_authentication` - The authentication attempt is for a payment.
- `non_payment_authentication` - The authentication attempt is not for a
payment.
"""

non_payment: Optional[ElementCardAuthenticationMessageCategoryNonPayment] = None
"""Fields specific to non-payment authentication attempts."""

payment: Optional[ElementCardAuthenticationMessageCategoryPayment] = None
"""Fields specific to payment authentication attempts."""


class ElementCardAuthentication(BaseModel):
"""A Card Authentication object.

Expand Down Expand Up @@ -368,14 +432,6 @@ class ElementCardAuthentication(BaseModel):
cardholder_name: Optional[str] = None
"""The name of the cardholder."""

category: Optional[Literal["payment_authentication", "non_payment_authentication"]] = None
"""The category of the card authentication attempt.

- `payment_authentication` - The authentication attempt is for a payment.
- `non_payment_authentication` - The authentication attempt is not for a
payment.
"""

challenge: Optional[ElementCardAuthenticationChallenge] = None
"""Details about the challenge, if one was requested."""

Expand Down Expand Up @@ -432,27 +488,15 @@ class ElementCardAuthentication(BaseModel):
merchant_name: Optional[str] = None
"""The name of the merchant."""

message_category: ElementCardAuthenticationMessageCategory
"""The message category of the card authentication attempt."""

prior_authenticated_card_payment_id: Optional[str] = None
"""
The ID of a prior Card Authentication that the requestor used to authenticate
this cardholder for a previous transaction.
"""

purchase_amount: Optional[int] = None
"""The purchase amount in minor units."""

purchase_amount_cardholder_estimated: Optional[int] = None
"""
The purchase amount in the cardholder's currency (i.e., USD) estimated using
daily conversion rates from the card network.
"""

purchase_currency: Optional[str] = None
"""
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
authentication attempt's purchase currency.
"""

real_time_decision_id: Optional[str] = None
"""
The identifier of the Real-Time Decision sent to approve or decline this
Expand Down Expand Up @@ -578,24 +622,6 @@ class ElementCardAuthentication(BaseModel):
attempt for this transaction.
"""

transaction_type: Optional[
Literal[
"goods_service_purchase",
"check_acceptance",
"account_funding",
"quasi_cash_transaction",
"prepaid_activation_and_load",
]
] = None
"""The type of transaction being authenticated.

- `goods_service_purchase` - Purchase of goods or services.
- `check_acceptance` - Check acceptance.
- `account_funding` - Account funding.
- `quasi_cash_transaction` - Quasi-cash transaction.
- `prepaid_activation_and_load` - Prepaid activation and load.
"""

type: Literal["card_authentication"]
"""A constant representing the object's type.

Expand Down
108 changes: 67 additions & 41 deletions src/increase/types/real_time_decision.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"CardAuthenticationDeviceChannel",
"CardAuthenticationDeviceChannelBrowser",
"CardAuthenticationDeviceChannelMerchantInitiated",
"CardAuthenticationMessageCategory",
"CardAuthenticationMessageCategoryNonPayment",
"CardAuthenticationMessageCategoryPayment",
"CardAuthenticationChallenge",
"CardAuthorization",
"CardAuthorizationAdditionalAmounts",
Expand Down Expand Up @@ -157,6 +160,67 @@ class CardAuthenticationDeviceChannel(BaseModel):
"""Fields specific to merchant initiated transactions."""


class CardAuthenticationMessageCategoryNonPayment(BaseModel):
"""Fields specific to non-payment authentication attempts."""

pass


class CardAuthenticationMessageCategoryPayment(BaseModel):
"""Fields specific to payment authentication attempts."""

purchase_amount: int
"""The purchase amount in minor units."""

purchase_amount_cardholder_estimated: Optional[int] = None
"""
The purchase amount in the cardholder's currency (i.e., USD) estimated using
daily conversion rates from the card network.
"""

purchase_currency: str
"""
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
authentication attempt's purchase currency.
"""

transaction_type: Optional[
Literal[
"goods_service_purchase",
"check_acceptance",
"account_funding",
"quasi_cash_transaction",
"prepaid_activation_and_load",
]
] = None
"""The type of transaction being authenticated.

- `goods_service_purchase` - Purchase of goods or services.
- `check_acceptance` - Check acceptance.
- `account_funding` - Account funding.
- `quasi_cash_transaction` - Quasi-cash transaction.
- `prepaid_activation_and_load` - Prepaid activation and load.
"""


class CardAuthenticationMessageCategory(BaseModel):
"""The message category of the card authentication attempt."""

category: Literal["payment_authentication", "non_payment_authentication"]
"""The category of the card authentication attempt.

- `payment_authentication` - The authentication attempt is for a payment.
- `non_payment_authentication` - The authentication attempt is not for a
payment.
"""

non_payment: Optional[CardAuthenticationMessageCategoryNonPayment] = None
"""Fields specific to non-payment authentication attempts."""

payment: Optional[CardAuthenticationMessageCategoryPayment] = None
"""Fields specific to payment authentication attempts."""


class CardAuthentication(BaseModel):
"""Fields related to a 3DS authentication attempt."""

Expand Down Expand Up @@ -220,14 +284,6 @@ class CardAuthentication(BaseModel):
cardholder_name: Optional[str] = None
"""The name of the cardholder."""

category: Optional[Literal["payment_authentication", "non_payment_authentication"]] = None
"""The category of the card authentication attempt.

- `payment_authentication` - The authentication attempt is for a payment.
- `non_payment_authentication` - The authentication attempt is not for a
payment.
"""

decision: Optional[Literal["approve", "challenge", "deny"]] = None
"""Whether or not the authentication attempt was approved.

Expand Down Expand Up @@ -264,27 +320,15 @@ class CardAuthentication(BaseModel):
merchant_name: Optional[str] = None
"""The name of the merchant."""

message_category: CardAuthenticationMessageCategory
"""The message category of the card authentication attempt."""

prior_authenticated_card_payment_id: Optional[str] = None
"""
The ID of a prior Card Authentication that the requestor used to authenticate
this cardholder for a previous transaction.
"""

purchase_amount: Optional[int] = None
"""The purchase amount in minor units."""

purchase_amount_cardholder_estimated: Optional[int] = None
"""
The purchase amount in the cardholder's currency (i.e., USD) estimated using
daily conversion rates from the card network.
"""

purchase_currency: Optional[str] = None
"""
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
authentication attempt's purchase currency.
"""

requestor_authentication_indicator: Optional[
Literal[
"payment_transaction",
Expand Down Expand Up @@ -376,24 +420,6 @@ class CardAuthentication(BaseModel):
attempt for this transaction.
"""

transaction_type: Optional[
Literal[
"goods_service_purchase",
"check_acceptance",
"account_funding",
"quasi_cash_transaction",
"prepaid_activation_and_load",
]
] = None
"""The type of transaction being authenticated.

- `goods_service_purchase` - Purchase of goods or services.
- `check_acceptance` - Check acceptance.
- `account_funding` - Account funding.
- `quasi_cash_transaction` - Quasi-cash transaction.
- `prepaid_activation_and_load` - Prepaid activation and load.
"""

upcoming_card_payment_id: str
"""The identifier of the Card Payment this authentication attempt will belong to.

Expand Down