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.269.0"
".": "0.270.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: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f755cd0f7b44abb0c5ec9857c8ac47d778b3d753335d9a5cc3b73e4fdf9f2f96.yml
openapi_spec_hash: 16295ba5ba27744cd4f1464d640dadcf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4d843be8e5d44f9d79115d585ffdcda4b4d86a5f515fb00e547ba085156f44bb.yml
openapi_spec_hash: f5473cf6107b72c78bc87ecbc421dc5e
config_hash: a185e9a72778cc4658ea73fb3a7f1354
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.270.0 (2025-07-22)

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

### Features

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

## 0.269.0 (2025-07-22)

Full Changelog: [v0.268.0...v0.269.0](https://github.com/Increase/increase-python/compare/v0.268.0...v0.269.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.269.0"
version = "0.270.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.269.0" # x-release-please-version
__version__ = "0.270.0" # x-release-please-version
30 changes: 10 additions & 20 deletions src/increase/resources/simulations/card_authorizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def create(
]
| NotGiven = NOT_GIVEN,
digital_wallet_token_id: str | NotGiven = NOT_GIVEN,
direction: Literal["settlement", "refund"] | NotGiven = NOT_GIVEN,
event_subscription_id: str | NotGiven = NOT_GIVEN,
merchant_acceptor_id: str | NotGiven = NOT_GIVEN,
merchant_category_code: str | NotGiven = NOT_GIVEN,
Expand All @@ -84,6 +83,7 @@ def create(
network_details: card_authorization_create_params.NetworkDetails | NotGiven = NOT_GIVEN,
network_risk_score: int | NotGiven = NOT_GIVEN,
physical_card_id: str | NotGiven = NOT_GIVEN,
processing_category: card_authorization_create_params.ProcessingCategory | NotGiven = NOT_GIVEN,
terminal_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -146,14 +146,6 @@ def create(

digital_wallet_token_id: The identifier of the Digital Wallet Token to be authorized.

direction: The direction describes the direction the funds will move, either from the
cardholder to the merchant or from the merchant to the cardholder.

- `settlement` - A regular card authorization where funds are debited from the
cardholder.
- `refund` - A refund card authorization, sometimes referred to as a credit
voucher authorization, where funds are credited to the cardholder.

event_subscription_id: The identifier of the Event Subscription to use. If provided, will override the
default real time event subscription. Because you can only create one real time
decision event subscription, you can use this field to route events to any
Expand All @@ -180,6 +172,9 @@ def create(

physical_card_id: The identifier of the Physical Card to be authorized.

processing_category: Fields specific to a specific type of authorization, such as Automatic Fuel
Dispensers, Refund Authorizations, or Cash Disbursements.

terminal_id: The terminal identifier (commonly abbreviated as TID) of the terminal the card
is transacting with.

Expand All @@ -202,7 +197,6 @@ def create(
"card_id": card_id,
"decline_reason": decline_reason,
"digital_wallet_token_id": digital_wallet_token_id,
"direction": direction,
"event_subscription_id": event_subscription_id,
"merchant_acceptor_id": merchant_acceptor_id,
"merchant_category_code": merchant_category_code,
Expand All @@ -213,6 +207,7 @@ def create(
"network_details": network_details,
"network_risk_score": network_risk_score,
"physical_card_id": physical_card_id,
"processing_category": processing_category,
"terminal_id": terminal_id,
},
card_authorization_create_params.CardAuthorizationCreateParams,
Expand Down Expand Up @@ -278,7 +273,6 @@ async def create(
]
| NotGiven = NOT_GIVEN,
digital_wallet_token_id: str | NotGiven = NOT_GIVEN,
direction: Literal["settlement", "refund"] | NotGiven = NOT_GIVEN,
event_subscription_id: str | NotGiven = NOT_GIVEN,
merchant_acceptor_id: str | NotGiven = NOT_GIVEN,
merchant_category_code: str | NotGiven = NOT_GIVEN,
Expand All @@ -289,6 +283,7 @@ async def create(
network_details: card_authorization_create_params.NetworkDetails | NotGiven = NOT_GIVEN,
network_risk_score: int | NotGiven = NOT_GIVEN,
physical_card_id: str | NotGiven = NOT_GIVEN,
processing_category: card_authorization_create_params.ProcessingCategory | NotGiven = NOT_GIVEN,
terminal_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -351,14 +346,6 @@ async def create(

digital_wallet_token_id: The identifier of the Digital Wallet Token to be authorized.

direction: The direction describes the direction the funds will move, either from the
cardholder to the merchant or from the merchant to the cardholder.

- `settlement` - A regular card authorization where funds are debited from the
cardholder.
- `refund` - A refund card authorization, sometimes referred to as a credit
voucher authorization, where funds are credited to the cardholder.

event_subscription_id: The identifier of the Event Subscription to use. If provided, will override the
default real time event subscription. Because you can only create one real time
decision event subscription, you can use this field to route events to any
Expand All @@ -385,6 +372,9 @@ async def create(

physical_card_id: The identifier of the Physical Card to be authorized.

processing_category: Fields specific to a specific type of authorization, such as Automatic Fuel
Dispensers, Refund Authorizations, or Cash Disbursements.

terminal_id: The terminal identifier (commonly abbreviated as TID) of the terminal the card
is transacting with.

Expand All @@ -407,7 +397,6 @@ async def create(
"card_id": card_id,
"decline_reason": decline_reason,
"digital_wallet_token_id": digital_wallet_token_id,
"direction": direction,
"event_subscription_id": event_subscription_id,
"merchant_acceptor_id": merchant_acceptor_id,
"merchant_category_code": merchant_category_code,
Expand All @@ -418,6 +407,7 @@ async def create(
"network_details": network_details,
"network_risk_score": network_risk_score,
"physical_card_id": physical_card_id,
"processing_category": processing_category,
"terminal_id": terminal_id,
},
card_authorization_create_params.CardAuthorizationCreateParams,
Expand Down
55 changes: 43 additions & 12 deletions src/increase/types/simulations/card_authorization_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from typing_extensions import Literal, Required, TypedDict

__all__ = ["CardAuthorizationCreateParams", "NetworkDetails", "NetworkDetailsVisa"]
__all__ = ["CardAuthorizationCreateParams", "NetworkDetails", "NetworkDetailsVisa", "ProcessingCategory"]


class CardAuthorizationCreateParams(TypedDict, total=False):
Expand Down Expand Up @@ -80,17 +80,6 @@ class CardAuthorizationCreateParams(TypedDict, total=False):
digital_wallet_token_id: str
"""The identifier of the Digital Wallet Token to be authorized."""

direction: Literal["settlement", "refund"]
"""
The direction describes the direction the funds will move, either from the
cardholder to the merchant or from the merchant to the cardholder.

- `settlement` - A regular card authorization where funds are debited from the
cardholder.
- `refund` - A refund card authorization, sometimes referred to as a credit
voucher authorization, where funds are credited to the cardholder.
"""

event_subscription_id: str
"""The identifier of the Event Subscription to use.

Expand Down Expand Up @@ -136,6 +125,12 @@ class CardAuthorizationCreateParams(TypedDict, total=False):
physical_card_id: str
"""The identifier of the Physical Card to be authorized."""

processing_category: ProcessingCategory
"""
Fields specific to a specific type of authorization, such as Automatic Fuel
Dispensers, Refund Authorizations, or Cash Disbursements.
"""

terminal_id: str
"""
The terminal identifier (commonly abbreviated as TID) of the terminal the card
Expand Down Expand Up @@ -178,3 +173,39 @@ class NetworkDetailsVisa(TypedDict, total=False):
class NetworkDetails(TypedDict, total=False):
visa: Required[NetworkDetailsVisa]
"""Fields specific to the Visa network."""


class ProcessingCategory(TypedDict, total=False):
category: Required[
Literal[
"account_funding",
"automatic_fuel_dispenser",
"bill_payment",
"original_credit",
"purchase",
"quasi_cash",
"refund",
"cash_disbursement",
]
]
"""
The processing category describes the intent behind the authorization, such as
whether it was used for bill payments or an automatic fuel dispenser.

- `account_funding` - Account funding transactions are transactions used to
e.g., fund an account or transfer funds between accounts.
- `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
when a card is used at a gas pump, prior to the actual transaction amount
being known. They are followed by an advice message that updates the amount of
the pending transaction.
- `bill_payment` - A transaction used to pay a bill.
- `original_credit` - Original credit transactions are used to send money to a
cardholder.
- `purchase` - A regular purchase.
- `quasi_cash` - Quasi-cash transactions represent purchases of items which may
be convertible to cash.
- `refund` - A refund card authorization, sometimes referred to as a credit
voucher authorization, where funds are credited to the cardholder.
- `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
from an ATM or a point of sale.
"""
4 changes: 2 additions & 2 deletions tests/api_resources/simulations/test_card_authorizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
card_id="card_oubs0hwk5rn6knuecxg2",
decline_reason="account_closed",
digital_wallet_token_id="digital_wallet_token_id",
direction="settlement",
event_subscription_id="event_subscription_001dzz0r20rcdxgb013zqb8m04g",
merchant_acceptor_id="5665270011000168",
merchant_category_code="5734",
Expand All @@ -43,6 +42,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
network_details={"visa": {"stand_in_processing_reason": "issuer_error"}},
network_risk_score=0,
physical_card_id="physical_card_id",
processing_category={"category": "account_funding"},
terminal_id="x",
)
assert_matches_type(CardAuthorizationCreateResponse, card_authorization, path=["response"])
Expand Down Expand Up @@ -92,7 +92,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
card_id="card_oubs0hwk5rn6knuecxg2",
decline_reason="account_closed",
digital_wallet_token_id="digital_wallet_token_id",
direction="settlement",
event_subscription_id="event_subscription_001dzz0r20rcdxgb013zqb8m04g",
merchant_acceptor_id="5665270011000168",
merchant_category_code="5734",
Expand All @@ -103,6 +102,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
network_details={"visa": {"stand_in_processing_reason": "issuer_error"}},
network_risk_score=0,
physical_card_id="physical_card_id",
processing_category={"category": "account_funding"},
terminal_id="x",
)
assert_matches_type(CardAuthorizationCreateResponse, card_authorization, path=["response"])
Expand Down