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.246.0"
".": "0.247.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: 196
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-68bbd789dfbd107f02c29239ae129a21d004842700dea205f234136ac27352eb.yml
openapi_spec_hash: 7692e2b2d4fdeac7ff58b07c9d8fef2c
config_hash: c4ca49f6bac6268578b0734a33a9d1fd
configured_endpoints: 197
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-075bbbfbc34a6e34519bb157c21f280d0ba941ce2ddf834eafbbde3dbd3b52b9.yml
openapi_spec_hash: e0f7bef65d2cb1f3332b969254dee00a
config_hash: 85850cd9055db4b9e43bcc4aa1a2dcea
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.247.0 (2025-06-03)

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

### Features

* **api:** api update ([cb4c03b](https://github.com/Increase/increase-python/commit/cb4c03bee372c8d5584f1b151c4d1435763af20a))
* **api:** api update ([2c988fd](https://github.com/Increase/increase-python/commit/2c988fdb653a808d93c27b06a2897f49fd97c8cc))

## 0.246.0 (2025-06-02)

Full Changelog: [v0.245.0...v0.246.0](https://github.com/Increase/increase-python/compare/v0.245.0...v0.246.0)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ from increase.types import Document

Methods:

- <code title="post /documents">client.documents.<a href="./src/increase/resources/documents.py">create</a>(\*\*<a href="src/increase/types/document_create_params.py">params</a>) -> <a href="./src/increase/types/document.py">Document</a></code>
- <code title="get /documents/{document_id}">client.documents.<a href="./src/increase/resources/documents.py">retrieve</a>(document_id) -> <a href="./src/increase/types/document.py">Document</a></code>
- <code title="get /documents">client.documents.<a href="./src/increase/resources/documents.py">list</a>(\*\*<a href="src/increase/types/document_list_params.py">params</a>) -> <a href="./src/increase/types/document.py">SyncPage[Document]</a></code>

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.246.0"
version = "0.247.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.246.0" # x-release-please-version
__version__ = "0.247.0" # x-release-please-version
122 changes: 120 additions & 2 deletions src/increase/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

from __future__ import annotations

from typing_extensions import Literal

import httpx

from ..types import document_list_params
from ..types import document_list_params, document_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
Expand Down Expand Up @@ -42,6 +44,58 @@ def with_streaming_response(self) -> DocumentsResourceWithStreamingResponse:
"""
return DocumentsResourceWithStreamingResponse(self)

def create(
self,
*,
category: Literal["account_verification_letter"],
account_verification_letter: document_create_params.AccountVerificationLetter | 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Document:
"""
Create a Document

Args:
category: The type of document to create.

- `account_verification_letter` - An account verification letter.

account_verification_letter: An account verification letter.

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(
"/documents",
body=maybe_transform(
{
"category": category,
"account_verification_letter": account_verification_letter,
},
document_create_params.DocumentCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Document,
)

def retrieve(
self,
document_id: str,
Expand Down Expand Up @@ -161,6 +215,58 @@ def with_streaming_response(self) -> AsyncDocumentsResourceWithStreamingResponse
"""
return AsyncDocumentsResourceWithStreamingResponse(self)

async def create(
self,
*,
category: Literal["account_verification_letter"],
account_verification_letter: document_create_params.AccountVerificationLetter | 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> Document:
"""
Create a Document

Args:
category: The type of document to create.

- `account_verification_letter` - An account verification letter.

account_verification_letter: An account verification letter.

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(
"/documents",
body=await async_maybe_transform(
{
"category": category,
"account_verification_letter": account_verification_letter,
},
document_create_params.DocumentCreateParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Document,
)

async def retrieve(
self,
document_id: str,
Expand Down Expand Up @@ -264,6 +370,9 @@ class DocumentsResourceWithRawResponse:
def __init__(self, documents: DocumentsResource) -> None:
self._documents = documents

self.create = to_raw_response_wrapper(
documents.create,
)
self.retrieve = to_raw_response_wrapper(
documents.retrieve,
)
Expand All @@ -276,6 +385,9 @@ class AsyncDocumentsResourceWithRawResponse:
def __init__(self, documents: AsyncDocumentsResource) -> None:
self._documents = documents

self.create = async_to_raw_response_wrapper(
documents.create,
)
self.retrieve = async_to_raw_response_wrapper(
documents.retrieve,
)
Expand All @@ -288,6 +400,9 @@ class DocumentsResourceWithStreamingResponse:
def __init__(self, documents: DocumentsResource) -> None:
self._documents = documents

self.create = to_streamed_response_wrapper(
documents.create,
)
self.retrieve = to_streamed_response_wrapper(
documents.retrieve,
)
Expand All @@ -300,6 +415,9 @@ class AsyncDocumentsResourceWithStreamingResponse:
def __init__(self, documents: AsyncDocumentsResource) -> None:
self._documents = documents

self.create = async_to_streamed_response_wrapper(
documents.create,
)
self.retrieve = async_to_streamed_response_wrapper(
documents.retrieve,
)
Expand Down
1 change: 1 addition & 0 deletions src/increase/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
from .physical_card_profile import PhysicalCardProfile as PhysicalCardProfile
from .wire_drawdown_request import WireDrawdownRequest as WireDrawdownRequest
from .account_balance_params import AccountBalanceParams as AccountBalanceParams
from .document_create_params import DocumentCreateParams as DocumentCreateParams
from .file_link_create_params import FileLinkCreateParams as FileLinkCreateParams
from .transaction_list_params import TransactionListParams as TransactionListParams
from .ach_transfer_list_params import ACHTransferListParams as ACHTransferListParams
Expand Down
10 changes: 9 additions & 1 deletion src/increase/types/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@

from .._models import BaseModel

__all__ = ["Document"]
__all__ = ["Document", "AccountVerificationLetter"]


class AccountVerificationLetter(BaseModel):
account_number_id: str
"""The identifier of the Account Number the document was generated for."""


class Document(BaseModel):
id: str
"""The Document identifier."""

account_verification_letter: Optional[AccountVerificationLetter] = None
"""Properties of an account verification letter document."""

category: Literal[
"form_1099_int",
"form_1099_misc",
Expand Down
30 changes: 30 additions & 0 deletions src/increase/types/document_create_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Union
from datetime import date
from typing_extensions import Literal, Required, Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["DocumentCreateParams", "AccountVerificationLetter"]


class DocumentCreateParams(TypedDict, total=False):
category: Required[Literal["account_verification_letter"]]
"""The type of document to create.

- `account_verification_letter` - An account verification letter.
"""

account_verification_letter: AccountVerificationLetter
"""An account verification letter."""


class AccountVerificationLetter(TypedDict, total=False):
account_number_id: Required[str]
"""The Account Number the bank letter should be generated for."""

balance_date: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
"""If provided, the letter will include the Account's balance as of the date."""
8 changes: 0 additions & 8 deletions src/increase/types/external_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,3 @@ class ExternalAccount(BaseModel):

For this resource it will always be `external_account`.
"""

verification_status: Literal["unverified", "pending", "verified"]
"""If you have verified ownership of the External Account.

- `unverified` - The External Account has not been verified.
- `pending` - The External Account is in the process of being verified.
- `verified` - The External Account is verified.
"""
Loading