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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 131
configured_endpoints: 133
13 changes: 13 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,16 @@ Methods:

## SupplementalDocuments

Types:

```python
from increase.types.entities import SupplementalDocument
```

Methods:

- <code title="post /entities/{entity_id}/supplemental_documents">client.entities.supplemental_documents.<a href="./src/increase/resources/entities/supplemental_documents.py">create</a>(entity_id, \*\*<a href="src/increase/types/entities/supplemental_document_create_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="get /entity_supplemental_documents">client.entities.supplemental_documents.<a href="./src/increase/resources/entities/supplemental_documents.py">list</a>(\*\*<a href="src/increase/types/entities/supplemental_document_list_params.py">params</a>) -> <a href="./src/increase/types/entities/supplemental_document.py">SyncPage[SupplementalDocument]</a></code>

# InboundWireDrawdownRequests

Expand Down Expand Up @@ -599,6 +606,12 @@ Methods:
- <code title="post /simulations/check_deposits/{check_deposit_id}/return">client.simulations.check*deposits.<a href="./src/increase/resources/simulations/check_deposits.py">return*</a>(check_deposit_id) -> <a href="./src/increase/types/check_deposit.py">CheckDeposit</a></code>
- <code title="post /simulations/check_deposits/{check_deposit_id}/submit">client.simulations.check_deposits.<a href="./src/increase/resources/simulations/check_deposits.py">submit</a>(check_deposit_id) -> <a href="./src/increase/types/check_deposit.py">CheckDeposit</a></code>

## Programs

Methods:

- <code title="post /simulations/programs">client.simulations.programs.<a href="./src/increase/resources/simulations/programs.py">create</a>(\*\*<a href="src/increase/types/simulations/program_create_params.py">params</a>) -> <a href="./src/increase/types/program.py">Program</a></code>

## InboundWireDrawdownRequests

Methods:
Expand Down
14 changes: 12 additions & 2 deletions src/increase/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def create(
informational_entity_id: The identifier of an Entity that, while not owning the Account, is associated
with its activity. Its relationship to your group must be `informational`.

program_id: The identifier for the Program that this Account falls under.
program_id: The identifier for the Program that this Account falls under. Required if you
operate more than one Program.

extra_headers: Send extra headers

Expand Down Expand Up @@ -162,6 +163,7 @@ def list(
created_at: account_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
entity_id: str | NotGiven = NOT_GIVEN,
informational_entity_id: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: Literal["open", "closed"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -179,6 +181,8 @@ def list(

entity_id: Filter Accounts for those belonging to the specified Entity.

informational_entity_id: Filter Accounts for those belonging to the specified Entity as informational.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

Expand All @@ -205,6 +209,7 @@ def list(
"created_at": created_at,
"cursor": cursor,
"entity_id": entity_id,
"informational_entity_id": informational_entity_id,
"limit": limit,
"status": status,
},
Expand Down Expand Up @@ -282,7 +287,8 @@ async def create(
informational_entity_id: The identifier of an Entity that, while not owning the Account, is associated
with its activity. Its relationship to your group must be `informational`.

program_id: The identifier for the Program that this Account falls under.
program_id: The identifier for the Program that this Account falls under. Required if you
operate more than one Program.

extra_headers: Send extra headers

Expand Down Expand Up @@ -398,6 +404,7 @@ def list(
created_at: account_list_params.CreatedAt | NotGiven = NOT_GIVEN,
cursor: str | NotGiven = NOT_GIVEN,
entity_id: str | NotGiven = NOT_GIVEN,
informational_entity_id: str | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: Literal["open", "closed"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -415,6 +422,8 @@ def list(

entity_id: Filter Accounts for those belonging to the specified Entity.

informational_entity_id: Filter Accounts for those belonging to the specified Entity as informational.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

Expand All @@ -441,6 +450,7 @@ def list(
"created_at": created_at,
"cursor": cursor,
"entity_id": entity_id,
"informational_entity_id": informational_entity_id,
"limit": limit,
"status": status,
},
Expand Down
113 changes: 111 additions & 2 deletions src/increase/resources/entities/supplemental_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import maybe_transform
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._base_client import make_request_options
from ...types.entities import supplemental_document_create_params
from ...pagination import SyncPage, AsyncPage
from ..._base_client import AsyncPaginator, make_request_options
from ...types.entities import (
SupplementalDocument,
supplemental_document_list_params,
supplemental_document_create_params,
)

__all__ = ["SupplementalDocuments", "AsyncSupplementalDocuments"]

Expand Down Expand Up @@ -59,6 +64,58 @@ def create(
cast_to=Entity,
)

def list(
self,
*,
entity_id: str,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | 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 | None | NotGiven = NOT_GIVEN,
) -> SyncPage[SupplementalDocument]:
"""
List Entity Supplemental Document Submissionss

Args:
entity_id: The identifier of the Entity to list supplemental documents for.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

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
"""
return self._get_api_list(
"/entity_supplemental_documents",
page=SyncPage[SupplementalDocument],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
query=maybe_transform(
{
"entity_id": entity_id,
"cursor": cursor,
"limit": limit,
},
supplemental_document_list_params.SupplementalDocumentListParams,
),
),
model=SupplementalDocument,
)


class AsyncSupplementalDocuments(AsyncAPIResource):
async def create(
Expand Down Expand Up @@ -106,3 +163,55 @@ async def create(
),
cast_to=Entity,
)

def list(
self,
*,
entity_id: str,
cursor: str | NotGiven = NOT_GIVEN,
limit: int | 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 | None | NotGiven = NOT_GIVEN,
) -> AsyncPaginator[SupplementalDocument, AsyncPage[SupplementalDocument]]:
"""
List Entity Supplemental Document Submissionss

Args:
entity_id: The identifier of the Entity to list supplemental documents for.

cursor: Return the page of entries after this one.

limit: Limit the size of the list that is returned. The default (and maximum) is 100
objects.

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
"""
return self._get_api_list(
"/entity_supplemental_documents",
page=AsyncPage[SupplementalDocument],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
query=maybe_transform(
{
"entity_id": entity_id,
"cursor": cursor,
"limit": limit,
},
supplemental_document_list_params.SupplementalDocumentListParams,
),
),
model=SupplementalDocument,
)
3 changes: 3 additions & 0 deletions src/increase/resources/simulations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# File generated from our OpenAPI spec by Stainless.

from .cards import Cards, AsyncCards
from .programs import Programs, AsyncPrograms
from .documents import Documents, AsyncDocuments
from .simulations import Simulations, AsyncSimulations
from .card_refunds import CardRefunds, AsyncCardRefunds
Expand Down Expand Up @@ -44,6 +45,8 @@
"AsyncDigitalWalletTokenRequests",
"CheckDeposits",
"AsyncCheckDeposits",
"Programs",
"AsyncPrograms",
"InboundWireDrawdownRequests",
"AsyncInboundWireDrawdownRequests",
"InterestPayments",
Expand Down
100 changes: 98 additions & 2 deletions src/increase/resources/simulations/ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,58 @@ def return_(
"file_record_edit_criteria",
"enr_invalid_individual_name",
"returned_per_odfi_request",
"addenda_error",
"limited_participation_dfi",
"incorrectly_coded_outbound_international_payment",
"other",
"account_sold_to_another_dfi",
"addenda_error",
"beneficiary_or_account_holder_deceased",
"check_truncation_entry_return",
"corrected_return",
"duplicate_entry",
"duplicate_return",
"enr_duplicate_enrollment",
"enr_invalid_dfi_account_number",
"enr_invalid_individual_id_number",
"enr_invalid_representative_payee_indicator",
"enr_invalid_transaction_code",
"enr_return_of_enr_entry",
"enr_routing_number_check_digit_error",
"entry_not_processed_by_gateway",
"field_error",
"foreign_receiving_dfi_unable_to_settle",
"iat_entry_coding_error",
"improper_effective_entry_date",
"improper_source_document_source_document_presented",
"invalid_company_id",
"invalid_foreign_receiving_dfi_identification",
"invalid_individual_id_number",
"item_and_rck_entry_presented_for_payment",
"item_related_to_rck_entry_is_ineligible",
"mandatory_field_error",
"misrouted_dishonored_return",
"misrouted_return",
"no_errors_found",
"non_acceptance_of_r62_dishonored_return",
"non_participant_in_iat_program",
"permissible_return_entry",
"permissible_return_entry_not_accepted",
"rdfi_non_settlement",
"rdfi_participant_in_check_truncation_program",
"representative_payee_deceased_or_unable_to_continue_in_that_capacity",
"return_not_a_duplicate",
"return_of_erroneous_or_reversing_debit",
"return_of_improper_credit_entry",
"return_of_improper_debit_entry",
"return_of_xck_entry",
"source_document_presented_for_payment",
"state_law_affecting_rck_acceptance",
"stop_payment_on_item_related_to_rck_entry",
"stop_payment_on_source_document",
"timely_original_return",
"trace_number_error",
"untimely_dishonored_return",
"untimely_return",
]
| NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -318,10 +366,58 @@ async def return_(
"file_record_edit_criteria",
"enr_invalid_individual_name",
"returned_per_odfi_request",
"addenda_error",
"limited_participation_dfi",
"incorrectly_coded_outbound_international_payment",
"other",
"account_sold_to_another_dfi",
"addenda_error",
"beneficiary_or_account_holder_deceased",
"check_truncation_entry_return",
"corrected_return",
"duplicate_entry",
"duplicate_return",
"enr_duplicate_enrollment",
"enr_invalid_dfi_account_number",
"enr_invalid_individual_id_number",
"enr_invalid_representative_payee_indicator",
"enr_invalid_transaction_code",
"enr_return_of_enr_entry",
"enr_routing_number_check_digit_error",
"entry_not_processed_by_gateway",
"field_error",
"foreign_receiving_dfi_unable_to_settle",
"iat_entry_coding_error",
"improper_effective_entry_date",
"improper_source_document_source_document_presented",
"invalid_company_id",
"invalid_foreign_receiving_dfi_identification",
"invalid_individual_id_number",
"item_and_rck_entry_presented_for_payment",
"item_related_to_rck_entry_is_ineligible",
"mandatory_field_error",
"misrouted_dishonored_return",
"misrouted_return",
"no_errors_found",
"non_acceptance_of_r62_dishonored_return",
"non_participant_in_iat_program",
"permissible_return_entry",
"permissible_return_entry_not_accepted",
"rdfi_non_settlement",
"rdfi_participant_in_check_truncation_program",
"representative_payee_deceased_or_unable_to_continue_in_that_capacity",
"return_not_a_duplicate",
"return_of_erroneous_or_reversing_debit",
"return_of_improper_credit_entry",
"return_of_improper_debit_entry",
"return_of_xck_entry",
"source_document_presented_for_payment",
"state_law_affecting_rck_acceptance",
"stop_payment_on_item_related_to_rck_entry",
"stop_payment_on_source_document",
"timely_original_return",
"trace_number_error",
"untimely_dishonored_return",
"untimely_return",
]
| NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
Loading