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.471.0"
".": "0.472.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: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c73835a51350d0f42d529d2731b0d4da4487f55b1c98a6e0a322c21b1264f209.yml
openapi_spec_hash: 23561aff9285210e32b4e15e1486a01a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-10b0412eb48b8e2b9720b29cf479448d246a9169c1937177f11a3d2ef80ae7f1.yml
openapi_spec_hash: ed688969255974736f3fbd4e6f30194e
config_hash: 4945e03affdf289484733306e4797f81
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.472.0 (2026-04-06)

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

### Features

* **api:** api update ([b71af2d](https://github.com/Increase/increase-python/commit/b71af2d0eeeccb9f66507bfc81af83d714632a0a))

## 0.471.0 (2026-04-04)

Full Changelog: [v0.470.0...v0.471.0](https://github.com/Increase/increase-python/compare/v0.470.0...v0.471.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.471.0"
version = "0.472.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.471.0" # x-release-please-version
__version__ = "0.472.0" # x-release-please-version
96 changes: 72 additions & 24 deletions src/increase/types/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
__all__ = [
"Card",
"AuthorizationControls",
"AuthorizationControlsMaximumAuthorizationCount",
"AuthorizationControlsMerchantAcceptorIdentifier",
"AuthorizationControlsMerchantAcceptorIdentifierAllowed",
"AuthorizationControlsMerchantAcceptorIdentifierBlocked",
Expand All @@ -21,23 +20,17 @@
"AuthorizationControlsMerchantCountry",
"AuthorizationControlsMerchantCountryAllowed",
"AuthorizationControlsMerchantCountryBlocked",
"AuthorizationControlsSpendingLimit",
"AuthorizationControlsSpendingLimitMerchantCategoryCode",
"AuthorizationControlsUsage",
"AuthorizationControlsUsageMultiUse",
"AuthorizationControlsUsageMultiUseSpendingLimit",
"AuthorizationControlsUsageMultiUseSpendingLimitMerchantCategoryCode",
"AuthorizationControlsUsageSingleUse",
"AuthorizationControlsUsageSingleUseSettlementAmount",
"BillingAddress",
"DigitalWallet",
]


class AuthorizationControlsMaximumAuthorizationCount(BaseModel):
"""Limits the number of authorizations that can be approved on this card."""

all_time: Optional[int] = None
"""
The maximum number of authorizations that can be approved on this card over its
lifetime.
"""


class AuthorizationControlsMerchantAcceptorIdentifierAllowed(BaseModel):
identifier: str
"""The Merchant Acceptor ID."""
Expand Down Expand Up @@ -104,12 +97,12 @@ class AuthorizationControlsMerchantCountry(BaseModel):
"""The merchant countries that are blocked for authorizations on this card."""


class AuthorizationControlsSpendingLimitMerchantCategoryCode(BaseModel):
class AuthorizationControlsUsageMultiUseSpendingLimitMerchantCategoryCode(BaseModel):
code: str
"""The Merchant Category Code (MCC)."""


class AuthorizationControlsSpendingLimit(BaseModel):
class AuthorizationControlsUsageMultiUseSpendingLimit(BaseModel):
interval: Literal["all_time", "per_transaction", "per_day", "per_week", "per_month"]
"""The interval at which the spending limit is enforced.

Expand All @@ -123,7 +116,7 @@ class AuthorizationControlsSpendingLimit(BaseModel):
month, midnight UTC.
"""

merchant_category_codes: Optional[List[AuthorizationControlsSpendingLimitMerchantCategoryCode]] = None
merchant_category_codes: Optional[List[AuthorizationControlsUsageMultiUseSpendingLimitMerchantCategoryCode]] = None
"""The Merchant Category Codes (MCCs) this spending limit applies to.

If not set, the limit applies to all transactions.
Expand All @@ -133,12 +126,70 @@ class AuthorizationControlsSpendingLimit(BaseModel):
"""The maximum settlement amount permitted in the given interval."""


class AuthorizationControlsUsageMultiUse(BaseModel):
"""Controls for multi-use cards.

Required if and only if `category` is `multi_use`.
"""

spending_limits: Optional[List[AuthorizationControlsUsageMultiUseSpendingLimit]] = None
"""Spending limits for this card.

The most restrictive limit applies if multiple limits match.
"""


class AuthorizationControlsUsageSingleUseSettlementAmount(BaseModel):
"""The settlement amount constraint for this single-use card."""

comparison: Literal["equals", "less_than_or_equals"]
"""The operator used to compare the settlement amount.

- `equals` - The settlement amount must be exactly the specified value.
- `less_than_or_equals` - The settlement amount must be less than or equal to
the specified value.
"""

value: int
"""The settlement amount value."""


class AuthorizationControlsUsageSingleUse(BaseModel):
"""Controls for single-use cards.

Required if and only if `category` is `single_use`.
"""

settlement_amount: AuthorizationControlsUsageSingleUseSettlementAmount
"""The settlement amount constraint for this single-use card."""


class AuthorizationControlsUsage(BaseModel):
"""Controls how many times this card can be used."""

category: Literal["single_use", "multi_use"]
"""Whether the card is for a single use or multiple uses.

- `single_use` - The card can only be used for a single authorization.
- `multi_use` - The card can be used for multiple authorizations.
"""

multi_use: Optional[AuthorizationControlsUsageMultiUse] = None
"""Controls for multi-use cards.

Required if and only if `category` is `multi_use`.
"""

single_use: Optional[AuthorizationControlsUsageSingleUse] = None
"""Controls for single-use cards.

Required if and only if `category` is `single_use`.
"""


class AuthorizationControls(BaseModel):
"""Controls that restrict how this card can be used."""

maximum_authorization_count: Optional[AuthorizationControlsMaximumAuthorizationCount] = None
"""Limits the number of authorizations that can be approved on this card."""

merchant_acceptor_identifier: Optional[AuthorizationControlsMerchantAcceptorIdentifier] = None
"""
Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
Expand All @@ -157,11 +208,8 @@ class AuthorizationControls(BaseModel):
this card.
"""

spending_limits: Optional[List[AuthorizationControlsSpendingLimit]] = None
"""Spending limits for this card.

The most restrictive limit applies if multiple limits match.
"""
usage: Optional[AuthorizationControlsUsage] = None
"""Controls how many times this card can be used."""


class BillingAddress(BaseModel):
Expand Down
96 changes: 72 additions & 24 deletions src/increase/types/card_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
__all__ = [
"CardCreateParams",
"AuthorizationControls",
"AuthorizationControlsMaximumAuthorizationCount",
"AuthorizationControlsMerchantAcceptorIdentifier",
"AuthorizationControlsMerchantAcceptorIdentifierAllowed",
"AuthorizationControlsMerchantAcceptorIdentifierBlocked",
Expand All @@ -18,8 +17,12 @@
"AuthorizationControlsMerchantCountry",
"AuthorizationControlsMerchantCountryAllowed",
"AuthorizationControlsMerchantCountryBlocked",
"AuthorizationControlsSpendingLimit",
"AuthorizationControlsSpendingLimitMerchantCategoryCode",
"AuthorizationControlsUsage",
"AuthorizationControlsUsageMultiUse",
"AuthorizationControlsUsageMultiUseSpendingLimit",
"AuthorizationControlsUsageMultiUseSpendingLimitMerchantCategoryCode",
"AuthorizationControlsUsageSingleUse",
"AuthorizationControlsUsageSingleUseSettlementAmount",
"BillingAddress",
"DigitalWallet",
]
Expand Down Expand Up @@ -55,16 +58,6 @@ class CardCreateParams(TypedDict, total=False):
"""


class AuthorizationControlsMaximumAuthorizationCount(TypedDict, total=False):
"""Limits the number of authorizations that can be approved on this card."""

all_time: Required[int]
"""
The maximum number of authorizations that can be approved on this card over its
lifetime.
"""


class AuthorizationControlsMerchantAcceptorIdentifierAllowed(TypedDict, total=False):
identifier: Required[str]
"""The Merchant Acceptor ID."""
Expand Down Expand Up @@ -149,12 +142,12 @@ class AuthorizationControlsMerchantCountry(TypedDict, total=False):
"""


class AuthorizationControlsSpendingLimitMerchantCategoryCode(TypedDict, total=False):
class AuthorizationControlsUsageMultiUseSpendingLimitMerchantCategoryCode(TypedDict, total=False):
code: Required[str]
"""The Merchant Category Code."""


class AuthorizationControlsSpendingLimit(TypedDict, total=False):
class AuthorizationControlsUsageMultiUseSpendingLimit(TypedDict, total=False):
interval: Required[Literal["all_time", "per_transaction", "per_day", "per_week", "per_month"]]
"""The interval at which the spending limit is enforced.

Expand All @@ -171,19 +164,77 @@ class AuthorizationControlsSpendingLimit(TypedDict, total=False):
settlement_amount: Required[int]
"""The maximum settlement amount permitted in the given interval."""

merchant_category_codes: Iterable[AuthorizationControlsSpendingLimitMerchantCategoryCode]
merchant_category_codes: Iterable[AuthorizationControlsUsageMultiUseSpendingLimitMerchantCategoryCode]
"""The Merchant Category Codes this spending limit applies to.

If not set, the limit applies to all transactions.
"""


class AuthorizationControlsUsageMultiUse(TypedDict, total=False):
"""Controls for multi-use cards.

Required if and only if `category` is `multi_use`.
"""

spending_limits: Iterable[AuthorizationControlsUsageMultiUseSpendingLimit]
"""Spending limits for this card.

The most restrictive limit applies if multiple limits match.
"""


class AuthorizationControlsUsageSingleUseSettlementAmount(TypedDict, total=False):
"""The settlement amount constraint for this single-use card."""

comparison: Required[Literal["equals", "less_than_or_equals"]]
"""The operator used to compare the settlement amount.

- `equals` - The settlement amount must be exactly the specified value.
- `less_than_or_equals` - The settlement amount must be less than or equal to
the specified value.
"""

value: Required[int]
"""The settlement amount value."""


class AuthorizationControlsUsageSingleUse(TypedDict, total=False):
"""Controls for single-use cards.

Required if and only if `category` is `single_use`.
"""

settlement_amount: Required[AuthorizationControlsUsageSingleUseSettlementAmount]
"""The settlement amount constraint for this single-use card."""


class AuthorizationControlsUsage(TypedDict, total=False):
"""Controls how many times this card can be used."""

category: Required[Literal["single_use", "multi_use"]]
"""Whether the card is for a single use or multiple uses.

- `single_use` - The card can only be used for a single authorization.
- `multi_use` - The card can be used for multiple authorizations.
"""

multi_use: AuthorizationControlsUsageMultiUse
"""Controls for multi-use cards.

Required if and only if `category` is `multi_use`.
"""

single_use: AuthorizationControlsUsageSingleUse
"""Controls for single-use cards.

Required if and only if `category` is `single_use`.
"""


class AuthorizationControls(TypedDict, total=False):
"""Controls that restrict how this card can be used."""

maximum_authorization_count: AuthorizationControlsMaximumAuthorizationCount
"""Limits the number of authorizations that can be approved on this card."""

merchant_acceptor_identifier: AuthorizationControlsMerchantAcceptorIdentifier
"""
Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
Expand All @@ -202,11 +253,8 @@ class AuthorizationControls(TypedDict, total=False):
this card.
"""

spending_limits: Iterable[AuthorizationControlsSpendingLimit]
"""Spending limits for this card.

The most restrictive limit applies if multiple limits match.
"""
usage: AuthorizationControlsUsage
"""Controls how many times this card can be used."""


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