From 28e317a7e1f940dd8e0f3c6ef23103270f24f60c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 24 Jun 2025 00:13:07 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/increase/resources/documents.py | 14 ++++++++++++-- src/increase/types/document.py | 12 +++++++++++- src/increase/types/document_create_params.py | 13 +++++++++++-- src/increase/types/document_list_params.py | 1 + src/increase/types/file.py | 2 ++ src/increase/types/file_list_params.py | 1 + tests/api_resources/test_documents.py | 2 ++ 8 files changed, 42 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 54fbc742d..3a8d9d1b8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/increase/resources/documents.py b/src/increase/resources/documents.py index f83829f62..244ca7b12 100644 --- a/src/increase/resources/documents.py +++ b/src/increase/resources/documents.py @@ -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, @@ -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 @@ -83,6 +87,7 @@ def create( { "category": category, "account_verification_letter": account_verification_letter, + "funding_instructions": funding_instructions, }, document_create_params.DocumentCreateParams, ), @@ -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, @@ -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 @@ -254,6 +263,7 @@ async def create( { "category": category, "account_verification_letter": account_verification_letter, + "funding_instructions": funding_instructions, }, document_create_params.DocumentCreateParams, ), diff --git a/src/increase/types/document.py b/src/increase/types/document.py index 941ee35dc..1c6c7f33f 100644 --- a/src/increase/types/document.py +++ b/src/increase/types/document.py @@ -6,7 +6,7 @@ from .._models import BaseModel -__all__ = ["Document", "AccountVerificationLetter"] +__all__ = ["Document", "AccountVerificationLetter", "FundingInstructions"] class AccountVerificationLetter(BaseModel): @@ -14,6 +14,11 @@ class AccountVerificationLetter(BaseModel): """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.""" @@ -27,6 +32,7 @@ class Document(BaseModel): "proof_of_authorization", "company_information", "account_verification_letter", + "funding_instructions", ] """The type of document. @@ -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 @@ -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. diff --git a/src/increase/types/document_create_params.py b/src/increase/types/document_create_params.py index 0470cb7fb..1f4d9245e 100644 --- a/src/increase/types/document_create_params.py +++ b/src/increase/types/document_create_params.py @@ -8,19 +8,23 @@ 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] @@ -28,3 +32,8 @@ class AccountVerificationLetter(TypedDict, total=False): 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.""" diff --git a/src/increase/types/document_list_params.py b/src/increase/types/document_list_params.py index 473c12af3..2e12d424d 100644 --- a/src/increase/types/document_list_params.py +++ b/src/increase/types/document_list_params.py @@ -47,6 +47,7 @@ class DocumentListParams(TypedDict, total=False): "proof_of_authorization", "company_information", "account_verification_letter", + "funding_instructions", ] ], }, diff --git a/src/increase/types/file.py b/src/increase/types/file.py index 13765e92d..0ae829947 100644 --- a/src/increase/types/file.py +++ b/src/increase/types/file.py @@ -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. @@ -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"] diff --git a/src/increase/types/file_list_params.py b/src/increase/types/file_list_params.py index f7e1059a1..440509eda 100644 --- a/src/increase/types/file_list_params.py +++ b/src/increase/types/file_list_params.py @@ -91,6 +91,7 @@ class CreatedAt(TypedDict, total=False): "deposit_account_control_agreement", "proof_of_authorization_request_submission", "account_verification_letter", + "funding_instructions", ] ], }, diff --git a/tests/api_resources/test_documents.py b/tests/api_resources/test_documents.py index 1f6c24678..acf2b50ec 100644 --- a/tests/api_resources/test_documents.py +++ b/tests/api_resources/test_documents.py @@ -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"]) @@ -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"]) From b025a55be89b34dd23b3a5a14da6e2e9ab76a39d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 24 Jun 2025 00:13:29 +0000 Subject: [PATCH 2/2] release: 0.254.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6b81befa4..82432f4e3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.253.0" + ".": "0.254.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 620a084f5..6a81bbc90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 89331ba1f..dbb5e4b2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index 48b37de46..4f4dc567c 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -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