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: 137
configured_endpoints: 139
2 changes: 2 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Methods:
- <code title="post /card_profiles">client.card_profiles.<a href="./src/increase/resources/card_profiles.py">create</a>(\*\*<a href="src/increase/types/card_profile_create_params.py">params</a>) -> <a href="./src/increase/types/card_profile.py">CardProfile</a></code>
- <code title="get /card_profiles/{card_profile_id}">client.card_profiles.<a href="./src/increase/resources/card_profiles.py">retrieve</a>(card_profile_id) -> <a href="./src/increase/types/card_profile.py">CardProfile</a></code>
- <code title="get /card_profiles">client.card_profiles.<a href="./src/increase/resources/card_profiles.py">list</a>(\*\*<a href="src/increase/types/card_profile_list_params.py">params</a>) -> <a href="./src/increase/types/card_profile.py">SyncPage[CardProfile]</a></code>
- <code title="post /card_profiles/{card_profile_id}/archive">client.card_profiles.<a href="./src/increase/resources/card_profiles.py">archive</a>(card_profile_id) -> <a href="./src/increase/types/card_profile.py">CardProfile</a></code>

# CardPurchaseSupplements

Expand Down Expand Up @@ -398,6 +399,7 @@ Methods:
- <code title="post /entities">client.entities.<a href="./src/increase/resources/entities/entities.py">create</a>(\*\*<a href="src/increase/types/entity_create_params.py">params</a>) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="get /entities/{entity_id}">client.entities.<a href="./src/increase/resources/entities/entities.py">retrieve</a>(entity_id) -> <a href="./src/increase/types/entity.py">Entity</a></code>
- <code title="get /entities">client.entities.<a href="./src/increase/resources/entities/entities.py">list</a>(\*\*<a href="src/increase/types/entity_list_params.py">params</a>) -> <a href="./src/increase/types/entity.py">SyncPage[Entity]</a></code>
- <code title="post /entities/{entity_id}/archive">client.entities.<a href="./src/increase/resources/entities/entities.py">archive</a>(entity_id) -> <a href="./src/increase/types/entity.py">Entity</a></code>

## BeneficialOwners

Expand Down
91 changes: 39 additions & 52 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ packages = [
python = "^3.7"
httpx = ">= 0.23.0, < 1"
pydantic = "^1.9.0"
typing-extensions = ">= 4.1.1, < 5"
typing-extensions = ">= 4.5, < 5"
anyio = ">= 3.5.0, < 4"
distro = ">= 1.7.0, < 2"


[tool.poetry.group.dev.dependencies]
pyright = "1.1.318"
mypy = "1.4.1"
black = "22.10.0"
black = "23.3.0"
respx = "0.19.2"
pytest = "7.1.1"
pytest-asyncio = "0.18.3"
pytest-asyncio = "0.21.1"
ruff = "0.0.282"
isort = "5.10.1"
time-machine = "^2.9.0"
Expand Down
80 changes: 80 additions & 0 deletions src/increase/resources/card_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,46 @@ def list(
model=CardProfile,
)

def archive(
self,
card_profile_id: str,
*,
# 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,
idempotency_key: str | None = None,
) -> CardProfile:
"""
Archive an Card Profile

Args:
card_profile_id: The identifier of the Card Profile to archive.

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(
f"/card_profiles/{card_profile_id}/archive",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=CardProfile,
)


class AsyncCardProfiles(AsyncAPIResource):
async def create(
Expand Down Expand Up @@ -290,3 +330,43 @@ def list(
),
model=CardProfile,
)

async def archive(
self,
card_profile_id: str,
*,
# 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,
idempotency_key: str | None = None,
) -> CardProfile:
"""
Archive an Card Profile

Args:
card_profile_id: The identifier of the Card Profile to archive.

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(
f"/card_profiles/{card_profile_id}/archive",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=CardProfile,
)
80 changes: 80 additions & 0 deletions src/increase/resources/entities/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,46 @@ def list(
model=Entity,
)

def archive(
self,
entity_id: str,
*,
# 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,
idempotency_key: str | None = None,
) -> Entity:
"""
Archive an Entity

Args:
entity_id: The identifier of the Entity to archive.

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(
f"/entities/{entity_id}/archive",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Entity,
)


class AsyncEntities(AsyncAPIResource):
beneficial_owners: AsyncBeneficialOwners
Expand Down Expand Up @@ -384,3 +424,43 @@ def list(
),
model=Entity,
)

async def archive(
self,
entity_id: str,
*,
# 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,
idempotency_key: str | None = None,
) -> Entity:
"""
Archive an Entity

Args:
entity_id: The identifier of the Entity to archive.

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(
f"/entities/{entity_id}/archive",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=Entity,
)
Loading