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.483.0"
".": "0.484.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 240
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c9957e6ab1c9adef0dfb9a3956c8e7505a1661d22e79531eaee71b2a3a699b61.yml
openapi_spec_hash: 1190741469af674747df81908239a601
config_hash: 82cb0fb1fae47b3467cd6da4273541de
configured_endpoints: 241
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ecd0cee565701f1d47c0db3efed2734f1195f60e5767c9c5f67ddb5de5e6abf1.yml
openapi_spec_hash: d9205bf9cc1ce52d0d046007318761a1
config_hash: cb5b8736705c06b670f6a25484622d62
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.484.0 (2026-04-13)

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

### Features

* **api:** api update ([0483ba4](https://github.com/Increase/increase-python/commit/0483ba4268f9509fd6c22777cbaf8d734dff8642))

## 0.483.0 (2026-04-13)

Full Changelog: [v0.482.0...v0.483.0](https://github.com/Increase/increase-python/compare/v0.482.0...v0.483.0)
Expand Down
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,12 @@ Methods:
- <code title="post /simulations/card_authentications/{card_payment_id}/challenge_attempts">client.simulations.card_authentications.<a href="./src/increase/resources/simulations/card_authentications.py">challenge_attempts</a>(card_payment_id, \*\*<a href="src/increase/types/simulations/card_authentication_challenge_attempts_params.py">params</a>) -> <a href="./src/increase/types/card_payment.py">CardPayment</a></code>
- <code title="post /simulations/card_authentications/{card_payment_id}/challenges">client.simulations.card_authentications.<a href="./src/increase/resources/simulations/card_authentications.py">challenges</a>(card_payment_id) -> <a href="./src/increase/types/card_payment.py">CardPayment</a></code>

## CardPurchaseSupplements

Methods:

- <code title="post /simulations/card_purchase_supplements">client.simulations.card_purchase_supplements.<a href="./src/increase/resources/simulations/card_purchase_supplements.py">create</a>(\*\*<a href="src/increase/types/simulations/card_purchase_supplement_create_params.py">params</a>) -> <a href="./src/increase/types/card_purchase_supplement.py">CardPurchaseSupplement</a></code>

## CardDisputes

Methods:
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.483.0"
version = "0.484.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.483.0" # x-release-please-version
__version__ = "0.484.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/increase/resources/simulations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@
InboundFednowTransfersResourceWithStreamingResponse,
AsyncInboundFednowTransfersResourceWithStreamingResponse,
)
from .card_purchase_supplements import (
CardPurchaseSupplementsResource,
AsyncCardPurchaseSupplementsResource,
CardPurchaseSupplementsResourceWithRawResponse,
AsyncCardPurchaseSupplementsResourceWithRawResponse,
CardPurchaseSupplementsResourceWithStreamingResponse,
AsyncCardPurchaseSupplementsResourceWithStreamingResponse,
)
from .entity_onboarding_sessions import (
EntityOnboardingSessionsResource,
AsyncEntityOnboardingSessionsResource,
Expand Down Expand Up @@ -326,6 +334,12 @@
"AsyncCardAuthenticationsResourceWithRawResponse",
"CardAuthenticationsResourceWithStreamingResponse",
"AsyncCardAuthenticationsResourceWithStreamingResponse",
"CardPurchaseSupplementsResource",
"AsyncCardPurchaseSupplementsResource",
"CardPurchaseSupplementsResourceWithRawResponse",
"AsyncCardPurchaseSupplementsResourceWithRawResponse",
"CardPurchaseSupplementsResourceWithStreamingResponse",
"AsyncCardPurchaseSupplementsResourceWithStreamingResponse",
"CardDisputesResource",
"AsyncCardDisputesResource",
"CardDisputesResourceWithRawResponse",
Expand Down
215 changes: 215 additions & 0 deletions src/increase/resources/simulations/card_purchase_supplements.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Iterable

import httpx

from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
from ..._utils import maybe_transform, async_maybe_transform
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._base_client import make_request_options
from ...types.simulations import card_purchase_supplement_create_params
from ...types.card_purchase_supplement import CardPurchaseSupplement

__all__ = ["CardPurchaseSupplementsResource", "AsyncCardPurchaseSupplementsResource"]


class CardPurchaseSupplementsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CardPurchaseSupplementsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
"""
return CardPurchaseSupplementsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> CardPurchaseSupplementsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/Increase/increase-python#with_streaming_response
"""
return CardPurchaseSupplementsResourceWithStreamingResponse(self)

def create(
self,
*,
transaction_id: str,
invoice: card_purchase_supplement_create_params.Invoice | Omit = omit,
line_items: Iterable[card_purchase_supplement_create_params.LineItem] | Omit = omit,
# 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.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> CardPurchaseSupplement:
"""
Simulates the creation of a Card Purchase Supplement (Level 3 data) for a card
settlement. This happens asynchronously in production when Visa sends enhanced
transaction data about a purchase.

Args:
transaction_id: The identifier of the Transaction to create a Card Purchase Supplement for. The
Transaction must have a source of type `card_settlement`.

invoice: Invoice-level information about the payment.

line_items: Line item information, such as individual products purchased.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
return self._post(
"/simulations/card_purchase_supplements",
body=maybe_transform(
{
"transaction_id": transaction_id,
"invoice": invoice,
"line_items": line_items,
},
card_purchase_supplement_create_params.CardPurchaseSupplementCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=CardPurchaseSupplement,
)


class AsyncCardPurchaseSupplementsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCardPurchaseSupplementsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
"""
return AsyncCardPurchaseSupplementsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncCardPurchaseSupplementsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/Increase/increase-python#with_streaming_response
"""
return AsyncCardPurchaseSupplementsResourceWithStreamingResponse(self)

async def create(
self,
*,
transaction_id: str,
invoice: card_purchase_supplement_create_params.Invoice | Omit = omit,
line_items: Iterable[card_purchase_supplement_create_params.LineItem] | Omit = omit,
# 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.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> CardPurchaseSupplement:
"""
Simulates the creation of a Card Purchase Supplement (Level 3 data) for a card
settlement. This happens asynchronously in production when Visa sends enhanced
transaction data about a purchase.

Args:
transaction_id: The identifier of the Transaction to create a Card Purchase Supplement for. The
Transaction must have a source of type `card_settlement`.

invoice: Invoice-level information about the payment.

line_items: Line item information, such as individual products purchased.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
return await self._post(
"/simulations/card_purchase_supplements",
body=await async_maybe_transform(
{
"transaction_id": transaction_id,
"invoice": invoice,
"line_items": line_items,
},
card_purchase_supplement_create_params.CardPurchaseSupplementCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=CardPurchaseSupplement,
)


class CardPurchaseSupplementsResourceWithRawResponse:
def __init__(self, card_purchase_supplements: CardPurchaseSupplementsResource) -> None:
self._card_purchase_supplements = card_purchase_supplements

self.create = to_raw_response_wrapper(
card_purchase_supplements.create,
)


class AsyncCardPurchaseSupplementsResourceWithRawResponse:
def __init__(self, card_purchase_supplements: AsyncCardPurchaseSupplementsResource) -> None:
self._card_purchase_supplements = card_purchase_supplements

self.create = async_to_raw_response_wrapper(
card_purchase_supplements.create,
)


class CardPurchaseSupplementsResourceWithStreamingResponse:
def __init__(self, card_purchase_supplements: CardPurchaseSupplementsResource) -> None:
self._card_purchase_supplements = card_purchase_supplements

self.create = to_streamed_response_wrapper(
card_purchase_supplements.create,
)


class AsyncCardPurchaseSupplementsResourceWithStreamingResponse:
def __init__(self, card_purchase_supplements: AsyncCardPurchaseSupplementsResource) -> None:
self._card_purchase_supplements = card_purchase_supplements

self.create = async_to_streamed_response_wrapper(
card_purchase_supplements.create,
)
32 changes: 32 additions & 0 deletions src/increase/resources/simulations/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@
InboundFednowTransfersResourceWithStreamingResponse,
AsyncInboundFednowTransfersResourceWithStreamingResponse,
)
from .card_purchase_supplements import (
CardPurchaseSupplementsResource,
AsyncCardPurchaseSupplementsResource,
CardPurchaseSupplementsResourceWithRawResponse,
AsyncCardPurchaseSupplementsResourceWithRawResponse,
CardPurchaseSupplementsResourceWithStreamingResponse,
AsyncCardPurchaseSupplementsResourceWithStreamingResponse,
)
from .entity_onboarding_sessions import (
EntityOnboardingSessionsResource,
AsyncEntityOnboardingSessionsResource,
Expand Down Expand Up @@ -305,6 +313,10 @@ def card_refunds(self) -> CardRefundsResource:
def card_authentications(self) -> CardAuthenticationsResource:
return CardAuthenticationsResource(self._client)

@cached_property
def card_purchase_supplements(self) -> CardPurchaseSupplementsResource:
return CardPurchaseSupplementsResource(self._client)

@cached_property
def card_disputes(self) -> CardDisputesResource:
return CardDisputesResource(self._client)
Expand Down Expand Up @@ -454,6 +466,10 @@ def card_refunds(self) -> AsyncCardRefundsResource:
def card_authentications(self) -> AsyncCardAuthenticationsResource:
return AsyncCardAuthenticationsResource(self._client)

@cached_property
def card_purchase_supplements(self) -> AsyncCardPurchaseSupplementsResource:
return AsyncCardPurchaseSupplementsResource(self._client)

@cached_property
def card_disputes(self) -> AsyncCardDisputesResource:
return AsyncCardDisputesResource(self._client)
Expand Down Expand Up @@ -606,6 +622,10 @@ def card_refunds(self) -> CardRefundsResourceWithRawResponse:
def card_authentications(self) -> CardAuthenticationsResourceWithRawResponse:
return CardAuthenticationsResourceWithRawResponse(self._simulations.card_authentications)

@cached_property
def card_purchase_supplements(self) -> CardPurchaseSupplementsResourceWithRawResponse:
return CardPurchaseSupplementsResourceWithRawResponse(self._simulations.card_purchase_supplements)

@cached_property
def card_disputes(self) -> CardDisputesResourceWithRawResponse:
return CardDisputesResourceWithRawResponse(self._simulations.card_disputes)
Expand Down Expand Up @@ -743,6 +763,10 @@ def card_refunds(self) -> AsyncCardRefundsResourceWithRawResponse:
def card_authentications(self) -> AsyncCardAuthenticationsResourceWithRawResponse:
return AsyncCardAuthenticationsResourceWithRawResponse(self._simulations.card_authentications)

@cached_property
def card_purchase_supplements(self) -> AsyncCardPurchaseSupplementsResourceWithRawResponse:
return AsyncCardPurchaseSupplementsResourceWithRawResponse(self._simulations.card_purchase_supplements)

@cached_property
def card_disputes(self) -> AsyncCardDisputesResourceWithRawResponse:
return AsyncCardDisputesResourceWithRawResponse(self._simulations.card_disputes)
Expand Down Expand Up @@ -880,6 +904,10 @@ def card_refunds(self) -> CardRefundsResourceWithStreamingResponse:
def card_authentications(self) -> CardAuthenticationsResourceWithStreamingResponse:
return CardAuthenticationsResourceWithStreamingResponse(self._simulations.card_authentications)

@cached_property
def card_purchase_supplements(self) -> CardPurchaseSupplementsResourceWithStreamingResponse:
return CardPurchaseSupplementsResourceWithStreamingResponse(self._simulations.card_purchase_supplements)

@cached_property
def card_disputes(self) -> CardDisputesResourceWithStreamingResponse:
return CardDisputesResourceWithStreamingResponse(self._simulations.card_disputes)
Expand Down Expand Up @@ -1019,6 +1047,10 @@ def card_refunds(self) -> AsyncCardRefundsResourceWithStreamingResponse:
def card_authentications(self) -> AsyncCardAuthenticationsResourceWithStreamingResponse:
return AsyncCardAuthenticationsResourceWithStreamingResponse(self._simulations.card_authentications)

@cached_property
def card_purchase_supplements(self) -> AsyncCardPurchaseSupplementsResourceWithStreamingResponse:
return AsyncCardPurchaseSupplementsResourceWithStreamingResponse(self._simulations.card_purchase_supplements)

@cached_property
def card_disputes(self) -> AsyncCardDisputesResourceWithStreamingResponse:
return AsyncCardDisputesResourceWithStreamingResponse(self._simulations.card_disputes)
Expand Down
3 changes: 3 additions & 0 deletions src/increase/types/simulations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
from .physical_card_advance_shipment_params import (
PhysicalCardAdvanceShipmentParams as PhysicalCardAdvanceShipmentParams,
)
from .card_purchase_supplement_create_params import (
CardPurchaseSupplementCreateParams as CardPurchaseSupplementCreateParams,
)
from .inbound_check_deposit_adjustment_params import (
InboundCheckDepositAdjustmentParams as InboundCheckDepositAdjustmentParams,
)
Expand Down
Loading