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.253.0"
".": "0.254.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d85c059af2ebfb614d1027bf04c10ddcb6188920c7e8a29b040968cd962124b6.yml
openapi_spec_hash: 3a5546d73dd733025e0d6d9d673bca04
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8ba0a76a7d25f12b1aa44ebd3283129560f7a65c95a098ad89deeee6ea46c8a8.yml
openapi_spec_hash: 30519b66ae8c018865d8de252d6f5d2d
config_hash: 97774f946585cecb19181a1817870d0b
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.254.0 (2025-06-24)

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

### Features

* **api:** api update ([28e317a](https://github.com/Increase/increase-python/commit/28e317a7e1f940dd8e0f3c6ef23103270f24f60c))

## 0.253.0 (2025-06-23)

Full Changelog: [v0.252.1...v0.253.0](https://github.com/Increase/increase-python/compare/v0.252.1...v0.253.0)
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.253.0"
version = "0.254.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.253.0" # x-release-please-version
__version__ = "0.254.0" # x-release-please-version
14 changes: 12 additions & 2 deletions src/increase/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def with_streaming_response(self) -> DocumentsResourceWithStreamingResponse:
def create(
self,
*,
category: Literal["account_verification_letter"],
category: Literal["account_verification_letter", "funding_instructions"],
account_verification_letter: document_create_params.AccountVerificationLetter | NotGiven = NOT_GIVEN,
funding_instructions: document_create_params.FundingInstructions | 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 All @@ -64,9 +65,12 @@ def create(
category: The type of document to create.

- `account_verification_letter` - An account verification letter.
- `funding_instructions` - Funding instructions.

account_verification_letter: An account verification letter.

funding_instructions: Funding instructions.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -83,6 +87,7 @@ def create(
{
"category": category,
"account_verification_letter": account_verification_letter,
"funding_instructions": funding_instructions,
},
document_create_params.DocumentCreateParams,
),
Expand Down Expand Up @@ -218,8 +223,9 @@ def with_streaming_response(self) -> AsyncDocumentsResourceWithStreamingResponse
async def create(
self,
*,
category: Literal["account_verification_letter"],
category: Literal["account_verification_letter", "funding_instructions"],
account_verification_letter: document_create_params.AccountVerificationLetter | NotGiven = NOT_GIVEN,
funding_instructions: document_create_params.FundingInstructions | 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 All @@ -235,9 +241,12 @@ async def create(
category: The type of document to create.

- `account_verification_letter` - An account verification letter.
- `funding_instructions` - Funding instructions.

account_verification_letter: An account verification letter.

funding_instructions: Funding instructions.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -254,6 +263,7 @@ async def create(
{
"category": category,
"account_verification_letter": account_verification_letter,
"funding_instructions": funding_instructions,
},
document_create_params.DocumentCreateParams,
),
Expand Down
12 changes: 11 additions & 1 deletion src/increase/types/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@

from .._models import BaseModel

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


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


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


class Document(BaseModel):
id: str
"""The Document identifier."""
Expand All @@ -27,6 +32,7 @@ class Document(BaseModel):
"proof_of_authorization",
"company_information",
"account_verification_letter",
"funding_instructions",
]
"""The type of document.

Expand All @@ -37,6 +43,7 @@ class Document(BaseModel):
- `company_information` - Company information, such a policies or procedures,
typically submitted during our due diligence process.
- `account_verification_letter` - An account verification letter.
- `funding_instructions` - Funding instructions.
"""

created_at: datetime
Expand All @@ -51,6 +58,9 @@ class Document(BaseModel):
file_id: str
"""The identifier of the File containing the Document's contents."""

funding_instructions: Optional[FundingInstructions] = None
"""Properties of a funding instructions document."""

idempotency_key: Optional[str] = None
"""The idempotency key you chose for this object.

Expand Down
13 changes: 11 additions & 2 deletions src/increase/types/document_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,32 @@

from .._utils import PropertyInfo

__all__ = ["DocumentCreateParams", "AccountVerificationLetter"]
__all__ = ["DocumentCreateParams", "AccountVerificationLetter", "FundingInstructions"]


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

- `account_verification_letter` - An account verification letter.
- `funding_instructions` - Funding instructions.
"""

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

funding_instructions: FundingInstructions
"""Funding instructions."""


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."""


class FundingInstructions(TypedDict, total=False):
account_number_id: Required[str]
"""The Account Number the funding instructions should be generated for."""
1 change: 1 addition & 0 deletions src/increase/types/document_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class DocumentListParams(TypedDict, total=False):
"proof_of_authorization",
"company_information",
"account_verification_letter",
"funding_instructions",
]
],
},
Expand Down
2 changes: 2 additions & 0 deletions src/increase/types/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class File(BaseModel):
"deposit_account_control_agreement",
"proof_of_authorization_request_submission",
"account_verification_letter",
"funding_instructions",
]
"""What the File will be used for.

Expand Down Expand Up @@ -112,6 +113,7 @@ class File(BaseModel):
- `proof_of_authorization_request_submission` - A file containing additional
evidence for a Proof of Authorization Request Submission.
- `account_verification_letter` - An account verification letter.
- `funding_instructions` - Funding instructions.
"""

type: Literal["file"]
Expand Down
1 change: 1 addition & 0 deletions src/increase/types/file_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class CreatedAt(TypedDict, total=False):
"deposit_account_control_agreement",
"proof_of_authorization_request_submission",
"account_verification_letter",
"funding_instructions",
]
],
},
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
"account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
"balance_date": parse_date("2024-12-31"),
},
funding_instructions={"account_number_id": "account_number_id"},
)
assert_matches_type(Document, document, path=["response"])

Expand Down Expand Up @@ -162,6 +163,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
"account_number_id": "account_number_v18nkfqm6afpsrvy82b2",
"balance_date": parse_date("2024-12-31"),
},
funding_instructions={"account_number_id": "account_number_id"},
)
assert_matches_type(Document, document, path=["response"])

Expand Down