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.196.0"
".": "0.197.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d4eedf5add319b076d462be8b764246f0c3251ff60708906a90494e05ed8e93c.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a39e9d1d0001ea729c1ee2e06ac456278e4fc9064790da323630e54ab02bf056.yml
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.197.0 (2025-02-28)

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

### Features

* **api:** api update ([#990](https://github.com/Increase/increase-python/issues/990)) ([e938254](https://github.com/Increase/increase-python/commit/e93825436cdcaebc3df000dc932dbe7a6e3f2221))


### Chores

* **docs:** update client docstring ([#989](https://github.com/Increase/increase-python/issues/989)) ([4cdb976](https://github.com/Increase/increase-python/commit/4cdb97608cb2b0ea3a803e3d387fa0c67bf73594))


### Documentation

* update URLs from stainlessapi.com to stainless.com ([#987](https://github.com/Increase/increase-python/issues/987)) ([2e77ad2](https://github.com/Increase/increase-python/commit/2e77ad270e3eebe335d631e69c5e156e64af859c))

## 0.196.0 (2025-02-26)

Full Changelog: [v0.195.0...v0.196.0](https://github.com/Increase/increase-python/compare/v0.195.0...v0.196.0)
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Reporting Security Issues

This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.

To report a security issue, please contact the Stainless team at security@stainlessapi.com.
To report a security issue, please contact the Stainless team at security@stainless.com.

## Responsible Disclosure

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.196.0"
version = "0.197.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/increase/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new synchronous increase client instance.
"""Construct a new synchronous Increase client instance.

This automatically infers the following arguments from their corresponding environment variables if they are not provided:
- `api_key` from `INCREASE_API_KEY`
Expand Down Expand Up @@ -575,7 +575,7 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new async increase client instance.
"""Construct a new async AsyncIncrease client instance.

This automatically infers the following arguments from their corresponding environment variables if they are not provided:
- `api_key` from `INCREASE_API_KEY`
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.196.0" # x-release-please-version
__version__ = "0.197.0" # x-release-please-version
15 changes: 2 additions & 13 deletions src/increase/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from typing import Union
from datetime import datetime
from typing_extensions import Literal

import httpx

Expand Down Expand Up @@ -206,7 +205,7 @@ def list(
informational_entity_id: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
program_id: str | NotGiven = NOT_GIVEN,
status: Literal["closed", "open"] | NotGiven = NOT_GIVEN,
status: account_list_params.Status | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -234,11 +233,6 @@ def list(

program_id: Filter Accounts for those in a specific Program.

status: Filter Accounts for those with the specified status.

- `closed` - Closed Accounts on which no new activity can occur.
- `open` - Open Accounts that are ready to use.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -530,7 +524,7 @@ def list(
informational_entity_id: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
program_id: str | NotGiven = NOT_GIVEN,
status: Literal["closed", "open"] | NotGiven = NOT_GIVEN,
status: account_list_params.Status | 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.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -558,11 +552,6 @@ def list(

program_id: Filter Accounts for those in a specific Program.

status: Filter Accounts for those with the specified status.

- `closed` - Closed Accounts on which no new activity can occur.
- `open` - Open Accounts that are ready to use.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
24 changes: 16 additions & 8 deletions src/increase/types/account_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from __future__ import annotations

from typing import Union
from typing import List, Union
from datetime import datetime
from typing_extensions import Literal, Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["AccountListParams", "CreatedAt"]
__all__ = ["AccountListParams", "CreatedAt", "Status"]


class AccountListParams(TypedDict, total=False):
Expand Down Expand Up @@ -40,12 +40,7 @@ class AccountListParams(TypedDict, total=False):
program_id: str
"""Filter Accounts for those in a specific Program."""

status: Literal["closed", "open"]
"""Filter Accounts for those with the specified status.

- `closed` - Closed Accounts on which no new activity can occur.
- `open` - Open Accounts that are ready to use.
"""
status: Status


class CreatedAt(TypedDict, total=False):
Expand All @@ -72,3 +67,16 @@ class CreatedAt(TypedDict, total=False):
Return results on or before this
[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
"""


_StatusReservedKeywords = TypedDict(
"_StatusReservedKeywords",
{
"in": List[Literal["closed", "open"]],
},
total=False,
)


class Status(_StatusReservedKeywords, total=False):
pass
4 changes: 2 additions & 2 deletions tests/api_resources/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
informational_entity_id="informational_entity_id",
limit=1,
program_id="program_id",
status="closed",
status={"in": ["closed"]},
)
assert_matches_type(SyncPage[Account], account, path=["response"])

Expand Down Expand Up @@ -424,7 +424,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) ->
informational_entity_id="informational_entity_id",
limit=1,
program_id="program_id",
status="closed",
status={"in": ["closed"]},
)
assert_matches_type(AsyncPage[Account], account, path=["response"])

Expand Down