diff --git a/.stats.yml b/.stats.yml
index 3a1f74774..98f97da5f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1 +1 @@
-configured_endpoints: 137
+configured_endpoints: 139
diff --git a/api.md b/api.md
index 1d996d84a..da9ce0c1f 100644
--- a/api.md
+++ b/api.md
@@ -154,6 +154,7 @@ Methods:
- client.card_profiles.create(\*\*params) -> CardProfile
- client.card_profiles.retrieve(card_profile_id) -> CardProfile
- client.card_profiles.list(\*\*params) -> SyncPage[CardProfile]
+- client.card_profiles.archive(card_profile_id) -> CardProfile
# CardPurchaseSupplements
@@ -398,6 +399,7 @@ Methods:
- client.entities.create(\*\*params) -> Entity
- client.entities.retrieve(entity_id) -> Entity
- client.entities.list(\*\*params) -> SyncPage[Entity]
+- client.entities.archive(entity_id) -> Entity
## BeneficialOwners
diff --git a/poetry.lock b/poetry.lock
index e3b60cea0..05afcfb6f 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -53,41 +53,46 @@ tests-no-zope = ["cloudpickle", "coverage[toml] (>=5.0.2)", "hypothesis", "mypy
[[package]]
name = "black"
-version = "22.10.0"
+version = "23.3.0"
description = "The uncompromising code formatter."
category = "dev"
optional = false
python-versions = ">=3.7"
files = [
- {file = "black-22.10.0-1fixedarch-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:5cc42ca67989e9c3cf859e84c2bf014f6633db63d1cbdf8fdb666dcd9e77e3fa"},
- {file = "black-22.10.0-1fixedarch-cp311-cp311-macosx_11_0_x86_64.whl", hash = "sha256:5d8f74030e67087b219b032aa33a919fae8806d49c867846bfacde57f43972ef"},
- {file = "black-22.10.0-1fixedarch-cp37-cp37m-macosx_10_16_x86_64.whl", hash = "sha256:197df8509263b0b8614e1df1756b1dd41be6738eed2ba9e9769f3880c2b9d7b6"},
- {file = "black-22.10.0-1fixedarch-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:2644b5d63633702bc2c5f3754b1b475378fbbfb481f62319388235d0cd104c2d"},
- {file = "black-22.10.0-1fixedarch-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:e41a86c6c650bcecc6633ee3180d80a025db041a8e2398dcc059b3afa8382cd4"},
- {file = "black-22.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2039230db3c6c639bd84efe3292ec7b06e9214a2992cd9beb293d639c6402edb"},
- {file = "black-22.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14ff67aec0a47c424bc99b71005202045dc09270da44a27848d534600ac64fc7"},
- {file = "black-22.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:819dc789f4498ecc91438a7de64427c73b45035e2e3680c92e18795a839ebb66"},
- {file = "black-22.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5b9b29da4f564ba8787c119f37d174f2b69cdfdf9015b7d8c5c16121ddc054ae"},
- {file = "black-22.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8b49776299fece66bffaafe357d929ca9451450f5466e997a7285ab0fe28e3b"},
- {file = "black-22.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:21199526696b8f09c3997e2b4db8d0b108d801a348414264d2eb8eb2532e540d"},
- {file = "black-22.10.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1e464456d24e23d11fced2bc8c47ef66d471f845c7b7a42f3bd77bf3d1789650"},
- {file = "black-22.10.0-cp37-cp37m-win_amd64.whl", hash = "sha256:9311e99228ae10023300ecac05be5a296f60d2fd10fff31cf5c1fa4ca4b1988d"},
- {file = "black-22.10.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:fba8a281e570adafb79f7755ac8721b6cf1bbf691186a287e990c7929c7692ff"},
- {file = "black-22.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:915ace4ff03fdfff953962fa672d44be269deb2eaf88499a0f8805221bc68c87"},
- {file = "black-22.10.0-cp38-cp38-win_amd64.whl", hash = "sha256:444ebfb4e441254e87bad00c661fe32df9969b2bf224373a448d8aca2132b395"},
- {file = "black-22.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:974308c58d057a651d182208a484ce80a26dac0caef2895836a92dd6ebd725e0"},
- {file = "black-22.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72ef3925f30e12a184889aac03d77d031056860ccae8a1e519f6cbb742736383"},
- {file = "black-22.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:432247333090c8c5366e69627ccb363bc58514ae3e63f7fc75c54b1ea80fa7de"},
- {file = "black-22.10.0-py3-none-any.whl", hash = "sha256:c957b2b4ea88587b46cf49d1dc17681c1e672864fd7af32fc1e9664d572b3458"},
- {file = "black-22.10.0.tar.gz", hash = "sha256:f513588da599943e0cde4e32cc9879e825d58720d6557062d1098c5ad80080e1"},
+ {file = "black-23.3.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:0945e13506be58bf7db93ee5853243eb368ace1c08a24c65ce108986eac65915"},
+ {file = "black-23.3.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:67de8d0c209eb5b330cce2469503de11bca4085880d62f1628bd9972cc3366b9"},
+ {file = "black-23.3.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:7c3eb7cea23904399866c55826b31c1f55bbcd3890ce22ff70466b907b6775c2"},
+ {file = "black-23.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:32daa9783106c28815d05b724238e30718f34155653d4d6e125dc7daec8e260c"},
+ {file = "black-23.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:35d1381d7a22cc5b2be2f72c7dfdae4072a3336060635718cc7e1ede24221d6c"},
+ {file = "black-23.3.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:a8a968125d0a6a404842fa1bf0b349a568634f856aa08ffaff40ae0dfa52e7c6"},
+ {file = "black-23.3.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:c7ab5790333c448903c4b721b59c0d80b11fe5e9803d8703e84dcb8da56fec1b"},
+ {file = "black-23.3.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:a6f6886c9869d4daae2d1715ce34a19bbc4b95006d20ed785ca00fa03cba312d"},
+ {file = "black-23.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f3c333ea1dd6771b2d3777482429864f8e258899f6ff05826c3a4fcc5ce3f70"},
+ {file = "black-23.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:11c410f71b876f961d1de77b9699ad19f939094c3a677323f43d7a29855fe326"},
+ {file = "black-23.3.0-cp37-cp37m-macosx_10_16_x86_64.whl", hash = "sha256:1d06691f1eb8de91cd1b322f21e3bfc9efe0c7ca1f0e1eb1db44ea367dff656b"},
+ {file = "black-23.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50cb33cac881766a5cd9913e10ff75b1e8eb71babf4c7104f2e9c52da1fb7de2"},
+ {file = "black-23.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:e114420bf26b90d4b9daa597351337762b63039752bdf72bf361364c1aa05925"},
+ {file = "black-23.3.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:48f9d345675bb7fbc3dd85821b12487e1b9a75242028adad0333ce36ed2a6d27"},
+ {file = "black-23.3.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:714290490c18fb0126baa0fca0a54ee795f7502b44177e1ce7624ba1c00f2331"},
+ {file = "black-23.3.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:064101748afa12ad2291c2b91c960be28b817c0c7eaa35bec09cc63aa56493c5"},
+ {file = "black-23.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:562bd3a70495facf56814293149e51aa1be9931567474993c7942ff7d3533961"},
+ {file = "black-23.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:e198cf27888ad6f4ff331ca1c48ffc038848ea9f031a3b40ba36aced7e22f2c8"},
+ {file = "black-23.3.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:3238f2aacf827d18d26db07524e44741233ae09a584273aa059066d644ca7b30"},
+ {file = "black-23.3.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:f0bd2f4a58d6666500542b26354978218a9babcdc972722f4bf90779524515f3"},
+ {file = "black-23.3.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:92c543f6854c28a3c7f39f4d9b7694f9a6eb9d3c5e2ece488c327b6e7ea9b266"},
+ {file = "black-23.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a150542a204124ed00683f0db1f5cf1c2aaaa9cc3495b7a3b5976fb136090ab"},
+ {file = "black-23.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:6b39abdfb402002b8a7d030ccc85cf5afff64ee90fa4c5aebc531e3ad0175ddb"},
+ {file = "black-23.3.0-py3-none-any.whl", hash = "sha256:ec751418022185b0c1bb7d7736e6933d40bbb14c14a0abcf9123d1b159f98dd4"},
+ {file = "black-23.3.0.tar.gz", hash = "sha256:1c7b8d606e728a41ea1ccbd7264677e494e87cf630e399262ced92d4a8dac940"},
]
[package.dependencies]
click = ">=8.0.0"
mypy-extensions = ">=0.4.3"
+packaging = ">=22.0"
pathspec = ">=0.9.0"
platformdirs = ">=2"
-tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""}
+tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""}
typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}
@@ -347,19 +352,16 @@ setuptools = "*"
[[package]]
name = "packaging"
-version = "21.3"
+version = "23.1"
description = "Core utilities for Python packages"
category = "dev"
optional = false
-python-versions = ">=3.6"
+python-versions = ">=3.7"
files = [
- {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
- {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},
+ {file = "packaging-23.1-py3-none-any.whl", hash = "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61"},
+ {file = "packaging-23.1.tar.gz", hash = "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"},
]
-[package.dependencies]
-pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
-
[[package]]
name = "pathspec"
version = "0.10.1"
@@ -472,21 +474,6 @@ typing-extensions = ">=4.2.0"
dotenv = ["python-dotenv (>=0.10.4)"]
email = ["email-validator (>=1.0.3)"]
-[[package]]
-name = "pyparsing"
-version = "3.0.9"
-description = "pyparsing module - Classes and methods to define and execute parsing grammars"
-category = "dev"
-optional = false
-python-versions = ">=3.6.8"
-files = [
- {file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"},
- {file = "pyparsing-3.0.9.tar.gz", hash = "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"},
-]
-
-[package.extras]
-diagrams = ["jinja2", "railroad-diagrams"]
-
[[package]]
name = "pyright"
version = "1.1.318"
@@ -535,23 +522,23 @@ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.
[[package]]
name = "pytest-asyncio"
-version = "0.18.3"
+version = "0.21.1"
description = "Pytest support for asyncio"
category = "dev"
optional = false
python-versions = ">=3.7"
files = [
- {file = "pytest-asyncio-0.18.3.tar.gz", hash = "sha256:7659bdb0a9eb9c6e3ef992eef11a2b3e69697800ad02fb06374a210d85b29f91"},
- {file = "pytest_asyncio-0.18.3-1-py3-none-any.whl", hash = "sha256:16cf40bdf2b4fb7fc8e4b82bd05ce3fbcd454cbf7b92afc445fe299dabb88213"},
- {file = "pytest_asyncio-0.18.3-py3-none-any.whl", hash = "sha256:8fafa6c52161addfd41ee7ab35f11836c5a16ec208f93ee388f752bea3493a84"},
+ {file = "pytest-asyncio-0.21.1.tar.gz", hash = "sha256:40a7eae6dded22c7b604986855ea48400ab15b069ae38116e8c01238e9eeb64d"},
+ {file = "pytest_asyncio-0.21.1-py3-none-any.whl", hash = "sha256:8666c1c8ac02631d7c51ba282e0c69a8a452b211ffedf2599099845da5c5c37b"},
]
[package.dependencies]
-pytest = ">=6.1.0"
+pytest = ">=7.0.0"
typing-extensions = {version = ">=3.7.2", markers = "python_version < \"3.8\""}
[package.extras]
-testing = ["coverage (==6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypy (==0.931)", "pytest-trio (>=0.7.0)"]
+docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"]
+testing = ["coverage (>=6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypy (>=0.931)", "pytest-trio (>=0.7.0)"]
[[package]]
name = "python-dateutil"
@@ -812,4 +799,4 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools"
[metadata]
lock-version = "2.0"
python-versions = "^3.7"
-content-hash = "6e3e19e8c083bdc2bd3d4c4f5eb9005d3672da904c95f989b0840aada5f92f0c"
+content-hash = "95b82069840f6c5dff1e59de78f9190087c3fd87baa0ed4a942f12e04ae6edd5"
diff --git a/pyproject.toml b/pyproject.toml
index c96507e2a..a98601d71 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -14,7 +14,7 @@ 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"
@@ -22,10 +22,10 @@ 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"
diff --git a/src/increase/resources/card_profiles.py b/src/increase/resources/card_profiles.py
index c08caa149..4f53d87dc 100644
--- a/src/increase/resources/card_profiles.py
+++ b/src/increase/resources/card_profiles.py
@@ -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(
@@ -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,
+ )
diff --git a/src/increase/resources/entities/entities.py b/src/increase/resources/entities/entities.py
index 0c5df8b5a..55b17b0fb 100644
--- a/src/increase/resources/entities/entities.py
+++ b/src/increase/resources/entities/entities.py
@@ -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
@@ -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,
+ )
diff --git a/src/increase/resources/files.py b/src/increase/resources/files.py
index afa46a47c..5ba1ee6c3 100644
--- a/src/increase/resources/files.py
+++ b/src/increase/resources/files.py
@@ -23,6 +23,7 @@ def create(
purpose: Literal[
"check_image_front",
"check_image_back",
+ "mailed_check_image",
"form_ss_4",
"identity_document",
"other",
@@ -58,6 +59,7 @@ def create(
- `check_image_front` - An image of the front of a check, used for check
deposits.
- `check_image_back` - An image of the back of a check, used for check deposits.
+ - `mailed_check_image` - An image of a check that was mailed to a recipient.
- `form_ss_4` - IRS Form SS-4.
- `identity_document` - An image of a government-issued ID.
- `other` - A file purpose not covered by any of the other cases.
@@ -209,6 +211,7 @@ async def create(
purpose: Literal[
"check_image_front",
"check_image_back",
+ "mailed_check_image",
"form_ss_4",
"identity_document",
"other",
@@ -244,6 +247,7 @@ async def create(
- `check_image_front` - An image of the front of a check, used for check
deposits.
- `check_image_back` - An image of the back of a check, used for check deposits.
+ - `mailed_check_image` - An image of a check that was mailed to a recipient.
- `form_ss_4` - IRS Form SS-4.
- `identity_document` - An image of a government-issued ID.
- `other` - A file purpose not covered by any of the other cases.
diff --git a/src/increase/types/ach_prenotification.py b/src/increase/types/ach_prenotification.py
index db87aa8c1..45034f53e 100644
--- a/src/increase/types/ach_prenotification.py
+++ b/src/increase/types/ach_prenotification.py
@@ -1,12 +1,55 @@
# File generated from our OpenAPI spec by Stainless.
-from typing import Optional
+from typing import List, Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
-__all__ = ["ACHPrenotification", "PrenotificationReturn"]
+__all__ = ["ACHPrenotification", "NotificationsOfChange", "PrenotificationReturn"]
+
+
+class NotificationsOfChange(BaseModel):
+ change_code: Literal[
+ "incorrect_account_number",
+ "incorrect_routing_number",
+ "incorrect_routing_number_and_account_number",
+ "incorrect_transaction_code",
+ "incorrect_account_number_and_transaction_code",
+ "incorrect_routing_number_account_number_and_transaction_code",
+ "incorrect_receiving_depository_financial_institution_identification",
+ "incorrect_individual_identification_number",
+ "addenda_format_error",
+ "incorrect_standard_entry_class_code_for_outbound_international_payment",
+ ]
+ """The type of change that occurred.
+
+ - `incorrect_account_number` - The account number was incorrect.
+ - `incorrect_routing_number` - The routing number was incorrect.
+ - `incorrect_routing_number_and_account_number` - Both the routing number and
+ the account number were incorrect.
+ - `incorrect_transaction_code` - The transaction code was incorrect.
+ - `incorrect_account_number_and_transaction_code` - The account number and the
+ transaction code were incorrect.
+ - `incorrect_routing_number_account_number_and_transaction_code` - The routing
+ number, account number, and transaction code were incorrect.
+ - `incorrect_receiving_depository_financial_institution_identification` - The
+ receiving depository financial institution identification was incorrect.
+ - `incorrect_individual_identification_number` - The individual identification
+ number was incorrect.
+ - `addenda_format_error` - The addenda had an incorrect format.
+ - `incorrect_standard_entry_class_code_for_outbound_international_payment` - The
+ standard entry class code was incorrect for an outbound international payment.
+ """
+
+ corrected_data: str
+ """The corrected data."""
+
+ created_at: datetime
+ """
+ The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
+ the notification occurred.
+ """
class PrenotificationReturn(BaseModel):
@@ -60,6 +103,12 @@ class ACHPrenotification(BaseModel):
The effective date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
"""
+ notifications_of_change: List[NotificationsOfChange]
+ """
+ If the receiving bank notifies that future transfers should use different
+ details, this will contain those details.
+ """
+
prenotification_return: Optional[PrenotificationReturn]
"""If your prenotification is returned, this will contain details of the return."""
diff --git a/src/increase/types/ach_transfer.py b/src/increase/types/ach_transfer.py
index c2b704e2d..3134cf9c6 100644
--- a/src/increase/types/ach_transfer.py
+++ b/src/increase/types/ach_transfer.py
@@ -320,6 +320,14 @@ class Return(BaseModel):
class Submission(BaseModel):
+ expected_funds_settlement_at: datetime
+ """When the funds transfer is expected to settle in the recipient's account.
+
+ Credits may be available sooner, at the receiving banks discretion. The FedACH
+ schedule is published
+ [here](https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html).
+ """
+
submitted_at: datetime
"""When the ACH transfer was sent to FedACH."""
diff --git a/src/increase/types/card_profile.py b/src/increase/types/card_profile.py
index 8fffcddb8..7c8ced290 100644
--- a/src/increase/types/card_profile.py
+++ b/src/increase/types/card_profile.py
@@ -93,6 +93,9 @@ class CardProfile(BaseModel):
their app.
"""
+ is_default: bool
+ """Whether this Card Profile is the default for all cards in its Increase group."""
+
physical_cards: Optional[PhysicalCards]
"""How physical cards should be designed and shipped."""
diff --git a/src/increase/types/check_transfer.py b/src/increase/types/check_transfer.py
index bdce4a46f..7497a447f 100644
--- a/src/increase/types/check_transfer.py
+++ b/src/increase/types/check_transfer.py
@@ -75,6 +75,12 @@ class Deposit(BaseModel):
class Mailing(BaseModel):
+ image_id: Optional[str]
+ """
+ The ID of the file corresponding to an image of the check that was mailed, if
+ available.
+ """
+
mailed_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
diff --git a/src/increase/types/declined_transaction.py b/src/increase/types/declined_transaction.py
index 068468afb..0e81a8fc5 100644
--- a/src/increase/types/declined_transaction.py
+++ b/src/increase/types/declined_transaction.py
@@ -4,8 +4,8 @@
from datetime import datetime
from typing_extensions import Literal
-from ..types import shared
from .._models import BaseModel
+from ..types.shared.point_of_service_entry_mode import PointOfServiceEntryMode
__all__ = [
"DeclinedTransaction",
@@ -125,7 +125,7 @@ class SourceCardDeclineNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
@@ -489,7 +489,7 @@ class SourceWireDecline(BaseModel):
class Source(BaseModel):
ach_decline: Optional[SourceACHDecline]
- """A ACH Decline object.
+ """An ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_decline`.
@@ -511,25 +511,23 @@ class Source(BaseModel):
"wire_decline",
"other",
]
- """The type of decline that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `ach_decline` - The Declined Transaction was created by a ACH Decline object.
- Details will be under the `ach_decline` object.
- - `card_decline` - The Declined Transaction was created by a Card Decline
- object. Details will be under the `card_decline` object.
- - `check_decline` - The Declined Transaction was created by a Check Decline
- object. Details will be under the `check_decline` object.
- - `inbound_real_time_payments_transfer_decline` - The Declined Transaction was
- created by a Inbound Real Time Payments Transfer Decline object. Details will
- be under the `inbound_real_time_payments_transfer_decline` object.
- - `international_ach_decline` - The Declined Transaction was created by a
- International ACH Decline object. Details will be under the
- `international_ach_decline` object.
- - `wire_decline` - The Declined Transaction was created by a Wire Decline
- object. Details will be under the `wire_decline` object.
+ - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
+ - `card_decline` - Card Decline: details will be under the `card_decline`
+ object.
+ - `check_decline` - Check Decline: details will be under the `check_decline`
+ object.
+ - `inbound_real_time_payments_transfer_decline` - Inbound Real Time Payments
+ Transfer Decline: details will be under the
+ `inbound_real_time_payments_transfer_decline` object.
+ - `international_ach_decline` - International ACH Decline: details will be under
+ the `international_ach_decline` object.
+ - `wire_decline` - Wire Decline: details will be under the `wire_decline`
+ object.
- `other` - The Declined Transaction was made for an undocumented or deprecated
reason.
"""
@@ -542,14 +540,14 @@ class Source(BaseModel):
"""
inbound_real_time_payments_transfer_decline: Optional[SourceInboundRealTimePaymentsTransferDecline]
- """A Inbound Real Time Payments Transfer Decline object.
+ """An Inbound Real Time Payments Transfer Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_decline`.
"""
international_ach_decline: Optional[SourceInternationalACHDecline]
- """A International ACH Decline object.
+ """An International ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `international_ach_decline`.
diff --git a/src/increase/types/entities/beneficial_owner_create_params.py b/src/increase/types/entities/beneficial_owner_create_params.py
index e68ddc5ce..30e45ca5d 100644
--- a/src/increase/types/entities/beneficial_owner_create_params.py
+++ b/src/increase/types/entities/beneficial_owner_create_params.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Union
+from typing import List, Union
from datetime import date
from typing_extensions import Literal, Required, Annotated, TypedDict
@@ -167,13 +167,10 @@ class BeneficialOwner(TypedDict, total=False):
individual: Required[BeneficialOwnerIndividual]
"""Personal details for the beneficial owner."""
- prong: Required[Literal["ownership", "control"]]
+ prongs: Required[List[Literal["ownership", "control"]]]
"""Why this person is considered a beneficial owner of the entity.
- - `ownership` - A person with 25% or greater direct or indirect ownership of the
- entity.
- - `control` - A person who manages, directs, or has significant control of the
- entity.
+ At least one option is required.
"""
company_title: str
diff --git a/src/increase/types/entity_create_params.py b/src/increase/types/entity_create_params.py
index c6e24aded..bb0371eeb 100644
--- a/src/increase/types/entity_create_params.py
+++ b/src/increase/types/entity_create_params.py
@@ -262,13 +262,10 @@ class CorporationBeneficialOwner(TypedDict, total=False):
individual: Required[CorporationBeneficialOwnerIndividual]
"""Personal details for the beneficial owner."""
- prong: Required[Literal["ownership", "control"]]
+ prongs: Required[List[Literal["ownership", "control"]]]
"""Why this person is considered a beneficial owner of the entity.
- - `ownership` - A person with 25% or greater direct or indirect ownership of the
- entity.
- - `control` - A person who manages, directs, or has significant control of the
- entity.
+ At least one option is required.
"""
company_title: str
diff --git a/src/increase/types/file.py b/src/increase/types/file.py
index 28d63a0df..4a622644c 100644
--- a/src/increase/types/file.py
+++ b/src/increase/types/file.py
@@ -38,6 +38,7 @@ class File(BaseModel):
purpose: Literal[
"check_image_front",
"check_image_back",
+ "mailed_check_image",
"form_1099_int",
"form_ss_4",
"identity_document",
@@ -61,6 +62,7 @@ class File(BaseModel):
- `check_image_front` - An image of the front of a check, used for check
deposits.
- `check_image_back` - An image of the back of a check, used for check deposits.
+ - `mailed_check_image` - An image of a check that was mailed to a recipient.
- `form_1099_int` - IRS Form 1099-INT.
- `form_ss_4` - IRS Form SS-4.
- `identity_document` - An image of a government-issued ID.
diff --git a/src/increase/types/file_create_params.py b/src/increase/types/file_create_params.py
index 1b919969e..70f0824de 100644
--- a/src/increase/types/file_create_params.py
+++ b/src/increase/types/file_create_params.py
@@ -22,6 +22,7 @@ class FileCreateParams(TypedDict, total=False):
Literal[
"check_image_front",
"check_image_back",
+ "mailed_check_image",
"form_ss_4",
"identity_document",
"other",
@@ -39,6 +40,7 @@ class FileCreateParams(TypedDict, total=False):
- `check_image_front` - An image of the front of a check, used for check
deposits.
- `check_image_back` - An image of the back of a check, used for check deposits.
+ - `mailed_check_image` - An image of a check that was mailed to a recipient.
- `form_ss_4` - IRS Form SS-4.
- `identity_document` - An image of a government-issued ID.
- `other` - A file purpose not covered by any of the other cases.
diff --git a/src/increase/types/file_list_params.py b/src/increase/types/file_list_params.py
index 5d4216deb..b2a33ed95 100644
--- a/src/increase/types/file_list_params.py
+++ b/src/increase/types/file_list_params.py
@@ -59,6 +59,7 @@ class CreatedAt(TypedDict, total=False):
Literal[
"check_image_front",
"check_image_back",
+ "mailed_check_image",
"form_1099_int",
"form_ss_4",
"identity_document",
diff --git a/src/increase/types/pending_transaction.py b/src/increase/types/pending_transaction.py
index 4346a7053..ea60366da 100644
--- a/src/increase/types/pending_transaction.py
+++ b/src/increase/types/pending_transaction.py
@@ -4,8 +4,8 @@
from datetime import datetime
from typing_extensions import Literal
-from ..types import shared
from .._models import BaseModel
+from ..types.shared.point_of_service_entry_mode import PointOfServiceEntryMode
__all__ = [
"PendingTransaction",
@@ -107,7 +107,7 @@ class SourceCardAuthorizationNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
@@ -356,14 +356,14 @@ class SourceWireTransferInstruction(BaseModel):
class Source(BaseModel):
account_transfer_instruction: Optional[SourceAccountTransferInstruction]
- """A Account Transfer Instruction object.
+ """An Account Transfer Instruction object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_instruction`.
"""
ach_transfer_instruction: Optional[SourceACHTransferInstruction]
- """A ACH Transfer Instruction object.
+ """An ACH Transfer Instruction object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_instruction`.
@@ -387,33 +387,28 @@ class Source(BaseModel):
"wire_transfer_instruction",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_instruction` - The Pending Transaction was created by a
- Account Transfer Instruction object. Details will be under the
- `account_transfer_instruction` object.
- - `ach_transfer_instruction` - The Pending Transaction was created by a ACH
- Transfer Instruction object. Details will be under the
- `ach_transfer_instruction` object.
- - `card_authorization` - The Pending Transaction was created by a Card
- Authorization object. Details will be under the `card_authorization` object.
- - `check_deposit_instruction` - The Pending Transaction was created by a Check
- Deposit Instruction object. Details will be under the
- `check_deposit_instruction` object.
- - `check_transfer_instruction` - The Pending Transaction was created by a Check
- Transfer Instruction object. Details will be under the
- `check_transfer_instruction` object.
- - `inbound_funds_hold` - The Pending Transaction was created by a Inbound Funds
- Hold object. Details will be under the `inbound_funds_hold` object.
- - `real_time_payments_transfer_instruction` - The Pending Transaction was
- created by a Real Time Payments Transfer Instruction object. Details will be
- under the `real_time_payments_transfer_instruction` object.
- - `wire_transfer_instruction` - The Pending Transaction was created by a Wire
- Transfer Instruction object. Details will be under the
- `wire_transfer_instruction` object.
+ - `account_transfer_instruction` - Account Transfer Instruction: details will be
+ under the `account_transfer_instruction` object.
+ - `ach_transfer_instruction` - ACH Transfer Instruction: details will be under
+ the `ach_transfer_instruction` object.
+ - `card_authorization` - Card Authorization: details will be under the
+ `card_authorization` object.
+ - `check_deposit_instruction` - Check Deposit Instruction: details will be under
+ the `check_deposit_instruction` object.
+ - `check_transfer_instruction` - Check Transfer Instruction: details will be
+ under the `check_transfer_instruction` object.
+ - `inbound_funds_hold` - Inbound Funds Hold: details will be under the
+ `inbound_funds_hold` object.
+ - `real_time_payments_transfer_instruction` - Real Time Payments Transfer
+ Instruction: details will be under the
+ `real_time_payments_transfer_instruction` object.
+ - `wire_transfer_instruction` - Wire Transfer Instruction: details will be under
+ the `wire_transfer_instruction` object.
- `other` - The Pending Transaction was made for an undocumented or deprecated
reason.
"""
@@ -433,7 +428,7 @@ class Source(BaseModel):
"""
inbound_funds_hold: Optional[SourceInboundFundsHold]
- """A Inbound Funds Hold object.
+ """An Inbound Funds Hold object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_funds_hold`.
diff --git a/src/increase/types/real_time_decision.py b/src/increase/types/real_time_decision.py
index e1b9d9ce9..39c433e82 100644
--- a/src/increase/types/real_time_decision.py
+++ b/src/increase/types/real_time_decision.py
@@ -4,8 +4,8 @@
from datetime import datetime
from typing_extensions import Literal
-from ..types import shared
from .._models import BaseModel
+from ..types.shared.point_of_service_entry_mode import PointOfServiceEntryMode
__all__ = [
"RealTimeDecision",
@@ -68,7 +68,7 @@ class CardAuthorizationNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
diff --git a/src/increase/types/simulations/ach_transfer_simulation.py b/src/increase/types/simulations/ach_transfer_simulation.py
index dddfd3a44..286486a19 100644
--- a/src/increase/types/simulations/ach_transfer_simulation.py
+++ b/src/increase/types/simulations/ach_transfer_simulation.py
@@ -4,8 +4,8 @@
from datetime import date, datetime
from typing_extensions import Literal
-from ...types import shared
from ..._models import BaseModel
+from ...types.shared.point_of_service_entry_mode import PointOfServiceEntryMode
__all__ = [
"ACHTransferSimulation",
@@ -170,7 +170,7 @@ class DeclinedTransactionSourceCardDeclineNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
@@ -534,7 +534,7 @@ class DeclinedTransactionSourceWireDecline(BaseModel):
class DeclinedTransactionSource(BaseModel):
ach_decline: Optional[DeclinedTransactionSourceACHDecline]
- """A ACH Decline object.
+ """An ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_decline`.
@@ -556,25 +556,23 @@ class DeclinedTransactionSource(BaseModel):
"wire_decline",
"other",
]
- """The type of decline that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `ach_decline` - The Declined Transaction was created by a ACH Decline object.
- Details will be under the `ach_decline` object.
- - `card_decline` - The Declined Transaction was created by a Card Decline
- object. Details will be under the `card_decline` object.
- - `check_decline` - The Declined Transaction was created by a Check Decline
- object. Details will be under the `check_decline` object.
- - `inbound_real_time_payments_transfer_decline` - The Declined Transaction was
- created by a Inbound Real Time Payments Transfer Decline object. Details will
- be under the `inbound_real_time_payments_transfer_decline` object.
- - `international_ach_decline` - The Declined Transaction was created by a
- International ACH Decline object. Details will be under the
- `international_ach_decline` object.
- - `wire_decline` - The Declined Transaction was created by a Wire Decline
- object. Details will be under the `wire_decline` object.
+ - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
+ - `card_decline` - Card Decline: details will be under the `card_decline`
+ object.
+ - `check_decline` - Check Decline: details will be under the `check_decline`
+ object.
+ - `inbound_real_time_payments_transfer_decline` - Inbound Real Time Payments
+ Transfer Decline: details will be under the
+ `inbound_real_time_payments_transfer_decline` object.
+ - `international_ach_decline` - International ACH Decline: details will be under
+ the `international_ach_decline` object.
+ - `wire_decline` - Wire Decline: details will be under the `wire_decline`
+ object.
- `other` - The Declined Transaction was made for an undocumented or deprecated
reason.
"""
@@ -589,14 +587,14 @@ class DeclinedTransactionSource(BaseModel):
inbound_real_time_payments_transfer_decline: Optional[
DeclinedTransactionSourceInboundRealTimePaymentsTransferDecline
]
- """A Inbound Real Time Payments Transfer Decline object.
+ """An Inbound Real Time Payments Transfer Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_decline`.
"""
international_ach_decline: Optional[DeclinedTransactionSourceInternationalACHDecline]
- """A International ACH Decline object.
+ """An International ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `international_ach_decline`.
@@ -2637,28 +2635,28 @@ class TransactionSourceWireTransferRejection(BaseModel):
class TransactionSource(BaseModel):
account_transfer_intention: Optional[TransactionSourceAccountTransferIntention]
- """A Account Transfer Intention object.
+ """An Account Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_intention`.
"""
ach_transfer_intention: Optional[TransactionSourceACHTransferIntention]
- """A ACH Transfer Intention object.
+ """An ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_intention`.
"""
ach_transfer_rejection: Optional[TransactionSourceACHTransferRejection]
- """A ACH Transfer Rejection object.
+ """An ACH Transfer Rejection object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_rejection`.
"""
ach_transfer_return: Optional[TransactionSourceACHTransferReturn]
- """A ACH Transfer Return object.
+ """An ACH Transfer Return object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_return`.
@@ -2724,78 +2722,71 @@ class TransactionSource(BaseModel):
"wire_transfer_rejection",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_intention` - The Transaction was created by a Account
- Transfer Intention object. Details will be under the
- `account_transfer_intention` object.
- - `ach_transfer_intention` - The Transaction was created by a ACH Transfer
- Intention object. Details will be under the `ach_transfer_intention` object.
- - `ach_transfer_rejection` - The Transaction was created by a ACH Transfer
- Rejection object. Details will be under the `ach_transfer_rejection` object.
- - `ach_transfer_return` - The Transaction was created by a ACH Transfer Return
- object. Details will be under the `ach_transfer_return` object.
- - `card_dispute_acceptance` - The Transaction was created by a Card Dispute
- Acceptance object. Details will be under the `card_dispute_acceptance` object.
- - `card_refund` - The Transaction was created by a Card Refund object. Details
- will be under the `card_refund` object.
- - `card_revenue_payment` - The Transaction was created by a Card Revenue Payment
- object. Details will be under the `card_revenue_payment` object.
- - `card_settlement` - The Transaction was created by a Card Settlement object.
- Details will be under the `card_settlement` object.
- - `check_deposit_acceptance` - The Transaction was created by a Check Deposit
- Acceptance object. Details will be under the `check_deposit_acceptance`
+ - `account_transfer_intention` - Account Transfer Intention: details will be
+ under the `account_transfer_intention` object.
+ - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
+ `ach_transfer_intention` object.
+ - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
+ `ach_transfer_rejection` object.
+ - `ach_transfer_return` - ACH Transfer Return: details will be under the
+ `ach_transfer_return` object.
+ - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
+ `card_dispute_acceptance` object.
+ - `card_refund` - Card Refund: details will be under the `card_refund` object.
+ - `card_revenue_payment` - Card Revenue Payment: details will be under the
+ `card_revenue_payment` object.
+ - `card_settlement` - Card Settlement: details will be under the
+ `card_settlement` object.
+ - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
+ the `check_deposit_acceptance` object.
+ - `check_deposit_return` - Check Deposit Return: details will be under the
+ `check_deposit_return` object.
+ - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
+ `check_transfer_deposit` object.
+ - `check_transfer_intention` - Check Transfer Intention: details will be under
+ the `check_transfer_intention` object.
+ - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
+ details will be under the `check_transfer_stop_payment_request` object.
+ - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
+ - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
+ the `inbound_ach_transfer` object.
+ - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
+ Intention: details will be under the `inbound_ach_transfer_return_intention`
+ object.
+ - `inbound_check` - Inbound Check: details will be under the `inbound_check`
+ object.
+ - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
+ details will be under the `inbound_international_ach_transfer` object.
+ - `inbound_real_time_payments_transfer_confirmation` - Inbound Real Time
+ Payments Transfer Confirmation: details will be under the
+ `inbound_real_time_payments_transfer_confirmation` object.
+ - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
+ be under the `inbound_wire_drawdown_payment` object.
+ - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
+ Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
+ object.
+ - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
+ `inbound_wire_reversal` object.
+ - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
+ `inbound_wire_transfer` object.
+ - `interest_payment` - Interest Payment: details will be under the
+ `interest_payment` object.
+ - `internal_source` - Internal Source: details will be under the
+ `internal_source` object.
+ - `real_time_payments_transfer_acknowledgement` - Real Time Payments Transfer
+ Acknowledgement: details will be under the
+ `real_time_payments_transfer_acknowledgement` object.
+ - `sample_funds` - Sample Funds: details will be under the `sample_funds`
object.
- - `check_deposit_return` - The Transaction was created by a Check Deposit Return
- object. Details will be under the `check_deposit_return` object.
- - `check_transfer_deposit` - The Transaction was created by a Check Transfer
- Deposit object. Details will be under the `check_transfer_deposit` object.
- - `check_transfer_intention` - The Transaction was created by a Check Transfer
- Intention object. Details will be under the `check_transfer_intention` object.
- - `check_transfer_stop_payment_request` - The Transaction was created by a Check
- Transfer Stop Payment Request object. Details will be under the
- `check_transfer_stop_payment_request` object.
- - `fee_payment` - The Transaction was created by a Fee Payment object. Details
- will be under the `fee_payment` object.
- - `inbound_ach_transfer` - The Transaction was created by a Inbound ACH Transfer
- object. Details will be under the `inbound_ach_transfer` object.
- - `inbound_ach_transfer_return_intention` - The Transaction was created by a
- Inbound ACH Transfer Return Intention object. Details will be under the
- `inbound_ach_transfer_return_intention` object.
- - `inbound_check` - The Transaction was created by a Inbound Check object.
- Details will be under the `inbound_check` object.
- - `inbound_international_ach_transfer` - The Transaction was created by a
- Inbound International ACH Transfer object. Details will be under the
- `inbound_international_ach_transfer` object.
- - `inbound_real_time_payments_transfer_confirmation` - The Transaction was
- created by a Inbound Real Time Payments Transfer Confirmation object. Details
- will be under the `inbound_real_time_payments_transfer_confirmation` object.
- - `inbound_wire_drawdown_payment` - The Transaction was created by a Inbound
- Wire Drawdown Payment object. Details will be under the
- `inbound_wire_drawdown_payment` object.
- - `inbound_wire_drawdown_payment_reversal` - The Transaction was created by a
- Inbound Wire Drawdown Payment Reversal object. Details will be under the
- `inbound_wire_drawdown_payment_reversal` object.
- - `inbound_wire_reversal` - The Transaction was created by a Inbound Wire
- Reversal object. Details will be under the `inbound_wire_reversal` object.
- - `inbound_wire_transfer` - The Transaction was created by a Inbound Wire
- Transfer object. Details will be under the `inbound_wire_transfer` object.
- - `interest_payment` - The Transaction was created by a Interest Payment object.
- Details will be under the `interest_payment` object.
- - `internal_source` - The Transaction was created by a Internal Source object.
- Details will be under the `internal_source` object.
- - `real_time_payments_transfer_acknowledgement` - The Transaction was created by
- a Real Time Payments Transfer Acknowledgement object. Details will be under
- the `real_time_payments_transfer_acknowledgement` object.
- - `sample_funds` - The Transaction was created by a Sample Funds object. Details
- will be under the `sample_funds` object.
- - `wire_transfer_intention` - The Transaction was created by a Wire Transfer
- Intention object. Details will be under the `wire_transfer_intention` object.
- - `wire_transfer_rejection` - The Transaction was created by a Wire Transfer
- Rejection object. Details will be under the `wire_transfer_rejection` object.
+ - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
+ `wire_transfer_intention` object.
+ - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
+ `wire_transfer_rejection` object.
- `other` - The Transaction was made for an undocumented or deprecated reason.
"""
@@ -2842,21 +2833,21 @@ class TransactionSource(BaseModel):
"""
inbound_ach_transfer: Optional[TransactionSourceInboundACHTransfer]
- """A Inbound ACH Transfer object.
+ """An Inbound ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_ach_transfer`.
"""
inbound_check: Optional[TransactionSourceInboundCheck]
- """A Inbound Check object.
+ """An Inbound Check object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_check`.
"""
inbound_international_ach_transfer: Optional[TransactionSourceInboundInternationalACHTransfer]
- """A Inbound International ACH Transfer object.
+ """An Inbound International ACH Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_international_ach_transfer`.
@@ -2865,49 +2856,49 @@ class TransactionSource(BaseModel):
inbound_real_time_payments_transfer_confirmation: Optional[
TransactionSourceInboundRealTimePaymentsTransferConfirmation
]
- """A Inbound Real Time Payments Transfer Confirmation object.
+ """An Inbound Real Time Payments Transfer Confirmation object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_confirmation`.
"""
inbound_wire_drawdown_payment: Optional[TransactionSourceInboundWireDrawdownPayment]
- """A Inbound Wire Drawdown Payment object.
+ """An Inbound Wire Drawdown Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment`.
"""
inbound_wire_drawdown_payment_reversal: Optional[TransactionSourceInboundWireDrawdownPaymentReversal]
- """A Inbound Wire Drawdown Payment Reversal object.
+ """An Inbound Wire Drawdown Payment Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment_reversal`.
"""
inbound_wire_reversal: Optional[TransactionSourceInboundWireReversal]
- """A Inbound Wire Reversal object.
+ """An Inbound Wire Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_reversal`.
"""
inbound_wire_transfer: Optional[TransactionSourceInboundWireTransfer]
- """A Inbound Wire Transfer object.
+ """An Inbound Wire Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_transfer`.
"""
interest_payment: Optional[TransactionSourceInterestPayment]
- """A Interest Payment object.
+ """An Interest Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `interest_payment`.
"""
internal_source: Optional[TransactionSourceInternalSource]
- """A Internal Source object.
+ """An Internal Source object.
This field will be present in the JSON response if and only if `category` is
equal to `internal_source`.
diff --git a/src/increase/types/simulations/card_authorization_simulation.py b/src/increase/types/simulations/card_authorization_simulation.py
index 29ed97878..e3aee7a91 100644
--- a/src/increase/types/simulations/card_authorization_simulation.py
+++ b/src/increase/types/simulations/card_authorization_simulation.py
@@ -4,8 +4,8 @@
from datetime import datetime
from typing_extensions import Literal
-from ...types import shared
from ..._models import BaseModel
+from ...types.shared.point_of_service_entry_mode import PointOfServiceEntryMode
__all__ = [
"CardAuthorizationSimulation",
@@ -138,7 +138,7 @@ class DeclinedTransactionSourceCardDeclineNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
@@ -502,7 +502,7 @@ class DeclinedTransactionSourceWireDecline(BaseModel):
class DeclinedTransactionSource(BaseModel):
ach_decline: Optional[DeclinedTransactionSourceACHDecline]
- """A ACH Decline object.
+ """An ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_decline`.
@@ -524,25 +524,23 @@ class DeclinedTransactionSource(BaseModel):
"wire_decline",
"other",
]
- """The type of decline that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `ach_decline` - The Declined Transaction was created by a ACH Decline object.
- Details will be under the `ach_decline` object.
- - `card_decline` - The Declined Transaction was created by a Card Decline
- object. Details will be under the `card_decline` object.
- - `check_decline` - The Declined Transaction was created by a Check Decline
- object. Details will be under the `check_decline` object.
- - `inbound_real_time_payments_transfer_decline` - The Declined Transaction was
- created by a Inbound Real Time Payments Transfer Decline object. Details will
- be under the `inbound_real_time_payments_transfer_decline` object.
- - `international_ach_decline` - The Declined Transaction was created by a
- International ACH Decline object. Details will be under the
- `international_ach_decline` object.
- - `wire_decline` - The Declined Transaction was created by a Wire Decline
- object. Details will be under the `wire_decline` object.
+ - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
+ - `card_decline` - Card Decline: details will be under the `card_decline`
+ object.
+ - `check_decline` - Check Decline: details will be under the `check_decline`
+ object.
+ - `inbound_real_time_payments_transfer_decline` - Inbound Real Time Payments
+ Transfer Decline: details will be under the
+ `inbound_real_time_payments_transfer_decline` object.
+ - `international_ach_decline` - International ACH Decline: details will be under
+ the `international_ach_decline` object.
+ - `wire_decline` - Wire Decline: details will be under the `wire_decline`
+ object.
- `other` - The Declined Transaction was made for an undocumented or deprecated
reason.
"""
@@ -557,14 +555,14 @@ class DeclinedTransactionSource(BaseModel):
inbound_real_time_payments_transfer_decline: Optional[
DeclinedTransactionSourceInboundRealTimePaymentsTransferDecline
]
- """A Inbound Real Time Payments Transfer Decline object.
+ """An Inbound Real Time Payments Transfer Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_decline`.
"""
international_ach_decline: Optional[DeclinedTransactionSourceInternationalACHDecline]
- """A International ACH Decline object.
+ """An International ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `international_ach_decline`.
@@ -727,7 +725,7 @@ class PendingTransactionSourceCardAuthorizationNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
@@ -976,14 +974,14 @@ class PendingTransactionSourceWireTransferInstruction(BaseModel):
class PendingTransactionSource(BaseModel):
account_transfer_instruction: Optional[PendingTransactionSourceAccountTransferInstruction]
- """A Account Transfer Instruction object.
+ """An Account Transfer Instruction object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_instruction`.
"""
ach_transfer_instruction: Optional[PendingTransactionSourceACHTransferInstruction]
- """A ACH Transfer Instruction object.
+ """An ACH Transfer Instruction object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_instruction`.
@@ -1007,33 +1005,28 @@ class PendingTransactionSource(BaseModel):
"wire_transfer_instruction",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_instruction` - The Pending Transaction was created by a
- Account Transfer Instruction object. Details will be under the
- `account_transfer_instruction` object.
- - `ach_transfer_instruction` - The Pending Transaction was created by a ACH
- Transfer Instruction object. Details will be under the
- `ach_transfer_instruction` object.
- - `card_authorization` - The Pending Transaction was created by a Card
- Authorization object. Details will be under the `card_authorization` object.
- - `check_deposit_instruction` - The Pending Transaction was created by a Check
- Deposit Instruction object. Details will be under the
- `check_deposit_instruction` object.
- - `check_transfer_instruction` - The Pending Transaction was created by a Check
- Transfer Instruction object. Details will be under the
- `check_transfer_instruction` object.
- - `inbound_funds_hold` - The Pending Transaction was created by a Inbound Funds
- Hold object. Details will be under the `inbound_funds_hold` object.
- - `real_time_payments_transfer_instruction` - The Pending Transaction was
- created by a Real Time Payments Transfer Instruction object. Details will be
- under the `real_time_payments_transfer_instruction` object.
- - `wire_transfer_instruction` - The Pending Transaction was created by a Wire
- Transfer Instruction object. Details will be under the
- `wire_transfer_instruction` object.
+ - `account_transfer_instruction` - Account Transfer Instruction: details will be
+ under the `account_transfer_instruction` object.
+ - `ach_transfer_instruction` - ACH Transfer Instruction: details will be under
+ the `ach_transfer_instruction` object.
+ - `card_authorization` - Card Authorization: details will be under the
+ `card_authorization` object.
+ - `check_deposit_instruction` - Check Deposit Instruction: details will be under
+ the `check_deposit_instruction` object.
+ - `check_transfer_instruction` - Check Transfer Instruction: details will be
+ under the `check_transfer_instruction` object.
+ - `inbound_funds_hold` - Inbound Funds Hold: details will be under the
+ `inbound_funds_hold` object.
+ - `real_time_payments_transfer_instruction` - Real Time Payments Transfer
+ Instruction: details will be under the
+ `real_time_payments_transfer_instruction` object.
+ - `wire_transfer_instruction` - Wire Transfer Instruction: details will be under
+ the `wire_transfer_instruction` object.
- `other` - The Pending Transaction was made for an undocumented or deprecated
reason.
"""
@@ -1053,7 +1046,7 @@ class PendingTransactionSource(BaseModel):
"""
inbound_funds_hold: Optional[PendingTransactionSourceInboundFundsHold]
- """A Inbound Funds Hold object.
+ """An Inbound Funds Hold object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_funds_hold`.
diff --git a/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py b/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py
index eff600b87..30fbcab1a 100644
--- a/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py
+++ b/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py
@@ -4,8 +4,8 @@
from datetime import date, datetime
from typing_extensions import Literal
-from ...types import shared
from ..._models import BaseModel
+from ...types.shared.point_of_service_entry_mode import PointOfServiceEntryMode
__all__ = [
"InboundRealTimePaymentsTransferSimulationResult",
@@ -170,7 +170,7 @@ class DeclinedTransactionSourceCardDeclineNetworkDetailsVisa(BaseModel):
electronic commerce transaction that has no data protection.
"""
- point_of_service_entry_mode: Optional[shared.PointOfServiceEntryMode]
+ point_of_service_entry_mode: Optional[PointOfServiceEntryMode]
"""
The method used to enter the cardholder's primary account number and card
expiration date
@@ -534,7 +534,7 @@ class DeclinedTransactionSourceWireDecline(BaseModel):
class DeclinedTransactionSource(BaseModel):
ach_decline: Optional[DeclinedTransactionSourceACHDecline]
- """A ACH Decline object.
+ """An ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_decline`.
@@ -556,25 +556,23 @@ class DeclinedTransactionSource(BaseModel):
"wire_decline",
"other",
]
- """The type of decline that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `ach_decline` - The Declined Transaction was created by a ACH Decline object.
- Details will be under the `ach_decline` object.
- - `card_decline` - The Declined Transaction was created by a Card Decline
- object. Details will be under the `card_decline` object.
- - `check_decline` - The Declined Transaction was created by a Check Decline
- object. Details will be under the `check_decline` object.
- - `inbound_real_time_payments_transfer_decline` - The Declined Transaction was
- created by a Inbound Real Time Payments Transfer Decline object. Details will
- be under the `inbound_real_time_payments_transfer_decline` object.
- - `international_ach_decline` - The Declined Transaction was created by a
- International ACH Decline object. Details will be under the
- `international_ach_decline` object.
- - `wire_decline` - The Declined Transaction was created by a Wire Decline
- object. Details will be under the `wire_decline` object.
+ - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
+ - `card_decline` - Card Decline: details will be under the `card_decline`
+ object.
+ - `check_decline` - Check Decline: details will be under the `check_decline`
+ object.
+ - `inbound_real_time_payments_transfer_decline` - Inbound Real Time Payments
+ Transfer Decline: details will be under the
+ `inbound_real_time_payments_transfer_decline` object.
+ - `international_ach_decline` - International ACH Decline: details will be under
+ the `international_ach_decline` object.
+ - `wire_decline` - Wire Decline: details will be under the `wire_decline`
+ object.
- `other` - The Declined Transaction was made for an undocumented or deprecated
reason.
"""
@@ -589,14 +587,14 @@ class DeclinedTransactionSource(BaseModel):
inbound_real_time_payments_transfer_decline: Optional[
DeclinedTransactionSourceInboundRealTimePaymentsTransferDecline
]
- """A Inbound Real Time Payments Transfer Decline object.
+ """An Inbound Real Time Payments Transfer Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_decline`.
"""
international_ach_decline: Optional[DeclinedTransactionSourceInternationalACHDecline]
- """A International ACH Decline object.
+ """An International ACH Decline object.
This field will be present in the JSON response if and only if `category` is
equal to `international_ach_decline`.
@@ -2637,28 +2635,28 @@ class TransactionSourceWireTransferRejection(BaseModel):
class TransactionSource(BaseModel):
account_transfer_intention: Optional[TransactionSourceAccountTransferIntention]
- """A Account Transfer Intention object.
+ """An Account Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_intention`.
"""
ach_transfer_intention: Optional[TransactionSourceACHTransferIntention]
- """A ACH Transfer Intention object.
+ """An ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_intention`.
"""
ach_transfer_rejection: Optional[TransactionSourceACHTransferRejection]
- """A ACH Transfer Rejection object.
+ """An ACH Transfer Rejection object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_rejection`.
"""
ach_transfer_return: Optional[TransactionSourceACHTransferReturn]
- """A ACH Transfer Return object.
+ """An ACH Transfer Return object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_return`.
@@ -2724,78 +2722,71 @@ class TransactionSource(BaseModel):
"wire_transfer_rejection",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_intention` - The Transaction was created by a Account
- Transfer Intention object. Details will be under the
- `account_transfer_intention` object.
- - `ach_transfer_intention` - The Transaction was created by a ACH Transfer
- Intention object. Details will be under the `ach_transfer_intention` object.
- - `ach_transfer_rejection` - The Transaction was created by a ACH Transfer
- Rejection object. Details will be under the `ach_transfer_rejection` object.
- - `ach_transfer_return` - The Transaction was created by a ACH Transfer Return
- object. Details will be under the `ach_transfer_return` object.
- - `card_dispute_acceptance` - The Transaction was created by a Card Dispute
- Acceptance object. Details will be under the `card_dispute_acceptance` object.
- - `card_refund` - The Transaction was created by a Card Refund object. Details
- will be under the `card_refund` object.
- - `card_revenue_payment` - The Transaction was created by a Card Revenue Payment
- object. Details will be under the `card_revenue_payment` object.
- - `card_settlement` - The Transaction was created by a Card Settlement object.
- Details will be under the `card_settlement` object.
- - `check_deposit_acceptance` - The Transaction was created by a Check Deposit
- Acceptance object. Details will be under the `check_deposit_acceptance`
+ - `account_transfer_intention` - Account Transfer Intention: details will be
+ under the `account_transfer_intention` object.
+ - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
+ `ach_transfer_intention` object.
+ - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
+ `ach_transfer_rejection` object.
+ - `ach_transfer_return` - ACH Transfer Return: details will be under the
+ `ach_transfer_return` object.
+ - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
+ `card_dispute_acceptance` object.
+ - `card_refund` - Card Refund: details will be under the `card_refund` object.
+ - `card_revenue_payment` - Card Revenue Payment: details will be under the
+ `card_revenue_payment` object.
+ - `card_settlement` - Card Settlement: details will be under the
+ `card_settlement` object.
+ - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
+ the `check_deposit_acceptance` object.
+ - `check_deposit_return` - Check Deposit Return: details will be under the
+ `check_deposit_return` object.
+ - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
+ `check_transfer_deposit` object.
+ - `check_transfer_intention` - Check Transfer Intention: details will be under
+ the `check_transfer_intention` object.
+ - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
+ details will be under the `check_transfer_stop_payment_request` object.
+ - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
+ - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
+ the `inbound_ach_transfer` object.
+ - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
+ Intention: details will be under the `inbound_ach_transfer_return_intention`
+ object.
+ - `inbound_check` - Inbound Check: details will be under the `inbound_check`
+ object.
+ - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
+ details will be under the `inbound_international_ach_transfer` object.
+ - `inbound_real_time_payments_transfer_confirmation` - Inbound Real Time
+ Payments Transfer Confirmation: details will be under the
+ `inbound_real_time_payments_transfer_confirmation` object.
+ - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
+ be under the `inbound_wire_drawdown_payment` object.
+ - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
+ Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
+ object.
+ - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
+ `inbound_wire_reversal` object.
+ - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
+ `inbound_wire_transfer` object.
+ - `interest_payment` - Interest Payment: details will be under the
+ `interest_payment` object.
+ - `internal_source` - Internal Source: details will be under the
+ `internal_source` object.
+ - `real_time_payments_transfer_acknowledgement` - Real Time Payments Transfer
+ Acknowledgement: details will be under the
+ `real_time_payments_transfer_acknowledgement` object.
+ - `sample_funds` - Sample Funds: details will be under the `sample_funds`
object.
- - `check_deposit_return` - The Transaction was created by a Check Deposit Return
- object. Details will be under the `check_deposit_return` object.
- - `check_transfer_deposit` - The Transaction was created by a Check Transfer
- Deposit object. Details will be under the `check_transfer_deposit` object.
- - `check_transfer_intention` - The Transaction was created by a Check Transfer
- Intention object. Details will be under the `check_transfer_intention` object.
- - `check_transfer_stop_payment_request` - The Transaction was created by a Check
- Transfer Stop Payment Request object. Details will be under the
- `check_transfer_stop_payment_request` object.
- - `fee_payment` - The Transaction was created by a Fee Payment object. Details
- will be under the `fee_payment` object.
- - `inbound_ach_transfer` - The Transaction was created by a Inbound ACH Transfer
- object. Details will be under the `inbound_ach_transfer` object.
- - `inbound_ach_transfer_return_intention` - The Transaction was created by a
- Inbound ACH Transfer Return Intention object. Details will be under the
- `inbound_ach_transfer_return_intention` object.
- - `inbound_check` - The Transaction was created by a Inbound Check object.
- Details will be under the `inbound_check` object.
- - `inbound_international_ach_transfer` - The Transaction was created by a
- Inbound International ACH Transfer object. Details will be under the
- `inbound_international_ach_transfer` object.
- - `inbound_real_time_payments_transfer_confirmation` - The Transaction was
- created by a Inbound Real Time Payments Transfer Confirmation object. Details
- will be under the `inbound_real_time_payments_transfer_confirmation` object.
- - `inbound_wire_drawdown_payment` - The Transaction was created by a Inbound
- Wire Drawdown Payment object. Details will be under the
- `inbound_wire_drawdown_payment` object.
- - `inbound_wire_drawdown_payment_reversal` - The Transaction was created by a
- Inbound Wire Drawdown Payment Reversal object. Details will be under the
- `inbound_wire_drawdown_payment_reversal` object.
- - `inbound_wire_reversal` - The Transaction was created by a Inbound Wire
- Reversal object. Details will be under the `inbound_wire_reversal` object.
- - `inbound_wire_transfer` - The Transaction was created by a Inbound Wire
- Transfer object. Details will be under the `inbound_wire_transfer` object.
- - `interest_payment` - The Transaction was created by a Interest Payment object.
- Details will be under the `interest_payment` object.
- - `internal_source` - The Transaction was created by a Internal Source object.
- Details will be under the `internal_source` object.
- - `real_time_payments_transfer_acknowledgement` - The Transaction was created by
- a Real Time Payments Transfer Acknowledgement object. Details will be under
- the `real_time_payments_transfer_acknowledgement` object.
- - `sample_funds` - The Transaction was created by a Sample Funds object. Details
- will be under the `sample_funds` object.
- - `wire_transfer_intention` - The Transaction was created by a Wire Transfer
- Intention object. Details will be under the `wire_transfer_intention` object.
- - `wire_transfer_rejection` - The Transaction was created by a Wire Transfer
- Rejection object. Details will be under the `wire_transfer_rejection` object.
+ - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
+ `wire_transfer_intention` object.
+ - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
+ `wire_transfer_rejection` object.
- `other` - The Transaction was made for an undocumented or deprecated reason.
"""
@@ -2842,21 +2833,21 @@ class TransactionSource(BaseModel):
"""
inbound_ach_transfer: Optional[TransactionSourceInboundACHTransfer]
- """A Inbound ACH Transfer object.
+ """An Inbound ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_ach_transfer`.
"""
inbound_check: Optional[TransactionSourceInboundCheck]
- """A Inbound Check object.
+ """An Inbound Check object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_check`.
"""
inbound_international_ach_transfer: Optional[TransactionSourceInboundInternationalACHTransfer]
- """A Inbound International ACH Transfer object.
+ """An Inbound International ACH Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_international_ach_transfer`.
@@ -2865,49 +2856,49 @@ class TransactionSource(BaseModel):
inbound_real_time_payments_transfer_confirmation: Optional[
TransactionSourceInboundRealTimePaymentsTransferConfirmation
]
- """A Inbound Real Time Payments Transfer Confirmation object.
+ """An Inbound Real Time Payments Transfer Confirmation object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_confirmation`.
"""
inbound_wire_drawdown_payment: Optional[TransactionSourceInboundWireDrawdownPayment]
- """A Inbound Wire Drawdown Payment object.
+ """An Inbound Wire Drawdown Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment`.
"""
inbound_wire_drawdown_payment_reversal: Optional[TransactionSourceInboundWireDrawdownPaymentReversal]
- """A Inbound Wire Drawdown Payment Reversal object.
+ """An Inbound Wire Drawdown Payment Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment_reversal`.
"""
inbound_wire_reversal: Optional[TransactionSourceInboundWireReversal]
- """A Inbound Wire Reversal object.
+ """An Inbound Wire Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_reversal`.
"""
inbound_wire_transfer: Optional[TransactionSourceInboundWireTransfer]
- """A Inbound Wire Transfer object.
+ """An Inbound Wire Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_transfer`.
"""
interest_payment: Optional[TransactionSourceInterestPayment]
- """A Interest Payment object.
+ """An Interest Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `interest_payment`.
"""
internal_source: Optional[TransactionSourceInternalSource]
- """A Internal Source object.
+ """An Internal Source object.
This field will be present in the JSON response if and only if `category` is
equal to `internal_source`.
diff --git a/src/increase/types/simulations/interest_payment_simulation_result.py b/src/increase/types/simulations/interest_payment_simulation_result.py
index bdf02d4be..9ab7f23eb 100644
--- a/src/increase/types/simulations/interest_payment_simulation_result.py
+++ b/src/increase/types/simulations/interest_payment_simulation_result.py
@@ -2017,28 +2017,28 @@ class TransactionSourceWireTransferRejection(BaseModel):
class TransactionSource(BaseModel):
account_transfer_intention: Optional[TransactionSourceAccountTransferIntention]
- """A Account Transfer Intention object.
+ """An Account Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_intention`.
"""
ach_transfer_intention: Optional[TransactionSourceACHTransferIntention]
- """A ACH Transfer Intention object.
+ """An ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_intention`.
"""
ach_transfer_rejection: Optional[TransactionSourceACHTransferRejection]
- """A ACH Transfer Rejection object.
+ """An ACH Transfer Rejection object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_rejection`.
"""
ach_transfer_return: Optional[TransactionSourceACHTransferReturn]
- """A ACH Transfer Return object.
+ """An ACH Transfer Return object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_return`.
@@ -2104,78 +2104,71 @@ class TransactionSource(BaseModel):
"wire_transfer_rejection",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_intention` - The Transaction was created by a Account
- Transfer Intention object. Details will be under the
- `account_transfer_intention` object.
- - `ach_transfer_intention` - The Transaction was created by a ACH Transfer
- Intention object. Details will be under the `ach_transfer_intention` object.
- - `ach_transfer_rejection` - The Transaction was created by a ACH Transfer
- Rejection object. Details will be under the `ach_transfer_rejection` object.
- - `ach_transfer_return` - The Transaction was created by a ACH Transfer Return
- object. Details will be under the `ach_transfer_return` object.
- - `card_dispute_acceptance` - The Transaction was created by a Card Dispute
- Acceptance object. Details will be under the `card_dispute_acceptance` object.
- - `card_refund` - The Transaction was created by a Card Refund object. Details
- will be under the `card_refund` object.
- - `card_revenue_payment` - The Transaction was created by a Card Revenue Payment
- object. Details will be under the `card_revenue_payment` object.
- - `card_settlement` - The Transaction was created by a Card Settlement object.
- Details will be under the `card_settlement` object.
- - `check_deposit_acceptance` - The Transaction was created by a Check Deposit
- Acceptance object. Details will be under the `check_deposit_acceptance`
+ - `account_transfer_intention` - Account Transfer Intention: details will be
+ under the `account_transfer_intention` object.
+ - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
+ `ach_transfer_intention` object.
+ - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
+ `ach_transfer_rejection` object.
+ - `ach_transfer_return` - ACH Transfer Return: details will be under the
+ `ach_transfer_return` object.
+ - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
+ `card_dispute_acceptance` object.
+ - `card_refund` - Card Refund: details will be under the `card_refund` object.
+ - `card_revenue_payment` - Card Revenue Payment: details will be under the
+ `card_revenue_payment` object.
+ - `card_settlement` - Card Settlement: details will be under the
+ `card_settlement` object.
+ - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
+ the `check_deposit_acceptance` object.
+ - `check_deposit_return` - Check Deposit Return: details will be under the
+ `check_deposit_return` object.
+ - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
+ `check_transfer_deposit` object.
+ - `check_transfer_intention` - Check Transfer Intention: details will be under
+ the `check_transfer_intention` object.
+ - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
+ details will be under the `check_transfer_stop_payment_request` object.
+ - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
+ - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
+ the `inbound_ach_transfer` object.
+ - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
+ Intention: details will be under the `inbound_ach_transfer_return_intention`
object.
- - `check_deposit_return` - The Transaction was created by a Check Deposit Return
- object. Details will be under the `check_deposit_return` object.
- - `check_transfer_deposit` - The Transaction was created by a Check Transfer
- Deposit object. Details will be under the `check_transfer_deposit` object.
- - `check_transfer_intention` - The Transaction was created by a Check Transfer
- Intention object. Details will be under the `check_transfer_intention` object.
- - `check_transfer_stop_payment_request` - The Transaction was created by a Check
- Transfer Stop Payment Request object. Details will be under the
- `check_transfer_stop_payment_request` object.
- - `fee_payment` - The Transaction was created by a Fee Payment object. Details
- will be under the `fee_payment` object.
- - `inbound_ach_transfer` - The Transaction was created by a Inbound ACH Transfer
- object. Details will be under the `inbound_ach_transfer` object.
- - `inbound_ach_transfer_return_intention` - The Transaction was created by a
- Inbound ACH Transfer Return Intention object. Details will be under the
- `inbound_ach_transfer_return_intention` object.
- - `inbound_check` - The Transaction was created by a Inbound Check object.
- Details will be under the `inbound_check` object.
- - `inbound_international_ach_transfer` - The Transaction was created by a
- Inbound International ACH Transfer object. Details will be under the
- `inbound_international_ach_transfer` object.
- - `inbound_real_time_payments_transfer_confirmation` - The Transaction was
- created by a Inbound Real Time Payments Transfer Confirmation object. Details
- will be under the `inbound_real_time_payments_transfer_confirmation` object.
- - `inbound_wire_drawdown_payment` - The Transaction was created by a Inbound
- Wire Drawdown Payment object. Details will be under the
- `inbound_wire_drawdown_payment` object.
- - `inbound_wire_drawdown_payment_reversal` - The Transaction was created by a
- Inbound Wire Drawdown Payment Reversal object. Details will be under the
- `inbound_wire_drawdown_payment_reversal` object.
- - `inbound_wire_reversal` - The Transaction was created by a Inbound Wire
- Reversal object. Details will be under the `inbound_wire_reversal` object.
- - `inbound_wire_transfer` - The Transaction was created by a Inbound Wire
- Transfer object. Details will be under the `inbound_wire_transfer` object.
- - `interest_payment` - The Transaction was created by a Interest Payment object.
- Details will be under the `interest_payment` object.
- - `internal_source` - The Transaction was created by a Internal Source object.
- Details will be under the `internal_source` object.
- - `real_time_payments_transfer_acknowledgement` - The Transaction was created by
- a Real Time Payments Transfer Acknowledgement object. Details will be under
- the `real_time_payments_transfer_acknowledgement` object.
- - `sample_funds` - The Transaction was created by a Sample Funds object. Details
- will be under the `sample_funds` object.
- - `wire_transfer_intention` - The Transaction was created by a Wire Transfer
- Intention object. Details will be under the `wire_transfer_intention` object.
- - `wire_transfer_rejection` - The Transaction was created by a Wire Transfer
- Rejection object. Details will be under the `wire_transfer_rejection` object.
+ - `inbound_check` - Inbound Check: details will be under the `inbound_check`
+ object.
+ - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
+ details will be under the `inbound_international_ach_transfer` object.
+ - `inbound_real_time_payments_transfer_confirmation` - Inbound Real Time
+ Payments Transfer Confirmation: details will be under the
+ `inbound_real_time_payments_transfer_confirmation` object.
+ - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
+ be under the `inbound_wire_drawdown_payment` object.
+ - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
+ Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
+ object.
+ - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
+ `inbound_wire_reversal` object.
+ - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
+ `inbound_wire_transfer` object.
+ - `interest_payment` - Interest Payment: details will be under the
+ `interest_payment` object.
+ - `internal_source` - Internal Source: details will be under the
+ `internal_source` object.
+ - `real_time_payments_transfer_acknowledgement` - Real Time Payments Transfer
+ Acknowledgement: details will be under the
+ `real_time_payments_transfer_acknowledgement` object.
+ - `sample_funds` - Sample Funds: details will be under the `sample_funds`
+ object.
+ - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
+ `wire_transfer_intention` object.
+ - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
+ `wire_transfer_rejection` object.
- `other` - The Transaction was made for an undocumented or deprecated reason.
"""
@@ -2222,21 +2215,21 @@ class TransactionSource(BaseModel):
"""
inbound_ach_transfer: Optional[TransactionSourceInboundACHTransfer]
- """A Inbound ACH Transfer object.
+ """An Inbound ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_ach_transfer`.
"""
inbound_check: Optional[TransactionSourceInboundCheck]
- """A Inbound Check object.
+ """An Inbound Check object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_check`.
"""
inbound_international_ach_transfer: Optional[TransactionSourceInboundInternationalACHTransfer]
- """A Inbound International ACH Transfer object.
+ """An Inbound International ACH Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_international_ach_transfer`.
@@ -2245,49 +2238,49 @@ class TransactionSource(BaseModel):
inbound_real_time_payments_transfer_confirmation: Optional[
TransactionSourceInboundRealTimePaymentsTransferConfirmation
]
- """A Inbound Real Time Payments Transfer Confirmation object.
+ """An Inbound Real Time Payments Transfer Confirmation object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_confirmation`.
"""
inbound_wire_drawdown_payment: Optional[TransactionSourceInboundWireDrawdownPayment]
- """A Inbound Wire Drawdown Payment object.
+ """An Inbound Wire Drawdown Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment`.
"""
inbound_wire_drawdown_payment_reversal: Optional[TransactionSourceInboundWireDrawdownPaymentReversal]
- """A Inbound Wire Drawdown Payment Reversal object.
+ """An Inbound Wire Drawdown Payment Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment_reversal`.
"""
inbound_wire_reversal: Optional[TransactionSourceInboundWireReversal]
- """A Inbound Wire Reversal object.
+ """An Inbound Wire Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_reversal`.
"""
inbound_wire_transfer: Optional[TransactionSourceInboundWireTransfer]
- """A Inbound Wire Transfer object.
+ """An Inbound Wire Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_transfer`.
"""
interest_payment: Optional[TransactionSourceInterestPayment]
- """A Interest Payment object.
+ """An Interest Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `interest_payment`.
"""
internal_source: Optional[TransactionSourceInternalSource]
- """A Internal Source object.
+ """An Internal Source object.
This field will be present in the JSON response if and only if `category` is
equal to `internal_source`.
diff --git a/src/increase/types/simulations/wire_transfer_simulation.py b/src/increase/types/simulations/wire_transfer_simulation.py
index 62efa16ca..51411fcbb 100644
--- a/src/increase/types/simulations/wire_transfer_simulation.py
+++ b/src/increase/types/simulations/wire_transfer_simulation.py
@@ -2017,28 +2017,28 @@ class TransactionSourceWireTransferRejection(BaseModel):
class TransactionSource(BaseModel):
account_transfer_intention: Optional[TransactionSourceAccountTransferIntention]
- """A Account Transfer Intention object.
+ """An Account Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_intention`.
"""
ach_transfer_intention: Optional[TransactionSourceACHTransferIntention]
- """A ACH Transfer Intention object.
+ """An ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_intention`.
"""
ach_transfer_rejection: Optional[TransactionSourceACHTransferRejection]
- """A ACH Transfer Rejection object.
+ """An ACH Transfer Rejection object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_rejection`.
"""
ach_transfer_return: Optional[TransactionSourceACHTransferReturn]
- """A ACH Transfer Return object.
+ """An ACH Transfer Return object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_return`.
@@ -2104,78 +2104,71 @@ class TransactionSource(BaseModel):
"wire_transfer_rejection",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_intention` - The Transaction was created by a Account
- Transfer Intention object. Details will be under the
- `account_transfer_intention` object.
- - `ach_transfer_intention` - The Transaction was created by a ACH Transfer
- Intention object. Details will be under the `ach_transfer_intention` object.
- - `ach_transfer_rejection` - The Transaction was created by a ACH Transfer
- Rejection object. Details will be under the `ach_transfer_rejection` object.
- - `ach_transfer_return` - The Transaction was created by a ACH Transfer Return
- object. Details will be under the `ach_transfer_return` object.
- - `card_dispute_acceptance` - The Transaction was created by a Card Dispute
- Acceptance object. Details will be under the `card_dispute_acceptance` object.
- - `card_refund` - The Transaction was created by a Card Refund object. Details
- will be under the `card_refund` object.
- - `card_revenue_payment` - The Transaction was created by a Card Revenue Payment
- object. Details will be under the `card_revenue_payment` object.
- - `card_settlement` - The Transaction was created by a Card Settlement object.
- Details will be under the `card_settlement` object.
- - `check_deposit_acceptance` - The Transaction was created by a Check Deposit
- Acceptance object. Details will be under the `check_deposit_acceptance`
+ - `account_transfer_intention` - Account Transfer Intention: details will be
+ under the `account_transfer_intention` object.
+ - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
+ `ach_transfer_intention` object.
+ - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
+ `ach_transfer_rejection` object.
+ - `ach_transfer_return` - ACH Transfer Return: details will be under the
+ `ach_transfer_return` object.
+ - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
+ `card_dispute_acceptance` object.
+ - `card_refund` - Card Refund: details will be under the `card_refund` object.
+ - `card_revenue_payment` - Card Revenue Payment: details will be under the
+ `card_revenue_payment` object.
+ - `card_settlement` - Card Settlement: details will be under the
+ `card_settlement` object.
+ - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
+ the `check_deposit_acceptance` object.
+ - `check_deposit_return` - Check Deposit Return: details will be under the
+ `check_deposit_return` object.
+ - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
+ `check_transfer_deposit` object.
+ - `check_transfer_intention` - Check Transfer Intention: details will be under
+ the `check_transfer_intention` object.
+ - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
+ details will be under the `check_transfer_stop_payment_request` object.
+ - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
+ - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
+ the `inbound_ach_transfer` object.
+ - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
+ Intention: details will be under the `inbound_ach_transfer_return_intention`
object.
- - `check_deposit_return` - The Transaction was created by a Check Deposit Return
- object. Details will be under the `check_deposit_return` object.
- - `check_transfer_deposit` - The Transaction was created by a Check Transfer
- Deposit object. Details will be under the `check_transfer_deposit` object.
- - `check_transfer_intention` - The Transaction was created by a Check Transfer
- Intention object. Details will be under the `check_transfer_intention` object.
- - `check_transfer_stop_payment_request` - The Transaction was created by a Check
- Transfer Stop Payment Request object. Details will be under the
- `check_transfer_stop_payment_request` object.
- - `fee_payment` - The Transaction was created by a Fee Payment object. Details
- will be under the `fee_payment` object.
- - `inbound_ach_transfer` - The Transaction was created by a Inbound ACH Transfer
- object. Details will be under the `inbound_ach_transfer` object.
- - `inbound_ach_transfer_return_intention` - The Transaction was created by a
- Inbound ACH Transfer Return Intention object. Details will be under the
- `inbound_ach_transfer_return_intention` object.
- - `inbound_check` - The Transaction was created by a Inbound Check object.
- Details will be under the `inbound_check` object.
- - `inbound_international_ach_transfer` - The Transaction was created by a
- Inbound International ACH Transfer object. Details will be under the
- `inbound_international_ach_transfer` object.
- - `inbound_real_time_payments_transfer_confirmation` - The Transaction was
- created by a Inbound Real Time Payments Transfer Confirmation object. Details
- will be under the `inbound_real_time_payments_transfer_confirmation` object.
- - `inbound_wire_drawdown_payment` - The Transaction was created by a Inbound
- Wire Drawdown Payment object. Details will be under the
- `inbound_wire_drawdown_payment` object.
- - `inbound_wire_drawdown_payment_reversal` - The Transaction was created by a
- Inbound Wire Drawdown Payment Reversal object. Details will be under the
- `inbound_wire_drawdown_payment_reversal` object.
- - `inbound_wire_reversal` - The Transaction was created by a Inbound Wire
- Reversal object. Details will be under the `inbound_wire_reversal` object.
- - `inbound_wire_transfer` - The Transaction was created by a Inbound Wire
- Transfer object. Details will be under the `inbound_wire_transfer` object.
- - `interest_payment` - The Transaction was created by a Interest Payment object.
- Details will be under the `interest_payment` object.
- - `internal_source` - The Transaction was created by a Internal Source object.
- Details will be under the `internal_source` object.
- - `real_time_payments_transfer_acknowledgement` - The Transaction was created by
- a Real Time Payments Transfer Acknowledgement object. Details will be under
- the `real_time_payments_transfer_acknowledgement` object.
- - `sample_funds` - The Transaction was created by a Sample Funds object. Details
- will be under the `sample_funds` object.
- - `wire_transfer_intention` - The Transaction was created by a Wire Transfer
- Intention object. Details will be under the `wire_transfer_intention` object.
- - `wire_transfer_rejection` - The Transaction was created by a Wire Transfer
- Rejection object. Details will be under the `wire_transfer_rejection` object.
+ - `inbound_check` - Inbound Check: details will be under the `inbound_check`
+ object.
+ - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
+ details will be under the `inbound_international_ach_transfer` object.
+ - `inbound_real_time_payments_transfer_confirmation` - Inbound Real Time
+ Payments Transfer Confirmation: details will be under the
+ `inbound_real_time_payments_transfer_confirmation` object.
+ - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
+ be under the `inbound_wire_drawdown_payment` object.
+ - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
+ Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
+ object.
+ - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
+ `inbound_wire_reversal` object.
+ - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
+ `inbound_wire_transfer` object.
+ - `interest_payment` - Interest Payment: details will be under the
+ `interest_payment` object.
+ - `internal_source` - Internal Source: details will be under the
+ `internal_source` object.
+ - `real_time_payments_transfer_acknowledgement` - Real Time Payments Transfer
+ Acknowledgement: details will be under the
+ `real_time_payments_transfer_acknowledgement` object.
+ - `sample_funds` - Sample Funds: details will be under the `sample_funds`
+ object.
+ - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
+ `wire_transfer_intention` object.
+ - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
+ `wire_transfer_rejection` object.
- `other` - The Transaction was made for an undocumented or deprecated reason.
"""
@@ -2222,21 +2215,21 @@ class TransactionSource(BaseModel):
"""
inbound_ach_transfer: Optional[TransactionSourceInboundACHTransfer]
- """A Inbound ACH Transfer object.
+ """An Inbound ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_ach_transfer`.
"""
inbound_check: Optional[TransactionSourceInboundCheck]
- """A Inbound Check object.
+ """An Inbound Check object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_check`.
"""
inbound_international_ach_transfer: Optional[TransactionSourceInboundInternationalACHTransfer]
- """A Inbound International ACH Transfer object.
+ """An Inbound International ACH Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_international_ach_transfer`.
@@ -2245,49 +2238,49 @@ class TransactionSource(BaseModel):
inbound_real_time_payments_transfer_confirmation: Optional[
TransactionSourceInboundRealTimePaymentsTransferConfirmation
]
- """A Inbound Real Time Payments Transfer Confirmation object.
+ """An Inbound Real Time Payments Transfer Confirmation object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_confirmation`.
"""
inbound_wire_drawdown_payment: Optional[TransactionSourceInboundWireDrawdownPayment]
- """A Inbound Wire Drawdown Payment object.
+ """An Inbound Wire Drawdown Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment`.
"""
inbound_wire_drawdown_payment_reversal: Optional[TransactionSourceInboundWireDrawdownPaymentReversal]
- """A Inbound Wire Drawdown Payment Reversal object.
+ """An Inbound Wire Drawdown Payment Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment_reversal`.
"""
inbound_wire_reversal: Optional[TransactionSourceInboundWireReversal]
- """A Inbound Wire Reversal object.
+ """An Inbound Wire Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_reversal`.
"""
inbound_wire_transfer: Optional[TransactionSourceInboundWireTransfer]
- """A Inbound Wire Transfer object.
+ """An Inbound Wire Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_transfer`.
"""
interest_payment: Optional[TransactionSourceInterestPayment]
- """A Interest Payment object.
+ """An Interest Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `interest_payment`.
"""
internal_source: Optional[TransactionSourceInternalSource]
- """A Internal Source object.
+ """An Internal Source object.
This field will be present in the JSON response if and only if `category` is
equal to `internal_source`.
diff --git a/src/increase/types/transaction.py b/src/increase/types/transaction.py
index eec5688fe..3eda7221e 100644
--- a/src/increase/types/transaction.py
+++ b/src/increase/types/transaction.py
@@ -2016,28 +2016,28 @@ class SourceWireTransferRejection(BaseModel):
class Source(BaseModel):
account_transfer_intention: Optional[SourceAccountTransferIntention]
- """A Account Transfer Intention object.
+ """An Account Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `account_transfer_intention`.
"""
ach_transfer_intention: Optional[SourceACHTransferIntention]
- """A ACH Transfer Intention object.
+ """An ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_intention`.
"""
ach_transfer_rejection: Optional[SourceACHTransferRejection]
- """A ACH Transfer Rejection object.
+ """An ACH Transfer Rejection object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_rejection`.
"""
ach_transfer_return: Optional[SourceACHTransferReturn]
- """A ACH Transfer Return object.
+ """An ACH Transfer Return object.
This field will be present in the JSON response if and only if `category` is
equal to `ach_transfer_return`.
@@ -2103,78 +2103,71 @@ class Source(BaseModel):
"wire_transfer_rejection",
"other",
]
- """The type of transaction that took place.
+ """The type of the resource.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- - `account_transfer_intention` - The Transaction was created by a Account
- Transfer Intention object. Details will be under the
- `account_transfer_intention` object.
- - `ach_transfer_intention` - The Transaction was created by a ACH Transfer
- Intention object. Details will be under the `ach_transfer_intention` object.
- - `ach_transfer_rejection` - The Transaction was created by a ACH Transfer
- Rejection object. Details will be under the `ach_transfer_rejection` object.
- - `ach_transfer_return` - The Transaction was created by a ACH Transfer Return
- object. Details will be under the `ach_transfer_return` object.
- - `card_dispute_acceptance` - The Transaction was created by a Card Dispute
- Acceptance object. Details will be under the `card_dispute_acceptance` object.
- - `card_refund` - The Transaction was created by a Card Refund object. Details
- will be under the `card_refund` object.
- - `card_revenue_payment` - The Transaction was created by a Card Revenue Payment
- object. Details will be under the `card_revenue_payment` object.
- - `card_settlement` - The Transaction was created by a Card Settlement object.
- Details will be under the `card_settlement` object.
- - `check_deposit_acceptance` - The Transaction was created by a Check Deposit
- Acceptance object. Details will be under the `check_deposit_acceptance`
+ - `account_transfer_intention` - Account Transfer Intention: details will be
+ under the `account_transfer_intention` object.
+ - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
+ `ach_transfer_intention` object.
+ - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
+ `ach_transfer_rejection` object.
+ - `ach_transfer_return` - ACH Transfer Return: details will be under the
+ `ach_transfer_return` object.
+ - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
+ `card_dispute_acceptance` object.
+ - `card_refund` - Card Refund: details will be under the `card_refund` object.
+ - `card_revenue_payment` - Card Revenue Payment: details will be under the
+ `card_revenue_payment` object.
+ - `card_settlement` - Card Settlement: details will be under the
+ `card_settlement` object.
+ - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
+ the `check_deposit_acceptance` object.
+ - `check_deposit_return` - Check Deposit Return: details will be under the
+ `check_deposit_return` object.
+ - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
+ `check_transfer_deposit` object.
+ - `check_transfer_intention` - Check Transfer Intention: details will be under
+ the `check_transfer_intention` object.
+ - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
+ details will be under the `check_transfer_stop_payment_request` object.
+ - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
+ - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
+ the `inbound_ach_transfer` object.
+ - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
+ Intention: details will be under the `inbound_ach_transfer_return_intention`
object.
- - `check_deposit_return` - The Transaction was created by a Check Deposit Return
- object. Details will be under the `check_deposit_return` object.
- - `check_transfer_deposit` - The Transaction was created by a Check Transfer
- Deposit object. Details will be under the `check_transfer_deposit` object.
- - `check_transfer_intention` - The Transaction was created by a Check Transfer
- Intention object. Details will be under the `check_transfer_intention` object.
- - `check_transfer_stop_payment_request` - The Transaction was created by a Check
- Transfer Stop Payment Request object. Details will be under the
- `check_transfer_stop_payment_request` object.
- - `fee_payment` - The Transaction was created by a Fee Payment object. Details
- will be under the `fee_payment` object.
- - `inbound_ach_transfer` - The Transaction was created by a Inbound ACH Transfer
- object. Details will be under the `inbound_ach_transfer` object.
- - `inbound_ach_transfer_return_intention` - The Transaction was created by a
- Inbound ACH Transfer Return Intention object. Details will be under the
- `inbound_ach_transfer_return_intention` object.
- - `inbound_check` - The Transaction was created by a Inbound Check object.
- Details will be under the `inbound_check` object.
- - `inbound_international_ach_transfer` - The Transaction was created by a
- Inbound International ACH Transfer object. Details will be under the
- `inbound_international_ach_transfer` object.
- - `inbound_real_time_payments_transfer_confirmation` - The Transaction was
- created by a Inbound Real Time Payments Transfer Confirmation object. Details
- will be under the `inbound_real_time_payments_transfer_confirmation` object.
- - `inbound_wire_drawdown_payment` - The Transaction was created by a Inbound
- Wire Drawdown Payment object. Details will be under the
- `inbound_wire_drawdown_payment` object.
- - `inbound_wire_drawdown_payment_reversal` - The Transaction was created by a
- Inbound Wire Drawdown Payment Reversal object. Details will be under the
- `inbound_wire_drawdown_payment_reversal` object.
- - `inbound_wire_reversal` - The Transaction was created by a Inbound Wire
- Reversal object. Details will be under the `inbound_wire_reversal` object.
- - `inbound_wire_transfer` - The Transaction was created by a Inbound Wire
- Transfer object. Details will be under the `inbound_wire_transfer` object.
- - `interest_payment` - The Transaction was created by a Interest Payment object.
- Details will be under the `interest_payment` object.
- - `internal_source` - The Transaction was created by a Internal Source object.
- Details will be under the `internal_source` object.
- - `real_time_payments_transfer_acknowledgement` - The Transaction was created by
- a Real Time Payments Transfer Acknowledgement object. Details will be under
- the `real_time_payments_transfer_acknowledgement` object.
- - `sample_funds` - The Transaction was created by a Sample Funds object. Details
- will be under the `sample_funds` object.
- - `wire_transfer_intention` - The Transaction was created by a Wire Transfer
- Intention object. Details will be under the `wire_transfer_intention` object.
- - `wire_transfer_rejection` - The Transaction was created by a Wire Transfer
- Rejection object. Details will be under the `wire_transfer_rejection` object.
+ - `inbound_check` - Inbound Check: details will be under the `inbound_check`
+ object.
+ - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
+ details will be under the `inbound_international_ach_transfer` object.
+ - `inbound_real_time_payments_transfer_confirmation` - Inbound Real Time
+ Payments Transfer Confirmation: details will be under the
+ `inbound_real_time_payments_transfer_confirmation` object.
+ - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
+ be under the `inbound_wire_drawdown_payment` object.
+ - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
+ Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
+ object.
+ - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
+ `inbound_wire_reversal` object.
+ - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
+ `inbound_wire_transfer` object.
+ - `interest_payment` - Interest Payment: details will be under the
+ `interest_payment` object.
+ - `internal_source` - Internal Source: details will be under the
+ `internal_source` object.
+ - `real_time_payments_transfer_acknowledgement` - Real Time Payments Transfer
+ Acknowledgement: details will be under the
+ `real_time_payments_transfer_acknowledgement` object.
+ - `sample_funds` - Sample Funds: details will be under the `sample_funds`
+ object.
+ - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
+ `wire_transfer_intention` object.
+ - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
+ `wire_transfer_rejection` object.
- `other` - The Transaction was made for an undocumented or deprecated reason.
"""
@@ -2221,70 +2214,70 @@ class Source(BaseModel):
"""
inbound_ach_transfer: Optional[SourceInboundACHTransfer]
- """A Inbound ACH Transfer object.
+ """An Inbound ACH Transfer Intention object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_ach_transfer`.
"""
inbound_check: Optional[SourceInboundCheck]
- """A Inbound Check object.
+ """An Inbound Check object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_check`.
"""
inbound_international_ach_transfer: Optional[SourceInboundInternationalACHTransfer]
- """A Inbound International ACH Transfer object.
+ """An Inbound International ACH Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_international_ach_transfer`.
"""
inbound_real_time_payments_transfer_confirmation: Optional[SourceInboundRealTimePaymentsTransferConfirmation]
- """A Inbound Real Time Payments Transfer Confirmation object.
+ """An Inbound Real Time Payments Transfer Confirmation object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_real_time_payments_transfer_confirmation`.
"""
inbound_wire_drawdown_payment: Optional[SourceInboundWireDrawdownPayment]
- """A Inbound Wire Drawdown Payment object.
+ """An Inbound Wire Drawdown Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment`.
"""
inbound_wire_drawdown_payment_reversal: Optional[SourceInboundWireDrawdownPaymentReversal]
- """A Inbound Wire Drawdown Payment Reversal object.
+ """An Inbound Wire Drawdown Payment Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_drawdown_payment_reversal`.
"""
inbound_wire_reversal: Optional[SourceInboundWireReversal]
- """A Inbound Wire Reversal object.
+ """An Inbound Wire Reversal object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_reversal`.
"""
inbound_wire_transfer: Optional[SourceInboundWireTransfer]
- """A Inbound Wire Transfer object.
+ """An Inbound Wire Transfer object.
This field will be present in the JSON response if and only if `category` is
equal to `inbound_wire_transfer`.
"""
interest_payment: Optional[SourceInterestPayment]
- """A Interest Payment object.
+ """An Interest Payment object.
This field will be present in the JSON response if and only if `category` is
equal to `interest_payment`.
"""
internal_source: Optional[SourceInternalSource]
- """A Internal Source object.
+ """An Internal Source object.
This field will be present in the JSON response if and only if `category` is
equal to `internal_source`.
diff --git a/tests/api_resources/entities/test_beneficial_owners.py b/tests/api_resources/entities/test_beneficial_owners.py
index 49569c0b1..83769adbf 100644
--- a/tests/api_resources/entities/test_beneficial_owners.py
+++ b/tests/api_resources/entities/test_beneficial_owners.py
@@ -39,7 +39,7 @@ def test_method_create(self, client: Increase) -> None:
"number": "xxxx",
},
},
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
)
assert_matches_type(Entity, beneficial_owner, path=["response"])
@@ -84,7 +84,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
)
assert_matches_type(Entity, beneficial_owner, path=["response"])
@@ -114,7 +114,7 @@ async def test_method_create(self, client: AsyncIncrease) -> None:
"number": "xxxx",
},
},
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
)
assert_matches_type(Entity, beneficial_owner, path=["response"])
@@ -159,7 +159,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
)
assert_matches_type(Entity, beneficial_owner, path=["response"])
diff --git a/tests/api_resources/test_card_profiles.py b/tests/api_resources/test_card_profiles.py
index 2642d020e..ae5ad6fc0 100644
--- a/tests/api_resources/test_card_profiles.py
+++ b/tests/api_resources/test_card_profiles.py
@@ -80,6 +80,13 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
)
assert_matches_type(SyncPage[CardProfile], card_profile, path=["response"])
+ @parametrize
+ def test_method_archive(self, client: Increase) -> None:
+ card_profile = client.card_profiles.archive(
+ "string",
+ )
+ assert_matches_type(CardProfile, card_profile, path=["response"])
+
class TestAsyncCardProfiles:
strict_client = AsyncIncrease(base_url=base_url, api_key=api_key, _strict_response_validation=True)
@@ -145,3 +152,10 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
status={"in": ["pending", "pending", "pending"]},
)
assert_matches_type(AsyncPage[CardProfile], card_profile, path=["response"])
+
+ @parametrize
+ async def test_method_archive(self, client: AsyncIncrease) -> None:
+ card_profile = await client.card_profiles.archive(
+ "string",
+ )
+ assert_matches_type(CardProfile, card_profile, path=["response"])
diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py
index 2ac27a752..5ae7b5268 100644
--- a/tests/api_resources/test_entities.py
+++ b/tests/api_resources/test_entities.py
@@ -83,7 +83,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
{
"individual": {
@@ -121,7 +121,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
{
"individual": {
@@ -159,7 +159,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
],
},
@@ -496,6 +496,13 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
)
assert_matches_type(SyncPage[Entity], entity, path=["response"])
+ @parametrize
+ def test_method_archive(self, client: Increase) -> None:
+ entity = client.entities.archive(
+ "string",
+ )
+ assert_matches_type(Entity, entity, path=["response"])
+
class TestAsyncEntities:
strict_client = AsyncIncrease(base_url=base_url, api_key=api_key, _strict_response_validation=True)
@@ -564,7 +571,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
{
"individual": {
@@ -602,7 +609,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
{
"individual": {
@@ -640,7 +647,7 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non
},
},
"company_title": "x",
- "prong": "ownership",
+ "prongs": ["ownership", "ownership", "ownership"],
},
],
},
@@ -976,3 +983,10 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None:
limit=0,
)
assert_matches_type(AsyncPage[Entity], entity, path=["response"])
+
+ @parametrize
+ async def test_method_archive(self, client: AsyncIncrease) -> None:
+ entity = await client.entities.archive(
+ "string",
+ )
+ assert_matches_type(Entity, entity, path=["response"])
diff --git a/tests/conftest.py b/tests/conftest.py
index 4452b7a7e..dd8bbe4c8 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,4 +1,5 @@
import asyncio
+from typing import Iterator
import pytest
@@ -6,5 +7,7 @@
@pytest.fixture(scope="session")
-def event_loop() -> asyncio.AbstractEventLoop:
- return asyncio.new_event_loop()
+def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
+ loop = asyncio.new_event_loop()
+ yield loop
+ loop.close()