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.499.0"
".": "0.500.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: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47752267c48d299a01c906499bb7d584228ea8801b7d83e34ae4100d5dec3434.yml
openapi_spec_hash: ae1e2ef832ba2b284a54b8c9f9ddacdc
config_hash: 026e2baa580c7f5f2447c24332081ba8
configured_endpoints: 237
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-221230f0f67bf00e91103e7694232ddb876751035ddb381c30c10dbb5197b06f.yml
openapi_spec_hash: c8dcac8573c2931a496ae40613d377c4
config_hash: 9dd89544e7c0403ccb0e0827de6a9cbf
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.500.0 (2026-04-28)

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

### Features

* **api:** api update ([77e1c0b](https://github.com/Increase/increase-python/commit/77e1c0b3dae0ec5790eeb85f06322e86e46b9465))

## 0.499.0 (2026-04-28)

Full Changelog: [v0.498.0...v0.499.0](https://github.com/Increase/increase-python/compare/v0.498.0...v0.499.0)
Expand Down
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,12 @@ Methods:

- <code title="post /simulations/interest_payments">client.simulations.interest_payments.<a href="./src/increase/resources/simulations/interest_payments.py">create</a>(\*\*<a href="src/increase/types/simulations/interest_payment_create_params.py">params</a>) -> <a href="./src/increase/types/transaction.py">Transaction</a></code>

## AccountRevenuePayments

Methods:

- <code title="post /simulations/account_revenue_payments">client.simulations.account_revenue_payments.<a href="./src/increase/resources/simulations/account_revenue_payments.py">create</a>(\*\*<a href="src/increase/types/simulations/account_revenue_payment_create_params.py">params</a>) -> <a href="./src/increase/types/transaction.py">Transaction</a></code>

## CardAuthorizations

Types:
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.499.0"
version = "0.500.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.499.0" # x-release-please-version
__version__ = "0.500.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 @@ -208,6 +208,14 @@
CardFuelConfirmationsResourceWithStreamingResponse,
AsyncCardFuelConfirmationsResourceWithStreamingResponse,
)
from .account_revenue_payments import (
AccountRevenuePaymentsResource,
AsyncAccountRevenuePaymentsResource,
AccountRevenuePaymentsResourceWithRawResponse,
AsyncAccountRevenuePaymentsResourceWithRawResponse,
AccountRevenuePaymentsResourceWithStreamingResponse,
AsyncAccountRevenuePaymentsResourceWithStreamingResponse,
)
from .inbound_fednow_transfers import (
InboundFednowTransfersResource,
AsyncInboundFednowTransfersResource,
Expand Down Expand Up @@ -280,6 +288,12 @@
"AsyncInterestPaymentsResourceWithRawResponse",
"InterestPaymentsResourceWithStreamingResponse",
"AsyncInterestPaymentsResourceWithStreamingResponse",
"AccountRevenuePaymentsResource",
"AsyncAccountRevenuePaymentsResource",
"AccountRevenuePaymentsResourceWithRawResponse",
"AsyncAccountRevenuePaymentsResourceWithRawResponse",
"AccountRevenuePaymentsResourceWithStreamingResponse",
"AsyncAccountRevenuePaymentsResourceWithStreamingResponse",
"CardAuthorizationsResource",
"AsyncCardAuthorizationsResource",
"CardAuthorizationsResourceWithRawResponse",
Expand Down
236 changes: 236 additions & 0 deletions src/increase/resources/simulations/account_revenue_payments.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Union
from datetime import datetime

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 account_revenue_payment_create_params
from ...types.transaction import Transaction

__all__ = ["AccountRevenuePaymentsResource", "AsyncAccountRevenuePaymentsResource"]


class AccountRevenuePaymentsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> AccountRevenuePaymentsResourceWithRawResponse:
"""
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 AccountRevenuePaymentsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AccountRevenuePaymentsResourceWithStreamingResponse:
"""
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 AccountRevenuePaymentsResourceWithStreamingResponse(self)

def create(
self,
*,
account_id: str,
amount: int,
accrued_on_account_id: str | Omit = omit,
period_end: Union[str, datetime] | Omit = omit,
period_start: Union[str, datetime] | 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,
) -> Transaction:
"""Simulates an account revenue payment to your account.

In production, this
happens automatically on the first of each month.

Args:
account_id: The identifier of the Account the Account Revenue Payment should be paid to.

amount: The account revenue amount in cents. Must be positive.

accrued_on_account_id: The identifier of the Account the account revenue accrued on. Defaults to
`account_id`.

period_end: The end of the account revenue period. If not provided, defaults to the current
time.

period_start: The start of the account revenue period. If not provided, defaults to the
current time.

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/account_revenue_payments",
body=maybe_transform(
{
"account_id": account_id,
"amount": amount,
"accrued_on_account_id": accrued_on_account_id,
"period_end": period_end,
"period_start": period_start,
},
account_revenue_payment_create_params.AccountRevenuePaymentCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Transaction,
)


class AsyncAccountRevenuePaymentsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncAccountRevenuePaymentsResourceWithRawResponse:
"""
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 AsyncAccountRevenuePaymentsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncAccountRevenuePaymentsResourceWithStreamingResponse:
"""
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 AsyncAccountRevenuePaymentsResourceWithStreamingResponse(self)

async def create(
self,
*,
account_id: str,
amount: int,
accrued_on_account_id: str | Omit = omit,
period_end: Union[str, datetime] | Omit = omit,
period_start: Union[str, datetime] | 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,
) -> Transaction:
"""Simulates an account revenue payment to your account.

In production, this
happens automatically on the first of each month.

Args:
account_id: The identifier of the Account the Account Revenue Payment should be paid to.

amount: The account revenue amount in cents. Must be positive.

accrued_on_account_id: The identifier of the Account the account revenue accrued on. Defaults to
`account_id`.

period_end: The end of the account revenue period. If not provided, defaults to the current
time.

period_start: The start of the account revenue period. If not provided, defaults to the
current time.

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/account_revenue_payments",
body=await async_maybe_transform(
{
"account_id": account_id,
"amount": amount,
"accrued_on_account_id": accrued_on_account_id,
"period_end": period_end,
"period_start": period_start,
},
account_revenue_payment_create_params.AccountRevenuePaymentCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Transaction,
)


class AccountRevenuePaymentsResourceWithRawResponse:
def __init__(self, account_revenue_payments: AccountRevenuePaymentsResource) -> None:
self._account_revenue_payments = account_revenue_payments

self.create = to_raw_response_wrapper(
account_revenue_payments.create,
)


class AsyncAccountRevenuePaymentsResourceWithRawResponse:
def __init__(self, account_revenue_payments: AsyncAccountRevenuePaymentsResource) -> None:
self._account_revenue_payments = account_revenue_payments

self.create = async_to_raw_response_wrapper(
account_revenue_payments.create,
)


class AccountRevenuePaymentsResourceWithStreamingResponse:
def __init__(self, account_revenue_payments: AccountRevenuePaymentsResource) -> None:
self._account_revenue_payments = account_revenue_payments

self.create = to_streamed_response_wrapper(
account_revenue_payments.create,
)


class AsyncAccountRevenuePaymentsResourceWithStreamingResponse:
def __init__(self, account_revenue_payments: AsyncAccountRevenuePaymentsResource) -> None:
self._account_revenue_payments = account_revenue_payments

self.create = async_to_streamed_response_wrapper(
account_revenue_payments.create,
)
Loading