diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fa440d4de..9114bb1ed 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.269.0" + ".": "0.270.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4f46bd0e2..f0529b710 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d5c4c3a6..ff7420ce0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 370d145d8..e466f44a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index 9a198e68f..b54cf92e2 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -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 diff --git a/src/increase/resources/simulations/card_authorizations.py b/src/increase/resources/simulations/card_authorizations.py index d1feb92d8..a15dcf9c1 100644 --- a/src/increase/resources/simulations/card_authorizations.py +++ b/src/increase/resources/simulations/card_authorizations.py @@ -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, @@ -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. @@ -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 @@ -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. @@ -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, @@ -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, @@ -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, @@ -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. @@ -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 @@ -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. @@ -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, @@ -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, diff --git a/src/increase/types/simulations/card_authorization_create_params.py b/src/increase/types/simulations/card_authorization_create_params.py index d578690fe..98cfa68fe 100644 --- a/src/increase/types/simulations/card_authorization_create_params.py +++ b/src/increase/types/simulations/card_authorization_create_params.py @@ -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): @@ -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. @@ -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 @@ -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. + """ diff --git a/tests/api_resources/simulations/test_card_authorizations.py b/tests/api_resources/simulations/test_card_authorizations.py index 8701d79dd..e75da86aa 100644 --- a/tests/api_resources/simulations/test_card_authorizations.py +++ b/tests/api_resources/simulations/test_card_authorizations.py @@ -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", @@ -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"]) @@ -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", @@ -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"])